Lines Matching refs:wp
24 c_label(wp) in c_label() argument
25 char **wp; in c_label()
27 return wp[0][0] == 'f' ? 1 : 0;
31 c_shift(wp) in c_shift() argument
32 char **wp; in c_shift()
39 if (ksh_getopt(wp, &builtin_opt, null) == '?')
41 arg = wp[builtin_opt.optind];
63 c_umask(wp) in c_umask() argument
64 char **wp; in c_umask()
72 while ((optc = ksh_getopt(wp, &builtin_opt, "S")) != EOF)
80 cp = wp[builtin_opt.optind];
183 c_dot(wp) in c_dot() argument
184 char **wp; in c_dot()
192 if (ksh_getopt(wp, &builtin_opt, null) == '?')
195 if ((cp = wp[builtin_opt.optind]) == NULL)
204 if (wp[builtin_opt.optind + 1]) {
205 argv = wp + builtin_opt.optind;
222 c_wait(wp) in c_wait() argument
223 char **wp; in c_wait()
228 if (ksh_getopt(wp, &builtin_opt, null) == '?')
230 wp += builtin_opt.optind;
231 if (*wp == (char *) 0) {
236 for (; *wp; wp++)
237 rv = waitfor(*wp, &sig);
245 c_read(wp) in c_read() argument
246 char **wp; in c_read()
262 while ((optc = ksh_getopt(wp, &builtin_opt, "prsu,")) != EOF)
289 wp += builtin_opt.optind;
291 if (*wp == NULL)
292 *--wp = REPLY;
299 if ((cp = strchr(*wp, '?')) != NULL) {
328 for (; *wp != NULL; wp++) {
383 if (wp[1])
389 if (!wp[1])
394 vp = global(*wp);
398 bi_errorf("%s is read only", *wp);
402 typeset(*wp, EXPORT, 0, 0, 0);
429 c_eval(wp) in c_eval() argument
430 char **wp; in c_eval()
435 if (ksh_getopt(wp, &builtin_opt, null) == '?')
438 s->u.strv = wp + builtin_opt.optind;
473 c_trap(wp) in c_trap() argument
474 char **wp; in c_trap()
480 if (ksh_getopt(wp, &builtin_opt, null) == '?')
482 wp += builtin_opt.optind;
484 if (*wp == NULL) {
518 s = (gettrap(*wp, false) == NULL) ? *wp++ : NULL; /* get command */
523 while (*wp != NULL) {
524 p = gettrap(*wp++, true);
526 bi_errorf("bad signal %s", wp[-1]);
535 c_exitreturn(wp) in c_exitreturn() argument
536 char **wp; in c_exitreturn()
542 if (ksh_getopt(wp, &builtin_opt, null) == '?')
544 arg = wp[builtin_opt.optind];
553 if (wp[0][0] == 'r') { /* return */
578 c_brkcont(wp) in c_brkcont() argument
579 char **wp; in c_brkcont()
585 if (ksh_getopt(wp, &builtin_opt, null) == '?')
587 arg = wp[builtin_opt.optind];
615 warningf(true, "%s: cannot %s", wp[0], wp[0]);
625 wp[0], wp[0], n - quit);
628 unwind(*wp[0] == 'b' ? LBREAK : LCONTIN);
633 c_set(wp) in c_set() argument
634 char **wp; in c_set()
638 char **owp = wp;
640 if (wp[1] == NULL) {
645 argi = parse_args(wp, OF_SET, &setargs);
650 owp = wp += argi - 1;
651 wp[0] = l->argv[0]; /* save $0 */
652 while (*++wp != NULL)
653 *wp = str_save(*wp, &l->area);
654 l->argc = wp - owp - 1;
656 for (wp = l->argv; (*wp++ = *owp++) != NULL; )
669 c_unset(wp) in c_unset() argument
670 char **wp; in c_unset()
676 while ((optc = ksh_getopt(wp, &builtin_opt, "fv")) != EOF)
687 wp += builtin_opt.optind;
688 for (; (id = *wp) != NULL; wp++)
705 c_times(wp) in c_times() argument
706 char **wp; in c_times()
784 char **wp = *app; local
791 while ((optc = ksh_getopt(wp, &opt, ":p")) != EOF)
805 afree(wp[i], ATEMP);
806 for (i = 0, j = opt.optind; (wp[i] = wp[j]); i++, j++)
809 if (!wp[0])
811 *app = wp;
841 c_exec(wp) in c_exec() argument
842 char ** wp; in c_exec()
869 c_builtin(wp) in c_builtin() argument
870 char ** wp; in c_builtin()
875 extern int c_test ARGS((char **wp)); /* in c_test.c */
876 extern int c_ulimit ARGS((char **wp)); /* in c_ulimit.c */