summaryrefslogtreecommitdiff
path: root/linuxthreads/attr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-16 22:26:45 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-16 22:26:45 +0000
commita66f0958a1fbe5d64c3c77c01baee10bf23257dd (patch)
tree8bd667d88be5d0697fbcd2c01292b538abf5b91b /linuxthreads/attr.c
parentaeba9785a6e2e8dca120bb0b62b74ea1eda0a4a8 (diff)
Update.
2001-03-16 Ulrich Drepper <drepper@redhat.com> * sysdeps/ieee754/ldbl-96/s_erfl.c: New file. Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>. * sysdeps/i386/fpu/libm-test-ulps: Adjust for addition of erfl and erfcl. * sysdeps/ia64/fpu/libm-test-ulps: Likewise. * sysdeps/unix/sysv/linux/ia64/swapcontext.c: New file.
Diffstat (limited to 'linuxthreads/attr.c')
-rw-r--r--linuxthreads/attr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c
index 3553069c2e..623b9ba64d 100644
--- a/linuxthreads/attr.c
+++ b/linuxthreads/attr.c
@@ -193,16 +193,7 @@ int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
problem if the manager is already started and we determined it. If
this hasn't happened, we have to find the limit outself. */
if (__pthread_max_stacksize == 0)
- {
- struct rlimit limit;
-
- getrlimit(RLIMIT_STACK, &limit);
-# ifdef NEED_SEPARATE_REGISTER_STACK
- __pthread_max_stacksize = limit.rlim_max / 2;
-# else
- __pthread_max_stacksize = limit.rlim_max;
-# endif
- }
+ __pthread_init_max_stacksize ();
if (stacksize > __pthread_max_stacksize)
return EINVAL;