Lines Matching refs:sig
34 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument
40 if (sig == SIGSEGV) { in sig_handler_common()
47 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common()
50 (*sig_info[sig])(sig, si, &r); in sig_handler_common()
74 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument
81 (sig == SIGIO)) { in sig_handler()
89 if (!enabled && (sig == SIGIO)) { in sig_handler()
107 sig_handler_common(sig, si, mc); in sig_handler()
123 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument
165 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in sigusr1_handler() argument
175 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {
189 static void hard_handler(int sig, siginfo_t *si, void *p) in hard_handler() argument
193 unsigned long pending = 1UL << sig; in hard_handler()
215 while ((sig = ffs(pending)) != 0){ in hard_handler()
216 sig--; in hard_handler()
217 pending &= ~(1 << sig); in hard_handler()
218 (*handlers[sig])(sig, (struct siginfo *)si, mc); in hard_handler()
232 void set_handler(int sig) in set_handler() argument
246 if (sig == SIGSEGV) in set_handler()
249 if (sigismember(&action.sa_mask, sig)) in set_handler()
254 if (sigaction(sig, &action, NULL) < 0) in set_handler()
258 sigaddset(&sig_mask, sig); in set_handler()