4 #if defined(SIG_SETMASK) && NSIG <= 32 /* easier than trying to remove from Makefile */
8 sigemptyset (sigset_t
* set
)
15 sigfillset (sigset_t
* set
)
17 *set
= ~((sigset_t
) 0);
23 sigaddset (sigset_t
* set
, int signo
)
25 if (signo
>= NSIG
|| signo
<= 0)
30 *set
|= 1 << (signo
- 1);
35 sigdelset (sigset_t
* set
, int signo
)
37 if (signo
>= NSIG
|| signo
<= 0)
42 *set
&= ~(1 << (signo
- 1));
47 sigismember (const sigset_t
* set
, int signo
)
49 if (signo
>= NSIG
|| signo
<= 0)
55 if (*set
& (1 << (signo
- 1)))
61 #endif /* SIG_SETMASK */