Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 139) sorted by relevance

123456

/linux-2.4.37.9/include/linux/
Dsignal.h33 unsigned long sig = _sig - 1; in sigaddset() local
35 set->sig[0] |= 1UL << sig; in sigaddset()
37 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset()
42 unsigned long sig = _sig - 1; in sigdelset() local
44 set->sig[0] &= ~(1UL << sig); in sigdelset()
46 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset()
51 unsigned long sig = _sig - 1; in sigismember() local
53 return 1 & (set->sig[0] >> sig); in sigismember()
55 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember()
63 #define sigmask(sig) (1UL << ((sig) - 1)) argument
[all …]
/linux-2.4.37.9/kernel/
Dsignal.c54 int sig = 0; in next_signal() local
56 s = tsk->pending.signal.sig; in next_signal()
57 m = mask->sig; in next_signal()
62 sig = ffz(~x) + i*_NSIG_BPW + 1; in next_signal()
68 sig = 1; in next_signal()
70 sig = _NSIG_BPW + 1; in next_signal()
73 sig += ffz(~x); in next_signal()
77 sig = ffz(~x) + 1; in next_signal()
81 return sig; in next_signal()
114 struct signal_struct * sig = tsk->sig; in exit_sighand() local
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
Dsignal32.c139 asmlinkage long sys32_sigaction(int sig, struct old_sigaction32 *act, struct old_sigaction32 *oact) in sys32_sigaction() argument
145 if (sig < 0) in sys32_sigaction()
146 sig = -sig; in sys32_sigaction()
162 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction()
169 ret |= __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys32_sigaction()
258 set.sig[0] = sigctx.oldmask + ((long)(sigctx._unused[3])<< 32); in sys32_sigreturn()
323 setup_frame32(struct pt_regs *regs, int sig, struct k_sigaction *ka, in setup_frame32() argument
377 regs->gpr[3] = sig; in setup_frame32()
394 if (sig == SIGSEGV) in setup_frame32()
512 asmlinkage long sys32_rt_sigaction(int sig, const struct sigaction32 *act, struct sigaction32 *oact… in sys32_rt_sigaction() argument
[all …]
/linux-2.4.37.9/arch/sparc64/solaris/
Dsignal.c56 static inline long mapsig(long sig) in mapsig() argument
58 if ((unsigned long)sig > SOLARIS_NSIGNALS) in mapsig()
60 return solaris_to_linux_signals[sig]; in mapsig()
63 asmlinkage int solaris_kill(int pid, int sig) in solaris_kill() argument
67 int s = mapsig(sig); in solaris_kill()
73 static long sig_handler(int sig, u32 arg, int one_shot) in sig_handler() argument
87 ret = sys_sigaction(sig, &sa, &old); in sig_handler()
93 static inline long solaris_signal(int sig, u32 arg) in solaris_signal() argument
95 return sig_handler (sig, arg, 1); in solaris_signal()
98 static long solaris_sigset(int sig, u32 arg) in solaris_sigset() argument
[all …]
/linux-2.4.37.9/arch/s390x/kernel/
Dsignal32.c140 case 4: newset.sig[3] = set32.sig[6] + (((long)set32.sig[7]) << 32); in sys32_rt_sigsuspend()
141 case 3: newset.sig[2] = set32.sig[4] + (((long)set32.sig[5]) << 32); in sys32_rt_sigsuspend()
142 case 2: newset.sig[1] = set32.sig[2] + (((long)set32.sig[3]) << 32); in sys32_rt_sigsuspend()
143 case 1: newset.sig[0] = set32.sig[0] + (((long)set32.sig[1]) << 32); in sys32_rt_sigsuspend()
163 sys32_sigaction(int sig, const struct old_sigaction32 *act, in sys32_sigaction() argument
180 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction()
188 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys32_sigaction()
195 do_sigaction(int sig, const struct k_sigaction *act, struct k_sigaction *oact);
198 sys32_rt_sigaction(int sig, const struct sigaction32 *act, in sys32_rt_sigaction() argument
214 case 4: new_ka.sa.sa_mask.sig[3] = set32.sig[6] in sys32_rt_sigaction()
[all …]
Dsignal.c138 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()
[all …]
/linux-2.4.37.9/arch/mips64/kernel/
Dsignal32.c51 unsigned int sig[_NSIG32_WORDS]; member
157 err |= __put_user (kbuf->sig[1] >> 32, &ubuf->sig[3]); in put_sigset()
158 err |= __put_user (kbuf->sig[1] & 0xffffffff, &ubuf->sig[2]); in put_sigset()
160 err |= __put_user (kbuf->sig[0] >> 32, &ubuf->sig[1]); in put_sigset()
161 err |= __put_user (kbuf->sig[0] & 0xffffffff, &ubuf->sig[0]); in put_sigset()
170 unsigned long sig[4]; in get_sigset() local
179 err |= __get_user (sig[3], &ubuf->sig[3]); in get_sigset()
180 err |= __get_user (sig[2], &ubuf->sig[2]); in get_sigset()
181 kbuf->sig[1] = sig[2] | (sig[3] << 32); in get_sigset()
183 err |= __get_user (sig[1], &ubuf->sig[1]); in get_sigset()
[all …]
/linux-2.4.37.9/include/asm-x86_64/
Dsignal.h20 unsigned long sig[_NSIG_WORDS]; member
170 unsigned long sig = _sig - 1;
171 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig & ~(_NSIG_BPW-1)));
182 #define sigismember(set,sig) \
183 (__builtin_constant_p(sig) ? \
184 __const_sigismember((set),(sig)) : \
185 __gen_sigismember((set),(sig)))
187 #define sigmask(sig) (1UL << ((sig) - 1))
/linux-2.4.37.9/include/asm-i386/
Dsignal.h20 unsigned long sig[_NSIG_WORDS]; member
194 unsigned long sig = _sig - 1; in __const_sigismember() local
195 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in __const_sigismember()
206 #define sigismember(set,sig) \ argument
207 (__builtin_constant_p(sig) ? \
208 __const_sigismember((set),(sig)) : \
209 __gen_sigismember((set),(sig)))
211 #define sigmask(sig) (1UL << ((sig) - 1)) argument
/linux-2.4.37.9/include/asm-m68k/
Dsignal.h20 unsigned long sig[_NSIG_WORDS]; member
193 unsigned long sig = _sig - 1; in __const_sigismember() local
194 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in __const_sigismember()
205 #define sigismember(set,sig) \ argument
206 (__builtin_constant_p(sig) ? \
207 __const_sigismember(set,sig) : \
208 __gen_sigismember(set,sig))
210 #define sigmask(sig) (1UL << ((sig) - 1)) argument
/linux-2.4.37.9/arch/sparc64/kernel/
Dsignal32.c209 case 4: set.sig[3] = set32.sig[6] + (((long)set32.sig[7]) << 32); in do_rt_sigsuspend32()
210 case 3: set.sig[2] = set32.sig[4] + (((long)set32.sig[5]) << 32); in do_rt_sigsuspend32()
211 case 2: set.sig[1] = set32.sig[2] + (((long)set32.sig[3]) << 32); in do_rt_sigsuspend32()
212 case 1: set.sig[0] = set32.sig[0] + (((long)set32.sig[1]) << 32); in do_rt_sigsuspend32()
327 case 4: set.sig[3] = seta[6] + (((long)seta[7]) << 32); in do_new_sigreturn32()
328 case 3: set.sig[2] = seta[4] + (((long)seta[5]) << 32); in do_new_sigreturn32()
329 case 2: set.sig[1] = seta[2] + (((long)seta[3]) << 32); in do_new_sigreturn32()
330 case 1: set.sig[0] = seta[0] + (((long)seta[1]) << 32); in do_new_sigreturn32()
374 case 4: set.sig[3] = seta[6] + (((long)seta[7]) << 32); in do_sigreturn32()
375 case 3: set.sig[2] = seta[4] + (((long)seta[5]) << 32); in do_sigreturn32()
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dtraps.c136 int sig, code; in ia64_bad_break() local
147 sig = SIGILL; code = ILL_ILLOPC; in ia64_bad_break()
151 sig = SIGFPE; code = FPE_INTDIV; in ia64_bad_break()
155 sig = SIGFPE; code = FPE_INTOVF; in ia64_bad_break()
159 sig = SIGFPE; code = FPE_FLTSUB; in ia64_bad_break()
163 sig = SIGSEGV; code = SEGV_MAPERR; in ia64_bad_break()
167 sig = SIGSEGV; code = BUS_ADRALN; in ia64_bad_break()
171 sig = SIGFPE; code = __FPE_DECOVF; in ia64_bad_break()
175 sig = SIGFPE; code = __FPE_DECDIV; in ia64_bad_break()
179 sig = SIGFPE; code = __FPE_DECERR; in ia64_bad_break()
[all …]
/linux-2.4.37.9/arch/s390/kernel/
Dsignal.c140 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument
157 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
165 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
222 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in sys_sigreturn()
248 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
302 static inline int map_signal(int sig) in map_signal() argument
306 && sig < 32) in map_signal()
307 return current->exec_domain->signal_invmap[sig]; in map_signal()
309 return sig; in map_signal()
312 static void setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dsignal.c123 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument
140 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
148 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
169 int sig; member
179 int sig; member
258 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
260 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn()
388 static void setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
401 && sig < 32 in setup_frame()
402 ? current->exec_domain->signal_invmap[sig] in setup_frame()
[all …]
Dmicrocode.c135 unsigned int sig; member
155 uci->sig = uci->pf = uci->rev = uci->cksum = 0; in collect_cpu_info()
164 uci->sig = cpuid_eax(0x00000001); in collect_cpu_info()
178 uci->sig, uci->pf, uci->rev); in collect_cpu_info()
181 static inline void mark_microcode_update (int cpu_num, microcode_header_t *mc_header, int sig, int … in mark_microcode_update() argument
193 dprintk(" Signature 0x%x\n", sig); in mark_microcode_update()
195 ((sig >> 12) & 0x3), in mark_microcode_update()
196 ((sig >> 8) & 0xf), in mark_microcode_update()
197 ((sig >> 4) & 0xf), in mark_microcode_update()
198 ((sig & 0xf))); in mark_microcode_update()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dsignal.c40 void ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
42 void ia32_setup_frame(int sig, struct k_sigaction *ka,
281 static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, in setup_rt_frame() argument
320 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); in setup_rt_frame()
330 printk("%s forgot to set SA_RESTORER for signal %d.\n", current->comm, sig); in setup_rt_frame()
344 if (unlikely(ed && ed->signal_invmap && sig < 32)) in setup_rt_frame()
345 sig = ed->signal_invmap[sig]; in setup_rt_frame()
347 regs->rdi = sig; in setup_rt_frame()
362 if (sig == SIGSEGV) in setup_rt_frame()
380 if (sig == SIGSEGV) in setup_rt_frame()
[all …]
/linux-2.4.37.9/arch/mips/kernel/
Dirixsig.c28 unsigned long sig[4]; member
73 "sigset<3>[%08lx]\n", (unsigned long) c->sigset.sig[0], in dump_irix5_sigctx()
74 (unsigned long) c->sigset.sig[1], in dump_irix5_sigctx()
75 (unsigned long) c->sigset.sig[2], in dump_irix5_sigctx()
76 (unsigned long) c->sigset.sig[3]); in dump_irix5_sigctx()
137 static inline void handle_signal(unsigned long sig, struct k_sigaction *ka, in handle_signal() argument
141 setup_irix_rt_frame(ka, regs, sig, oldset, info); in handle_signal()
143 setup_irix_frame(ka, regs, sig, oldset); in handle_signal()
150 sigaddset(&current->blocked,sig); in handle_signal()
225 ka = &current->sig->action[signr-1]; in do_irix_signal()
[all …]
/linux-2.4.37.9/arch/cris/kernel/
Dsignal.c156 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument
173 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
181 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
269 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
271 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn()
393 static void setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
405 err |= setup_sigcontext(&frame->sc, regs, set->sig[0]); in setup_frame()
410 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame()
436 regs->r10 = sig; /* first argument is signo */ in setup_frame()
445 if (sig == SIGSEGV) in setup_frame()
[all …]
/linux-2.4.37.9/arch/sh/kernel/
Dsignal.c127 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument
144 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
152 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
267 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
269 && __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn()
370 static void setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
384 && sig < 32 in setup_frame()
385 ? current->exec_domain->signal_invmap[sig] in setup_frame()
386 : sig; in setup_frame()
388 err |= setup_sigcontext(&frame->sc, regs, set->sig[0]); in setup_frame()
[all …]
/linux-2.4.37.9/drivers/net/wan/8253x/
D8253xnet.c268 mctlsig_t *sig; in sab8253x_check_statusN() local
277 sig = &port->dcd; in sab8253x_check_statusN()
278 if (stat->images[sig->irq] & sig->irqmask) in sab8253x_check_statusN()
280 sig->val = ISON(port,dcd); in sab8253x_check_statusN()
285 sig = &port->cts; in sab8253x_check_statusN()
286 if (stat->images[sig->irq] & sig->irqmask) in sab8253x_check_statusN()
288 sig->val = ISON(port,cts); in sab8253x_check_statusN()
293 sig = &port->dsr; in sab8253x_check_statusN()
294 if (stat->images[sig->irq] & sig->irqmask) in sab8253x_check_statusN()
296 sig->val = ISON(port,dsr); in sab8253x_check_statusN()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/
Dsys_ia32.c375 sys32_rt_sigaction(int sig, struct sigaction32 *act, in sys32_rt_sigaction() argument
400 case 4: new_ka.sa.sa_mask.sig[3] = set32.sig[6] in sys32_rt_sigaction()
401 | (((long)set32.sig[7]) << 32); in sys32_rt_sigaction()
402 case 3: new_ka.sa.sa_mask.sig[2] = set32.sig[4] in sys32_rt_sigaction()
403 | (((long)set32.sig[5]) << 32); in sys32_rt_sigaction()
404 case 2: new_ka.sa.sa_mask.sig[1] = set32.sig[2] in sys32_rt_sigaction()
405 | (((long)set32.sig[3]) << 32); in sys32_rt_sigaction()
406 case 1: new_ka.sa.sa_mask.sig[0] = set32.sig[0] in sys32_rt_sigaction()
407 | (((long)set32.sig[1]) << 32); in sys32_rt_sigaction()
411 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction()
[all …]
/linux-2.4.37.9/arch/ia64/ia32/
Dia32_signal.c55 int sig; member
65 int sig; member
478 if (copy_from_user(&set.sig, &uset->sig, sigsetsize)) in ia32_rt_sigsuspend()
512 sys32_signal (int sig, unsigned int handler) in sys32_signal() argument
520 ret = do_sigaction(sig, &new_sa, &old_sa); in sys32_signal()
526 sys32_rt_sigaction (int sig, struct sigaction32 *act, in sys32_rt_sigaction() argument
548 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction()
575 if (copy_from_user(&s.sig, set, sigsetsize)) in sys32_rt_sigprocmask()
584 if (copy_to_user(oset, &s.sig, sigsetsize)) in sys32_rt_sigprocmask()
609 if (copy_from_user(&s.sig, uthese, sizeof(sigset32_t))) in sys32_rt_sigtimedwait()
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Dsignal32.c74 s64->sig[0] = s32->sig[0] | ((unsigned long)s32->sig[1] << 32); in sigset_32to64()
80 s32->sig[0] = s64->sig[0] & 0xffffffffUL; in sigset_64to32()
81 s32->sig[1] = (s64->sig[0] >> 32) & 0xffffffffUL; in sigset_64to32()
147 sys32_rt_sigaction(int sig, const struct sigaction32 *act, struct sigaction32 *oact, in sys32_rt_sigaction() argument
162 ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old_sa : NULL); in sys32_rt_sigaction()
/linux-2.4.37.9/arch/m68k/kernel/
Dsignal.c123 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument
140 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction()
148 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction()
171 int sig; member
182 int sig; member
548 if (__get_user(set.sig[0], &frame->sc.sc_mask) || in do_sigreturn()
550 __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn()
805 static void setup_frame (int sig, struct k_sigaction *ka, in setup_frame() argument
830 && sig < 32 in setup_frame()
831 ? current->exec_domain->signal_invmap[sig] in setup_frame()
[all …]
/linux-2.4.37.9/arch/alpha/kernel/
Dsignal.c96 oldmask = current->blocked.sig[0]; in osf_sigprocmask()
106 current->blocked.sig[0] = newmask; in osf_sigprocmask()
116 osf_sigaction(int sig, const struct osf_sigaction *act, in osf_sigaction() argument
133 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in osf_sigaction()
140 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in osf_sigaction()
147 sys_rt_sigaction(int sig, const struct sigaction *act, struct sigaction *oact, in sys_rt_sigaction() argument
163 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_rt_sigaction()
310 if (__get_user(set.sig[0], &frame->sc.sc_mask) in do_sigreturn()
312 && __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn()
442 setup_frame(int sig, struct k_sigaction *ka, sigset_t *set, in setup_frame() argument
[all …]

123456