• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssh/openbsd-compat/

Lines Matching defs:options

81 #define PRINT_ERROR	((opterr) && (*options != ':'))
83 #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
84 #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
89 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
105 static int nonopt_end = -1; /* first option after non options (for permute) */
172 * Parse long options in argc/argv argument vector.
176 parse_long_options(char * const *nargv, const char *options,
294 getopt_internal(int nargc, char * const *nargv, const char *options,
301 if (options == NULL)
312 * Disable GNU extensions if POSIXLY_CORRECT is set or options
317 if (*options == '-')
319 else if (posixly_correct || *options == '+')
321 if (*options == '+' || *options == '-')
322 options++;
340 * If we skipped non-options, set optind
349 (place[1] == '\0' && strchr(options, '-') == NULL)) {
391 * non-options, we have to permute.
404 * Check long options if:
414 else if (*place != ':' && strchr(options, *place) != NULL)
417 optchar = parse_long_options(nargv, options, long_options,
427 (oli = strchr(options, optchar)) == NULL) {
430 * options, return -1 (non-option) as per POSIX.
454 optchar = parse_long_options(nargv, options, long_options,
490 getopt(int nargc, char * const *nargv, const char *options)
501 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
510 getopt_long(int nargc, char * const *nargv, const char *options,
514 return (getopt_internal(nargc, nargv, options, long_options, idx,
523 getopt_long_only(int nargc, char * const *nargv, const char *options,
527 return (getopt_internal(nargc, nargv, options, long_options, idx,