34#if !defined __GNU_LIBRARY__
40# define __GNUC_PREREQ(maj, min) (0)
42# if defined __cplusplus && __GNUC_PREREQ (2,8)
43# define __THROW throw ()
118# define no_argument 0
119# define required_argument 1
120# define optional_argument 2
148#ifdef __GNU_LIBRARY__
152extern int getopt (
int ___argc,
char *
const *___argv,
const char *__shortopts)
155# if defined __need_getopt && defined __USE_POSIX2 \
156 && !defined __USE_POSIX_IMPLICITLY && !defined __USE_GNU
161 extern int __REDIRECT_NTH (
getopt, (
int ___argc,
char *
const *___argv,
162 const char *__shortopts),
165extern int __posix_getopt (
int ___argc,
char *
const *___argv,
166 const char *__shortopts)
__THROW;
167# define getopt __posix_getopt
175extern int getopt_long (
int ___argc,
char *
const *___argv,
176 const char *__shortopts,
177 const struct option *__longopts,
int *__longind)
180 const char *__shortopts,
181 const struct option *__longopts,
int *__longind)
int getopt(int argc, char *const *argv, const char *optstring)
Definition getopt.c:1170
int optopt
Definition getopt.c:157
int optind
Definition getopt.c:131
char * optarg
Definition getopt.c:116
int opterr
Definition getopt.c:151
int getopt_long(int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW
Definition getopt.c:1185
int getopt_long_only(int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW
Definition getopt.c:1192
#define __THROW
Definition getopt.h:45
int val
Definition getopt.h:113
int has_arg
Definition getopt.h:111
int * flag
Definition getopt.h:112
const char * name
Definition getopt.h:108