Lines Matching refs:sigtraps
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()
1104 sigtraps[i].mess = sys_siglist[i]; in inittraps()
1106 sigtraps[i].mess = strsignal(i); in inittraps()
1108 sigtraps[i].mess = NULL; in inittraps()
1110 if ((sigtraps[i].mess == NULL) || in inittraps()
1111 (sigtraps[i].mess[0] == '\0')) in inittraps()
1112 sigtraps[i].mess = shf_smprintf(Tf_sd, in inittraps()
1115 sigtraps[ksh_SIGEXIT].signal = ksh_SIGEXIT; in inittraps()
1116 sigtraps[ksh_SIGEXIT].name = "EXIT"; in inittraps()
1117 sigtraps[ksh_SIGEXIT].mess = "Exit trap"; in inittraps()
1118 sigtraps[ksh_SIGERR].signal = ksh_SIGERR; in inittraps()
1119 sigtraps[ksh_SIGERR].name = "ERR"; in inittraps()
1120 sigtraps[ksh_SIGERR].mess = "Error handler"; in inittraps()
1126 sigtraps[SIGINT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1127 sigtraps[SIGQUIT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1129 sigtraps[SIGTERM].flags |= TF_DFL_INTR; in inittraps()
1130 sigtraps[SIGHUP].flags |= TF_FATAL; in inittraps()
1131 sigtraps[SIGCHLD].flags |= TF_SHELL_USES; in inittraps()
1134 setsig(&sigtraps[SIGINT], trapsig, SS_RESTORE_ORIG); in inittraps()
1135 setsig(&sigtraps[SIGQUIT], trapsig, SS_RESTORE_ORIG); in inittraps()
1136 setsig(&sigtraps[SIGTERM], trapsig, SS_RESTORE_ORIG); in inittraps()
1137 setsig(&sigtraps[SIGHUP], trapsig, SS_RESTORE_ORIG); in inittraps()
1145 sigtraps[SIGALRM].flags |= TF_SHELL_USES; in alarm_init()
1146 setsig(&sigtraps[SIGALRM], alarm_catcher, in alarm_init()
1178 (&sigtraps[i]) : NULL); in gettrap()
1202 p = sigtraps; in gettrap()
1228 Trap *p = &sigtraps[i]; in trapsig()
1261 Trap *p = sigtraps; in fatal_trap_check()
1282 Trap *p = sigtraps; in trap_pending()
1301 Trap *p = sigtraps; in runtraps()
1395 Trap *p = sigtraps; in cleartraps()
1414 Trap *p = sigtraps; in restoresigs()
1468 Trap *p = &sigtraps[SIGPIPE]; in block_pipe()
1486 setsig(&sigtraps[SIGPIPE], SIG_DFL, SS_RESTORE_CURR); in restore_pipe()