• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/shell/

Lines Matching refs:wp

347 	char **wp;
393 static struct op *block(int type, struct op *t1, struct op *t2, char **wp);
531 static int forkexec(struct op *t, int *pin, int *pout, int act, char **wp);
555 static void rdexp(char **wp, void (*f) (struct var *), int key);
795 static void echo(char **wp)
800 for (i = 0; wp[i]; i++) {
803 prs(wp[i]);
2059 static struct op *block(int type, struct op *t1, struct op *t2, char **wp)
2069 t->words = wp;
2409 char **wp;
2430 for (wp = t1->words; *wp;) {
2431 cp = evalstr(*wp++, DOSUB);
2460 char **wp, **wp2;
2467 (void) ℘
2481 wp = (wp2 = t->words) != NULL
2509 rv = forkexec(t, pin, pout, act, wp);
2574 if (wp == NULL) {
2575 wp = dolv + 1;
2581 while (*wp++ != NULL);
2588 for (t1 = t->left; i-- && *wp != NULL;) {
2589 setval(vp, *wp++);
2686 static int forkexec(struct op *t, int *pin, int *pout, int act, char **wp)
2710 (void) ℘
2722 owp = wp;
2726 while (*wp++ != NULL)
2728 cp = *wp;
2733 DBGPRINTF9(("FORKEXEC: echo'ing, cp=%p, wp=%p, owp=%p\n",
2734 cp, wp, owp));
2735 echo(cp ? wp : owp);
2749 t->words = wp;
2759 hwp = *wp;
2778 *wp = hwp;
2866 if (wp[0] == NULL)
2869 cp = rexecve(wp[0], wp, makenv(0, NULL));
2870 prs(wp[0]);
3377 char *cp, **wp;
3385 for (wp = t->words + 1; *wp; wp++) {
3391 if (nl || (wp[1] && any(*cp, ifs->value)))
3397 setval(lookup(*wp), e.linep);
3549 static void rdexp(char **wp, void (*f) (struct var *), int key)
3551 DBGPRINTF6(("RDEXP: enter, wp=%p, func=%p, key=%d\n", wp, f, key));
3552 DBGPRINTF6(("RDEXP: *wp=%s\n", *wp));
3554 if (*wp != NULL) {
3555 for (; *wp != NULL; wp++) {
3556 if (isassign(*wp)) {
3559 assign(*wp, COPYV);
3560 for (cp = *wp; *cp != '='; cp++);
3563 if (checkname(*wp))
3564 (*f) (lookup(*wp));
3566 badid(*wp);
3669 char **wp;
3675 (void) ℘
3681 wp = NULL;
3699 wp = getwords(wb);
3704 return gflg ? (char **) NULL : wp;
4739 char *wp;
4741 wp = *ap->awordlist++;
4742 if (wp != NULL) {
4743 PUSHIO(aword, wp, *ap->awordlist == NULL ? strchar : xxchar);