Lines Matching refs:optind

22 int optind = 1;   /* index into parent argv vector */  variable
123 optind++; in parse_long_options()
180 optarg = nargv[optind++]; in parse_long_options()
198 --optind; in parse_long_options()
203 --optind; in parse_long_options()
238 if (optind == 0) in getopt_internal()
239 optind = optreset = 1; in getopt_internal()
260 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
264 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
265 optind -= nonopt_end - nonopt_start; in getopt_internal()
271 optind = nonopt_start; in getopt_internal()
276 if (*(place = nargv[optind]) != '-' || in getopt_internal()
284 optarg = nargv[optind++]; in getopt_internal()
296 nonopt_start = optind; in getopt_internal()
298 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
299 nonopt_start = optind - (nonopt_end - nonopt_start); in getopt_internal()
302 optind++; in getopt_internal()
307 nonopt_end = optind; in getopt_internal()
313 optind++; in getopt_internal()
320 permute_args(nonopt_start, nonopt_end, optind, nargv); in getopt_internal()
321 optind -= nonopt_end - nonopt_start; in getopt_internal()
334 if (long_options != NULL && place != nargv[optind] && in getopt_internal()
360 ++optind; in getopt_internal()
370 else if (++optind >= nargc) { /* no arg */ in getopt_internal()
377 place = nargv[optind]; in getopt_internal()
384 ++optind; in getopt_internal()
390 if (++optind >= nargc) { /* no arg */ in getopt_internal()
397 optarg = nargv[optind]; in getopt_internal()
400 ++optind; in getopt_internal()