summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2003-09-02 18:24:21 +0000
committerjmc <>2003-09-02 18:24:21 +0000
commitfca64a525cd51136278627ac29e06b3ba8a31fec (patch)
tree243a16231b32498e906d72c4e01d59fc7d2c5b25
parent2192f5aa29c97a3458bffd55d7b561689c91c441 (diff)
downloadopenbsd-fca64a525cd51136278627ac29e06b3ba8a31fec.tar.gz
openbsd-fca64a525cd51136278627ac29e06b3ba8a31fec.tar.bz2
openbsd-fca64a525cd51136278627ac29e06b3ba8a31fec.zip
escape punctuation;
ok deraadt@
-rw-r--r--src/lib/libc/stdlib/getopt.38
-rw-r--r--src/lib/libc/stdlib/getopt_long.34
-rw-r--r--src/lib/libc/string/strmode.34
3 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index 3fa17340de..9b27b70e65 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: getopt.3,v 1.25 2003/06/02 20:18:37 millert Exp $ 28.\" $OpenBSD: getopt.3,v 1.26 2003/09/02 18:24:21 jmc Exp $
29.\" 29.\"
30.Dd December 17, 2002 30.Dd December 17, 2002
31.Dt GETOPT 3 31.Dt GETOPT 3
@@ -129,7 +129,7 @@ encounters a character not found in
129.Fa optstring 129.Fa optstring
130or if it detects a missing option argument, 130or if it detects a missing option argument,
131it returns 131it returns
132.Sq ? 132.Sq \&?
133(question mark). 133(question mark).
134If 134If
135.Fa optstring 135.Fa optstring
@@ -138,7 +138,7 @@ has a leading
138then a missing option argument causes 138then a missing option argument causes
139.Sq \: 139.Sq \:
140to be returned instead of 140to be returned instead of
141.Sq ? . 141.Sq \&? .
142In either case, the variable 142In either case, the variable
143.Va optopt 143.Va optopt
144is set to the character that caused the error. 144is set to the character that caused the error.
@@ -179,7 +179,7 @@ or detects
179a missing option argument it writes an error message to 179a missing option argument it writes an error message to
180.Em stderr 180.Em stderr
181and returns 181and returns
182.Ql ? . 182.Ql \&? .
183Setting 183Setting
184.Va opterr 184.Va opterr
185to a zero will disable these error messages. 185to a zero will disable these error messages.
diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3
index 1df792d178..6226dfe99f 100644
--- a/src/lib/libc/stdlib/getopt_long.3
+++ b/src/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getopt_long.3,v 1.8 2003/06/02 20:18:37 millert Exp $ 1.\" $OpenBSD: getopt_long.3,v 1.9 2003/09/02 18:24:21 jmc Exp $
2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ 2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1988, 1991, 1993 4.\" Copyright (c) 1988, 1991, 1993
@@ -183,7 +183,7 @@ in the location pointed to by
183These functions return 183These functions return
184.Sq \: 184.Sq \:
185if there was a missing option argument, 185if there was a missing option argument,
186.Sq ? 186.Sq \&?
187if the user specified an unknown or ambiguous option, and 187if the user specified an unknown or ambiguous option, and
188\-1 when the argument list has been exhausted. 188\-1 when the argument list has been exhausted.
189.Sh EXAMPLES 189.Sh EXAMPLES
diff --git a/src/lib/libc/string/strmode.3 b/src/lib/libc/string/strmode.3
index 56651e16ba..bc45c4ce1f 100644
--- a/src/lib/libc/string/strmode.3
+++ b/src/lib/libc/string/strmode.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strmode.3,v 1.10 2003/06/02 20:18:38 millert Exp $ 1.\" $OpenBSD: strmode.3,v 1.11 2003/09/02 18:24:21 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -69,7 +69,7 @@ FIFO
69socket 69socket
70.It w 70.It w
71whiteout 71whiteout
72.It ? 72.It \&?
73unknown inode type 73unknown inode type
74.El 74.El
75.Pp 75.Pp