Home | History | Annotate | Download | only in ksh

Lines Matching refs:wp

24 c_label(wp)
25 char **wp;
27 return wp[0][0] == 'f' ? 1 : 0;
31 c_shift(wp)
32 char **wp;
39 if (ksh_getopt(wp, &builtin_opt, null) == '?')
41 arg = wp[builtin_opt.optind];
63 c_umask(wp)
64 char **wp;
72 while ((optc = ksh_getopt(wp, &builtin_opt, "S")) != EOF)
80 cp = wp[builtin_opt.optind];
183 c_dot(wp)
184 char **wp;
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)
223 char **wp;
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)
246 char **wp;
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)
430 char **wp;
435 if (ksh_getopt(wp, &builtin_opt, null) == '?')
438 s->u.strv = wp + builtin_opt.optind;
473 c_trap(wp)
474 char **wp;
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)
536 char **wp;
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)
579 char **wp;
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)
634 char **wp;
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)
670 char **wp;
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)
706 char **wp;
784 char **wp = *app;
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)
842 char ** wp;
869 c_builtin(wp)
870 char ** wp;
875 extern int c_test ARGS((char **wp)); /* in c_test.c */
876 extern int c_ulimit ARGS((char **wp)); /* in c_ulimit.c */