Defines the type struct option and declares the variables
optarg, optind, opterr, optopt
and the functions getopt, getopt_long, getopt_long_only.
Documentation:
Gnulib module: getopt-gnu
Portability problems fixed by Gnulib:
getopt_long is missing on some platforms:
IRIX 6.5, OSF/1 5.1, Solaris 9.
getopt_long_only is missing on some platforms:
Mac OS X 10.3, FreeBSD 5.2.1, NetBSD 5.0, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw.
getopt does not handle a leading ‘+’ character in
the options string on some platforms:
Solaris 11 2010-11.
Portability problems not fixed by Gnulib: