da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlib sigblock,sigrelse,sigsetmask,sigprocmask,sigvec
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin #ifndef _mem_sigvec_sv_mask
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # undef _lib_sigvec
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin #ifdef _lib_sigprocmask
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sh_sigaction(s,action) do { sigset_t ss;\
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin sigemptyset(&ss); \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin if(s) sigaddset(&ss,(s)); \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sigprocmask(action,&ss,0); \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigrelease(s) sh_sigaction(s,SIG_UNBLOCK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigblock(s) sh_sigaction(s,SIG_BLOCK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sig_begin() sh_sigaction(0,SIG_SETMASK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # ifndef _lib_sigblock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigblock(s)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # ifdef _lib_sigsetmask
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigrelease(s) sigsetmask(0)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sig_begin() sigsetmask(0)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # ifdef _lib_sigrelse
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigrelease sigrelse
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sig_begin()
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sig_begin() (0)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # define sigrelease(s) (0)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # endif /* _lib_sigrelse */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin # endif /* _lib_sigsetmask */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin #endif /* _lib_sigprocmask */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintst output{
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin int main()
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin #ifdef SIGRTMIN
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin printf("#undef _SIGRTMIN\n");
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin printf("#define _SIGRTMIN %d\n", SIGRTMIN);
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin #ifdef SIGRTMAX
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin printf("#undef _SIGRTMAX\n");
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin printf("#define _SIGRTMAX %d\n", SIGRTMAX);