aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_attr_setstacksize.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-10-07 20:30:57 +0000
committerUlrich Drepper <drepper@redhat.com>2006-10-07 20:30:57 +0000
commitfa279678a0770fe71ddfbb3cba8400a37754a1e7 (patch)
treefb8c0128730c6af17644b1ed0ba1b4676f69c8d9 /nptl/pthread_attr_setstacksize.c
parentc4f9fc3a99de138da440da307753ce73ed4c6747 (diff)
downloadglibc-fa279678a0770fe71ddfbb3cba8400a37754a1e7.tar
glibc-fa279678a0770fe71ddfbb3cba8400a37754a1e7.tar.gz
glibc-fa279678a0770fe71ddfbb3cba8400a37754a1e7.tar.bz2
glibc-fa279678a0770fe71ddfbb3cba8400a37754a1e7.zip
* Versions.def: Add GLIBC_2.6 to libpthread.
Diffstat (limited to 'nptl/pthread_attr_setstacksize.c')
-rw-r--r--nptl/pthread_attr_setstacksize.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/nptl/pthread_attr_setstacksize.c b/nptl/pthread_attr_setstacksize.c
index f84a9f68e3..cfafb0a6ac 100644
--- a/nptl/pthread_attr_setstacksize.c
+++ b/nptl/pthread_attr_setstacksize.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -22,6 +22,10 @@
#include <limits.h>
#include "pthreadP.h"
+#ifndef NEW_VERNUM
+# define NEW_VERNUM 2_3_3
+#endif
+
int
__pthread_attr_setstacksize (attr, stacksize)
@@ -47,9 +51,9 @@ strong_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
#else
# include <shlib-compat.h>
versioned_symbol (libpthread, __pthread_attr_setstacksize,
- pthread_attr_setstacksize, GLIBC_2_3_3);
+ pthread_attr_setstacksize, NEW_VERNUM);
-# if SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_3_3)
+# if SHLIB_COMPAT(libpthread, GLIBC_2_1, NEW_VERNUM)
int
__old_pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize)
@@ -63,6 +67,10 @@ __old_pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize)
if (stacksize < 16384)
return EINVAL;
+# ifdef STACKSIZE_ADJUST
+ STACKSIZE_ADJUST;
+# endif
+
iattr->stacksize = stacksize;
return 0;