Lines Matching refs:optind
197 if (optind >= argc || argv[optind][0] != '-' || in getopt()
198 argv[optind] == NULL || argv[optind][1] == '\0') in getopt()
200 else if (strcmp(argv[optind], "--") == 0) { in getopt()
201 optind++; in getopt()
225 optopt = c = (unsigned char)argv[optind][_sp]; in getopt()
229 ((cp = parselong(optstring, argv[optind]+2, &longoptarg)) != NULL) : in getopt()
232 c, (longopt ? optind : 0)); in getopt()
237 if (argv[optind][++_sp] == '\0' || longopt) { in getopt()
238 optind++; in getopt()
271 if (!longopt && argv[optind][_sp+1] != '\0') { in getopt()
272 optarg = &argv[optind++][_sp+1]; in getopt()
278 optind++; in getopt()
280 } else if (++optind >= argc) { in getopt()
282 " -- %s\n"), c, (longopt ? optind - 1 : 0)); in getopt()
287 optarg = argv[optind++]; in getopt()
295 0, (longopt ? optind : 0)); in getopt()
300 if (longopt || argv[optind][++_sp] == '\0') { in getopt()
302 optind++; in getopt()