pthread_attr_setstacksize for Linux/PPC.
authordrepper <drepper>
Sat, 7 Oct 2006 19:51:33 +0000 (19:51 +0000)
committerdrepper <drepper>
Sat, 7 Oct 2006 19:51:33 +0000 (19:51 +0000)
nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c [new file with mode: 0644]

diff --git a/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c b/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c
new file mode 100644 (file)
index 0000000..9472dd1
--- /dev/null
@@ -0,0 +1,8 @@
+#define NEW_VERNUM GLIBC_2_6
+#define STACKSIZE_ADJUST \
+  do {                                                                       \
+    size_t ps = __getpagesize ();                                            \
+    if (stacksize < 2 * ps)                                                  \
+      stacksize = 2 * ps;                                                    \
+  } while (0)
+#include <nptl/pthread_attr_setstacksize.c>