summaryrefslogtreecommitdiffstats
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-06-16 18:35:24 +0000
committerwollman <wollman@FreeBSD.org>2002-06-16 18:35:24 +0000
commit19108fc03207dfb4cae9dc044f06ec6e728f9d25 (patch)
tree5adad7b37ee5d44eda62e824d12b9e4c28b8acfd /sys/sys/signal.h
parentd2afd7bbc0f457c8fb7bb85f86a2db635417b5d6 (diff)
downloadFreeBSD-src-19108fc03207dfb4cae9dc044f06ec6e728f9d25.zip
FreeBSD-src-19108fc03207dfb4cae9dc044f06ec6e728f9d25.tar.gz
Use <sys/_sigset.h> to get declaration of sigset_t, which has been moved
to a separate header to facilitate its declaration in more than one place. Namespace issues not fixed.
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index c658e28..f0668a9 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -44,16 +44,7 @@
#include <sys/cdefs.h>
#include <sys/_posix.h>
-
-/*
- * sigset_t macros.
- */
-#define _SIG_WORDS 4
-#define _SIG_MAXSIG 128
-#define _SIG_IDX(sig) ((sig) - 1)
-#define _SIG_WORD(sig) (_SIG_IDX(sig) >> 5)
-#define _SIG_BIT(sig) (1 << (_SIG_IDX(sig) & 31))
-#define _SIG_VALID(sig) ((sig) <= _SIG_MAXSIG && (sig) > 0)
+#include <sys/_sigset.h>
/*
* System defined signals.
@@ -167,13 +158,9 @@ typedef struct __siginfo {
} siginfo_t;
#endif /* _P1003_1B_VISIBLE */
-typedef struct __sigset {
- unsigned int __bits[_SIG_WORDS];
-} sigset_t;
-
/*
- * XXX - there are some nasty dependencies on include file order. Now that
- * sigset_t has been defined we can include the MD header.
+ * XXX - there are some nasty dependencies on include file order.
+ * <sys/_sigset.h> must be included before <machine/signal.h>.
*/
#include <machine/signal.h> /* sig_atomic_t; trap codes; sigcontext */
OpenPOWER on IntegriCloud