Lines Matching refs:sig
53 enum siginfo_layout siginfo_layout(unsigned sig, int si_code);
66 unsigned long sig = _sig - 1; in sigaddset() local
68 set->sig[0] |= 1UL << sig; in sigaddset()
70 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset()
75 unsigned long sig = _sig - 1; in sigdelset() local
77 set->sig[0] &= ~(1UL << sig); in sigdelset()
79 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset()
84 unsigned long sig = _sig - 1; in sigismember() local
86 return 1 & (set->sig[0] >> sig); in sigismember()
88 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember()
97 return (set->sig[3] | set->sig[2] | in sigisemptyset()
98 set->sig[1] | set->sig[0]) == 0; in sigisemptyset()
100 return (set->sig[1] | set->sig[0]) == 0; in sigisemptyset()
102 return set->sig[0] == 0; in sigisemptyset()
113 return (set1->sig[3] == set2->sig[3]) && in sigequalsets()
114 (set1->sig[2] == set2->sig[2]) && in sigequalsets()
115 (set1->sig[1] == set2->sig[1]) && in sigequalsets()
116 (set1->sig[0] == set2->sig[0]); in sigequalsets()
118 return (set1->sig[1] == set2->sig[1]) && in sigequalsets()
119 (set1->sig[0] == set2->sig[0]); in sigequalsets()
121 return set1->sig[0] == set2->sig[0]; in sigequalsets()
126 #define sigmask(sig) (1UL << ((sig) - 1)) argument
137 a3 = a->sig[3]; a2 = a->sig[2]; \
138 b3 = b->sig[3]; b2 = b->sig[2]; \
139 r->sig[3] = op(a3, b3); \
140 r->sig[2] = op(a2, b2); \
143 a1 = a->sig[1]; b1 = b->sig[1]; \
144 r->sig[1] = op(a1, b1); \
147 a0 = a->sig[0]; b0 = b->sig[0]; \
148 r->sig[0] = op(a0, b0); \
173 case 4: set->sig[3] = op(set->sig[3]); \ in _SIG_SET_BINOP()
174 set->sig[2] = op(set->sig[2]); \ in _SIG_SET_BINOP()
176 case 2: set->sig[1] = op(set->sig[1]); \ in _SIG_SET_BINOP()
178 case 1: set->sig[0] = op(set->sig[0]); \ in _SIG_SET_BINOP()
197 case 2: set->sig[1] = 0;
199 case 1: set->sig[0] = 0;
210 case 2: set->sig[1] = -1; in sigfillset()
212 case 1: set->sig[0] = -1; in sigfillset()
221 set->sig[0] |= mask; in sigaddsetmask()
226 set->sig[0] &= ~mask; in sigdelsetmask()
231 return (set->sig[0] & mask) != 0; in sigtestsetmask()
236 set->sig[0] = mask; in siginitset()
239 memset(&set->sig[1], 0, sizeof(long)*(_NSIG_WORDS-1)); in siginitset()
241 case 2: set->sig[1] = 0; in siginitset()
249 set->sig[0] = ~mask; in siginitsetinv()
252 memset(&set->sig[1], -1, sizeof(long)*(_NSIG_WORDS-1)); in siginitsetinv()
254 case 2: set->sig[1] = -1; in siginitsetinv()
262 static inline void init_sigpending(struct sigpending *sig) in init_sigpending() argument
264 sigemptyset(&sig->signal); in init_sigpending()
265 INIT_LIST_HEAD(&sig->list); in init_sigpending()
271 static inline int valid_signal(unsigned long sig) in valid_signal() argument
273 return sig <= _NSIG ? 1 : 0; in valid_signal()
281 extern int do_send_sig_info(int sig, struct kernel_siginfo *info,
283 extern int group_send_sig_info(int sig, struct kernel_siginfo *info,
285 extern int send_signal_locked(int sig, struct kernel_siginfo *info,
300 static inline void allow_signal(int sig) in allow_signal() argument
307 kernel_sigaction(sig, SIG_KTHREAD); in allow_signal()
310 static inline void allow_kernel_signal(int sig) in allow_kernel_signal() argument
317 kernel_sigaction(sig, SIG_KTHREAD_KERNEL); in allow_kernel_signal()
320 static inline void disallow_signal(int sig) in disallow_signal() argument
322 kernel_sigaction(sig, SIG_IGN); in disallow_signal()
327 extern bool unhandled_signal(struct task_struct *tsk, int sig);
410 #define rt_sigmask(sig) (1ULL << ((sig)-1)) argument
412 #define rt_sigmask(sig) sigmask(sig) argument
415 #define siginmask(sig, mask) \ argument
416 ((sig) > 0 && (sig) < SIGRTMIN && (rt_sigmask(sig) & (mask)))
444 #define sig_kernel_only(sig) siginmask(sig, SIG_KERNEL_ONLY_MASK) argument
445 #define sig_kernel_coredump(sig) siginmask(sig, SIG_KERNEL_COREDUMP_MASK) argument
446 #define sig_kernel_ignore(sig) siginmask(sig, SIG_KERNEL_IGNORE_MASK) argument
447 #define sig_kernel_stop(sig) siginmask(sig, SIG_KERNEL_STOP_MASK) argument
448 #define sig_specific_sicodes(sig) siginmask(sig, SIG_SPECIFIC_SICODES_MASK) argument
485 unsigned long sig, in arch_untagged_si_addr() argument