Home
last modified time | relevance | path

Searched refs:new_ka (Results 1 – 21 of 21) sorted by relevance

/linux-2.6.39/arch/um/sys-i386/
Dsyscalls.c40 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
46 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
47 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
49 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
51 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
54 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/sparc/kernel/
Dsys_sparc_32.c187 struct k_sigaction new_ka, old_ka; in sparc_sigaction() local
197 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sparc_sigaction()
198 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sparc_sigaction()
200 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sparc_sigaction()
202 siginitset(&new_ka.sa.sa_mask, mask); in sparc_sigaction()
203 new_ka.ka_restorer = NULL; in sparc_sigaction()
206 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sparc_sigaction()
232 struct k_sigaction new_ka, old_ka; in sys_rt_sigaction() local
240 new_ka.ka_restorer = restorer; in sys_rt_sigaction()
241 if (copy_from_user(&new_ka.sa, act, sizeof(*act))) in sys_rt_sigaction()
[all …]
Dsys_sparc32.c312 struct k_sigaction new_ka, old_ka; in compat_sys_sigaction() local
323 new_ka.sa.sa_handler = compat_ptr(u_handler); in compat_sys_sigaction()
325 new_ka.sa.sa_restorer = compat_ptr(u_restorer); in compat_sys_sigaction()
326 ret |= __get_user(new_ka.sa.sa_flags, &act->sa_flags); in compat_sys_sigaction()
330 new_ka.ka_restorer = NULL; in compat_sys_sigaction()
331 siginitset(&new_ka.sa.sa_mask, mask); in compat_sys_sigaction()
334 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in compat_sys_sigaction()
352 struct k_sigaction new_ka, old_ka; in compat_sys_rt_sigaction() local
363 new_ka.ka_restorer = restorer; in compat_sys_rt_sigaction()
365 new_ka.sa.sa_handler = compat_ptr(u_handler); in compat_sys_rt_sigaction()
[all …]
Dsys_sparc_64.c739 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE5() local
747 new_ka.ka_restorer = restorer; in SYSCALL_DEFINE5()
748 if (copy_from_user(&new_ka.sa, act, sizeof(*act))) in SYSCALL_DEFINE5()
752 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5()
/linux-2.6.39/arch/x86/ia32/
Dsys_ia32.c179 struct k_sigaction new_ka, old_ka; in sys32_rt_sigaction() local
192 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in sys32_rt_sigaction()
197 new_ka.sa.sa_handler = compat_ptr(handler); in sys32_rt_sigaction()
198 new_ka.sa.sa_restorer = compat_ptr(restorer); in sys32_rt_sigaction()
205 case 4: new_ka.sa.sa_mask.sig[3] = set32.sig[6] in sys32_rt_sigaction()
207 case 3: new_ka.sa.sa_mask.sig[2] = set32.sig[4] in sys32_rt_sigaction()
209 case 2: new_ka.sa.sa_mask.sig[1] = set32.sig[2] in sys32_rt_sigaction()
211 case 1: new_ka.sa.sa_mask.sig[0] = set32.sig[0] in sys32_rt_sigaction()
216 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction()
254 struct k_sigaction new_ka, old_ka; in sys32_sigaction() local
[all …]
/linux-2.6.39/arch/s390/kernel/
Dcompat_signal.c166 struct k_sigaction new_ka, old_ka; in sys32_sigaction() local
175 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in sys32_sigaction()
178 new_ka.sa.sa_handler = (__sighandler_t) sa_handler; in sys32_sigaction()
179 new_ka.sa.sa_restorer = (void (*)(void)) sa_restorer; in sys32_sigaction()
180 siginitset(&new_ka.sa.sa_mask, mask); in sys32_sigaction()
183 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction()
203 struct k_sigaction new_ka, old_ka; in sys32_rt_sigaction() local
217 case 4: new_ka.sa.sa_mask.sig[3] = set32.sig[6] in sys32_rt_sigaction()
219 case 3: new_ka.sa.sa_mask.sig[2] = set32.sig[4] in sys32_rt_sigaction()
221 case 2: new_ka.sa.sa_mask.sig[1] = set32.sig[2] in sys32_rt_sigaction()
[all …]
Dsignal.c77 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local
83 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in SYSCALL_DEFINE3()
84 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) || in SYSCALL_DEFINE3()
85 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in SYSCALL_DEFINE3()
88 siginitset(&new_ka.sa.sa_mask, mask); in SYSCALL_DEFINE3()
91 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
/linux-2.6.39/arch/powerpc/kernel/
Dsignal_32.c132 static inline int get_old_sigaction(struct k_sigaction *new_ka, in get_old_sigaction() argument
140 __get_user(new_ka->sa.sa_flags, &act->sa_flags) || in get_old_sigaction()
143 new_ka->sa.sa_handler = compat_ptr(handler); in get_old_sigaction()
144 new_ka->sa.sa_restorer = compat_ptr(restorer); in get_old_sigaction()
145 siginitset(&new_ka->sa.sa_mask, mask); in get_old_sigaction()
198 static inline int get_old_sigaction(struct k_sigaction *new_ka, in get_old_sigaction() argument
204 __get_user(new_ka->sa.sa_handler, &act->sa_handler) || in get_old_sigaction()
205 __get_user(new_ka->sa.sa_restorer, &act->sa_restorer)) in get_old_sigaction()
207 __get_user(new_ka->sa.sa_flags, &act->sa_flags); in get_old_sigaction()
209 siginitset(&new_ka->sa.sa_mask, mask); in get_old_sigaction()
[all …]
/linux-2.6.39/arch/alpha/kernel/
Dsignal.c64 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local
70 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in SYSCALL_DEFINE3()
71 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in SYSCALL_DEFINE3()
74 siginitset(&new_ka.sa.sa_mask, mask); in SYSCALL_DEFINE3()
75 new_ka.ka_restorer = NULL; in SYSCALL_DEFINE3()
78 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
95 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE5() local
103 new_ka.ka_restorer = restorer; in SYSCALL_DEFINE5()
104 if (copy_from_user(&new_ka.sa, act, sizeof(*act))) in SYSCALL_DEFINE5()
108 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE5()
/linux-2.6.39/arch/cris/arch-v10/kernel/
Dsignal.c68 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
74 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
75 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
77 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
79 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
82 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/frv/kernel/
Dsignal.c60 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
66 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
67 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
69 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
71 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
74 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/h8300/kernel/
Dsignal.c112 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
118 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
119 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
121 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
123 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
126 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/mn10300/kernel/
Dsignal.c61 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
67 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
68 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) || in sys_sigaction()
69 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in sys_sigaction()
72 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
75 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/sh/kernel/
Dsignal_32.c79 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
85 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
86 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
88 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
90 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
93 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
Dsignal_64.c229 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
235 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
236 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
238 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
240 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
243 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/m68k/kernel/
Dsignal_no.c81 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
87 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
88 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) || in sys_sigaction()
89 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in sys_sigaction()
92 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
95 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
Dsignal_mm.c118 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
124 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
125 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) || in sys_sigaction()
126 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in sys_sigaction()
129 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
132 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/arm/kernel/
Dsignal.c86 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
92 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in sys_sigaction()
93 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) in sys_sigaction()
95 __get_user(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
97 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
100 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/x86/kernel/
Dsignal.c506 struct k_sigaction new_ka, old_ka; in sys_sigaction() local
516 get_user_ex(new_ka.sa.sa_handler, &act->sa_handler); in sys_sigaction()
517 get_user_ex(new_ka.sa.sa_flags, &act->sa_flags); in sys_sigaction()
519 get_user_ex(new_ka.sa.sa_restorer, &act->sa_restorer); in sys_sigaction()
524 siginitset(&new_ka.sa.sa_mask, mask); in sys_sigaction()
527 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
/linux-2.6.39/arch/mips/kernel/
Dsignal.c303 struct k_sigaction new_ka, old_ka; in SYSCALL_DEFINE3() local
312 err |= __get_user(new_ka.sa.sa_handler, &act->sa_handler); in SYSCALL_DEFINE3()
313 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags); in SYSCALL_DEFINE3()
318 siginitset(&new_ka.sa.sa_mask, mask); in SYSCALL_DEFINE3()
321 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
Dsignal32.c336 struct k_sigaction new_ka, old_ka; variable
347 new_ka.sa.sa_handler = (void __user *)(s64)handler;
348 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags);
353 siginitset(&new_ka.sa.sa_mask, mask);
356 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);