Home
last modified time | relevance | path

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

/external/mksh/src/
Dhistrap.c32 Trap sigtraps[NSIG + 1]; variable
980 sigtraps[i].signal = i; in inittraps()
982 sigtraps[i].name = "ERR"; in inittraps()
983 sigtraps[i].mess = "Error handler"; in inittraps()
995 sigtraps[i].name = shf_smprintf("%d", i); in inittraps()
1008 sigtraps[i].name = s; in inittraps()
1013 sigtraps[i].mess = sys_siglist[i]; in inittraps()
1015 sigtraps[i].mess = strsignal(i); in inittraps()
1017 sigtraps[i].mess = NULL; in inittraps()
1019 if ((sigtraps[i].mess == NULL) || in inittraps()
[all …]
Djobs.c175 setsig(&sigtraps[SIGCHLD], j_sigchld, in j_init()
179 setsig(&sigtraps[SIGCHLD], SIG_DFL, SS_RESTORE_ORIG|SS_FORCE); in j_init()
200 sigtraps[tt_sigs[i]].flags |= TF_SHELL_USES; in j_init()
202 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_init()
300 setsig(&sigtraps[SIGTTIN], SIG_DFL, in j_change()
319 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change()
346 setsig(&sigtraps[tt_sigs[i]], SIG_IGN, in j_change()
350 if (sigtraps[tt_sigs[i]].flags & in j_change()
352 setsig(&sigtraps[tt_sigs[i]], in j_change()
353 (sigtraps[tt_sigs[i]].flags & TF_ORIG_IGN) ? in j_change()
[all …]
Dmain.c534 sigtraps[SIGWINCH].flags |= TF_SHELL_USES; in main_init()
535 setsig(&sigtraps[SIGWINCH], x_sigwinch, in main_init()
893 ((i == LERROR || i == LINTR) && sigtraps[ksh_SIGEXIT].trap)) { in unwind()
895 runtrap(&sigtraps[ksh_SIGEXIT], trap_nested == 1); in unwind()
900 runtrap(&sigtraps[ksh_SIGERR], trap_nested == 1); in unwind()
996 setsig(&sigtraps[sig], SIG_DFL, in quitenv()
Dfuncs.c1293 ki->name_width, sigtraps[i].name, in kill_fmt_entry()
1294 sigtraps[i].mess); in kill_fmt_entry()
1352 shprintf("%s\n", sigtraps[n].name); in c_kill()
1365 w = strlen(sigtraps[j].name); in c_kill()
1368 w = strlen(sigtraps[j].mess); in c_kill()
1371 w = utf_mbswidth(sigtraps[j].mess); in c_kill()
2256 for (p = sigtraps, i = NSIG+1; --i >= 0; p++) in c_trap()
Dexec.c816 setexecsig(&sigtraps[SIGINT], SS_RESTORE_ORIG); in comexec()
817 setexecsig(&sigtraps[SIGQUIT], SS_RESTORE_ORIG); in comexec()
Dsh.h883 extern Trap sigtraps[NSIG+1];