Lines Matching refs:optind
11 int optind=1, opterr=1, optopt, __optpos, __optreset=0; variable
35 if (!optind || __optreset) { in getopt()
38 optind = 1; in getopt()
41 if (optind >= argc || !argv[optind]) in getopt()
44 if (argv[optind][0] != '-') { in getopt()
46 optarg = argv[optind++]; in getopt()
52 if (!argv[optind][1]) in getopt()
55 if (argv[optind][1] == '-' && !argv[optind][2]) in getopt()
56 return optind++, -1; in getopt()
59 if ((k = mbtowc(&c, argv[optind]+optpos, MB_LEN_MAX)) < 0) { in getopt()
63 optchar = argv[optind]+optpos; in getopt()
66 if (!argv[optind][optpos]) { in getopt()
67 optind++; in getopt()
90 optarg = argv[optind++] + optpos; in getopt()
93 if (optind > argc) { in getopt()