1 lib sigblock,sigrelse,sigsetmask,sigprocmask,sigvec
2 typ sigset_t ast.h signal.h
3 mem sigvec.sv_mask signal.h
5 #ifndef _mem_sigvec_sv_mask
8 #ifdef _lib_sigprocmask
9 # define sh_sigaction(s,action) do { sigset_t ss;\
11 if(s) sigaddset(&ss,(s)); \
12 sigprocmask(action,&ss,0); \
14 # define sigrelease(s) sh_sigaction(s,SIG_UNBLOCK)
15 # define sigblock(s) sh_sigaction(s,SIG_BLOCK)
16 # define sig_begin() sh_sigaction(0,SIG_SETMASK)
18 # ifndef _lib_sigblock
21 # ifdef _lib_sigsetmask
22 # define sigrelease(s) sigsetmask(0)
23 # define sig_begin() sigsetmask(0)
26 # define sigrelease sigrelse
29 # define sig_begin() (0)
30 # define sigrelease(s) (0)
31 # endif /* _lib_sigrelse */
32 # endif /* _lib_sigsetmask */
33 #endif /* _lib_sigprocmask */
40 printf("#undef _SIGRTMIN\n");
41 printf("#define _SIGRTMIN %d\n", SIGRTMIN);
44 printf("#undef _SIGRTMAX\n");
45 printf("#define _SIGRTMAX %d\n", SIGRTMAX);