/linux-4.1.27/arch/sparc/kernel/ |
H A D | sys_sparc_32.c | 167 struct old_sigaction __user *,oact) SYSCALL_DEFINE3() 170 return sys_sigaction(-sig, act, oact); SYSCALL_DEFINE3() 175 struct sigaction __user *, oact, SYSCALL_DEFINE5() 192 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE5() 194 if (!ret && oact) { SYSCALL_DEFINE5() 195 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) SYSCALL_DEFINE5()
|
H A D | sys_sparc32.c | 148 struct compat_old_sigaction __user *,oact) COMPAT_SYSCALL_DEFINE3() 151 return compat_sys_sigaction(-sig, act, oact); COMPAT_SYSCALL_DEFINE3() 156 struct compat_sigaction __user *,oact, COMPAT_SYSCALL_DEFINE5() 183 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); COMPAT_SYSCALL_DEFINE5() 185 if (!ret && oact) { COMPAT_SYSCALL_DEFINE5() 187 ret = put_user(ptr_to_compat(old_ka.sa.sa_handler), &oact->sa_handler); COMPAT_SYSCALL_DEFINE5() 188 ret |= copy_to_user(&oact->sa_mask, &set32, sizeof(compat_sigset_t)); COMPAT_SYSCALL_DEFINE5() 189 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); COMPAT_SYSCALL_DEFINE5() 190 ret |= put_user(ptr_to_compat(old_ka.sa.sa_restorer), &oact->sa_restorer); COMPAT_SYSCALL_DEFINE5()
|
H A D | sys_sparc_64.c | 618 struct sigaction __user *, oact, void __user *, restorer, SYSCALL_DEFINE5() 634 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE5() 636 if (!ret && oact) { SYSCALL_DEFINE5() 637 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) SYSCALL_DEFINE5()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | signal.c | 59 struct osf_sigaction __user *, oact) SYSCALL_DEFINE3() 75 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE3() 77 if (!ret && oact) { SYSCALL_DEFINE3() 78 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || SYSCALL_DEFINE3() 79 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || SYSCALL_DEFINE3() 80 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || SYSCALL_DEFINE3() 81 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) SYSCALL_DEFINE3() 89 struct sigaction __user *, oact, SYSCALL_DEFINE5() 105 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE5() 107 if (!ret && oact) { SYSCALL_DEFINE5() 108 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) SYSCALL_DEFINE5()
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | signal.c | 316 struct sigaction __user *, oact) SYSCALL_DEFINE3() 336 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE3() 338 if (!ret && oact) { SYSCALL_DEFINE3() 339 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact))) SYSCALL_DEFINE3() 341 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); SYSCALL_DEFINE3() 342 err |= __put_user(old_ka.sa.sa_handler, &oact->sa_handler); SYSCALL_DEFINE3() 343 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); SYSCALL_DEFINE3() 344 err |= __put_user(0, &oact->sa_mask.sig[1]); SYSCALL_DEFINE3() 345 err |= __put_user(0, &oact->sa_mask.sig[2]); SYSCALL_DEFINE3() 346 err |= __put_user(0, &oact->sa_mask.sig[3]); SYSCALL_DEFINE3()
|
H A D | signal32.c | 317 struct compat_sigaction __user *, oact) 339 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); 341 if (!ret && oact) { 342 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact))) 344 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); 346 &oact->sa_handler); 347 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); 348 err |= __put_user(0, &oact->sa_mask.sig[1]); 349 err |= __put_user(0, &oact->sa_mask.sig[2]); 350 err |= __put_user(0, &oact->sa_mask.sig[3]);
|
/linux-4.1.27/kernel/ |
H A D | signal.c | 3101 int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact) do_sigaction() argument 3113 if (oact) do_sigaction() 3114 *oact = *k; do_sigaction() 3349 * @oact: used to save the previous sigaction 3354 struct sigaction __user *, oact, SYSCALL_DEFINE4() 3369 ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old_sa : NULL); SYSCALL_DEFINE4() 3371 if (!ret && oact) { SYSCALL_DEFINE4() 3372 if (copy_to_user(oact, &old_sa.sa, sizeof(old_sa.sa))) SYSCALL_DEFINE4() 3381 struct compat_sigaction __user *, oact, COMPAT_SYSCALL_DEFINE4() 3410 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); COMPAT_SYSCALL_DEFINE4() 3411 if (!ret && oact) { COMPAT_SYSCALL_DEFINE4() 3414 &oact->sa_handler); COMPAT_SYSCALL_DEFINE4() 3415 ret |= copy_to_user(&oact->sa_mask, &mask, sizeof(mask)); COMPAT_SYSCALL_DEFINE4() 3416 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); COMPAT_SYSCALL_DEFINE4() 3419 &oact->sa_restorer); COMPAT_SYSCALL_DEFINE4() 3430 struct old_sigaction __user *, oact) SYSCALL_DEFINE3() 3449 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); SYSCALL_DEFINE3() 3451 if (!ret && oact) { SYSCALL_DEFINE3() 3452 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || SYSCALL_DEFINE3() 3453 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || SYSCALL_DEFINE3() 3454 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer) || SYSCALL_DEFINE3() 3455 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || SYSCALL_DEFINE3() 3456 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) SYSCALL_DEFINE3() 3466 struct compat_old_sigaction __user *, oact) COMPAT_SYSCALL_DEFINE3() 3489 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); COMPAT_SYSCALL_DEFINE3() 3491 if (!ret && oact) { COMPAT_SYSCALL_DEFINE3() 3492 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || COMPAT_SYSCALL_DEFINE3() 3494 &oact->sa_handler) || COMPAT_SYSCALL_DEFINE3() 3496 &oact->sa_restorer) || COMPAT_SYSCALL_DEFINE3() 3497 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || COMPAT_SYSCALL_DEFINE3() 3498 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) COMPAT_SYSCALL_DEFINE3()
|
/linux-4.1.27/include/linux/ |
H A D | compat.h | 392 struct compat_old_sigaction __user *oact);
|