Lines Matching refs:optind
76 int optind = 1; /* index into parent argv vector */ variable
186 optind++; in parse_long_options()
248 optarg = nargv[optind++]; in parse_long_options()
267 --optind; in parse_long_options()
272 --optind; in parse_long_options()
308 if (optind == 0) in getopt_internal()
309 optind = optreset = 1; in getopt_internal()
330 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
335 optind, nargv); in getopt_internal()
336 optind -= nonopt_end - nonopt_start; in getopt_internal()
343 optind = nonopt_start; in getopt_internal()
348 if (*(place = nargv[optind]) != '-' || in getopt_internal()
356 optarg = nargv[optind++]; in getopt_internal()
368 nonopt_start = optind; in getopt_internal()
371 optind, nargv); in getopt_internal()
372 nonopt_start = optind - in getopt_internal()
376 optind++; in getopt_internal()
381 nonopt_end = optind; in getopt_internal()
387 optind++; in getopt_internal()
395 optind, nargv); in getopt_internal()
396 optind -= nonopt_end - nonopt_start; in getopt_internal()
409 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
436 ++optind; in getopt_internal()
446 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
453 place = nargv[optind]; in getopt_internal()
461 ++optind; in getopt_internal()
467 if (++optind >= nargc) { /* no arg */ in getopt_internal()
474 optarg = nargv[optind]; in getopt_internal()
477 ++optind; in getopt_internal()