aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2020-05-16 16:34:25 -0700
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-05-18 21:37:48 +0200
commitbba4bbbd9acfbee4353ebb5956a65f4153a1e21b (patch)
tree4bde6053f0668ebacd825fbc3a649c50f717e99f /man3
parentaa02339ca45030711b42a1af12e3ee3405c1c5c7 (diff)
downloadman-pages-bba4bbbd9acfbee4353ebb5956a65f4153a1e21b.tar.gz
Various pages: Add missing commas in SEE ALSO part II
This is a sequel to commit baf17bc4f2a3f3b02d, addressing the issues with missing commas in the middle of SEE ALSO lists that emerged since. The awk script from the original commit was not working and had to be slightly modified (s/["]SEE ALSO["]/"?SEE ALSO/), otherwise it works like a charm. Here's the fixed script and its output just before this commit: for f in man*/*; do awk ' /^.SH "?SEE ALSO/ { sa=1; print "== " FILENAME " =="; print; next } /^\.(PP|SH)/ { sa=0; no=0; next } /^\.BR/ { if (sa==1) { print; if (no == 1) print "Missing comma in " FILENAME " +" FNR-1; no=0 } } /^\.BR .*)$/ { if (sa==1) no=1; next } /\.\\"/ {next} /.*/ { if (sa==1) { print; next } } ' $f; done | grep Missing Missing comma in man1/memusage.1 +272 Missing comma in man2/adjtimex.2 +597 Missing comma in man2/adjtimex.2 +598 Missing comma in man2/mkdir.2 +252 Missing comma in man2/sigaction.2 +1045 Missing comma in man2/sigaction.2 +1047 Missing comma in man3/mbsnrtowcs.3 +198 Missing comma in man3/ntp_gettime.3 +142 Missing comma in man3/strcmp.3 +219 Missing comma in man3/strtol.3 +302 Missing comma in man3/wcstombs.3 +120 Missing comma in man7/user_namespaces.7 +1378 Missing comma in man7/xattr.7 +198 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/mbsnrtowcs.32
-rw-r--r--man3/ntp_gettime.32
-rw-r--r--man3/strcmp.32
-rw-r--r--man3/strtol.32
-rw-r--r--man3/wcstombs.32
5 files changed, 5 insertions, 5 deletions
diff --git a/man3/mbsnrtowcs.3 b/man3/mbsnrtowcs.3
index 2e5420305a..2e447bac8e 100644
--- a/man3/mbsnrtowcs.3
+++ b/man3/mbsnrtowcs.3
@@ -195,6 +195,6 @@ Passing NULL as
is not multithread safe.
.SH SEE ALSO
.BR iconv (3),
-.BR mbrtowc (3)
+.BR mbrtowc (3),
.BR mbsinit (3),
.BR mbsrtowcs (3)
diff --git a/man3/ntp_gettime.3 b/man3/ntp_gettime.3
index ff54a1ee0c..be80b48011 100644
--- a/man3/ntp_gettime.3
+++ b/man3/ntp_gettime.3
@@ -139,7 +139,7 @@ is described in the NTP Kernel Application Program Interface.
.BR ntp_gettimex ()
is a GNU extension.
.SH SEE ALSO
-.BR adjtimex (2)
+.BR adjtimex (2),
.BR ntp_adjtime (3),
.BR time (7)
.PP
diff --git a/man3/strcmp.3 b/man3/strcmp.3
index dd187be223..f1046f2e31 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -216,5 +216,5 @@ main(int argc, char *argv[])
.BR strncasecmp (3),
.BR strverscmp (3),
.BR wcscmp (3),
-.BR wcsncmp (3)
+.BR wcsncmp (3),
.BR ascii (7)
diff --git a/man3/strtol.3 b/man3/strtol.3
index 960f61b3eb..02598b9832 100644
--- a/man3/strtol.3
+++ b/man3/strtol.3
@@ -299,5 +299,5 @@ main(int argc, char *argv[])
.BR atoi (3),
.BR atol (3),
.BR strtod (3),
-.BR strtoimax (3)
+.BR strtoimax (3),
.BR strtoul (3),
diff --git a/man3/wcstombs.3 b/man3/wcstombs.3
index 8b3ca7d6f4..749cc7b26d 100644
--- a/man3/wcstombs.3
+++ b/man3/wcstombs.3
@@ -117,5 +117,5 @@ provides a better interface to the same functionality.
.BR mblen (3),
.BR mbstowcs (3),
.BR mbtowc (3),
-.BR wcsrtombs (3)
+.BR wcsrtombs (3),
.BR wctomb (3)