Lines Matching refs:rcode
8066 int rcode = run_and_free_list(pipe_list);
8071 if (rcode <= EXIT_RET_CODE)
9048 int rcode;
9050 rcode = x->b_function(argv);
9052 _exit(rcode);
9378 int rcode;
9381 rcode = run_list(command->group);
9384 _exit(rcode);
9497 int rcode, i;
9503 rcode = 0;
9506 rcode = pi->cmds[i].cmd_exitcode;
9509 if (G.o_opt[OPT_O_PIPEFAIL] == 0 || rcode != 0)
9512 IF_HAS_KEYWORDS(if (pi->pi_inverted) rcode = !rcode;)
9513 return rcode;
9541 int rcode;
9580 rcode = job_exited_or_stopped(fg_pipe);
9581 if (rcode >= 0) {
9590 return rcode;
9593 return rcode;
9617 int rcode = WEXITSTATUS(status);
9620 rcode = 128 | WTERMSIG(status);
9621 pi->cmds[i].cmd_exitcode = rcode;
9623 G.last_bg_pid_exitcode = rcode;
9674 int rcode = 0;
9728 rcode = childpid;
9731 rcode = process_wait_result(fg_pipe, childpid, status);
9732 if (rcode >= 0) {
9738 rcode = WEXITSTATUS(status);
9740 rcode = 128 | WTERMSIG(status);
9743 rcode = 128 | WSTOPSIG(status);
9744 rcode++;
9752 rcode = G.dead_job_exitcode + 1;
9760 return rcode;
9767 int rcode = checkjobs(fg_pipe, 0 /*(no pid to wait for)*/);
9774 return rcode;
9874 int rcode;
9883 rcode = 0;
9938 rcode = 1; /* exitcode if redir failed */
9949 rcode = run_list(command->group) & 0xff;
9954 IF_HAS_KEYWORDS(if (pi->pi_inverted) rcode = !rcode;)
9956 debug_printf_exec("run_pipe: return %d\n", rcode);
9957 return rcode;
9983 rcode = setup_redirects(command, &squirrel);
10014 rcode = 1;
10025 if (rcode == 0)
10026 rcode = G.expand_exitcode;
10027 IF_HAS_KEYWORDS(if (pi->pi_inverted) rcode = !rcode;)
10029 debug_printf_exec("run_pipe: return %d\n", rcode);
10030 return rcode;
10073 rcode = redirect_and_varexp_helper(command,
10092 rcode = redirect_and_varexp_helper(command, &squirrel, argv_expanded);
10093 if (rcode == 0) {
10106 rcode = x->b_function(argv_expanded) & 0xff;
10113 rcode = run_function(funcp, argv_expanded) & 0xff;
10132 rcode = redirect_and_varexp_helper(command, &squirrel, argv_expanded);
10135 if (rcode == 0) {
10146 rcode = run_nofork_applet(n, argv_expanded);
10172 rcode = 128 | SIGINT;
10175 IF_HAS_KEYWORDS(if (pi->pi_inverted) rcode = !rcode;)
10177 debug_printf_exec("run_pipe return %d\n", rcode);
10178 return rcode;
10342 rcode = cmd_process(G.do_repeat ? CMD_FLAG_REPEAT : 0,
10380 debug_printf_exec("run_pipe return %d\n", rcode);
10381 return rcode;
10398 smalluint rcode;
10459 rcode = G.last_exitcode;
10501 if ((rcode == 0 && last_followup == PIPE_OR)
10502 || (rcode != 0 && last_followup == PIPE_AND)
10516 G.last_exitcode = rcode = EXIT_SUCCESS;
10548 G.last_exitcode = rcode = EXIT_SUCCESS;
10645 G.last_exitcode = rcode = EXIT_SUCCESS;
10671 rcode = r = G.o_opt[OPT_O_NOEXEC] ? 0 : run_pipe(pi);
10674 rcode = r = run_pipe(pi); /* NB: rcode is a smalluint, r is int */
10712 debug_printf_exec(": builtin/func exitcode %d\n", rcode);
10713 G.last_exitcode = rcode;
10718 rcode = G.last_exitcode; /* "return" in trap can change it, read back */
10761 rcode = EXIT_SUCCESS;
10767 rcode = checkjobs_and_fg_shell(pi);
10768 debug_printf_exec(": checkjobs_and_fg_shell exitcode %d\n", rcode);
10773 rcode = checkjobs(pi, 0 /*(no pid to wait for)*/);
10774 debug_printf_exec(": checkjobs exitcode %d\n", rcode);
10776 G.last_exitcode = rcode;
10779 rcode = G.last_exitcode; /* "return" in trap can change it, read back */
10786 if (rcode != 0 && G.o_opt[OPT_O_ERREXIT]) {
10789 hush_exit(rcode);
10799 debug_printf_exec("cond_code=rcode:%d\n", rcode);
10800 cond_code = rcode;
10815 if (rcode) {
10817 G.last_exitcode = rcode = EXIT_SUCCESS;
10823 if (!rcode) {
10845 debug_printf_exec("run_list lvl %d return %d\n", G.run_list_level, rcode);
10847 return rcode;
10853 int rcode = 0;
10859 rcode = run_list(pi);
10867 debug_printf_exec("run_and_free_list return %d\n", rcode);
10868 return rcode;
12748 int rcode = job_exited_or_stopped(waitfor_pipe);
12749 debug_printf_exec("job_exited_or_stopped:%d\n", rcode);
12750 if (rcode >= 0) {
12751 ret = rcode;