Lines Matching defs:options

80 #define PRINT_ERROR	((opterr) && (*options != ':'))
82 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
83 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
88 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
111 static int nonopt_end = -1; /* first option after non options (for permute) */
188 * Parse long options in argc/argv argument vector.
192 parse_long_options(char * const *nargv, const char *options,
357 getopt_internal(int nargc, char * const *nargv, const char *options,
364 if (options == NULL)
375 * Disable GNU extensions if POSIXLY_CORRECT is set or options
380 if (*options == '-')
382 else if (posixly_correct || *options == '+')
384 if (*options == '+' || *options == '-')
385 options++;
403 * If we skipped non-options, set optind
415 (place[1] == '\0' && strchr(options, '-') == NULL)) {
458 * non-options, we have to permute.
471 * Check long options if:
487 } else if (*place != ':' && strchr(options, *place) != NULL)
490 optchar = parse_long_options(nargv, options, long_options,
500 (oli = strchr(options, optchar)) == NULL) {
503 * options, return -1 (non-option) as per POSIX.
536 optchar = parse_long_options(nargv, options, long_options,
573 getopt(int nargc, char * const *nargv, const char *options)
584 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
593 getopt_long(int nargc, char * const *nargv, const char *options,
597 return (getopt_internal(nargc, nargv, options, long_options, idx,
606 getopt_long_only(int nargc, char * const *nargv, const char *options,
610 return (getopt_internal(nargc, nargv, options, long_options, idx,