34 #if defined __GETOPT_PREFIX && !defined __need_getopt
41 # undef getopt_long_only
46 # define __GETOPT_CONCAT(x, y) x ## y
47 # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)
48 # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
49 # define getopt __GETOPT_ID (getopt)
50 # define getopt_long __GETOPT_ID (getopt_long)
51 # define getopt_long_only __GETOPT_ID (getopt_long_only)
52 # define optarg __GETOPT_ID (optarg)
53 # define opterr __GETOPT_ID (opterr)
54 # define optind __GETOPT_ID (optind)
55 # define optopt __GETOPT_ID (optopt)
74 #if !defined __need_getopt
75 # if defined __GETOPT_PREFIX
76 # define __getopt_argv_const
78 # define __getopt_argv_const const
89 #if !defined __GNU_LIBRARY__
94 # ifndef __GNUC_PREREQ
95 # define __GNUC_PREREQ(maj, min) (0)
97 # if defined __cplusplus && __GNUC_PREREQ (2,8)
98 # define __THROW throw ()
139 #ifndef __need_getopt
173 # define no_argument 0
174 # define required_argument 1
175 # define optional_argument 2
204 extern int getopt (
int ___argc,
char *
const *___argv,
const char *__shortopts)
207 #ifndef __need_getopt
209 const char *__shortopts,
210 const struct option *__longopts,
int *__longind)
213 const char *__shortopts,
214 const struct option *__longopts,
int *__longind)
int getopt_long_only(int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW
#define __getopt_argv_const
int getopt_long(int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW
int getopt(int ___argc, char *const *___argv, const char *__shortopts) __THROW