Lines Matching defs:optnext
338 shellparam.optnext = NULL;
423 * The getopts builtin. Shellparam.optnext points to the next argument
425 * be processed in the current argument. If shellparam.optnext is NULL,
454 shellparam.optnext = optbase;
460 return getopts(argv[1], argv[2], optbase, &shellparam.optnext,
465 getopts(char *optstr, char *optvar, char **optfirst, char ***optnext,
478 if (*optnext == NULL)
480 p = **optnext;
483 ind = *optnext - optfirst + 1;
484 *optnext = NULL;
489 (*optnext)++;
512 if (*p == '\0' && (p = **optnext) == NULL) {
526 if (p == **optnext)
527 (*optnext)++;
533 if (*optnext != NULL)
534 ind = *optnext - optfirst + 1;
549 *optnext = NULL;