projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a37818b
)
(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 4 Feb 2003 00:28:45 +0000
(
00:28
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 4 Feb 2003 00:28:45 +0000
(
00:28
+0000)
nptl/allocatestack.c
patch
|
blob
|
history
diff --git
a/nptl/allocatestack.c
b/nptl/allocatestack.c
index
4ec3f44
..
e50d2b2
100644
(file)
--- 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));