Lines Matching refs:sig
33 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc)
39 if (sig == SIGSEGV) {
45 /* enable signals if sig isn't IRQ signal */
46 if ((sig != SIGIO) && (sig != SIGWINCH))
49 (*sig_info[sig])(sig, si, &r);
75 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc)
79 if ((signals_blocked || !enabled) && (sig == SIGIO)) {
95 sig_handler_common(sig, si, mc);
111 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc)
153 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc)
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)
181 unsigned long pending = 1UL << sig;
203 while ((sig = ffs(pending)) != 0){
204 sig--;
205 pending &= ~(1 << sig);
206 (*handlers[sig])(sig, (struct siginfo *)si, mc);
220 void set_handler(int sig)
234 if (sig == SIGSEGV)
237 if (sigismember(&action.sa_mask, sig))
242 if (sigaction(sig, &action, NULL) < 0)
246 sigaddset(&sig_mask, sig);