6 #if defined(SIG_SETMASK) && NSIG <= 32 /* easier than trying to remove from Makefile */
10 sigemptyset (sigset_t
* set
)
18 sigfillset (sigset_t
* set
)
20 *set
= ~((sigset_t
) 0);
26 sigaddset (sigset_t
* set
, int signo
)
28 if (signo
>= NSIG
|| signo
<= 0)
33 *set
|= 1 << (signo
- 1);
39 sigdelset (sigset_t
* set
, int signo
)
41 if (signo
>= NSIG
|| signo
<= 0)
46 *set
&= ~(1 << (signo
- 1));
52 sigismember (const sigset_t
* set
, int signo
)
54 if (signo
>= NSIG
|| signo
<= 0)
60 if (*set
& (1 << (signo
- 1)))
66 #endif /* SIG_SETMASK */
67 #endif /* _NO_SIGSET */