]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.
authorUlrich Drepper <drepper@redhat.com>
Tue, 4 Feb 2003 00:28:45 +0000 (00:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 4 Feb 2003 00:28:45 +0000 (00:28 +0000)
nptl/allocatestack.c

index 4ec3f4404714ceacf99e8ba4514ea99021d9201b..e50d2b290dda5da7256d93e103157dcdc8ef30ff 100644 (file)
@@ -227,7 +227,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
 {
   struct pthread *pd;
   size_t size;
-  size_t pagesize_m1 = __sysconf (_SC_PAGESIZE) - 1;
+  size_t pagesize_m1 = __getpagesize () - 1;
 
   assert (attr != NULL);
   assert (powerof2 (pagesize_m1 + 1));