Lines Matching refs:optind
61 int optind = 1; /* index into parent argv vector */ variable
183 if (optind == 0) in getopt_internal()
184 optind = 1; in getopt_internal()
191 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
196 optind, nargv); in getopt_internal()
197 optind -= nonopt_end - nonopt_start; in getopt_internal()
204 optind = nonopt_start; in getopt_internal()
209 if ((*(place = nargv[optind]) != '-') in getopt_internal()
217 optarg = nargv[optind++]; in getopt_internal()
229 nonopt_start = optind; in getopt_internal()
232 optind, nargv); in getopt_internal()
233 nonopt_start = optind - in getopt_internal()
237 optind++; in getopt_internal()
242 nonopt_end = optind; in getopt_internal()
252 ++optind; in getopt_internal()
263 if (++optind >= nargc) { /* no arg */ in getopt_internal()
270 place = nargv[optind]; in getopt_internal()
279 ++optind; in getopt_internal()
286 if (++optind >= nargc) { /* no arg */ in getopt_internal()
293 optarg = nargv[optind]; in getopt_internal()
296 ++optind; in getopt_internal()
319 ++optind; in getopt()
325 permute_args(nonopt_start, nonopt_end, optind, in getopt()
327 optind -= nonopt_end - nonopt_start; in getopt()
366 optind++; in getopt_long()
376 optind, __UNCONST(nargv)); in getopt_long()
377 optind -= nonopt_end - nonopt_start; in getopt_long()
441 optarg = nargv[optind++]; in getopt_long()
460 --optind; in getopt_long()