Home | History | Annotate | Download | only in darwin-lib

Lines Matching full:getopt

2 /* Declarations for getopt.
29 <getopt.h>; our definitions will be present soon enough. */
32 # include_next <getopt.h>
45 headers that might declare getopt so that they will not cause
46 confusion if included after this file (if the system had <getopt.h>,
58 # undef getopt
69 # define getopt __GETOPT_ID (getopt)
87 but it caused redefinition warnings if both unistd.h and getopt.h were
88 included, since unistd.h includes getopt.h having previously defined
142 /* For communication from 'getopt' to the caller.
143 When 'getopt' finds an option that takes an argument,
152 and for communication between successive calls to 'getopt'.
154 On entry to 'getopt', zero means this is the first call; initialize.
156 When 'getopt' returns -1, this is the index of the first of the
164 /* Callers store zero here to inhibit the error message 'getopt' prints
192 one). For long options that have a zero 'flag' field, 'getopt'
213 #endif /* need getopt */
230 optional. This behavior is specific to the GNU 'getopt'.
233 scanning, explicitly telling 'getopt' that there are no more
238 'getopt'. If OPTS begins with '+', or POSIXLY_CORRECT is set in
241 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)