aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2002-06-16 18:35:24 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2002-06-16 18:35:24 +0000
commite055075e35f4eaa4483e3256e9e6b8e943ca190c (patch)
tree5adad7b37ee5d44eda62e824d12b9e4c28b8acfd /sys/sys/signal.h
parentff15712090fcb5784a2996aa81a88094fe4a3bfa (diff)
downloadsrc-e055075e35f4eaa4483e3256e9e6b8e943ca190c.tar.gz
src-e055075e35f4eaa4483e3256e9e6b8e943ca190c.zip
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.
Notes
Notes: svn path=/head/; revision=98301
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 c658e2850f73..f0668a9c98f7 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 */