Lines Matching refs:sig

138 sys_sigaction(int sig, const struct old_sigaction *act,  in sys_sigaction()  argument
155 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
163 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
220 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in sys_sigreturn()
300 static inline int map_signal(int sig) in map_signal() argument
304 && sig < 32) in map_signal()
305 return current->exec_domain->signal_invmap[sig]; in map_signal()
307 return sig; in map_signal()
310 static void setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
317 if (__copy_to_user(&frame->sc.oldmask, &set->sig, _SIGMASK_COPY_SIZE)) in setup_frame()
345 regs->gprs[2] = map_signal(sig); in setup_frame()
355 if (sig == SIGSEGV) in setup_frame()
360 static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, in setup_rt_frame() argument
402 regs->gprs[2] = map_signal(sig); in setup_rt_frame()
408 if (sig == SIGSEGV) in setup_rt_frame()
418 handle_signal(unsigned long sig, struct k_sigaction *ka, in handle_signal() argument
443 setup_rt_frame(sig, ka, info, oldset, regs); in handle_signal()
445 setup_frame(sig, ka, oldset, regs); in handle_signal()
453 sigaddset(&current->blocked,sig); in handle_signal()
533 ka = &current->sig->action[signr-1]; in do_signal()
560 struct signal_struct *sig; in do_signal() local
563 sig = current->p_pptr->sig; in do_signal()
564 if (sig && !(sig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP)) in do_signal()