Home
last modified time | relevance | path

Searched refs:oact (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/arch/mips/kernel/
Dsignal32.c39 struct compat_sigaction __user *, oact)
61 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
63 if (!ret && oact) {
64 if (!access_ok(oact, sizeof(*oact)))
66 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags);
68 &oact->sa_handler);
69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
70 err |= __put_user(0, &oact->sa_mask.sig[1]);
71 err |= __put_user(0, &oact->sa_mask.sig[2]);
72 err |= __put_user(0, &oact->sa_mask.sig[3]);
Dsignal.c596 struct sigaction __user *, oact) in SYSCALL_DEFINE3() argument
616 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
618 if (!ret && oact) { in SYSCALL_DEFINE3()
619 if (!access_ok(oact, sizeof(*oact))) in SYSCALL_DEFINE3()
621 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in SYSCALL_DEFINE3()
622 err |= __put_user(old_ka.sa.sa_handler, &oact->sa_handler); in SYSCALL_DEFINE3()
623 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3()
624 err |= __put_user(0, &oact->sa_mask.sig[1]); in SYSCALL_DEFINE3()
625 err |= __put_user(0, &oact->sa_mask.sig[2]); in SYSCALL_DEFINE3()
626 err |= __put_user(0, &oact->sa_mask.sig[3]); in SYSCALL_DEFINE3()
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc32.c142 struct compat_old_sigaction __user *,oact) in COMPAT_SYSCALL_DEFINE3() argument
145 return compat_sys_sigaction(-sig, act, oact); in COMPAT_SYSCALL_DEFINE3()
150 struct compat_sigaction __user *,oact, in COMPAT_SYSCALL_DEFINE5() argument
175 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in COMPAT_SYSCALL_DEFINE5()
177 if (!ret && oact) { in COMPAT_SYSCALL_DEFINE5()
178 ret = put_user(ptr_to_compat(old_ka.sa.sa_handler), &oact->sa_handler); in COMPAT_SYSCALL_DEFINE5()
179 ret |= put_compat_sigset(&oact->sa_mask, &old_ka.sa.sa_mask, in COMPAT_SYSCALL_DEFINE5()
180 sizeof(oact->sa_mask)); in COMPAT_SYSCALL_DEFINE5()
181 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); in COMPAT_SYSCALL_DEFINE5()
182 ret |= put_user(ptr_to_compat(old_ka.sa.sa_restorer), &oact->sa_restorer); in COMPAT_SYSCALL_DEFINE5()
Dsys_sparc_32.c163 struct old_sigaction __user *,oact) in SYSCALL_DEFINE3() argument
166 return sys_sigaction(-sig, act, oact); in SYSCALL_DEFINE3()
171 struct sigaction __user *, oact, in SYSCALL_DEFINE5() argument
188 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5()
190 if (!ret && oact) { in SYSCALL_DEFINE5()
191 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in SYSCALL_DEFINE5()
Dsys_sparc_64.c680 struct sigaction __user *, oact, void __user *, restorer, in SYSCALL_DEFINE5() argument
696 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5()
698 if (!ret && oact) { in SYSCALL_DEFINE5()
699 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in SYSCALL_DEFINE5()
/linux-6.6.21/arch/alpha/kernel/
Dsignal.c61 struct osf_sigaction __user *, oact) in SYSCALL_DEFINE3() argument
77 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
79 if (!ret && oact) { in SYSCALL_DEFINE3()
80 if (!access_ok(oact, sizeof(*oact)) || in SYSCALL_DEFINE3()
81 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3()
82 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in SYSCALL_DEFINE3()
83 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3()
91 struct sigaction __user *, oact, in SYSCALL_DEFINE5() argument
107 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5()
109 if (!ret && oact) { in SYSCALL_DEFINE5()
[all …]
/linux-6.6.21/kernel/
Dsignal.c4119 struct k_sigaction *oact) in sigaction_compat_abi() argument
4123 int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact) in do_sigaction() argument
4139 if (oact) in do_sigaction()
4140 *oact = *k; in do_sigaction()
4155 if (oact) in do_sigaction()
4156 oact->sa.sa_flags &= UAPI_SA_FLAGS; in do_sigaction()
4158 sigaction_compat_abi(act, oact); in do_sigaction()
4448 struct sigaction __user *, oact, in SYSCALL_DEFINE4() argument
4461 ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old_sa : NULL); in SYSCALL_DEFINE4()
4465 if (oact && copy_to_user(oact, &old_sa.sa, sizeof(old_sa.sa))) in SYSCALL_DEFINE4()
[all …]
/linux-6.6.21/include/linux/
Dptrace.h402 extern void sigaction_compat_abi(struct k_sigaction *act, struct k_sigaction *oact);
Dcompat.h858 struct compat_old_sigaction __user *oact);
/linux-6.6.21/arch/x86/kernel/
Dsignal_64.c392 void sigaction_compat_abi(struct k_sigaction *act, struct k_sigaction *oact) in sigaction_compat_abi() argument
/linux-6.6.21/Documentation/trace/
Dftrace.rst3655 …bash-1998 [000] d... 140.733516: sys_rt_sigaction(sig: 2, act: 7fff718846f0, oact: 7fff71884650…