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
1067 sigtraps[i].signal = i; in inittraps()
1078 sigtraps[i].name = null; in inittraps()
1091 sigtraps[i].name = s; in inittraps()
1095 if (!strcmp(sigtraps[i].name, "EXIT") || in inittraps()
1096 !strcmp(sigtraps[i].name, "ERR")) { in inittraps()
1098 internal_warningf(Tinvname, sigtraps[i].name, in inittraps()
1101 sigtraps[i].name = null; in inittraps()
1104 if (sigtraps[i].name == null) in inittraps()
1105 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.c1083 ki->name_width, sigtraps[i].name, in kill_fmt_entry()
1084 sigtraps[i].mess); in kill_fmt_entry()
1143 shprintf(Tf_sN, sigtraps[n].name); in c_kill()
1150 shf_puts(sigtraps[n].name, shl_stdout); in c_kill()
1165 w = strlen(sigtraps[j].name); in c_kill()
1168 w = strlen(sigtraps[j].mess); in c_kill()
1171 w = utf_mbswidth(sigtraps[j].mess); in c_kill()
2087 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.h1379 extern Trap sigtraps[ksh_NSIG + 1];