summaryrefslogtreecommitdiff
path: root/mit-pthreads/machdep/openbsd-2.0/__signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'mit-pthreads/machdep/openbsd-2.0/__signal.h')
-rwxr-xr-xmit-pthreads/machdep/openbsd-2.0/__signal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mit-pthreads/machdep/openbsd-2.0/__signal.h b/mit-pthreads/machdep/openbsd-2.0/__signal.h
new file mode 100755
index 00000000000..918955c9948
--- /dev/null
+++ b/mit-pthreads/machdep/openbsd-2.0/__signal.h
@@ -0,0 +1,8 @@
+#include <sys/signal.h>
+
+#define __SIGEMPTYSET 0
+#define __SIGFILLSET 0xffffffff
+#define __SIGADDSET(s, n) (*(s) |= 1 << ((n) - 1), 0)
+#define __SIGDELSET(s, n) (*(s) &= ~(1 << ((n) - 1)), 0)
+#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0)
+