Lines Matching refs:optind
59 int optind = 1; /* index into parent argv vector */ variable
169 optind++; in parse_long_options()
231 optarg = nargv[optind++]; in parse_long_options()
250 --optind; in parse_long_options()
255 --optind; in parse_long_options()
304 if (optind == 0) in getopt_internal()
305 optind = optreset = 1; in getopt_internal()
313 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
318 optind, nargv); in getopt_internal()
319 optind -= nonopt_end - nonopt_start; in getopt_internal()
326 optind = nonopt_start; in getopt_internal()
331 if (*(place = nargv[optind]) != '-' || in getopt_internal()
339 optarg = nargv[optind++]; in getopt_internal()
351 nonopt_start = optind; in getopt_internal()
354 optind, nargv); in getopt_internal()
355 nonopt_start = optind - in getopt_internal()
359 optind++; in getopt_internal()
364 nonopt_end = optind; in getopt_internal()
370 optind++; in getopt_internal()
378 optind, nargv); in getopt_internal()
379 optind -= nonopt_end - nonopt_start; in getopt_internal()
392 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
419 ++optind; in getopt_internal()
429 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
436 place = nargv[optind]; in getopt_internal()
444 ++optind; in getopt_internal()
450 if (++optind >= nargc) { /* no arg */ in getopt_internal()
457 optarg = nargv[optind]; in getopt_internal()
460 ++optind; in getopt_internal()