summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
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/powerpc/include
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/powerpc/include')
-rw-r--r--sys/powerpc/include/_limits.h3
-rw-r--r--sys/powerpc/include/signal.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h
index 260475d..76e73544 100644
--- a/sys/powerpc/include/_limits.h
+++ b/sys/powerpc/include/_limits.h
@@ -93,4 +93,7 @@
#endif
#define __WORD_BIT 32
+/* Minimum signal stack size. */
+#define __MINSIGSTKSZ (512 * 4)
+
#endif /* !_MACHINE__LIMITS_H_ */
diff --git a/sys/powerpc/include/signal.h b/sys/powerpc/include/signal.h
index b1f32e6..ba0bee2 100644
--- a/sys/powerpc/include/signal.h
+++ b/sys/powerpc/include/signal.h
@@ -37,10 +37,6 @@
#include <sys/cdefs.h>
-#if __XSI_VISIBLE
-#define MINSIGSTKSZ (512 * 4)
-#endif
-
typedef int sig_atomic_t;
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud