Lines Matching refs:sig
33 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument
39 if (sig == SIGSEGV) { in sig_handler_common()
46 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common()
49 (*sig_info[sig])(sig, si, &r); in sig_handler_common()
75 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument
79 if ((signals_blocked || !enabled) && (sig == SIGIO)) { in sig_handler()
95 sig_handler_common(sig, si, mc); in sig_handler()
111 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument
153 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in sigusr1_handler() argument
163 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {
177 static void hard_handler(int sig, siginfo_t *si, void *p) in hard_handler() argument
181 unsigned long pending = 1UL << sig; in hard_handler()
203 while ((sig = ffs(pending)) != 0){ in hard_handler()
204 sig--; in hard_handler()
205 pending &= ~(1 << sig); in hard_handler()
206 (*handlers[sig])(sig, (struct siginfo *)si, mc); in hard_handler()
220 void set_handler(int sig) in set_handler() argument
234 if (sig == SIGSEGV) in set_handler()
237 if (sigismember(&action.sa_mask, sig)) in set_handler()
242 if (sigaction(sig, &action, NULL) < 0) in set_handler()
246 sigaddset(&sig_mask, sig); in set_handler()