Searched refs:optind (Results 1 – 9 of 9) sorted by relevance
29 if (!optind || __optreset) { in getopt()32 optind = 1; in getopt()35 if (optind >= argc || !argv[optind]) in getopt()38 if (argv[optind][0] != '-') { in getopt()40 optarg = argv[optind++]; in getopt()46 if (!argv[optind][1]) in getopt()49 if (argv[optind][1] == '-' && !argv[optind][2]) in getopt()50 return optind++, -1; in getopt()62 if (!argv[optind][optpos]) { in getopt()63 optind++; in getopt()[all …]
26 if (!optind || __optreset) { in __getopt_long()29 optind = 1; in __getopt_long()31 if (optind >= argc || !argv[optind]) in __getopt_long()33 skipped = optind; in __getopt_long()42 optind = i; in __getopt_long()44 resumed = optind; in __getopt_long()59 ((longonly && argv[optind][1]) || (argv[optind][1] == '-' && argv[optind][2]))) { in __getopt_long_core()81 optind++; in __getopt_long_core()102 optind++; in __getopt_long_core()115 argv[optind] + 2, strlen(argv[optind] + 2)); in __getopt_long_core()[all …]
169 shellparam.optind = 1; in procargs()319 shellparam.optind = 1; in setparam()365 shellparam.optind = 1; in shiftcmd()397 shellparam.optind = number(value) ?: 1;417 if ((unsigned)shellparam.optind > shellparam.nparam + 1) { in getoptscmd()418 shellparam.optind = 1; in getoptscmd()424 if ((unsigned)shellparam.optind > argc - 2) { in getoptscmd()425 shellparam.optind = 1; in getoptscmd()441 int ind = shellparam.optind; in getopts()444 shellparam.optind = -1; in getopts()[all …]
41 int optind; /* next parameter to be processed by getopts */ member
986 shellparam.optind = 1; in evalfun()
94 argc -= optind; in main()95 argv += optind; in main()
9 extern int optind, opterr, optopt, optreset;
119 extern int optind, opterr, optopt;
151 argc -= optind; in main()152 argv += optind; in main()
Completed in 14 milliseconds