Lines Matching refs:optind
432 if (!(go.info & GI_MINUSMINUS) && argv[go.optind] && in parse_args()
433 (argv[go.optind][0] == '-' || argv[go.optind][0] == '+') && in parse_args()
434 argv[go.optind][1] == '\0') { in parse_args()
436 if (argv[go.optind][0] == '-') in parse_args()
439 go.optind++; in parse_args()
444 argv[go.optind]); in parse_args()
458 for (i = go.optind; argv[i]; i++) in parse_args()
460 qsort(&argv[go.optind], i - go.optind, sizeof(void *), in parse_args()
464 go.optind += set_array(array, tobool(arrayset > 0), in parse_args()
465 argv + go.optind); in parse_args()
467 return (go.optind); in parse_args()
914 go->optind = 1; in ksh_getopt_reset()
954 if (go->p == 0 || (c = argv[go->optind - 1][go->p]) == '\0') { in ksh_getopt()
955 const char *arg = argv[go->optind], flag = arg ? *arg : '\0'; in ksh_getopt()
959 go->optind++; in ksh_getopt()
972 go->optind++; in ksh_getopt()
999 if (argv[go->optind - 1][go->p]) in ksh_getopt()
1000 go->optarg = argv[go->optind - 1] + go->p; in ksh_getopt()
1001 else if (argv[go->optind]) in ksh_getopt()
1002 go->optarg = argv[go->optind++]; in ksh_getopt()
1022 go->optarg = argv[go->optind - 1] + go->p; in ksh_getopt()
1030 if (argv[go->optind - 1][go->p]) { in ksh_getopt()
1031 if (ksh_isdigit(argv[go->optind - 1][go->p])) { in ksh_getopt()
1032 go->optarg = argv[go->optind - 1] + go->p; in ksh_getopt()
1037 if (argv[go->optind] && ksh_isdigit(argv[go->optind][0])) { in ksh_getopt()
1038 go->optarg = argv[go->optind++]; in ksh_getopt()
1766 wp += builtin_opt.optind; in c_cd()