Lines Matching refs:optind
131 int optind = 1; variable
321 int top = optind; in exchange()
391 first_nonopt += (optind - last_nonopt); in exchange()
392 last_nonopt = optind; in exchange()
409 first_nonopt = last_nonopt = optind; in _getopt_initialize()
528 if (optind == 0 || !__getopt_initialized) in _getopt_internal()
530 if (optind == 0) in _getopt_internal()
531 optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal()
541 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ in _getopt_internal()
542 || (optind < nonoption_flags_len \ in _getopt_internal()
543 && __getopt_nonoption_flags[optind] == '1')) in _getopt_internal()
545 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') in _getopt_internal()
554 if (last_nonopt > optind) in _getopt_internal()
555 last_nonopt = optind; in _getopt_internal()
556 if (first_nonopt > optind) in _getopt_internal()
557 first_nonopt = optind; in _getopt_internal()
564 if (first_nonopt != last_nonopt && last_nonopt != optind) in _getopt_internal()
566 else if (last_nonopt != optind) in _getopt_internal()
567 first_nonopt = optind; in _getopt_internal()
572 while (optind < argc && NONOPTION_P) in _getopt_internal()
573 optind++; in _getopt_internal()
574 last_nonopt = optind; in _getopt_internal()
582 if (optind != argc && !strcmp (argv[optind], "--")) in _getopt_internal()
584 optind++; in _getopt_internal()
586 if (first_nonopt != last_nonopt && last_nonopt != optind) in _getopt_internal()
589 first_nonopt = optind; in _getopt_internal()
592 optind = argc; in _getopt_internal()
598 if (optind == argc) in _getopt_internal()
603 optind = first_nonopt; in _getopt_internal()
614 optarg = argv[optind++]; in _getopt_internal()
621 nextchar = (argv[optind] + 1 in _getopt_internal()
622 + (longopts != NULL && argv[optind][1] == '-')); in _getopt_internal()
641 && (argv[optind][1] == '-' in _getopt_internal()
642 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) in _getopt_internal()
684 argv[0], argv[optind]); in _getopt_internal()
686 optind++; in _getopt_internal()
694 optind++; in _getopt_internal()
705 if (argv[optind - 1][1] == '-') in _getopt_internal()
714 argv[0], argv[optind - 1][0], pfound->name); in _getopt_internal()
725 if (optind < argc) in _getopt_internal()
726 optarg = argv[optind++]; in _getopt_internal()
732 argv[0], argv[optind - 1]); in _getopt_internal()
753 if (!long_only || argv[optind][1] == '-' in _getopt_internal()
758 if (argv[optind][1] == '-') in _getopt_internal()
765 argv[0], argv[optind][0], nextchar); in _getopt_internal()
768 optind++; in _getopt_internal()
782 ++optind; in _getopt_internal()
816 optind++; in _getopt_internal()
818 else if (optind == argc) in _getopt_internal()
836 optarg = argv[optind++]; in _getopt_internal()
871 argv[0], argv[optind]); in _getopt_internal()
873 optind++; in _getopt_internal()
898 if (optind < argc) in _getopt_internal()
899 optarg = argv[optind++]; in _getopt_internal()
905 argv[0], argv[optind - 1]); in _getopt_internal()
931 optind++; in _getopt_internal()
945 optind++; in _getopt_internal()
947 else if (optind == argc) in _getopt_internal()
965 optarg = argv[optind++]; in _getopt_internal()
997 int this_option_optind = optind ? optind : 1; in main()
1041 if (optind < argc) in main()
1044 while (optind < argc) in main()
1045 printf ("%s ", argv[optind++]); in main()