Lines Matching refs:sig
32 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc)
38 if (sig == SIGSEGV) {
44 /* enable signals if sig isn't IRQ signal */
45 if ((sig != SIGIO) && (sig != SIGWINCH))
48 (*sig_info[sig])(sig, si, &r);
69 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc)
74 if (!enabled && (sig == SIGIO)) {
81 sig_handler_common(sig, si, mc);
97 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc)
139 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc)
149 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {
163 static void hard_handler(int sig, siginfo_t *si, void *p)
167 unsigned long pending = 1UL << sig;
189 while ((sig = ffs(pending)) != 0){
190 sig--;
191 pending &= ~(1 << sig);
192 (*handlers[sig])(sig, (struct siginfo *)si, mc);
206 void set_handler(int sig)
220 if (sig == SIGSEGV)
223 if (sigismember(&action.sa_mask, sig))
228 if (sigaction(sig, &action, NULL) < 0)
232 sigaddset(&sig_mask, sig);