Lines Matching refs:optind
321 optind++;
368 --optind;
415 if (optind < nargc) {
416 optarg = nargv[optind];
418 ++optind; /* code below depends on this */
440 --optind;
505 * Some programs (like GNU cvs) set optind to 0 to restart
511 if (optind == 0) {
512 optind = optreset = 1;
527 if ((optind == 1) && FLAG_IS_SET(FLAG_REQUIRE_EQUIVALENTS)) {
539 if (optind >= nargc) { /* end of argument vector */
544 optind, nargv);
545 optind -= nonopt_end - nonopt_start;
549 * If we skipped non-options, set optind
552 optind = nonopt_start;
557 if ((*(place = nargv[optind]) != '-') || (place[1] == '\0')) {
564 optarg = nargv[optind++];
576 nonopt_start = optind;
579 optind, nargv);
580 nonopt_start = optind -
584 optind++;
589 nonopt_end = optind;
597 optind++;
605 optind, nargv);
606 optind -= nonopt_end - nonopt_start;
619 if (long_options != NULL && place != nargv[optind] &&
645 ++optind;
659 } else if (++optind >= nargc) { /* no long-option after -W */
669 place = nargv[optind];
680 optarg = nargv[optind-1];
687 ++optind;
697 if (++optind >= nargc) { /* no arg */
708 optarg = nargv[optind];
711 ++optind;