diff options
Diffstat (limited to 'src/lib/libc/stdlib/getopt_long.3')
-rw-r--r-- | src/lib/libc/stdlib/getopt_long.3 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3 index 4e5923cb85..2589bd7b03 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.5 2003/02/24 03:09:07 deraadt Exp $ | 1 | .\" $OpenBSD: getopt_long.3,v 1.6 2003/05/10 06:48:30 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 |
@@ -44,10 +44,10 @@ | |||
44 | .Sh SYNOPSIS | 44 | .Sh SYNOPSIS |
45 | .Fd #include <getopt.h> | 45 | .Fd #include <getopt.h> |
46 | .Vt extern char *optarg; | 46 | .Vt extern char *optarg; |
47 | .Vt extern int optind; | 47 | .Vt extern int optind; |
48 | .Vt extern int optopt; | 48 | .Vt extern int optopt; |
49 | .Vt extern int opterr; | 49 | .Vt extern int opterr; |
50 | .Vt extern int optreset; | 50 | .Vt extern int optreset; |
51 | .Ft int | 51 | .Ft int |
52 | .Fn getopt_long "int argc" "char * const *argv" "const char *optstring" "const struct option *longopts" "int *index" | 52 | .Fn getopt_long "int argc" "char * const *argv" "const char *optstring" "const struct option *longopts" "int *index" |
53 | .Ft int | 53 | .Ft int |
@@ -241,7 +241,7 @@ arguments to option '\e1'. | |||
241 | honors POSIXLY_CORRECT and stops at the first non-option. | 241 | honors POSIXLY_CORRECT and stops at the first non-option. |
242 | .El | 242 | .El |
243 | .It Li o | 243 | .It Li o |
244 | handling of - within the option string (not the first character). | 244 | handling of - within the option string (not the first character): |
245 | .Bl -tag -width "OpenBSD" | 245 | .Bl -tag -width "OpenBSD" |
246 | .It Li GNU | 246 | .It Li GNU |
247 | treats a | 247 | treats a |
@@ -283,8 +283,8 @@ handling of --a in getopt: | |||
283 | .It Li GNU | 283 | .It Li GNU |
284 | parses this as option '-', option 'a'. | 284 | parses this as option '-', option 'a'. |
285 | .It Li OpenBSD | 285 | .It Li OpenBSD |
286 | parses this as '--', and returns -1 (ignoring the a). (Because | 286 | parses this as '--', and returns \-1 (ignoring the a). |
287 | the original getopt does.) | 287 | (Because the original getopt does.) |
288 | .El | 288 | .El |
289 | .It Li o | 289 | .It Li o |
290 | setting of optopt for long options with flag != | 290 | setting of optopt for long options with flag != |