summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-09-02 18:24:22 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-09-02 18:24:22 +0000
commitcdabbdf544424faa34cbf0aeda4956b930ad5a7e (patch)
treef8d3e43e699f1cd68f5daec9fcf538d9386a889b /lib
parentbc79995c194db48f744bce1d43165fd5bc145c05 (diff)
escape punctuation;
ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/glob.38
-rw-r--r--lib/libc/stdlib/getopt.38
-rw-r--r--lib/libc/stdlib/getopt_long.34
-rw-r--r--lib/libc/string/strmode.34
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/gen/glob.3 b/lib/libc/gen/glob.3
index a3768d06bd6..2220c677755 100644
--- a/lib/libc/gen/glob.3
+++ b/lib/libc/gen/glob.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: glob.3,v 1.20 2003/06/02 20:18:34 millert Exp $
+.\" $OpenBSD: glob.3,v 1.21 2003/09/02 18:24:21 jmc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -76,7 +76,7 @@ and read permission on each directory of any filename component of
.Fa pattern
that contains any of the special characters
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
or
.Ql [ .
.Pp
@@ -237,7 +237,7 @@ but it only appends the
.Fa pattern
if it does not contain any of the special characters
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
or
.Ql [ .
.Dv GLOB_NOMAGIC
@@ -345,7 +345,7 @@ set if
.Fa pattern
contained any of the special characters
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
or
.Ql [ ,
cleared if not.
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 3fa17340de6..9b27b70e65d 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getopt.3,v 1.25 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: getopt.3,v 1.26 2003/09/02 18:24:21 jmc Exp $
.\"
.Dd December 17, 2002
.Dt GETOPT 3
@@ -129,7 +129,7 @@ encounters a character not found in
.Fa optstring
or if it detects a missing option argument,
it returns
-.Sq ?
+.Sq \&?
(question mark).
If
.Fa optstring
@@ -138,7 +138,7 @@ has a leading
then a missing option argument causes
.Sq \:
to be returned instead of
-.Sq ? .
+.Sq \&? .
In either case, the variable
.Va optopt
is set to the character that caused the error.
@@ -179,7 +179,7 @@ or detects
a missing option argument it writes an error message to
.Em stderr
and returns
-.Ql ? .
+.Ql \&? .
Setting
.Va opterr
to a zero will disable these error messages.
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index 1df792d178f..6226dfe99f5 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getopt_long.3,v 1.8 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: getopt_long.3,v 1.9 2003/09/02 18:24:21 jmc Exp $
.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
@@ -183,7 +183,7 @@ in the location pointed to by
These functions return
.Sq \:
if there was a missing option argument,
-.Sq ?
+.Sq \&?
if the user specified an unknown or ambiguous option, and
\-1 when the argument list has been exhausted.
.Sh EXAMPLES
diff --git a/lib/libc/string/strmode.3 b/lib/libc/string/strmode.3
index 56651e16bad..bc45c4ce1f8 100644
--- a/lib/libc/string/strmode.3
+++ b/lib/libc/string/strmode.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strmode.3,v 1.10 2003/06/02 20:18:38 millert Exp $
+.\" $OpenBSD: strmode.3,v 1.11 2003/09/02 18:24:21 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -69,7 +69,7 @@ FIFO
socket
.It w
whiteout
-.It ?
+.It \&?
unknown inode type
.El
.Pp