aboutsummaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-04 00:28:45 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-04 00:28:45 +0000
commite1798f551d13f92b347d9c9da6f6ffca8fb51303 (patch)
tree959eb504262dce6f6a92353e97186adbd7736206 /nptl/allocatestack.c
parenta37818b3ec347144fe27fc8e5d341515b66e12e0 (diff)
downloadglibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.zip
glibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.tar.gz
glibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.tar.bz2
(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 4ec3f44..e50d2b2 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -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));