Lines Matching refs:getopt
1 /* Declarations for getopt.
26 <stdlib.h> includes <getopt.h>, and <config.h> is not a prerequisite for
36 headers that might declare getopt so that they will not cause
46 # undef getopt
56 # define getopt __GETOPT_ID (getopt)
72 but it caused redefinition warnings if both unistd.h and getopt.h were
73 included, since unistd.h includes getopt.h having previously defined
115 /* For communication from `getopt' to the caller.
116 When `getopt' finds an option that takes an argument,
125 and for communication between successive calls to `getopt'.
127 On entry to `getopt', zero means this is the first call; initialize.
129 When `getopt' returns -1, this is the index of the first of the
137 /* Callers store zero here to inhibit the error message `getopt' prints
165 one). For long options that have a zero `flag' field, `getopt'
183 #endif /* need getopt */
200 optional. This behavior is specific to the GNU `getopt'.
203 scanning, explicitly telling `getopt' that there are no more
208 `getopt'. If OPTS begins with `+', or POSIXLY_CORRECT is set in
211 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
233 #endif /* getopt.h */