nextopt
(void) nextopt(NULL); /* consume possible "--" */
while ((i = nextopt("a")) != '\0') {
while ((i = nextopt("LP")) != '\0')
while ((opt = nextopt("Pe")) != '\0')
(void) nextopt(NULL); /* ignore a leading "--" */
(void) nextopt(""); /* ignore a leading "--" */
nextopt("");
while ((c = nextopt("vVp")) != 0) {
while ((c = nextopt("bcefqrsuv")) != '\0')
while ((c = nextopt("fgs:")) != 0) {
nextopt("");
nextopt("");
nextopt("");
while ((m = nextopt("lpZ")))
while ((i = nextopt("np:")) != '\0') {
while ((i = nextopt("gjp"))) {
while ((i = nextopt(READ_OPTS)) != '\0') {
while ((i = nextopt("S")) != '\0') {
while ((optc = nextopt(OPTSTRING)) != '\0')
(void) nextopt(NULL); /* ignore '--' as leading option */
(void) nextopt(NULL); /* ignore '--' as leading option */
int nextopt(const char *);
while ((c = nextopt(EXPORT_OPTS)) != '\0') {
while ((c = nextopt("INx")) != '\0')
while ((i = nextopt("efvx")) != '\0') {
(void) nextopt("");
if (do_option(opttab, &options, &nextopt, name, value, "options",
if (undo_option(opttab, &options, &nextopt, name, "options", nowarn))
static struct nvlist **nextopt;
nextopt = &options;
nextopt = valp + l;
opt = nextopt;
opt = nextopt;
char *opt, *endp, *nextopt, *valp;