Searched refs:sigtraps (Results 1 – 6 of 6) sorted by relevance
/external/mksh/src/ |
D | histrap.c | 32 Trap sigtraps[ksh_NSIG + 1]; variable 1064 sigtraps[i].signal = i; in inittraps() 1075 sigtraps[i].name = null; in inittraps() 1088 sigtraps[i].name = s; in inittraps() 1092 if (!strcmp(sigtraps[i].name, "EXIT") || in inittraps() 1093 !strcmp(sigtraps[i].name, "ERR")) { in inittraps() 1095 internal_warningf(Tinvname, sigtraps[i].name, in inittraps() 1098 sigtraps[i].name = null; in inittraps() 1101 if (sigtraps[i].name == null) in inittraps() 1102 sigtraps[i].name = shf_smprintf(Tf_d, i); in inittraps() [all …]
|
D | jobs.c | 179 setsig(&sigtraps[SIGCHLD], j_sigchld, in j_init() 183 setsig(&sigtraps[SIGCHLD], SIG_DFL, SS_RESTORE_ORIG|SS_FORCE); in j_init() 204 sigtraps[tt_sigs[i]].flags |= TF_SHELL_USES; in j_init() 206 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_init() 352 setsig(&sigtraps[SIGTTIN], SIG_DFL, in j_change() 371 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change() 398 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change() 402 if (sigtraps[tt_sigs[i]].flags & in j_change() 404 setsig(&sigtraps[tt_sigs[i]], in j_change() 405 (sigtraps[tt_sigs[i]].flags & TF_ORIG_IGN) ? in j_change() [all …]
|
D | main.c | 576 sigtraps[SIGWINCH].flags |= TF_SHELL_USES; in main_init() 577 setsig(&sigtraps[SIGWINCH], x_sigwinch, in main_init() 947 sigtraps[ksh_SIGEXIT].trap && in unwind() 950 runtrap(&sigtraps[ksh_SIGEXIT], trap_nested == 1); in unwind() 955 runtrap(&sigtraps[ksh_SIGERR], trap_nested == 1); in unwind() 1052 setsig(&sigtraps[sig], SIG_DFL, in quitenv()
|
D | funcs.c | 1067 ki->name_width, sigtraps[i].name, in kill_fmt_entry() 1068 sigtraps[i].mess); in kill_fmt_entry() 1127 shprintf(Tf_sN, sigtraps[n].name); in c_kill() 1134 shf_puts(sigtraps[n].name, shl_stdout); in c_kill() 1149 w = strlen(sigtraps[j].name); in c_kill() 1152 w = strlen(sigtraps[j].mess); in c_kill() 1155 w = utf_mbswidth(sigtraps[j].mess); in c_kill() 2090 Trap *p = sigtraps; in c_trap()
|
D | exec.c | 862 setexecsig(&sigtraps[SIGINT], SS_RESTORE_ORIG); in comexec() 863 setexecsig(&sigtraps[SIGQUIT], SS_RESTORE_ORIG); in comexec()
|
D | sh.h | 1315 extern Trap sigtraps[ksh_NSIG + 1];
|