Lines Matching refs:sigtraps
32 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()
1107 sigtraps[i].mess = sys_siglist[i]; in inittraps()
1109 sigtraps[i].mess = strsignal(i); in inittraps()
1111 sigtraps[i].mess = NULL; in inittraps()
1113 if ((sigtraps[i].mess == NULL) || in inittraps()
1114 (sigtraps[i].mess[0] == '\0')) in inittraps()
1115 sigtraps[i].mess = shf_smprintf(Tf_sd, in inittraps()
1118 sigtraps[ksh_SIGEXIT].signal = ksh_SIGEXIT; in inittraps()
1119 sigtraps[ksh_SIGEXIT].name = "EXIT"; in inittraps()
1120 sigtraps[ksh_SIGEXIT].mess = "Exit trap"; in inittraps()
1121 sigtraps[ksh_SIGERR].signal = ksh_SIGERR; in inittraps()
1122 sigtraps[ksh_SIGERR].name = "ERR"; in inittraps()
1123 sigtraps[ksh_SIGERR].mess = "Error handler"; in inittraps()
1129 sigtraps[SIGINT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1130 sigtraps[SIGQUIT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1132 sigtraps[SIGTERM].flags |= TF_DFL_INTR; in inittraps()
1133 sigtraps[SIGHUP].flags |= TF_FATAL; in inittraps()
1134 sigtraps[SIGCHLD].flags |= TF_SHELL_USES; in inittraps()
1137 setsig(&sigtraps[SIGINT], trapsig, SS_RESTORE_ORIG); in inittraps()
1138 setsig(&sigtraps[SIGQUIT], trapsig, SS_RESTORE_ORIG); in inittraps()
1139 setsig(&sigtraps[SIGTERM], trapsig, SS_RESTORE_ORIG); in inittraps()
1140 setsig(&sigtraps[SIGHUP], trapsig, SS_RESTORE_ORIG); in inittraps()
1148 sigtraps[SIGALRM].flags |= TF_SHELL_USES; in alarm_init()
1149 setsig(&sigtraps[SIGALRM], alarm_catcher, in alarm_init()
1181 (&sigtraps[i]) : NULL); in gettrap()
1205 p = sigtraps; in gettrap()
1231 Trap *p = &sigtraps[i]; in trapsig()
1264 Trap *p = sigtraps; in fatal_trap_check()
1285 Trap *p = sigtraps; in trap_pending()
1304 Trap *p = sigtraps; in runtraps()
1398 Trap *p = sigtraps; in cleartraps()
1417 Trap *p = sigtraps; in restoresigs()
1471 Trap *p = &sigtraps[SIGPIPE]; in block_pipe()
1489 setsig(&sigtraps[SIGPIPE], SIG_DFL, SS_RESTORE_CURR); in restore_pipe()