• Home
  • Raw
  • Download

Lines Matching refs:long_options

160 	const struct option *long_options, int *idx, int short_too)  in parse_long_options()  argument
178 for (i = 0; long_options[i].name; i++) { in parse_long_options()
180 if (strncmp(current_argv, long_options[i].name, in parse_long_options()
184 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options()
208 if (long_options[match].has_arg == no_argument in parse_long_options()
216 if (long_options[match].flag == NULL) in parse_long_options()
217 optopt = long_options[match].val; in parse_long_options()
222 if (long_options[match].has_arg == required_argument || in parse_long_options()
223 long_options[match].has_arg == optional_argument) { in parse_long_options()
226 else if (long_options[match].has_arg == in parse_long_options()
234 if ((long_options[match].has_arg == required_argument) in parse_long_options()
246 if (long_options[match].flag == NULL) in parse_long_options()
247 optopt = long_options[match].val; in parse_long_options()
265 if (long_options[match].flag) { in parse_long_options()
266 *long_options[match].flag = long_options[match].val; in parse_long_options()
269 return (long_options[match].val); in parse_long_options()
278 const struct option *long_options, int *idx, int flags) in getopt_internal() argument
392 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
400 optchar = parse_long_options(nargv, options, long_options, in getopt_internal()
425 if (long_options != NULL && optchar == 'W' && oli[1] == ';') { in getopt_internal()
437 optchar = parse_long_options(nargv, options, long_options, in getopt_internal()
493 const struct option *long_options, int *idx) in getopt_long() argument
496 return (getopt_internal(nargc, nargv, options, long_options, idx, in getopt_long()
506 const struct option *long_options, int *idx) in getopt_long_only() argument
509 return (getopt_internal(nargc, nargv, options, long_options, idx, in getopt_long_only()