/arch/um/sys-i386/ |
D | syscalls.c | 177 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 191 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 195 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 196 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 198 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 199 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/sparc/kernel/ |
D | sys_sparc32.c | 328 struct k_sigaction new_ka, old_ka; in compat_sys_sigaction() local 350 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in compat_sys_sigaction() 353 ret = put_user(ptr_to_compat(old_ka.sa.sa_handler), &oact->sa_handler); in compat_sys_sigaction() 354 ret |= __put_user(ptr_to_compat(old_ka.sa.sa_restorer), &oact->sa_restorer); in compat_sys_sigaction() 355 ret |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in compat_sys_sigaction() 356 ret |= __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in compat_sys_sigaction() 368 struct k_sigaction new_ka, old_ka; in compat_sys_rt_sigaction() local 396 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in compat_sys_rt_sigaction() 400 case 4: set32.sig[7] = (old_ka.sa.sa_mask.sig[3] >> 32); set32.sig[6] = old_ka.sa.sa_mask.sig[3]; in compat_sys_rt_sigaction() 401 case 3: set32.sig[5] = (old_ka.sa.sa_mask.sig[2] >> 32); set32.sig[4] = old_ka.sa.sa_mask.sig[2]; in compat_sys_rt_sigaction() [all …]
|
D | sys_sparc_32.c | 355 struct k_sigaction new_ka, old_ka; in sparc_sigaction() local 374 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sparc_sigaction() 383 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sparc_sigaction() 384 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sparc_sigaction() 386 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sparc_sigaction() 387 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sparc_sigaction() 400 struct k_sigaction new_ka, old_ka; in sys_rt_sigaction() local 413 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_rt_sigaction() 416 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in sys_rt_sigaction()
|
D | sys_sparc_64.c | 770 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE5() local 783 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5() 786 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in SYSCALL_DEFINE5()
|
/arch/s390/kernel/ |
D | compat_signal.c | 164 struct k_sigaction new_ka, old_ka; in sys32_sigaction() local 181 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction() 184 sa_handler = (unsigned long) old_ka.sa.sa_handler; in sys32_sigaction() 185 sa_restorer = (unsigned long) old_ka.sa.sa_restorer; in sys32_sigaction() 189 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in sys32_sigaction() 190 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in sys32_sigaction() 201 struct k_sigaction new_ka, old_ka; in sys32_rt_sigaction() local 231 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction() 236 set32.sig[7] = (old_ka.sa.sa_mask.sig[3] >> 32); in sys32_rt_sigaction() 237 set32.sig[6] = old_ka.sa.sa_mask.sig[3]; in sys32_rt_sigaction() [all …]
|
D | signal.c | 76 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local 90 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 94 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3() 95 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer) || in SYSCALL_DEFINE3() 96 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in SYSCALL_DEFINE3() 97 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3()
|
/arch/x86/ia32/ |
D | sys_ia32.c | 219 struct k_sigaction new_ka, old_ka; in sys32_rt_sigaction() local 256 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction() 265 set32.sig[7] = (old_ka.sa.sa_mask.sig[3] >> 32); in sys32_rt_sigaction() 266 set32.sig[6] = old_ka.sa.sa_mask.sig[3]; in sys32_rt_sigaction() 268 set32.sig[5] = (old_ka.sa.sa_mask.sig[2] >> 32); in sys32_rt_sigaction() 269 set32.sig[4] = old_ka.sa.sa_mask.sig[2]; in sys32_rt_sigaction() 271 set32.sig[3] = (old_ka.sa.sa_mask.sig[1] >> 32); in sys32_rt_sigaction() 272 set32.sig[2] = old_ka.sa.sa_mask.sig[1]; in sys32_rt_sigaction() 274 set32.sig[1] = (old_ka.sa.sa_mask.sig[0] >> 32); in sys32_rt_sigaction() 275 set32.sig[0] = old_ka.sa.sa_mask.sig[0]; in sys32_rt_sigaction() [all …]
|
/arch/cris/arch-v10/kernel/ |
D | signal.c | 68 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 82 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 86 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 87 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 89 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 90 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/frv/kernel/ |
D | signal.c | 59 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 73 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 77 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 78 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 80 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 81 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/ia64/ia32/ |
D | ia32_signal.c | 489 struct k_sigaction new_ka, old_ka; in sys32_rt_sigaction() local 508 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction() 511 ret = put_user(IA32_SA_HANDLER(&old_ka), &oact->sa_handler); in sys32_rt_sigaction() 512 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys32_rt_sigaction() 513 ret |= put_user(IA32_SA_RESTORER(&old_ka), &oact->sa_restorer); in sys32_rt_sigaction() 514 ret |= copy_to_user(&oact->sa_mask, &old_ka.sa.sa_mask, sizeof(compat_sigset_t)); in sys32_rt_sigaction() 568 struct k_sigaction new_ka, old_ka; in sys32_sigaction() local 586 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction() 589 ret = put_user(IA32_SA_HANDLER(&old_ka), &oact->sa_handler); in sys32_sigaction() 590 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys32_sigaction() [all …]
|
/arch/h8300/kernel/ |
D | signal.c | 111 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 125 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 129 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 130 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 132 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 133 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/alpha/kernel/ |
D | signal.c | 89 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local 103 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 107 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3() 108 __put_user(old_ka.sa.sa_flags, &oact->sa_flags)) in SYSCALL_DEFINE3() 110 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in SYSCALL_DEFINE3() 120 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE5() local 133 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5() 136 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in SYSCALL_DEFINE5()
|
/arch/mn10300/kernel/ |
D | signal.c | 61 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 75 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 79 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 80 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 82 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 83 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/powerpc/kernel/ |
D | signal_32.c | 260 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 273 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 276 __put_user(to_user_ptr(old_ka.sa.sa_handler), in sys_sigaction() 278 __put_user(to_user_ptr(old_ka.sa.sa_restorer), in sys_sigaction() 280 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in sys_sigaction() 281 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in sys_sigaction() 601 struct k_sigaction new_ka, old_ka; in compat_sys_rt_sigaction() local 619 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in compat_sys_rt_sigaction() 621 ret = put_user(to_user_ptr(old_ka.sa.sa_handler), &oact->sa_handler); in compat_sys_rt_sigaction() 622 ret |= put_sigset_t(&oact->sa_mask, &old_ka.sa.sa_mask); in compat_sys_rt_sigaction() [all …]
|
/arch/sh/kernel/ |
D | signal_32.c | 68 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 82 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 86 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 87 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 89 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 90 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
D | signal_64.c | 228 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 242 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 246 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 247 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 249 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 250 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/arm/kernel/ |
D | signal.c | 107 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 121 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 125 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 126 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 128 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 129 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/m68knommu/kernel/ |
D | signal.c | 116 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 130 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 134 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 135 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 137 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 138 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/mips/kernel/ |
D | signal.c | 345 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local 363 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 368 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in SYSCALL_DEFINE3() 369 err |= __put_user(old_ka.sa.sa_handler, &oact->sa_handler); in SYSCALL_DEFINE3() 370 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3()
|
D | signal32.c | 355 struct k_sigaction new_ka, old_ka; variable 375 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); 380 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); 381 err |= __put_user((u32)(u64)old_ka.sa.sa_handler, 383 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
|
/arch/x86/kernel/ |
D | signal.c | 511 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 527 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 531 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 532 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 535 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 536 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|
/arch/m68k/kernel/ |
D | signal.c | 128 struct k_sigaction new_ka, old_ka; in sys_sigaction() local 142 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 146 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in sys_sigaction() 147 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) in sys_sigaction() 149 __put_user(old_ka.sa.sa_flags, &oact->sa_flags); in sys_sigaction() 150 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
|