Lines Matching refs:shellparam
57 struct shparam shellparam; /* current positional parameters */ variable
168 shellparam.p = xargv; in procargs()
169 shellparam.optind = 1; in procargs()
170 shellparam.optoff = -1; in procargs()
173 shellparam.nparam++; in procargs()
315 freeparam(&shellparam); in setparam()
316 shellparam.malloc = 1; in setparam()
317 shellparam.nparam = nparam; in setparam()
318 shellparam.p = newparam; in setparam()
319 shellparam.optind = 1; in setparam()
320 shellparam.optoff = -1; in setparam()
355 if (n > shellparam.nparam) in shiftcmd()
358 shellparam.nparam -= n; in shiftcmd()
359 for (ap1 = shellparam.p ; --n >= 0 ; ap1++) { in shiftcmd()
360 if (shellparam.malloc) in shiftcmd()
363 ap2 = shellparam.p; in shiftcmd()
365 shellparam.optind = 1; in shiftcmd()
366 shellparam.optoff = -1; in shiftcmd()
397 shellparam.optind = number(value) ?: 1;
398 shellparam.optoff = -1;
416 optbase = shellparam.p; in getoptscmd()
417 if ((unsigned)shellparam.optind > shellparam.nparam + 1) { in getoptscmd()
418 shellparam.optind = 1; in getoptscmd()
419 shellparam.optoff = -1; in getoptscmd()
424 if ((unsigned)shellparam.optind > argc - 2) { in getoptscmd()
425 shellparam.optind = 1; in getoptscmd()
426 shellparam.optoff = -1; in getoptscmd()
441 int ind = shellparam.optind; in getopts()
442 int off = shellparam.optoff; in getopts()
444 shellparam.optind = -1; in getopts()
512 shellparam.optoff = p ? p - *(optnext - 1) : -1; in getopts()
513 shellparam.optind = ind; in getopts()