]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/: Address diagnostic about mismatched quotes
authorAlejandro Colomar <alx@kernel.org>
Sat, 23 Aug 2025 19:40:10 +0000 (21:40 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sun, 7 Sep 2025 09:14:35 +0000 (11:14 +0200)
Most of these are false positives, in the sense that a line break is
escaped, and the matching quote is in the next source line.

However, let's remove those escaped line breaks, which make reading the
source more difficult.  For this, rename some parameters to be shorter,
and allow some lines to go slightly past the 80-column right margin.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
40 files changed:
man/man2/alloc_hugepages.2
man/man2/epoll_wait.2
man/man2/getcpu.2
man/man2/getrandom.2
man/man2/init_module.2
man/man2/mlock.2
man/man2/move_pages.2
man/man2/query_module.2
man/man2/remap_file_pages.2
man/man2/sendfile.2
man/man2/shmop.2
man/man3/bcmp.3
man/man3/bcopy.3
man/man3/cfree.3
man/man3/fgetc.3
man/man3/getdirentries.3
man/man3/getpwnam.3
man/man3/getspnam.3
man/man3/lsearch.3
man/man3/mbstowcs.3
man/man3/mbtowc.3
man/man3/pthread_setname_np.3
man/man3/random_r.3
man/man3/regex.3
man/man3/resolver.3
man/man3/stpncpy.3
man/man3/strcasecmp.3
man/man3/strfmon.3
man/man3/strxfrm.3
man/man3/wcscasecmp.3
man/man3/wcsncmp.3
man/man3/wcsnrtombs.3
man/man3/wcsrtombs.3
man/man3/wcstombs.3
man/man3/wmemcmp.3
man/man3/wmemmove.3
man/man5/core.5
man/man7/attributes.7
man/man7/string_copying.7
man/man7/tcp.7

index 05619bcb7cc95cfdd3440543da11543cc17cd7bc..d87d2e8b6d6db27ba38da2241bfa8437200e6418 100644 (file)
@@ -8,8 +8,8 @@ alloc_hugepages, free_hugepages \- allocate or free huge pages
 .SH SYNOPSIS
 .nf
 .BR "void *syscall(" "size_t size;"
-.BI "              SYS_alloc_hugepages, int " key ", void " addr [ size "], \
-size_t " size ,
+.BI "              SYS_alloc_hugepages, int " key ,
+.BI "              void " addr [ size "], size_t " size ,
 .BI "              int " prot ", int " flag );
 .\" asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr,
 .\" unsigned long size, int prot, int flag);
index 3d0fbc986d7c1b5f718df76245a694f8e5c3f6c9..b81d88a852e256cd184b380020c03c0c56aed74d 100644 (file)
@@ -13,17 +13,16 @@ Standard C library
 .nf
 .B #include <sys/epoll.h>
 .P
-.BR "int epoll_wait(" "int maxevents;"
-.BI "               int " epfd ", struct epoll_event " events [ maxevents ],
-.BI "               int " maxevents ", int " timeout );
-.BR "int epoll_pwait(" "int maxevents;"
-.BI "               int " epfd ", struct epoll_event " events [ maxevents ],
-.BI "               int " maxevents ", int " timeout ,
+.BR "int epoll_wait(" "int n;"
+.BI "               int " epfd ", struct epoll_event " events [ n "], int " n ,
+.BI "               int " timeout );
+.BR "int epoll_pwait(" "int n;"
+.BI "               int " epfd ", struct epoll_event " events [ n "], int " n ,
+.BI "               int " timeout ,
 .BI "               const sigset_t *_Nullable " sigmask );
-.BR "int epoll_pwait2(" "int maxevents;"
-.BI "               int " epfd ", struct epoll_event " events [ maxevents ],
-.BI "               int " maxevents ", \
-const struct timespec *_Nullable " timeout ,
+.BR "int epoll_pwait2(" "int n;"
+.BI "               int " epfd ", struct epoll_event " events [ n "], int " n ,
+.BI "               const struct timespec *_Nullable " timeout ,
 .BI "               const sigset_t *_Nullable " sigmask );
 .fi
 .SH DESCRIPTION
@@ -39,11 +38,11 @@ is used to return information from the ready list
 about file descriptors in the interest list that
 have some events available.
 Up to
-.I maxevents
+.I n
 are returned by
 .BR epoll_wait ().
 The
-.I maxevents
+.I n
 argument must be greater than zero.
 .P
 The
@@ -124,7 +123,7 @@ call:
 .P
 .in +4n
 .EX
-ready = epoll_pwait(epfd, &events, maxevents, timeout, &sigmask);
+ready = epoll_pwait(epfd, &events, n, timeout, &sigmask);
 .EE
 .in
 .P
@@ -137,7 +136,7 @@ executing the following calls:
 sigset_t origmask;
 \&
 pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);
-ready = epoll_wait(epfd, &events, maxevents, timeout);
+ready = epoll_wait(epfd, &events, n, timeout);
 pthread_sigmask(SIG_SETMASK, &origmask, NULL);
 .EE
 .in
@@ -204,7 +203,7 @@ expired; see
 is not an
 .B epoll
 file descriptor, or
-.I maxevents
+.I n
 is less than or equal to zero.
 .SH STANDARDS
 Linux.
@@ -234,7 +233,7 @@ it will cause the
 call to unblock.
 .P
 If more than
-.I maxevents
+.I n
 file descriptors are ready when
 .BR epoll_wait ()
 is called, then successive
index f4ba11bd56fe7c2c2336e97607a982901425b684..8236e671e52767883135cb96628e8507dfde3dd4 100644 (file)
@@ -13,8 +13,7 @@ Standard C library
 .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
 .B #include <sched.h>
 .P
-.BI "int getcpu(unsigned int *_Nullable " cpu ", \
-unsigned int *_Nullable " node );
+.BI "int getcpu(unsigned int *_Nullable " cpu ", unsigned int *_Nullable " node );
 .fi
 .SH DESCRIPTION
 The
index 9e4f03c480ec895ff15383fff70cfdd5a093cd44..141eb94d153956160d5de1bb46f950c7cd7089d2 100644 (file)
@@ -12,9 +12,8 @@ Standard C library
 .nf
 .B #include <sys/random.h>
 .P
-.BR "ssize_t getrandom(" "size_t buflen;"
-.BI "                  void " buf [ buflen "], size_t " buflen ", \
-unsigned int " flags );
+.BR "ssize_t getrandom(" "size_t size;"
+.BI "                  void " buf [ size "], size_t " size ", unsigned int " flags );
 .fi
 .SH DESCRIPTION
 The
@@ -22,7 +21,7 @@ The
 system call fills the buffer pointed to by
 .I buf
 with up to
-.I buflen
+.I size
 random bytes.
 These bytes can be used to seed user-space random number generators
 or for cryptographic purposes.
@@ -79,7 +78,7 @@ noise.
 If the number of available bytes in the
 .I random
 source is less than requested in
-.IR buflen ,
+.IR size ,
 the call returns just the available random bytes.
 If no random bytes are available, the behavior depends on the presence of
 .B GRND_NONBLOCK
@@ -110,7 +109,7 @@ On success,
 returns the number of bytes that were copied to the buffer
 .IR buf .
 This may be less than the number of bytes requested via
-.I buflen
+.I size
 if either
 .B GRND_RANDOM
 was specified in
@@ -229,18 +228,18 @@ that is blocked while reading from the
 source is interrupted by a signal handler
 depends on the initialization state of the entropy buffer
 and on the request size,
-.IR buflen .
+.IR size .
 If the entropy is not yet initialized, then the call fails with the
 .B EINTR
 error.
 If the entropy pool has been initialized
 and the request size is large
-.RI ( buflen "\ >\ 256),"
+.RI ( size "\ >\ 256),"
 the call either succeeds, returning a partially filled buffer,
 or fails with the error
 .BR EINTR .
 If the entropy pool has been initialized and the request size is small
-.RI ( buflen "\ <=\ 256),"
+.RI ( size "\ <=\ 256),"
 then
 .BR getrandom ()
 will not fail with
@@ -260,7 +259,7 @@ to read small buffers (<=\ 256 bytes) from the
 source is the preferred mode of usage.
 .P
 The special treatment of small values of
-.I buflen
+.I size
 was designed for compatibility with
 OpenBSD's
 .BR getentropy (3),
@@ -275,7 +274,7 @@ or fewer bytes than requested were returned.
 In the case where
 .B GRND_RANDOM
 is not specified and
-.I buflen
+.I size
 is less than or equal to 256,
 a return of fewer bytes than requested should never happen,
 but the careful programmer will check for this anyway!
index 9ef4d5875f06660541eab51d38665f8634d7873e..45b4d2a6f52b5c57fcaec6abefcd2674d9d34314 100644 (file)
@@ -16,8 +16,8 @@ Standard C library
 .B #include <unistd.h>
 .P
 .BR "int syscall(" "unsigned long size;"
-.BI "            SYS_init_module, void " module_image [ size "], \
-unsigned long " size ,
+.B  "            SYS_init_module,"
+.BI "            void " module_image [ size "], unsigned long " size ,
 .BI "            const char *" param_values );
 .BI "int syscall(SYS_finit_module, int " fd ,
 .BI "            const char *" param_values ", int " flags );
index 9bf711140ed7c384db9ef7c6666921657d068c84..6a0397f50a3d95815e426f7f3198e9e8daca3293 100644 (file)
@@ -15,8 +15,7 @@ Standard C library
 .BR "int mlock(" "size_t size;"
 .BI "          const void " addr [ size "], size_t " size );
 .BR "int mlock2(" "size_t size;"
-.BI "          const void " addr [ size "], size_t " size ", \
-unsigned int " flags );
+.BI "          const void " addr [ size "], size_t " size ", unsigned int " flags );
 .BR "int munlock(" "size_t size;"
 .BI "          const void " addr [ size "], size_t " size );
 .P
index 55b85199357d2981d329126b94a7fc95990792ed..f678032e3bd8163a849459013d524fbabae4421c 100644 (file)
@@ -17,10 +17,9 @@ NUMA (Non-Uniform Memory Access) policy library
 .nf
 .B #include <numaif.h>
 .P
-.BI "long move_pages(int " pid ", unsigned long " count ", \
-void *" pages [ count ],
-.BI "                const int " nodes [ count "], int " status [ count "], \
-int " flags );
+.BI "long move_pages(int " pid ", unsigned long " count ", void *" pages [ count ],
+.BI "                const int " nodes [ count "], int " status [ count ],
+.BI "                int " flags );
 .fi
 .SH DESCRIPTION
 .BR move_pages ()
index 9595a5a17555236e2eb67ab4187e11eaa35e83ef..396e16897c1222844a5b816e74ead5cf240b3836 100644 (file)
@@ -12,8 +12,7 @@ query_module \- query the kernel for various bits pertaining to modules
 .P
 .BR "[[deprecated]] int query_module(" "size_t bufsize;"
 .BI "                                const char *" name ", int " which ,
-.BI "                                void " buf [ bufsize "], \
-size_t " bufsize ,
+.BI "                                void " buf [ bufsize "], size_t " bufsize ,
 .BI "                                size_t *" ret );
 .fi
 .SH DESCRIPTION
index 9c3059f442c28da040ce6c037a8eb9795f67e697..823fb73cf1509b351459bf44d0e85b1d10fe199d 100644 (file)
@@ -15,8 +15,7 @@ Standard C library
 .P
 .BR "[[deprecated]] int remap_file_pages(" "size_t size;"
 .BI "                                    void " addr [ size "], size_t " size ,
-.BI "                                    int " prot ", size_t " pgoff ", \
-int " flags );
+.BI "                                    int " prot ", size_t " pgoff ", int " flags );
 .fi
 .SH DESCRIPTION
 .BR Note :
index 837699b5ba7226640b0ed5ec49fe4584dc3b5717..3c2a5896d8de69ac05754dd4d4c17230e2d8a0e9 100644 (file)
@@ -12,9 +12,8 @@ Standard C library
 .nf
 .B #include <sys/sendfile.h>
 .P
-.BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", \
-off_t *_Nullable " offset ,
-.BI "                 size_t" " count" );
+.BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *_Nullable " offset ,
+.BI "                 size_t " count );
 .\" The below is too ugly. Comments about glibc versions belong
 .\" in the notes, not in the header.
 .\"
index 660d9615ea255b11cac433cedc3e0019f0d33e62..bdabd6dce54f095f0648f1b64f8896b8cf08ada7 100644 (file)
@@ -12,8 +12,7 @@ Standard C library
 .nf
 .B #include <sys/shm.h>
 .P
-.BI "void *shmat(int " shmid ", const void *_Nullable " shmaddr ", \
-int " shmflg );
+.BI "void *shmat(int " shmid ", const void *_Nullable " shmaddr ", int " shmflg );
 .BI "int shmdt(const void *" shmaddr );
 .fi
 .SH DESCRIPTION
index 153c2f141ff394f7ace55a90b06142f56c3450ae..acb965ab9016ced5961ac70b7cc84bc3199207ed 100644 (file)
@@ -13,8 +13,7 @@ Standard C library
 .B #include <strings.h>
 .P
 .BR "[[deprecated]] int bcmp(" "size_t n;"
-.BI "                        const void " s1 [ n "], const void " s2 [ n "], \
-size_t " n );
+.BI "                        const void " s1 [ n "], const void " s2 [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 .BR bcmp ()
index 9f234c7611d1bc11b0bd77b1a76b7f4666612401..50804d4d376a26246b5f299e36d2588dc5ad8520 100644 (file)
@@ -14,8 +14,7 @@ Standard C library
 .B #include <strings.h>
 .P
 .BR "[[deprecated]] void bcopy(" "size_t n;"
-.BI "                          const void " src [ n "], void " dest [ n "], \
-size_t " n );
+.BI "                          const void " src [ n "], void " dest [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 The
index dfa2b5a133d1efee5fc996aa785719aa7b28afdc..98e2050c981385ee2d682388aef00a0bda24ad24 100644 (file)
@@ -22,8 +22,7 @@ Standard C library
 .P
 /* In SCO OpenServer */
 .BR "void cfree(" "unsigned int n, unsigned int size;"
-.BI "           char " ptr [ size " * " n "], unsigned int " n ", \
-unsigned int " size );
+.BI "           char " ptr [ size " * " n "], unsigned int " n ", unsigned int " size );
 .P
 /* In Solaris watchmalloc.so.1 */
 .BR "void cfree(" "size_t n, size_t size;"
index b2c5b37ebf71fe39194950524c7a92bac76e3415..6ee0dd85347695c792ca13311e5d61e0870489ba 100644 (file)
@@ -18,8 +18,7 @@ Standard C library
 .B "int getchar(void);"
 .P
 .BR "char *fgets(" "int size;"
-.BI "            char " s "[restrict " size "], int " size ", \
-FILE *restrict " stream );
+.BI "            char " s "[restrict " size "], int " size ", FILE *restrict " stream );
 .P
 .BI "int ungetc(int " c ", FILE *" stream );
 .fi
index 255297feb859e1d35b4ebca3bc192f1c6a09ca00..e96eb2fc6e22acf7c6d95fbd46d520c690796aed 100644 (file)
@@ -14,9 +14,8 @@ Standard C library
 .nf
 .B #include <dirent.h>
 .P
-.BR "ssize_t getdirentries(" "size_t nbytes;"
-.BI "                      int " fd ", char " buf "[restrict " nbytes "], \
-size_t " nbytes ,
+.BR "ssize_t getdirentries(" "size_t size;"
+.BI "                      int " fd ", char " buf "[restrict " size "], size_t " size ,
 .BI "                      off_t *restrict " basep );
 .fi
 .P
@@ -38,8 +37,8 @@ Read directory entries from the directory specified by
 into
 .IR buf .
 At most
-.I nbytes
-are read.
+.I size
+bytes are read.
 Reading starts at offset
 .IR *basep ,
 and
index f02b028af0c631af2a88bce9cb04b5f38f019c97..7fce2e7ce163320c5c06dedfd4856ae9dd35e02c 100644 (file)
@@ -18,12 +18,13 @@ Standard C library
 .BI "struct passwd *getpwuid(uid_t " uid );
 .P
 .BR "int getpwnam_r(" "size_t size;"
-.BI "               const char *restrict " name ", \
-struct passwd *restrict " pwd ,
+.BI "               const char *restrict " name ,
+.BI "               struct passwd *restrict " pwd ,
 .BI "               char " buf "[restrict " size "], size_t " size ,
 .BI "               struct passwd **restrict " result );
 .BR "int getpwuid_r(" "size_t size;"
-.BI "               uid_t " uid ", struct passwd *restrict " pwd ,
+.BI "               uid_t " uid ,
+.BI "               struct passwd *restrict " pwd ,
 .BI "               char " buf "[restrict " size "], size_t " size ,
 .BI "               struct passwd **restrict " result );
 .fi
index f49d877273516950af71fd268f2d999c3682a386..14146d9d720b70544f5d8de7690f2889ef2636df 100644 (file)
@@ -35,21 +35,21 @@ Standard C library
 .P
 .BR "int getspent_r(" "size_t size;"
 .BI "               struct spwd *" spbuf ,
-.BI "               char " buf [ size "], size_t " size ", \
-struct spwd **" spbufp );
+.BI "               char " buf [ size "], size_t " size ,
+.BI "               struct spwd **" spbufp );
 .BR "int getspnam_r(" "size_t size;"
 .BI "               const char *" name ", struct spwd *" spbuf ,
-.BI "               char " buf [ size "], size_t " size ", \
-struct spwd **" spbufp );
+.BI "               char " buf [ size "], size_t " size ,
+.BI "               struct spwd **" spbufp );
 .P
 .BR "int fgetspent_r(" "size_t size;"
 .BI "               FILE *" stream ", struct spwd *" spbuf ,
-.BI "               char " buf [ size "], size_t " size ", \
-struct spwd **" spbufp );
+.BI "               char " buf [ size "], size_t " size ,
+.BI "               struct spwd **" spbufp );
 .BR "int sgetspent_r(" "size_t size;"
 .BI "               const char *" s ", struct spwd *" spbuf ,
-.BI "               char " buf [ size "], size_t " size ", \
-struct spwd **" spbufp );
+.BI "               char " buf [ size "], size_t " size ,
+.BI "               struct spwd **" spbufp );
 .fi
 .P
 .RS -4
index 8576ab86be3351192e3e5c2cedc01dba8b7db33e..fd923c89af600b5c9f660e121022607aef90ac9a 100644 (file)
@@ -14,14 +14,14 @@ Standard C library
 .B #include <search.h>
 .P
 .BR "void *lfind(" "size_t *n, size_t size;"
-.BI "            const void " key [ size "], \
-const void " base [* n " * " size ],
+.BI "            const void " key [ size ],
+.BI "            const void " base [* n " * " size ],
 .BI "            size_t *" n ", size_t " size ,
 .BI "            typeof(int (const void [" size "], const void [" size ]))
 .BI "                *" compar );
 .BR "void *lsearch(" "size_t *n, size_t size;"
-.BI "            const void " key [ size "], \
-void " base [* n " * " size ],
+.BI "            const void " key [ size ],
+.BI "            void " base [* n " * " size ],
 .BI "            size_t *" n ", size_t " size ,
 .BI "            typeof(int (const void [" size "], const void [" size ]))
 .BI "                *" compar );
index 655af0d9786df37db85f8c7f456d50da9c03cd8e..1637f127e2e8abd647ddd33cfae7929a208a6a49 100644 (file)
@@ -14,8 +14,7 @@ Standard C library
 .B #include <stdlib.h>
 .P
 .BR "size_t mbstowcs(" "size_t dsize;"
-.BI "                wchar_t " dest "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "                wchar_t " dest "[restrict " dsize "], const char *restrict " src ,
 .BI "                size_t " dsize );
 .fi
 .SH DESCRIPTION
index 22f0cbc2e9646395447d79ce0038befa06235fb9..ae994667d992a63033aab0781d20e8692e4decb5 100644 (file)
@@ -13,9 +13,9 @@ Standard C library
 .nf
 .B #include <stdlib.h>
 .P
-.BR "int mbtowc(" "size_t n;"
-.BI "           wchar_t *restrict " pwc ", const char " s "[restrict " n "], \
-size_t " n );
+.BR "int mbtowc(" "size_t size;"
+.BI "           wchar_t *restrict " pwc ", const char " s "[restrict " size ],
+.BI "           size_t " size );
 .fi
 .SH DESCRIPTION
 The main case for this function is when
@@ -27,7 +27,7 @@ not NULL.
 In this case, the
 .BR mbtowc ()
 function inspects at most
-.I n
+.I size
 bytes of the multibyte string starting at
 .IR s ,
 extracts the next complete
@@ -44,7 +44,7 @@ of bytes that were consumed from
 otherwise it returns 0.
 .P
 If the
-.I n
+.I size
 bytes starting at
 .I s
 do not contain a complete multibyte
@@ -52,7 +52,7 @@ character, or if they contain an invalid multibyte sequence,
 .BR mbtowc ()
 returns \-1.
 This can happen even if
-.I n
+.I size
 >=
 .IR MB_CUR_MAX ,
 if the multibyte string contains redundant shift sequences.
@@ -73,7 +73,7 @@ is NULL.
 In this case,
 .I pwc
 and
-.I n
+.I size
 are
 ignored.
 The
index 02ec1b3777ef05c788ab3e28f2a56c7a5b58c4a9..e7aa6022e9ee0926ffedcc50cceb6af4dce73283 100644 (file)
@@ -16,8 +16,7 @@ POSIX threads library
 .P
 .BI "int pthread_setname_np(pthread_t " thread ", const char *" name );
 .BR "int pthread_getname_np(" "size_t size;"
-.BI "                       pthread_t " thread ", char " name [ size "], \
-size_t " size );
+.BI "                       pthread_t " thread ", char " name [ size "], size_t " size );
 .fi
 .SH DESCRIPTION
 By default, all the threads created using
index efa896095e42bac0533e0b7d6e1de4cd71705e04..b86ab5b571316bc7ada8785f088d442d80e795d0 100644 (file)
@@ -18,9 +18,9 @@ Standard C library
 .BI "             int32_t *restrict " result );
 .BI "int srandom_r(unsigned int " seed ", struct random_data *" buf );
 .P
-.BI "int initstate_r(unsigned int " seed ", \
-char " statebuf "[restrict ." statelen ],
-.BI "             size_t " statelen ", struct random_data *restrict " buf );
+.BI "int initstate_r(unsigned int " seed ,
+.BI "             char " statebuf "[restrict ." statelen "], size_t " statelen ,
+.BI "             struct random_data *restrict " buf );
 .BI "int setstate_r(char *restrict " statebuf ,
 .BI "             struct random_data *restrict " buf );
 .fi
index 6c37ecafe8ae4faeb3f3957206a294b7717b2360..21e9c4c0b713a63df3cc56ceb87a448a5f2539a1 100644 (file)
@@ -15,10 +15,9 @@ Standard C library
 .P
 .BI "int regcomp(regex_t *restrict " preg ", const char *restrict " regex ,
 .BI "            int " cflags );
-.BI "int regexec(const regex_t *restrict " preg \
-", const char *restrict " string ,
-.BI "            size_t " nmatch ", \
-regmatch_t " pmatch "[_Nullable restrict " nmatch ],
+.BI "int regexec(const regex_t *restrict " preg ,
+.BI "            const char *restrict " string ,
+.BI "            size_t " n ", regmatch_t " pmatch "[_Nullable restrict " n ],
 .BI "            int " eflags );
 .P
 .BR "size_t regerror(" "size_t errbuf_size;"
@@ -64,7 +63,7 @@ Thus, a value of
 .I preg->re_nsub
 + 1
 passed as
-.I nmatch
+.I n
 to
 .BR regexec ()
 is sufficient to capture all matches.
@@ -97,7 +96,7 @@ will use only
 for
 .BR REG_STARTEND ,
 ignoring
-.IR nmatch .
+.IR n .
 .TP
 .B REG_NEWLINE
 Match-any-character operators don't match a newline.
@@ -165,7 +164,7 @@ If any matches are returned
 wasn't passed to
 .BR regcomp (),
 the match succeeded, and
-.I nmatch
+.I n
 > 0), they overwrite
 .I pmatch
 as usual, and the match offsets remain relative to
@@ -183,7 +182,7 @@ obtain the locations of matches within
 .IR string :
 .BR regexec ()
 fills
-.I nmatch
+.I n
 elements of
 .I pmatch
 with results:
@@ -192,7 +191,7 @@ corresponds to the entire match,
 .I pmatch[1]
 to the first subexpression, etc.
 If there were more matches than
-.IR nmatch ,
+.IR n ,
 they are discarded;
 if fewer,
 unused elements of
index 7a16e8d5ea7a963ae05920fe77079f08651ed9cd..283caccb1a30db2206091ba8f3f7850ff333443c 100644 (file)
@@ -28,25 +28,27 @@ Resolver library
 .P
 .BR "int res_nquery(" "int anslen;"
 .BI "           res_state " statep ,
-.BI "           const char *" dname ", int " class ", int " type ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
 .BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .BR "int res_nsearch(" "int anslen;"
 .BI "           res_state " statep ,
-.BI "           const char *" dname ", int " class ", int " type ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
 .BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .BR "int res_nquerydomain(" "int anslen;"
 .BI "           res_state " statep ,
 .BI "           const char *" name ", const char *" domain ,
-.BI "           int " class ", int " type ", unsigned char " answer [ anslen ],
-.BI "           int " anslen );
+.BI "           int " class ", int " type ,
+.BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .BR "int res_nmkquery(" "int datalen, int buflen;"
-.BI "           res_state " statep ,
-.BI "           int " op ", const char *" dname ", int " class ,
-.BI "           int " type ", const unsigned char " data [ datalen "], \
-int " datalen ,
+.BI "           res_state " statep ", int " op ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
+.BI "           const unsigned char " data [ datalen "], int " datalen ,
 .BI "           const unsigned char *" newrr ,
 .BI "           unsigned char " buf [ buflen "], int " buflen );
 .P
@@ -56,15 +58,16 @@ int " datalen ,
 .BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .BR "int dn_comp(" "int length;"
-.BI "           const char *" exp_dn ", unsigned char " comp_dn [ length ],
-.BI "           int " length ", unsigned char **" dnptrs ,
+.BI "           const char *" exp_dn ,
+.BI "           unsigned char " comp_dn [ length "], int " length ,
+.BI "           unsigned char **" dnptrs ,
 .BI "           unsigned char **" lastdnptr );
 .P
 .BR "int dn_expand(" "int length;"
 .BI "           const unsigned char *" msg ,
 .BI "           const unsigned char *" eomorig ,
-.BI "           const unsigned char *" comp_dn ", char " exp_dn [ length ],
-.BI "           int " length );
+.BI "           const unsigned char *" comp_dn ,
+.BI "           char " exp_dn [ length "], int " length );
 .P
 .B [[deprecated]] extern struct __res_state _res;
 .P
@@ -72,25 +75,28 @@ int " datalen ,
 .P
 .B [[deprecated]]
 .BR "int res_query(" "int anslen;"
-.BI "           const char *" dname ", int " class ", int " type ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
 .BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .B [[deprecated]]
 .BR "int res_search(" "int anslen;"
-.BI "           const char *" dname ", int " class ", int " type ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
 .BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .B [[deprecated]]
 .BR "int res_querydomain(" "int anslen;"
 .BI "           const char *" name ", const char *" domain ,
-.BI "           int " class ", int " type ", unsigned char " answer [ anslen ],
-.BI "           int " anslen );
+.BI "           int " class ", int " type ,
+.BI "           unsigned char " answer [ anslen "], int " anslen );
 .P
 .B [[deprecated]]
 .BR "int res_mkquery(" "int datalen, int buflen;"
-.BI "           int " op ", const char *" dname ", int " class ,
-.BI "           int " type ", const unsigned char " data [ datalen "], \
-int " datalen ,
+.BI "           int " op ,
+.BI "           const char *" dname ,
+.BI "           int " class ", int " type ,
+.BI "           const unsigned char " data [ datalen "], int " datalen ,
 .BI "           const unsigned char *" newrr ,
 .BI "           unsigned char " buf [ buflen "], int " buflen );
 .P
index 0e8225ed66224b2619bf7c3c474272426e314b94..7a2bc57074e98e7ea1a6caba7a4b14c2fab05c27 100644 (file)
@@ -17,12 +17,10 @@ Standard C library
 .B #include <string.h>
 .P
 .BR "char *strncpy(" "size_t dsize;"
-.BI "              char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "              char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "              size_t " dsize );
 .BR "char *stpncpy(" "size_t dsize;"
-.BI "              char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "              char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "              size_t " dsize );
 .fi
 .P
index 8db52225b74ad1fac82cdb0ab9eff25cb6ac8182..f8e6d90903a94ca7d46cc6fd5ad68e0994ea5322 100644 (file)
@@ -15,8 +15,7 @@ Standard C library
 .P
 .BI "int strcasecmp(const char *" s1 ", const char *" s2 );
 .BR "int strncasecmp(" "size_t n;"
-.BI "                const char " s1 [ n "], const char " s2 [ n "], \
-size_t " n );
+.BI "                const char " s1 [ n "], const char " s2 [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 The
index 2a469c1c674aa7c9dbb84509083181842d5a9a59..f201f47c4b17a8ecdcf8549d9b5554be15830172 100644 (file)
@@ -13,12 +13,11 @@ Standard C library
 .nf
 .B #include <monetary.h>
 .P
-.BR "ssize_t strfmon(" "size_t max;"
-.BI "                char " s "[restrict " max "], size_t " max ,
+.BR "ssize_t strfmon(" "size_t size;"
+.BI "                char " s "[restrict " size "], size_t " size ,
 .BI "                const char *restrict " format ", ...);"
-.BR "ssize_t strfmon_l(" "size_t max;"
-.BI "                char " s "[restrict " max "], size_t " max ", \
-locale_t " locale ,
+.BR "ssize_t strfmon_l(" "size_t size;"
+.BI "                char " s "[restrict " size "], size_t " size ", locale_t " l ,
 .BI "                const char *restrict " format ", ...);"
 .fi
 .SH DESCRIPTION
@@ -31,19 +30,20 @@ and format specification
 and places the
 result in the character array
 .I s
-of size
-.IR max .
+of
+.I size
+bytes.
 .P
 The
 .BR strfmon_l ()
 function performs the same task,
 but uses
 the locale specified by
-.IR locale .
+.IR l .
 The behavior of
 .BR strfmon_l ()
 is undefined if
-.I locale
+.I l
 is the special locale object
 .B LC_GLOBAL_LOCALE
 (see
index 9c408d550093b6c1e50630efa080090b10d9e97a..b1b2fb49037334e8f125ff27be33646ef6276d02 100644 (file)
@@ -13,10 +13,9 @@ Standard C library
 .nf
 .B #include <string.h>
 .P
-.BR "size_t strxfrm(" "size_t n;"
-.BI "               char " dest "[restrict " n "], \
-const char " src "[restrict " n ],
-.BI "               size_t " n );
+.BR "size_t strxfrm(" "size_t size;"
+.BI "               char " dest "[restrict " size "], const char " src "[restrict " size ],
+.BI "               size_t " size );
 .fi
 .SH DESCRIPTION
 The
@@ -33,7 +32,7 @@ is the same as the result of
 .BR strcoll (3)
 on the two strings before their transformation.
 The first
-.I n
+.I size
 bytes of the transformed string are placed in
 .IR dest .
 The transformation is based on the program's current
@@ -50,7 +49,7 @@ store the transformed string in
 excluding the
 terminating null byte (\[aq]\[rs]0\[aq]).
 If the value returned is
-.I n
+.I size
 or more, the
 contents of
 .I dest
index a8f1c897d75c4056a4d1b5d3630f44e84cded372..2a9bc1478e398d96e16c4efb7ad43d3c8438e379 100644 (file)
@@ -18,8 +18,7 @@ Standard C library
 .P
 .BI "int wcscasecmp(const wchar_t *" s1 ", const wchar_t *" s2 );
 .BR "int wcsncasecmp(" "size_t n;"
-.BI "                const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], \
-size_t " n );
+.BI "                const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], size_t " n );
 .fi
 .P
 .RS -4
index 873ea3da33de3d1193da576d05643816cbdacb24..71e87621f01480d9e8ee24c8d9ed61791bf9134a 100644 (file)
@@ -14,8 +14,7 @@ Standard C library
 .B #include <wchar.h>
 .P
 .BR "int wcsncmp(" "size_t n;"
-.BI "            const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], \
-size_t " n );
+.BI "            const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 The
index 703645423ad4948e94220cf3f868d78ae2733436..ee9167ca1ac25b57995a8451011bc45b03efd073 100644 (file)
@@ -13,11 +13,10 @@ Standard C library
 .nf
 .B #include <wchar.h>
 .P
-.BR "size_t wcsnrtombs(" "size_t size;"
-.BI "                  char " dest "[restrict " size "], \
-const wchar_t **restrict " src ,
-.BI "                  size_t " nwc ", size_t " size ", \
-mbstate_t *restrict " ps );
+.BR "size_t wcsnrtombs(" "size_t dsize;"
+.BI "                  char " dest "[restrict " dsize ],
+.BI "                  const wchar_t **restrict " src ,
+.BI "                  size_t " nwc ", size_t " dsize ", mbstate_t *restrict " ps );
 .fi
 .P
 .RS -4
@@ -58,7 +57,7 @@ the wide-character string
 to a multibyte string starting at
 .IR dest .
 At most
-.I size
+.I dsize
 bytes are written to
 .IR dest .
 The shift state
@@ -115,7 +114,7 @@ returned.
 If
 .I dest
 is NULL,
-.I size
+.I dsize
 is ignored,
 and the conversion proceeds as above,
 except that the converted bytes are not written out to memory, and that
@@ -130,7 +129,7 @@ state known only to the
 function is used instead.
 .P
 The programmer must ensure that there is room for at least
-.I size
+.I dsize
 bytes
 at
 .IR dest .
index 541bc144b730af6e64ee2e6a17fd64149367b60b..0c0470b6a3304ccdf0d5cb9c6c6fff72de0a86dc 100644 (file)
@@ -13,10 +13,10 @@ Standard C library
 .nf
 .B #include <wchar.h>
 .P
-.BR "size_t wcsrtombs(" "size_t size;"
-.BI "                 char " dest "[restrict " size "], \
-const wchar_t **restrict " src ,
-.BI "                 size_t " size ", mbstate_t *restrict " ps );
+.BR "size_t wcsrtombs(" "size_t dsize;"
+.BI "                 char " dest "[restrict " dsize ],
+.BI "                 const wchar_t **restrict " src ,
+.BI "                 size_t " dsize ", mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 If
@@ -30,7 +30,7 @@ the wide-character string
 to a multibyte string starting at
 .IR dest .
 At most
-.I size
+.I dsize
 bytes are written to
 .IR dest .
 The shift state
@@ -85,7 +85,7 @@ is returned.
 If
 .I dest
 is NULL,
-.I size
+.I dsize
 is ignored,
 and the conversion proceeds as above, except that the converted bytes
 are not written out to memory, and that
@@ -100,7 +100,7 @@ state known only to the
 function is used instead.
 .P
 The programmer must ensure that there is room for at least
-.I size
+.I dsize
 bytes
 at
 .IR dest .
index 7ef158212f699b7d4382a4372c31716e0f26308d..46049dd5ae1aadf83b3823b10122e7defbabddce 100644 (file)
@@ -13,10 +13,9 @@ Standard C library
 .nf
 .B #include <stdlib.h>
 .P
-.BR "size_t wcstombs(" "size_t n;"
-.BI "                char " dest "[restrict " n "], \
-const wchar_t *restrict " src ,
-.BI "                size_t " n );
+.BR "size_t wcstombs(" "size_t dsize;"
+.BI "                char " dest "[restrict " dsize "], const wchar_t *restrict " src ,
+.BI "                size_t " dsize );
 .fi
 .SH DESCRIPTION
 If
@@ -29,7 +28,7 @@ the wide-character string
 to a multibyte string starting at
 .IR dest .
 At most
-.I n
+.I dsize
 bytes are written to
 .IR dest .
 The sequence of characters placed in
@@ -56,7 +55,7 @@ The number of bytes written to
 excluding the terminating null byte (\[aq]\[rs]0\[aq]), is returned.
 .P
 The programmer must ensure that there is room for at least
-.I n
+.I dsize
 bytes
 at
 .IR dest .
@@ -64,13 +63,13 @@ at
 If
 .I dest
 is NULL,
-.I n
+.I dsize
 is ignored, and the conversion proceeds as
 above, except that the converted bytes are not written out to memory,
 and no length limit exists.
 .P
 In order to avoid the case 2 above, the programmer should make sure
-.I n
+.I dsize
 is greater than or equal to
 .IR "wcstombs(NULL,src,0)+1" .
 .SH RETURN VALUE
index 453076034817914c009fb997b48514d5a6702d57..6989027bd88efc027adf3d57cc11cd495a5222c4 100644 (file)
@@ -14,8 +14,7 @@ Standard C library
 .B #include <wchar.h>
 .P
 .BR "int wmemcmp(" "size_t n;"
-.BI "            const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], \
-size_t " n );
+.BI "            const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 The
index 847d428051a55c7e12ddb56642a4a74571e8cbf1..75456a8fc049206f4144e0ac862b55b70ab91377 100644 (file)
@@ -14,8 +14,7 @@ Standard C library
 .B #include <wchar.h>
 .P
 .BR "wchar_t *wmemmove(" "size_t n;"
-.BI "                  wchar_t " dest [ n "], const wchar_t " src [ n "], \
-size_t " n );
+.BI "                  wchar_t " dest [ n "], const wchar_t " src [ n "], size_t " n );
 .fi
 .SH DESCRIPTION
 The
index b1361eea082ca8c599e367dd353e93eb105c9b06..d7ccc3c3c8780842347ab3670adccccadb342012 100644 (file)
@@ -609,8 +609,7 @@ The following shell session demonstrates the use of this program
 .RB "$" " cc \-o core_pattern_pipe_test core_pattern_pipe_test.c"
 .RB "$" " su"
 Password:
-.RB "#" " echo \[dq]|$PWD/core_pattern_pipe_test %p \
-UID=%u GID=%g sig=%s\[dq] > \[rs]"
+.RB "#" " echo \[dq]|$PWD/core_pattern_pipe_test %p UID=%u GID=%g sig=%s\[dq] > \[rs]"
 .B "    /proc/sys/kernel/core_pattern"
 .RB "#" " exit"
 .RB "$" " sleep 100"
index ed9e2bb4cd434a86bfb6eac17b82ada491219153..3a8df43771a4357601c70d650d04612a12f5c21e 100644 (file)
@@ -88,8 +88,8 @@ safe for inlining.
 .\" environment cannot be performed atomically then it is also possible that
 .\" the environment encountered is internally inconsistent.
 .TP
-.I MT-Unsafe \" ", " AS-Unsafe ", " AC-Unsafe
-.I MT-Unsafe \" ", " AS-Unsafe ", " AC-Unsafe
+.I MT-Unsafe \" ,\~ AS-Unsafe ,\~ AC-Unsafe
+.I MT-Unsafe \" ,\~ AS-Unsafe ,\~ AC-Unsafe
 functions are not safe to call in a multithreaded programs.
 .\" functions are not
 .\" safe to call within the safety contexts described above.
index cfefde3054205de2e13f2c31978826dbcb7723c4..9bb67f976476119359ffe685fef2747e182059f7 100644 (file)
@@ -31,16 +31,13 @@ strncat
 .P
 // Copy/catenate a string with truncation.
 .BR "ssize_t strtcpy(" "size_t dsize;"
-.BI "               char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "               char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "               size_t " dsize );
 .BR "size_t strlcpy(" "size_t dsize;"
-.BI "               char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "               char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "               size_t " dsize );
 .BR "size_t strlcat(" "size_t dsize;"
-.BI "               char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "               char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "               size_t " dsize );
 .fi
 .\" ----- SYNOPSIS :: Null-padded character sequences --------/
@@ -49,12 +46,10 @@ const char *restrict " src ,
 // Fill a fixed-size buffer with characters from a string
 // and pad with null bytes.
 .BR "char *strncpy(" "size_t dsize;"
-.BI "              char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "              char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "               size_t " dsize );
 .BR "char *stpncpy(" "size_t dsize;"
-.BI "              char " dst "[restrict " dsize "], \
-const char *restrict " src ,
+.BI "              char " dst "[restrict " dsize "], const char *restrict " src ,
 .BI "               size_t " dsize );
 .P
 // Chain-copy a null-padded character sequence into a character sequence.
@@ -77,8 +72,7 @@ const char *restrict " src ,
 .nf
 // Chain-copy a length-bounded character sequence.
 .BR "void *mempcpy(" "size_t len;"
-.BI "               void " dst "[restrict " len "], \
-const void " src "[restrict " len ],
+.BI "               void " dst "[restrict " len "], const void " src "[restrict " len ],
 .BI "               size_t " len );
 .P
 // Chain-copy a length-bounded character sequence into a string.
index 3a549470b1cd9fe254f9733d04932d27e121c64e..1a74c5ed8eff3f33178ee83e646b9c7da1c8186d 100644 (file)
@@ -583,8 +583,7 @@ application timeouts may be much shorter.
 .\"
 .\" The following is from Linux 2.6.12: Documentation/networking/ip-sysctl.txt
 .TP
-.IR tcp_low_latency  " (Boolean; default: disabled; since Linux 2.4.21/2.6; \
-obsolete since Linux 4.14)"
+.IR tcp_low_latency  " (Boolean; default: disabled; since Linux 2.4.21/2.6; obsolete since Linux 4.14)"
 .\" Since Linux 2.4.21/2.5.60
 If enabled, the TCP stack makes decisions that prefer lower
 latency as opposed to higher throughput.