Lines Matching defs:options

31 #define PRINT_ERROR	((opterr) && (*options != ':'))
33 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
34 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
39 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
48 static int nonopt_end = -1; /* first option after non options (for permute) */
116 * Parse long options in argc/argv argument vector.
120 parse_long_options(char * const *nargv, const char *options,
240 getopt_internal(int nargc, char *const nargv[], const char *options,
249 if (options == NULL)
253 * Disable GNU extensions if POSIXLY_CORRECT is set or options
260 if (!posixly_correct || *options == '+')
262 else if (*options == '-')
264 if (*options == '+' || *options == '-')
265 options++;
287 * If we skipped non-options, set optind
297 (place[1] == '\0' && strchr(options, '-') == NULL)) {
339 * non-options, we have to permute.
352 * Check long options if:
362 else if (*place != ':' && strchr(options, *place) != NULL)
365 optchar = parse_long_options(nargv, options, long_options,
374 oli = strchr(options, optchar);
380 * options, return -1 (non-option) as per POSIX.
404 optchar = parse_long_options(nargv, options, long_options,
438 getopt(int nargc, char *const nargv[], const char *options)
440 return getopt_internal(nargc, nargv, options, NULL, NULL,
449 getopt_long(int nargc, char *const nargv[], const char *options,
453 return (getopt_internal(nargc, nargv, options, long_options, idx,
462 getopt_long_only(int nargc, char *const nargv[], const char *options,
466 return (getopt_internal(nargc, nargv, options, long_options, idx,