summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt_long.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/getopt_long.3')
-rw-r--r--src/lib/libc/stdlib/getopt_long.316
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'.
241honors POSIXLY_CORRECT and stops at the first non-option. 241honors POSIXLY_CORRECT and stops at the first non-option.
242.El 242.El
243.It Li o 243.It Li o
244handling of - within the option string (not the first character). 244handling 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
247treats a 247treats a
@@ -283,8 +283,8 @@ handling of --a in getopt:
283.It Li GNU 283.It Li GNU
284parses this as option '-', option 'a'. 284parses this as option '-', option 'a'.
285.It Li OpenBSD 285.It Li OpenBSD
286parses this as '--', and returns -1 (ignoring the a). (Because 286parses this as '--', and returns \-1 (ignoring the a).
287the original getopt does.) 287(Because the original getopt does.)
288.El 288.El
289.It Li o 289.It Li o
290setting of optopt for long options with flag != 290setting of optopt for long options with flag !=