• Home
  • Raw
  • Download

Lines Matching refs:sig

42 	unsigned long sig = _sig - 1;  in sigaddset()  local
44 set->sig[0] |= 1UL << sig; in sigaddset()
46 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset()
51 unsigned long sig = _sig - 1; in sigdelset() local
53 set->sig[0] &= ~(1UL << sig); in sigdelset()
55 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset()
60 unsigned long sig = _sig - 1; in sigismember() local
62 return 1 & (set->sig[0] >> sig); in sigismember()
64 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember()
73 return (set->sig[3] | set->sig[2] | in sigisemptyset()
74 set->sig[1] | set->sig[0]) == 0; in sigisemptyset()
76 return (set->sig[1] | set->sig[0]) == 0; in sigisemptyset()
78 return set->sig[0] == 0; in sigisemptyset()
85 #define sigmask(sig) (1UL << ((sig) - 1)) argument
97 a3 = a->sig[3]; a2 = a->sig[2]; \
98 b3 = b->sig[3]; b2 = b->sig[2]; \
99 r->sig[3] = op(a3, b3); \
100 r->sig[2] = op(a2, b2); \
102 a1 = a->sig[1]; b1 = b->sig[1]; \
103 r->sig[1] = op(a1, b1); \
105 a0 = a->sig[0]; b0 = b->sig[0]; \
106 r->sig[0] = op(a0, b0); \
131 case 4: set->sig[3] = op(set->sig[3]); \ in _SIG_SET_BINOP()
132 set->sig[2] = op(set->sig[2]); \ in _SIG_SET_BINOP()
133 case 2: set->sig[1] = op(set->sig[1]); \ in _SIG_SET_BINOP()
134 case 1: set->sig[0] = op(set->sig[0]); \ in _SIG_SET_BINOP()
153 case 2: set->sig[1] = 0;
154 case 1: set->sig[0] = 0;
165 case 2: set->sig[1] = -1; in sigfillset()
166 case 1: set->sig[0] = -1; in sigfillset()
175 set->sig[0] |= mask; in sigaddsetmask()
180 set->sig[0] &= ~mask; in sigdelsetmask()
185 return (set->sig[0] & mask) != 0; in sigtestsetmask()
190 set->sig[0] = mask; in siginitset()
193 memset(&set->sig[1], 0, sizeof(long)*(_NSIG_WORDS-1)); in siginitset()
195 case 2: set->sig[1] = 0; in siginitset()
202 set->sig[0] = ~mask; in siginitsetinv()
205 memset(&set->sig[1], -1, sizeof(long)*(_NSIG_WORDS-1)); in siginitsetinv()
207 case 2: set->sig[1] = -1; in siginitsetinv()
214 static inline void init_sigpending(struct sigpending *sig) in init_sigpending() argument
216 sigemptyset(&sig->signal); in init_sigpending()
217 INIT_LIST_HEAD(&sig->list); in init_sigpending()
223 static inline int valid_signal(unsigned long sig) in valid_signal() argument
225 return sig <= _NSIG ? 1 : 0; in valid_signal()
232 extern int do_send_sig_info(int sig, struct siginfo *info,
234 extern int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p);
277 int sig; member
285 static inline void allow_signal(int sig) in allow_signal() argument
292 kernel_sigaction(sig, (__force __sighandler_t)2); in allow_signal()
295 static inline void disallow_signal(int sig) in disallow_signal() argument
297 kernel_sigaction(sig, SIG_IGN); in disallow_signal()
302 int unhandled_signal(struct task_struct *tsk, int sig);
385 #define rt_sigmask(sig) (1ULL << ((sig)-1)) argument
387 #define rt_sigmask(sig) sigmask(sig) argument
389 #define siginmask(sig, mask) (rt_sigmask(sig) & (mask)) argument
410 #define sig_kernel_only(sig) \ argument
411 (((sig) < SIGRTMIN) && siginmask(sig, SIG_KERNEL_ONLY_MASK))
412 #define sig_kernel_coredump(sig) \ argument
413 (((sig) < SIGRTMIN) && siginmask(sig, SIG_KERNEL_COREDUMP_MASK))
414 #define sig_kernel_ignore(sig) \ argument
415 (((sig) < SIGRTMIN) && siginmask(sig, SIG_KERNEL_IGNORE_MASK))
416 #define sig_kernel_stop(sig) \ argument
417 (((sig) < SIGRTMIN) && siginmask(sig, SIG_KERNEL_STOP_MASK))