Lines Matching refs:sigtraps
32 Trap sigtraps[ksh_NSIG + 1];
1003 /* populate sigtraps based on sys_signame and sys_siglist */
1005 sigtraps[i].signal = i;
1016 sigtraps[i].name = null;
1029 sigtraps[i].name = s;
1033 if (!strcmp(sigtraps[i].name, "EXIT") ||
1034 !strcmp(sigtraps[i].name, "ERR")) {
1037 sigtraps[i].name);
1039 sigtraps[i].name = null;
1042 if (sigtraps[i].name == null)
1043 sigtraps[i].name = shf_smprintf(Tf_d, i);
1045 sigtraps[i].mess = sys_siglist[i];
1047 sigtraps[i].mess = strsignal(i);
1049 sigtraps[i].mess = NULL;
1051 if ((sigtraps[i].mess == NULL) ||
1052 (sigtraps[i].mess[0] == '\0'))
1053 sigtraps[i].mess = shf_smprintf(Tf_sd,
1056 sigtraps[ksh_SIGEXIT].signal = ksh_SIGEXIT;
1057 sigtraps[ksh_SIGEXIT].name = "EXIT";
1058 sigtraps[ksh_SIGEXIT].mess = "Exit trap";
1059 sigtraps[ksh_SIGERR].signal = ksh_SIGERR;
1060 sigtraps[ksh_SIGERR].name = "ERR";
1061 sigtraps[ksh_SIGERR].mess = "Error handler";
1067 sigtraps[SIGINT].flags |= TF_DFL_INTR | TF_TTY_INTR;
1068 sigtraps[SIGQUIT].flags |= TF_DFL_INTR | TF_TTY_INTR;
1070 sigtraps[SIGTERM].flags |= TF_DFL_INTR;
1071 sigtraps[SIGHUP].flags |= TF_FATAL;
1072 sigtraps[SIGCHLD].flags |= TF_SHELL_USES;
1075 setsig(&sigtraps[SIGINT], trapsig, SS_RESTORE_ORIG);
1076 setsig(&sigtraps[SIGQUIT], trapsig, SS_RESTORE_ORIG);
1077 setsig(&sigtraps[SIGTERM], trapsig, SS_RESTORE_ORIG);
1078 setsig(&sigtraps[SIGHUP], trapsig, SS_RESTORE_ORIG);
1086 sigtraps[SIGALRM].flags |= TF_SHELL_USES;
1087 setsig(&sigtraps[SIGALRM], alarm_catcher,
1119 (&sigtraps[i]) : NULL);
1143 p = sigtraps;
1169 Trap *p = &sigtraps[i];
1202 Trap *p = sigtraps;
1223 Trap *p = sigtraps;
1242 Trap *p = sigtraps;
1336 Trap *p = sigtraps;
1355 Trap *p = sigtraps;
1409 Trap *p = &sigtraps[SIGPIPE];
1427 setsig(&sigtraps[SIGPIPE], SIG_DFL, SS_RESTORE_CURR);