Back to index

glibc  2.9
pthread_attr_setstacksize.c
Go to the documentation of this file.
00001 #include <unistd.h>  /* For __getpagesize.  */
00002 #define NEW_VERNUM GLIBC_2_6
00003 #define STACKSIZE_ADJUST \
00004   do {                                                               \
00005     size_t ps = __getpagesize ();                                    \
00006     if (stacksize < 2 * ps)                                          \
00007       stacksize = 2 * ps;                                            \
00008   } while (0)
00009 #include <nptl/pthread_attr_setstacksize.c>