aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-08-20 16:44:41 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-08-20 16:44:41 +0000
commita1f85d7f83f899786626708083839512b2cd4ebd (patch)
tree0c9d939aa363baa5fbd07daf4d09c3119f9d113e /sys/sys
parentd599e39db8fe20317f28e2e4f0dbd68496c97fe1 (diff)
downloadsrc-a1f85d7f83f899786626708083839512b2cd4ebd.tar.gz
src-a1f85d7f83f899786626708083839512b2cd4ebd.zip
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
Notes
Notes: svn path=/head/; revision=149337
Diffstat (limited to 'sys/sys')
-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 425bf337ee06..6016f1380e1c 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