Home | History | Annotate | Download | only in sh

Lines Matching refs:optnext

396 	shellparam.optnext = NULL;
464 shellparam.optnext = NULL;
505 shellparam.optnext = NULL;
541 shellparam.optnext = NULL;
547 * The getopts builtin. Shellparam.optnext points to the next argument
549 * be processed in the current argument. If shellparam.optnext is NULL,
566 shellparam.optnext = optbase;
571 return getopts(argv[1], argv[2], optbase, &shellparam.optnext,
576 getopts(char *optstr, char *optvar, char **optfirst, char ***optnext, char **optpptr)
587 if (*optnext == NULL)
589 p = **optnext;
592 ind = *optnext - optfirst + 1;
593 *optnext = NULL;
598 (*optnext)++;
622 if (*p == '\0' && (p = **optnext) == NULL) {
636 if (p == **optnext)
637 (*optnext)++;
642 ind = *optnext - optfirst + 1;
647 *optnext = NULL;
657 *optnext = NULL;