]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man3/*: ffix: change '-' to '\-' for options
authorBjarni Ingi Gislason <bjarniig@rhi.hi.is>
Wed, 1 Jul 2020 22:50:59 +0000 (22:50 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 2 Jul 2020 10:23:21 +0000 (12:23 +0200)
  Change '-' to '\-' for the prefix of names to indicate an option.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/dlopen.3
man3/fts.3
man3/getsubopt.3
man3/insque.3
man3/mq_getattr.3
man3/posix_spawn.3
man3/pthread_setname_np.3
man3/sincos.3
man3/strftime.3
man3/system.3

index c8cfbfb2bdbbaa6426a5bf0ab8fba0b0d88fba7b..3b21e8257c0efefbdf9361aba6b657fd47a3482d 100644 (file)
@@ -596,7 +596,7 @@ main(void)
        The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters
        by requiring that conforming implementations support casting
        'void *' to a function pointer.  Nevertheless, some compilers
-       (e.g., gcc with the '-pedantic' option) may complain about the
+       (e.g., gcc with the '\-pedantic' option) may complain about the
        cast used in this program. */
 .\" http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08
 .\" http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07
index 374f87158c06ca0ad3dbb87fd7b4107912dc6e8c..62595bb07a51fdc622ee5ab283886759afbcf318 100644 (file)
@@ -822,7 +822,7 @@ In versions of glibc before 2.23,
 .\" https://sourceware.org/bugzilla/show_bug.cgi?id=11460
 all of the APIs described in this man page are not safe when compiling
 a program using the LFS APIs (e.g., when compiling with
-.IR -D_FILE_OFFSET_BITS=64 ).
+.IR \-D_FILE_OFFSET_BITS=64 ).
 .\"
 .\" The following statement is years old, and seems no closer to
 .\" being true -- mtk
index 6cf2d7a82a76a7c3e6dbd8b5442e3e1374634c5f..cef57fde716817e2746fd82d8ac40c02c74ca760 100644 (file)
@@ -53,7 +53,7 @@ parses the list of comma-separated suboptions provided in
 (Such a suboption list is typically produced when
 .BR getopt (3)
 is used to parse a command line;
-see for example the \fI-o\fP option of
+see for example the \fI\-o\fP option of
 .BR mount (8).)
 Each suboption may include an associated value,
 which is separated from the suboption name by an equal sign.
index 2a957f24cb722a4af4324bb19f1f72d076eb61f4..a9fc2855004d68d4f20259106392bb135d87157e 100644 (file)
@@ -155,7 +155,7 @@ Here is an example run of the program:
 .PP
 .in +4n
 .EX
-.RB "$ " "./a.out -c a b c"
+.RB "$ " "./a.out \-c a b c"
 Traversing completed list:
     a
     b
index 74ef0492f1dc7bc2ea7c2dad3219741862700225..7713164722d6807e126a63ed4f975408154c2dd9 100644 (file)
@@ -185,7 +185,7 @@ can be used to control the defaults:
 .PP
 .in +4n
 .EX
-$ \fBuname -sr\fP
+$ \fBuname \-sr\fP
 Linux 3.8.0
 $ \fBcat /proc/sys/fs/mqueue/msg_default\fP
 10
index 7dabe0c15654129a584c6f6daf3a03fffa6377a6..440629d120abcbc764ed27500b3561002ed79e1c 100644 (file)
@@ -632,7 +632,7 @@ fails when trying to perform output and exits with a status of 1.
 .PP
 .in +4
 .EX
-$ \fB./a.out -c date\fP
+$ \fB./a.out \-c date\fP
 PID of child: 7636
 date: write error: Bad file descriptor
 Child status: exited, status=1
@@ -656,14 +656,14 @@ can't be blocked).
 .PP
 .in +4
 .EX
-$ \fB./a.out -s sleep 60 &\fP
+$ \fB./a.out \-s sleep 60 &\fP
 [1] 7637
 $ PID of child: 7638
 
 $ \fBkill 7638\fP
-$ \fBkill -KILL 7638\fP
+$ \fBkill \-KILL 7638\fP
 $ Child status: killed by signal 9
-[1]+  Done                    ./a.out -s sleep 60
+[1]+  Done                    ./a.out \-s sleep 60
 .EE
 .in
 .PP
index 31e46831d3dfa440815116da62dd8de0ce5de69c..8dc090a7b311d888949f5feeae86c1412f14d6a4 100644 (file)
@@ -141,7 +141,7 @@ Created a thread. Default name is: a.out
 The thread name after setting it is THREADFOO.
 \fB^Z\fP                           # Suspend the program
 [1]+  Stopped           ./a.out
-.RB "$ " "ps H -C a.out -o 'pid tid cmd comm'"
+.RB "$ " "ps H \-C a.out \-o 'pid tid cmd comm'"
   PID   TID CMD                         COMMAND
  5990  5990 ./a.out                     a.out
  5990  5991 ./a.out                     THREADFOO
index b3149af990cf8cf26daccbe7f7fbcd2f6d401c06..7bc7ecda6a65df4784077e1353866d3c9194568e 100644 (file)
@@ -94,7 +94,7 @@ built-in optimizations, using flags such as:
 .PP
 .in +4n
 .EX
-cc -O \-lm \-fno\-builtin prog.c
+cc \-O \-lm \-fno\-builtin prog.c
 .EE
 .in
 .SH BUGS
index c236f7df5909a7bdeafdf4c8ecefb32d0f498378..ce4ac62709f2d63d6e246808684d79fca0628a19 100644 (file)
@@ -424,7 +424,7 @@ conversion specification corresponds to the full alternative year representation
 The
 .I +hhmm
 or
-.I -hhmm
+.I \-hhmm
 numeric timezone (that is, the hour and minute offset from UTC). (SU)
 .TP
 .B %Z
index 43ca13a32cbc36857d52ca83166c87675b883421..aef40417a82861aa41a264a40a638d56fcaebad3 100644 (file)
@@ -50,7 +50,7 @@ as follows:
 .PP
 .in +4n
 .EX
-execl("/bin/sh", "sh", "-c", command, (char *) NULL);
+execl("/bin/sh", "sh", "\-c", command, (char *) NULL);
 .EE
 .in
 .PP