diff options
Diffstat (limited to 'mit-pthreads/machdep/sunos-5.5/__signal.h')
-rwxr-xr-x | mit-pthreads/machdep/sunos-5.5/__signal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mit-pthreads/machdep/sunos-5.5/__signal.h b/mit-pthreads/machdep/sunos-5.5/__signal.h new file mode 100755 index 00000000000..638c1ca7331 --- /dev/null +++ b/mit-pthreads/machdep/sunos-5.5/__signal.h @@ -0,0 +1,19 @@ +#include <sys/feature_tests.h> +#include <sys/signal.h> + +/* +typedef struct { + unsigned long __sigbits[4]; +} sigset_t; +*/ + +typedef int sig_atomic_t; + +#define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1))) +#define sigword(n) (((unsigned int)((n) - 1))>>5) + +#define __SIGEMPTYSET { 0, 0, 0, 0 }; +#define __SIGFILLSET { 0xffffffff,0xffffffff,0xffffffff,0xffffffff }; +#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)]) |