#include <sys/feature_tests.h>
#include <sys/signal.h>

typedef int sig_atomic_t;

#define __sigmask(n)      		((unsigned int)1 << (((n) - 1) & (32 - 1)))
#define __sigword(n)      		(((unsigned int)((n) - 1))>>5)

static sigset_t __SIGFILLSET =	{ 0xffffffff,0xffffffff,0xffffffff,0xffffffff };
static sigset_t __SIGEMPTYSET =	{ 0x0, 0x0, 0x0, 0x0 };
#define	__SIGADDSET(s, n)		((s)->__sigbits[__sigword(n)] |= __sigmask(n))
#define	__SIGDELSET(s, n)		((s)->__sigbits[__sigword(n)] &= ~__sigmask(n))
#define	__SIGISMEMBER(s, n)		(__sigmask(n) & (s)->__sigbits[__sigword(n)])

