Browse Source

escape punctuation;

ok deraadt@
OPENBSD_3_4
jmc 21 years ago
parent
commit
5d9d9c2154
3 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/lib/libc/stdlib/getopt.3
  2. +2
    -2
      src/lib/libc/stdlib/getopt_long.3
  3. +2
    -2
      src/lib/libc/string/strmode.3

+ 4
- 4
src/lib/libc/stdlib/getopt.3 View File

@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd December 17, 2002
.Dt GETOPT 3 .Dt GETOPT 3
@ -129,7 +129,7 @@ encounters a character not found in
.Fa optstring .Fa optstring
or if it detects a missing option argument, or if it detects a missing option argument,
it returns it returns
.Sq ?
.Sq \&?
(question mark). (question mark).
If If
.Fa optstring .Fa optstring
@ -138,7 +138,7 @@ has a leading
then a missing option argument causes then a missing option argument causes
.Sq \: .Sq \:
to be returned instead of to be returned instead of
.Sq ? .
.Sq \&? .
In either case, the variable In either case, the variable
.Va optopt .Va optopt
is set to the character that caused the error. 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 a missing option argument it writes an error message to
.Em stderr .Em stderr
and returns and returns
.Ql ? .
.Ql \&? .
Setting Setting
.Va opterr .Va opterr
to a zero will disable these error messages. to a zero will disable these error messages.


+ 2
- 2
src/lib/libc/stdlib/getopt_long.3 View File

@ -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 $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\" .\"
.\" Copyright (c) 1988, 1991, 1993 .\" Copyright (c) 1988, 1991, 1993
@ -183,7 +183,7 @@ in the location pointed to by
These functions return These functions return
.Sq \: .Sq \:
if there was a missing option argument, if there was a missing option argument,
.Sq ?
.Sq \&?
if the user specified an unknown or ambiguous option, and if the user specified an unknown or ambiguous option, and
\-1 when the argument list has been exhausted. \-1 when the argument list has been exhausted.
.Sh EXAMPLES .Sh EXAMPLES


+ 2
- 2
src/lib/libc/string/strmode.3 View File

@ -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 .\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -69,7 +69,7 @@ FIFO
socket socket
.It w .It w
whiteout whiteout
.It ?
.It \&?
unknown inode type unknown inode type
.El .El
.Pp .Pp


Loading…
Cancel
Save