1 #include "pthread_impl.h"
5 static const unsigned long all_mask
[] = {
6 #if ULONG_MAX == 0xffffffff && _NSIG == 129
8 #elif ULONG_MAX == 0xffffffff
15 static const unsigned long app_mask
[] = {
16 #if ULONG_MAX == 0xffffffff
18 0x7fffffff, 0xfffffffc
20 0x7fffffff, 0xfffffffc, -1UL, -1UL
26 0xfffffffc7fffffff, -1UL
31 void __block_all_sigs(void *set
)
33 __syscall(SYS_rt_sigprocmask
, SIG_BLOCK
, &all_mask
, set
, _NSIG
/8);
36 void __block_app_sigs(void *set
)
38 __syscall(SYS_rt_sigprocmask
, SIG_BLOCK
, &app_mask
, set
, _NSIG
/8);
41 void __restore_sigs(void *set
)
43 __syscall(SYS_rt_sigprocmask
, SIG_SETMASK
, set
, 0, _NSIG
/8);