• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/pptpd/pptpd-1.3.4/

Lines Matching defs:optind

137    Otherwise, `optind' communicates from one call to the next
141 int optind = 1;
143 /* Formerly, initialization of getopt depended on optind==0, which
196 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
310 The other is elements [last_nonopt,optind), which contains all
326 int top = optind;
396 first_nonopt += (optind - last_nonopt);
397 last_nonopt = optind;
415 first_nonopt = last_nonopt = optind;
482 updating `optind' and `nextchar' so that the next call to `getopt' can
486 Then `optind' is the index in ARGV of the first ARGV-element
539 if (optind == 0 || !__getopt_initialized)
541 if (optind == 0)
542 optind = 1; /* Don't scan ARGV[0], the program name. */
547 /* Test whether ARGV[optind] points to a non-option argument.
552 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \
553 || (optind < nonoption_flags_len \
554 && __getopt_nonoption_flags[optind] == '1'))
556 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0')
565 if (last_nonopt > optind)
566 last_nonopt = optind;
567 if (first_nonopt > optind)
568 first_nonopt = optind;
575 if (first_nonopt != last_nonopt && last_nonopt != optind)
577 else if (last_nonopt != optind)
578 first_nonopt = optind;
583 while (optind < argc && NONOPTION_P)
584 optind++;
585 last_nonopt = optind;
593 if (optind != argc && !strcmp (argv[optind], "--"))
595 optind++;
597 if (first_nonopt != last_nonopt && last_nonopt != optind)
600 first_nonopt = optind;
603 optind = argc;
609 if (optind == argc)
614 optind = first_nonopt;
625 optarg = argv[optind++];
632 nextchar = (argv[optind] + 1
633 + (longopts != NULL && argv[optind][1] == '-'));
652 && (argv[optind][1] == '-'
653 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
695 argv[0], argv[optind]);
697 optind++;
705 optind++;
716 if (argv[optind - 1][1] == '-')
725 argv[0], argv[optind - 1][0], pfound->name);
736 if (optind < argc)
737 optarg = argv[optind++];
743 argv[0], argv[optind - 1]);
764 if (!long_only || argv[optind][1] == '-'
769 if (argv[optind][1] == '-')
776 argv[0], argv[optind][0], nextchar);
779 optind++;
791 /* Increment `optind' when we start to process its last character. */
793 ++optind;
827 optind++;
829 else if (optind == argc)
845 /* We already incremented `optind' once;
847 optarg = argv[optind++];
882 argv[0], argv[optind]);
884 optind++;
909 if (optind < argc)
910 optarg = argv[optind++];
916 argv[0], argv[optind - 1]);
942 optind++;
956 optind++;
958 else if (optind == argc)
974 /* We already incremented `optind' once;
976 optarg = argv[optind++];
1014 int this_option_optind = optind ? optind : 1;
1058 if (optind < argc)
1061 while (optind < argc)
1062 printf ("%s ", argv[optind++]);