Home
last modified time | relevance | path

Searched refs:sigtraps (Results 1 – 6 of 6) sorted by relevance

/external/mksh/src/
Dhistrap.c32 Trap sigtraps[ksh_NSIG + 1]; variable
1066 sigtraps[i].signal = i; in inittraps()
1077 sigtraps[i].name = null; in inittraps()
1090 sigtraps[i].name = s; in inittraps()
1094 if (!strcmp(sigtraps[i].name, "EXIT") || in inittraps()
1095 !strcmp(sigtraps[i].name, "ERR")) { in inittraps()
1097 internal_warningf(Tinvname, sigtraps[i].name, in inittraps()
1100 sigtraps[i].name = null; in inittraps()
1103 if (sigtraps[i].name == null) in inittraps()
1104 sigtraps[i].name = shf_smprintf(Tf_d, i); in inittraps()
[all …]
Djobs.c180 setsig(&sigtraps[SIGCHLD], j_sigchld, in j_init()
184 setsig(&sigtraps[SIGCHLD], SIG_DFL, SS_RESTORE_ORIG|SS_FORCE); in j_init()
205 sigtraps[tt_sigs[i]].flags |= TF_SHELL_USES; in j_init()
207 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_init()
353 setsig(&sigtraps[SIGTTIN], SIG_DFL, in j_change()
372 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change()
399 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change()
403 if (sigtraps[tt_sigs[i]].flags & in j_change()
405 setsig(&sigtraps[tt_sigs[i]], in j_change()
406 (sigtraps[tt_sigs[i]].flags & TF_ORIG_IGN) ? in j_change()
[all …]
Dmain.c591 sigtraps[SIGWINCH].flags |= TF_SHELL_USES; in main_init()
592 setsig(&sigtraps[SIGWINCH], x_sigwinch, in main_init()
984 sigtraps[ksh_SIGEXIT].trap && in unwind()
987 runtrap(&sigtraps[ksh_SIGEXIT], trap_nested == 1); in unwind()
992 runtrap(&sigtraps[ksh_SIGERR], trap_nested == 1); in unwind()
1089 setsig(&sigtraps[sig], SIG_DFL, in quitenv()
Dfuncs.c1073 ki->name_width, sigtraps[i].name, in kill_fmt_entry()
1074 sigtraps[i].mess); in kill_fmt_entry()
1133 shprintf(Tf_sN, sigtraps[n].name); in c_kill()
1140 shf_puts(sigtraps[n].name, shl_stdout); in c_kill()
1155 w = strlen(sigtraps[j].name); in c_kill()
1158 w = strlen(sigtraps[j].mess); in c_kill()
1161 w = utf_mbswidth(sigtraps[j].mess); in c_kill()
2077 Trap *p = sigtraps; in c_trap()
Dexec.c852 setexecsig(&sigtraps[SIGINT], SS_RESTORE_ORIG); in comexec()
853 setexecsig(&sigtraps[SIGQUIT], SS_RESTORE_ORIG); in comexec()
Dsh.h1381 extern Trap sigtraps[ksh_NSIG + 1];