Lines Matching defs:options

82 #define	PRINT_ERROR	((opterr) && (*options != ':'))
91 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
92 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "1" */
94 #define FLAG_OPTIONAL_ARGS 0x08 /* allow optional arguments to options */
102 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
119 static int nonopt_end = -1; /* first option after non options (for permute) */
216 * multiple long options can map to the same character.
226 * ASSUMES: options != NULL
236 const char *options,
248 for (short_i = 0; equivFound && (options[short_i] != 0); ++short_i) {
249 ch = options[short_i];
255 (ch == 'W') && (options[short_i+1] == ';')) {
286 (strchr(options, long_options[long_i].val)
303 * Parse long options in argc/argv argument vector.
307 parse_long_options(int nargc, char * const *nargv, const char *options,
456 getopt_internal(int nargc, char * const *nargv, const char *options,
463 if (options == NULL)
467 * Disable GNU extensions if POSIXLY_CORRECT is set or options
478 if (*options == '+') {
484 } else if (*options == '-') {
488 if ((*options == '+') || (*options == '-')) {
489 options++;
523 nargc, nargv, options, long_options, flags) < 0) {
543 * If we skipped non-options, set optind
586 * Check for "--" or "--foo" with no long options
595 * non-options, we have to permute.
608 * Check long options if:
618 else if (*place != ':' && strchr(options, *place) != NULL)
621 optchar = parse_long_options(nargc, nargv, options,
630 (oli = strchr(options, optchar)) == NULL) {
666 nargc, nargv, options, long_options,
716 * Requires that long options be preceded with a two dashes
738 * Long options may be preceded with a single dash (e.g., -longoption)
764 * o Does not allow long options to be abbreviated on the command line