Lines Matching refs:optnext
288 shellparam.optnext = NULL;
333 shellparam.optnext = NULL;
365 shellparam.optnext = NULL;
371 * The getopts builtin. Shellparam.optnext points to the next argument
373 * be processed in the current argument. If shellparam.optnext is NULL,
390 shellparam.optnext = optbase;
395 return getopts(argv[1], argv[2], optbase, &shellparam.optnext,
400 getopts(char *optstr, char *optvar, char **optfirst, char ***optnext, char **optpptr)
411 if (*optnext == NULL)
413 p = **optnext;
416 ind = *optnext - optfirst + 1;
417 *optnext = NULL;
422 (*optnext)++;
446 if (*p == '\0' && (p = **optnext) == NULL) {
460 if (p == **optnext)
461 (*optnext)++;
466 ind = *optnext - optfirst + 1;
471 *optnext = NULL;
481 *optnext = NULL;