Lines Matching refs:long_options
186 * Returns -1 if short_too is set and the option does not match long_options.
190 const struct option *long_options, int *idx, int short_too, int flags)
229 for (i = 0; long_options[i].name; i++) {
231 if (strncmp(current_argv, long_options[i].name,
235 if (strlen(long_options[i].name) == current_argv_len) {
251 long_options[i].has_arg !=
252 long_options[match].has_arg ||
253 long_options[i].flag != long_options[match].flag ||
254 long_options[i].val != long_options[match].val)
270 if (long_options[match].has_arg == no_argument
282 if (long_options[match].flag == NULL)
283 optopt = long_options[match].val;
292 if (long_options[match].has_arg == required_argument ||
293 long_options[match].has_arg == optional_argument) {
296 else if (long_options[match].has_arg ==
304 if ((long_options[match].has_arg == required_argument)
319 if (long_options[match].flag == NULL)
320 optopt = long_options[match].val;
342 if (long_options[match].flag) {
343 *long_options[match].flag = long_options[match].val;
346 return (long_options[match].val);
355 const struct option *long_options, int *idx, int flags)
476 if (long_options != NULL && place != nargv[optind] &&
490 optchar = parse_long_options(nargv, options, long_options,
521 if (long_options != NULL && optchar == 'W' && oli[1] == ';') {
536 optchar = parse_long_options(nargv, options, long_options,
594 const struct option *long_options, int *idx)
597 return (getopt_internal(nargc, nargv, options, long_options, idx,
607 const struct option *long_options, int *idx)
610 return (getopt_internal(nargc, nargv, options, long_options, idx,