Lines Matching refs:optind
21 int optind = 1; /* index into parent argv vector */ variable
122 optind++; in parse_long_options()
179 optarg = nargv[optind++]; in parse_long_options()
197 --optind; in parse_long_options()
202 --optind; in parse_long_options()
237 if (optind == 0) in getopt_internal()
238 optind = optreset = 1; in getopt_internal()
259 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
263 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
264 optind -= nonopt_end - nonopt_start; in getopt_internal()
270 optind = nonopt_start; in getopt_internal()
275 if (*(place = nargv[optind]) != '-' || in getopt_internal()
283 optarg = nargv[optind++]; in getopt_internal()
295 nonopt_start = optind; in getopt_internal()
297 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
298 nonopt_start = optind - (nonopt_end - nonopt_start); in getopt_internal()
301 optind++; in getopt_internal()
306 nonopt_end = optind; in getopt_internal()
312 optind++; in getopt_internal()
319 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
320 optind -= nonopt_end - nonopt_start; in getopt_internal()
333 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
359 ++optind; in getopt_internal()
369 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
376 place = nargv[optind]; in getopt_internal()
383 ++optind; in getopt_internal()
389 if (++optind >= nargc) { /* no arg */ in getopt_internal()
396 optarg = nargv[optind]; in getopt_internal()
399 ++optind; in getopt_internal()