Lines Matching refs:options

62 #define PRINT_ERROR	((opterr) && (*options != ':'))
64 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
65 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
70 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
95 static int nonopt_end = -1; /* first option after non options (for permute) */
185 * Parse long options in argc/argv argument vector.
189 parse_long_options(char * const *nargv, const char *options,
354 getopt_internal(int nargc, char * const *nargv, const char *options,
361 if (options == NULL)
365 * Disable GNU extensions if POSIXLY_CORRECT is set or options
370 if (*options == '-')
372 else if (posixly_correct || *options == '+')
375 if (posixly_correct || *options == '+')
377 else if (*options == '-')
380 if (*options == '+' || *options == '-')
381 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,