Lines Matching defs:options
64 #define PRINT_ERROR ((opterr) && (*options != ':'))
66 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
67 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
72 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
88 static int nonopt_end = -1; /* first option after non options (for permute) */
155 * Parse long options in argc/argv argument vector.
159 parse_long_options(char * const *nargv, const char *options,
277 getopt_internal(int nargc, char * const *nargv, const char *options,
284 if (options == NULL)
288 * Disable GNU extensions if POSIXLY_CORRECT is set or options
293 if (posixly_correct || *options == '+')
295 else if (*options == '-')
297 if (*options == '+' || *options == '-')
298 options++;
323 * If we skipped non-options, set optind
332 (place[1] == '\0' && strchr(options, '-') == NULL)) {
374 * non-options, we have to permute.
387 * Check long options if:
397 else if (*place != ':' && strchr(options, *place) != NULL)
400 optchar = parse_long_options(nargv, options, long_options,
410 (oli = strchr(options, optchar)) == NULL) {
413 * options, return -1 (non-option) as per POSIX.
437 optchar = parse_long_options(nargv, options, long_options,
473 getopt(int nargc, char * const *nargv, const char *options)
484 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
492 getopt_long(int nargc, char * const *nargv, const char *options,
496 return (getopt_internal(nargc, nargv, options, long_options, idx,
505 getopt_long_only(int nargc, char * const *nargv, const char *options,
509 return (getopt_internal(nargc, nargv, options, long_options, idx,