Merge branch 'upstream' into stable
[gnulib.git] / doc / glibc-functions / getopt_long_only.texi
1 @node getopt_long_only
2 @subsection @code{getopt_long_only}
3 @findex getopt_long_only
4
5 Gnulib module: getopt-gnu
6
7 Portability problems fixed by Gnulib:
8 @itemize
9 @item
10 The function @code{getopt_long_only} does not support the @samp{+}
11 flag in the options string on some platforms:
12 MacOS X 10.5, AIX 5.2, OSF/1 5.1, Solaris 10.
13 @item
14 The function @code{getopt_long_only} does not obey the @samp{-} flag
15 in the options string when @env{POSIXLY_CORRECT} is set on some platforms:
16 Cygwin 1.7.0.
17 @item
18 The function @code{getopt_long_only} does not support options with
19 optional arguments on some platforms:
20 MacOS X 10.5, OpenBSD 4.0, AIX 5.2, Solaris 10, Cygwin 1.5.x.
21 @item
22 This function is missing on some platforms:
23 MacOS X 10.3, FreeBSD 5.2.1, NetBSD 3.0, AIX 5.1, HP-UX 11, IRIX 6.5,
24 OSF/1 5.1, mingw, Interix 3.5.
25 @end itemize
26
27 Portability problems not fixed by Gnulib:
28 @itemize
29 @item
30 The glibc implementation allows a complete reset of the environment,
31 including re-checking for @env{POSIXLY_CORRECT}, by setting
32 @code{optind} to 0.  Other implementations provide @code{optreset},
33 causing a reset by setting it non-zero, although it does not
34 necessarily re-read @env{POSIXLY_CORRECT}.
35 @end itemize