summaryrefslogtreecommitdiffstats
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-08-20 16:44:41 +0000
committerstefanf <stefanf@FreeBSD.org>2005-08-20 16:44:41 +0000
commit78a1b1beb47866d8c70bf7e8efd8007e2f6eacf8 (patch)
tree0c9d939aa363baa5fbd07daf4d09c3119f9d113e /sys/sys/signal.h
parentc6a218f383ff054f35a5554fa966e7f363b38fd4 (diff)
downloadFreeBSD-src-78a1b1beb47866d8c70bf7e8efd8007e2f6eacf8.zip
FreeBSD-src-78a1b1beb47866d8c70bf7e8efd8007e2f6eacf8.tar.gz
Move MINSIGSTKSZ from <machine/signal.h> to <machine/_limits.h> and rename
it to __MINSIGSTKSZ. Define MINSIGSTKSZ in <sys/signal.h>. This is done in order to use MINSIGSTKSZ for the macro PTHREAD_STACK_MIN in <pthread.h> (soon <limits.h>) without having to include the whole <sys/signal.h> header. Discussed with: bde
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 425bf33..6016f13 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -42,6 +42,7 @@
#include <sys/_types.h>
#include <sys/_sigset.h>
+#include <machine/_limits.h> /* __MINSIGSTKSZ */
#include <machine/signal.h> /* sig_atomic_t; trap codes; sigcontext */
/*
@@ -274,6 +275,7 @@ typedef struct {
#define SS_ONSTACK 0x0001 /* take signal on alternate stack */
#define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */
+#define MINSIGSTKSZ __MINSIGSTKSZ /* minimum stack size */
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
#endif
OpenPOWER on IntegriCloud