Skip to contentSkip to conversation

Various pages: tfix: Use Oxford comma

PATCH In review Alejandro Colomar 2 participants 2 messages Jan 7, 2021 – Jan 8, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Various pages: tfix: Use Oxford comma

Found using:

$ pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nor" man? \
  |grep ^man \
  |sort;
---
 man2/mmap.2        | 2 +-
 man3/aio_return.3  | 2 +-
 man3/dbopen.3      | 2 +-
 man3/drand48.3     | 2 +-
 man3/posix_spawn.3 | 4 ++--
 man3/xdr.3         | 2 +-
 man4/sk98lin.4     | 4 ++--
 man7/symlink.7     | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
man2/mmap.2 +1 -1
index b44a8f1b7..a4aa205ed 100644
@@ -563,7 +563,7 @@ was 0.
 .I flags
 contained none of
 .BR MAP_PRIVATE ,
-.B MAP_SHARED
+.BR MAP_SHARED ,
 or
 .BR MAP_SHARED_VALIDATE .
 .TP
man3/aio_return.3 +1 -1
index 062dce2cf..4ea2c0e10 100644
@@ -53,7 +53,7 @@ If the asynchronous I/O operation has completed, this function returns
 the value that would have been returned in case of a synchronous
 .BR read (2),
 .BR write (2),
-.BR fsync (2)
+.BR fsync (2),
 or
 .BR fdatasync (2),
 call.
man3/dbopen.3 +1 -1
index d76ee3e6a..2ea5ad3cf 100644
@@ -522,7 +522,7 @@ routines may fail and set
 for any of the errors specified for the library routines
 .BR read (2),
 .BR write (2),
-.BR free (3)
+.BR free (3),
 or
 .BR malloc (3).
 .PP
man3/drand48.3 +1 -1
index 36309550e..26c5bd09d 100644
@@ -147,7 +147,7 @@ The value returned by any of the functions
 .BR erand48 (),
 .BR lrand48 (),
 .BR nrand48 (),
-.BR mrand48 ()
+.BR mrand48 (),
 or
 .BR jrand48 ()
 is
man3/posix_spawn.3 +2 -2
index cbf6802b1..a56aa3e86 100644
@@ -513,13 +513,13 @@ and
 .BR posix_spawnp ()
 functions fail only in the case where the underlying
 .BR fork (2),
-.BR vfork (2)
+.BR vfork (2),
 or
 .BR clone (2)
 call fails;  in these cases, these functions return an error number,
 which will be one of the errors described for
 .BR fork (2),
-.BR vfork (2)
+.BR vfork (2),
 or
 .BR clone (2).
 .PP
man3/xdr.3 +1 -1
index a225acfe1..a0b686d33 100644
@@ -99,7 +99,7 @@ Note: encoded characters are not packed, and occupy 4 bytes each.
 For arrays of characters, it is worthwhile to
 consider
 .BR xdr_bytes (),
-.BR xdr_opaque ()
+.BR xdr_opaque (),
 or
 .BR xdr_string ().
 .PP
man4/sk98lin.4 +2 -2
index 1301300b2..7fb91a5b4 100644
@@ -248,7 +248,7 @@ If AutoNeg_A is set to
 .IR On ,
 all three values of DupCap_A (
 .IR Half ,
-.I Full
+.IR Full ,
 or
 .IR Both )
 might be stated.
@@ -278,7 +278,7 @@ If AutoNeg_B is set to
 .IR On ,
 all three values of DupCap_B (
 .IR Half ,
-.I Full
+.IR Full ,
 or
 .IR Both )
 might be stated.
man7/symlink.7 +1 -1
index a2a34204b..8b691aa1a 100644
@@ -548,7 +548,7 @@ the
 command acts a little differently.
 If you do not specify the
 .IR \-F ,
-.IR \-d
+.IR \-d ,
 or
 .I \-l
 options,
Signature · 1 line
2.29.2
#1 lore raw

Hi ALex,

Quoted 2 lines · Alejandro Colomar

Found using:

$ pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nor" man? \

Chévere!

Quoted 4 lines
  |grep ^man \
  |sort;

Thanks! Patch applied.

Cheers,

Michael

Quoted 132 lines
---
 man2/mmap.2        | 2 +-
 man3/aio_return.3  | 2 +-
 man3/dbopen.3      | 2 +-
 man3/drand48.3     | 2 +-
 man3/posix_spawn.3 | 4 ++--
 man3/xdr.3         | 2 +-
 man4/sk98lin.4     | 4 ++--
 man7/symlink.7     | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
man2/mmap.2 +1 -1
index b44a8f1b7..a4aa205ed 100644
@@ -563,7 +563,7 @@ was 0.
 .I flags
 contained none of
 .BR MAP_PRIVATE ,
-.B MAP_SHARED
+.BR MAP_SHARED ,
 or
 .BR MAP_SHARED_VALIDATE .
 .TP
man3/aio_return.3 +1 -1
index 062dce2cf..4ea2c0e10 100644
@@ -53,7 +53,7 @@ If the asynchronous I/O operation has completed, this function returns
 the value that would have been returned in case of a synchronous
 .BR read (2),
 .BR write (2),
-.BR fsync (2)
+.BR fsync (2),
 or
 .BR fdatasync (2),
 call.
man3/dbopen.3 +1 -1
index d76ee3e6a..2ea5ad3cf 100644
@@ -522,7 +522,7 @@ routines may fail and set
 for any of the errors specified for the library routines
 .BR read (2),
 .BR write (2),
-.BR free (3)
+.BR free (3),
 or
 .BR malloc (3).
 .PP
man3/drand48.3 +1 -1
index 36309550e..26c5bd09d 100644
@@ -147,7 +147,7 @@ The value returned by any of the functions
 .BR erand48 (),
 .BR lrand48 (),
 .BR nrand48 (),
-.BR mrand48 ()
+.BR mrand48 (),
 or
 .BR jrand48 ()
 is
man3/posix_spawn.3 +2 -2
index cbf6802b1..a56aa3e86 100644
@@ -513,13 +513,13 @@ and
 .BR posix_spawnp ()
 functions fail only in the case where the underlying
 .BR fork (2),
-.BR vfork (2)
+.BR vfork (2),
 or
 .BR clone (2)
 call fails;  in these cases, these functions return an error number,
 which will be one of the errors described for
 .BR fork (2),
-.BR vfork (2)
+.BR vfork (2),
 or
 .BR clone (2).
 .PP
man3/xdr.3 +1 -1
index a225acfe1..a0b686d33 100644
@@ -99,7 +99,7 @@ Note: encoded characters are not packed, and occupy 4 bytes each.
 For arrays of characters, it is worthwhile to
 consider
 .BR xdr_bytes (),
-.BR xdr_opaque ()
+.BR xdr_opaque (),
 or
 .BR xdr_string ().
 .PP
man4/sk98lin.4 +2 -2
index 1301300b2..7fb91a5b4 100644
@@ -248,7 +248,7 @@ If AutoNeg_A is set to
 .IR On ,
 all three values of DupCap_A (
 .IR Half ,
-.I Full
+.IR Full ,
 or
 .IR Both )
 might be stated.
@@ -278,7 +278,7 @@ If AutoNeg_B is set to
 .IR On ,
 all three values of DupCap_B (
 .IR Half ,
-.I Full
+.IR Full ,
 or
 .IR Both )
 might be stated.
man7/symlink.7 +1 -1
index a2a34204b..8b691aa1a 100644
@@ -548,7 +548,7 @@ the
 command acts a little differently.
 If you do not specify the
 .IR \-F ,
-.IR \-d
+.IR \-d ,
 or
 .I \-l
 options,
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/