• Home
  • Raw
  • Download

Lines Matching refs:sigtraps

32 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()
1106 sigtraps[i].mess = sys_siglist[i]; in inittraps()
1108 sigtraps[i].mess = strsignal(i); in inittraps()
1110 sigtraps[i].mess = NULL; in inittraps()
1112 if ((sigtraps[i].mess == NULL) || in inittraps()
1113 (sigtraps[i].mess[0] == '\0')) in inittraps()
1114 sigtraps[i].mess = shf_smprintf(Tf_sd, in inittraps()
1117 sigtraps[ksh_SIGEXIT].signal = ksh_SIGEXIT; in inittraps()
1118 sigtraps[ksh_SIGEXIT].name = "EXIT"; in inittraps()
1119 sigtraps[ksh_SIGEXIT].mess = "Exit trap"; in inittraps()
1120 sigtraps[ksh_SIGERR].signal = ksh_SIGERR; in inittraps()
1121 sigtraps[ksh_SIGERR].name = "ERR"; in inittraps()
1122 sigtraps[ksh_SIGERR].mess = "Error handler"; in inittraps()
1128 sigtraps[SIGINT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1129 sigtraps[SIGQUIT].flags |= TF_DFL_INTR | TF_TTY_INTR; in inittraps()
1131 sigtraps[SIGTERM].flags |= TF_DFL_INTR; in inittraps()
1132 sigtraps[SIGHUP].flags |= TF_FATAL; in inittraps()
1133 sigtraps[SIGCHLD].flags |= TF_SHELL_USES; in inittraps()
1136 setsig(&sigtraps[SIGINT], trapsig, SS_RESTORE_ORIG); in inittraps()
1137 setsig(&sigtraps[SIGQUIT], trapsig, SS_RESTORE_ORIG); in inittraps()
1138 setsig(&sigtraps[SIGTERM], trapsig, SS_RESTORE_ORIG); in inittraps()
1139 setsig(&sigtraps[SIGHUP], trapsig, SS_RESTORE_ORIG); in inittraps()
1147 sigtraps[SIGALRM].flags |= TF_SHELL_USES; in alarm_init()
1148 setsig(&sigtraps[SIGALRM], alarm_catcher, in alarm_init()
1180 (&sigtraps[i]) : NULL); in gettrap()
1204 p = sigtraps; in gettrap()
1230 Trap *p = &sigtraps[i]; in trapsig()
1263 Trap *p = sigtraps; in fatal_trap_check()
1284 Trap *p = sigtraps; in trap_pending()
1303 Trap *p = sigtraps; in runtraps()
1397 Trap *p = sigtraps; in cleartraps()
1416 Trap *p = sigtraps; in restoresigs()
1470 Trap *p = &sigtraps[SIGPIPE]; in block_pipe()
1488 setsig(&sigtraps[SIGPIPE], SIG_DFL, SS_RESTORE_CURR); in restore_pipe()