Lines Matching defs:exitcode

2082 static void hush_exit(int exitcode) NORETURN;
2184 static void hush_exit(int exitcode)
2221 sigexit(- (exitcode & 0xff));
2223 _exit(exitcode);
2267 debug_printf_exec("trap exitcode:%d\n", G.return_exitcode);
7116 case '?': /* exitcode */
7913 /* 1:hush 2:-$<pid>:<pid>:<exitcode>:<etc...> <vars...> <funcs...>
8291 /* We need to extract exitcode. Test case
8295 debug_printf("child exited. returning its exitcode:%d\n", WEXITSTATUS(status));
9506 debug_printf_jobs("pid %d stopped by sig %d (exitcode %d)\n",
9509 debug_printf_jobs("pid %d killed by sig %d (exitcode %d)\n",
9512 debug_printf_jobs("pid %d exited, exitcode %d\n",
9549 * 128 + sig would result in exitcode 256 -> 0!
9582 /* No need to remember exitcode in this case */
9638 * Return its exitcode or zero if stopped.
9641 * waitpid(WNOHANG), if waitfor_pid exits or stops, return exitcode+1,
9686 * 1 <========== bg pipe is not fully done, but exitcode is already known!
9724 break; /* "wait PID" called us, give it exitcode+1 */
9911 rcode = 1; /* exitcode if redir failed */
10022 /* `false` still has to set exitcode 1 */
10141 * we aren't ok with exitcode 0 when ^C was pressed
10486 /* if false; then ... fi has exitcode 0! */
10524 debug_printf_exec(": null FOR: exitcode EXIT_SUCCESS\n");
10683 debug_printf_exec(": builtin/func exitcode %d\n", rcode);
10730 debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n");
10739 debug_printf_exec(": checkjobs_and_fg_shell exitcode %d\n", rcode);
10745 debug_printf_exec(": checkjobs exitcode %d\n", rcode);
10787 /* "while false; do...done" - exitcode 0 */
10789 debug_printf_exec(": while expr is false: breaking (exitcode:EXIT_SUCCESS)\n");
11599 /* bash does nothing (exitcode 0) if HOME is ""; if it's unset,
11601 * (exitcode 1)
12252 int c, n, exitcode, my_opterr;
12345 exitcode = EXIT_SUCCESS;
12347 exitcode = EXIT_FAILURE;
12355 return exitcode;
12738 /* if ret != 0, it's exitcode+1 of exited waitfor_pid child */
12745 /* exitcode of "wait -n" with no children is 127, not 0 */
12851 * In bash it prints exitcode 0, then 3.