Lines Matching refs:execute
251 #define FEXEC 1 /* execute without forking */
422 static int execute(struct op *t, int *pin, int *pout, int act);
1398 DBGPRINTF(("ONECOMMAND: calling execute, t=outtree=%p\n",
1400 execute(outtree, NOPIPE, NOPIPE, 0);
2452 * execute tree
2455 static int execute(struct op *t, int *pin, int *pout, int act)
2499 rv = execute(t->left, pin, pout, 0);
2501 rv = execute(t->right, pin, pout, 0);
2505 rv = execute(t->left, pin, pout, 0);
2521 (void) execute(t->left, pin, pv, 0);
2522 rv = execute(t->right, pv, pout, 0);
2527 (void) execute(t->left, pin, pout, 0);
2528 rv = execute(t->right, pin, pout, 0);
2548 _exit(execute(t->left, pin, pout, FEXEC));
2567 rv = execute(t->left, pin, pout, 0);
2570 rv = execute(t1, pin, pout, 0);
2590 rv = execute(t1, pin, pout, 0);
2602 while ((execute(t1, pin, pout, 0) == 0) == (t->type == TWHILE))
2603 rv = execute(t->right, pin, pout, 0);
2610 rv = !execute(t->left, pin, pout, 0) ?
2611 execute(t->right->left, pin, pout, 0) :
2612 execute(t->right->right, pin, pout, 0);
2627 DBGPRINTF7(("EXECUTE: TCASE, calling execute(t=%p, t1=%p)...\n", t, t1));
2628 rv = execute(t1, pin, pout, 0);
2629 DBGPRINTF7(("EXECUTE: TCASE, back from execute(t=%p, t1=%p)...\n", t, t1));
2646 rv = execute(t1, pin, pout, 0);
2865 _exit(execute(t->left, NOPIPE, NOPIPE, FEXEC));
3108 return errno == ENOENT ? "not found" : "cannot execute";
3148 rv = execute(outtree, NOPIPE, NOPIPE, 0);
3248 * execute login and newgrp directly
3300 execute(t, NOPIPE, NOPIPE, FEXEC);