commit | 3fa4eea5ce6b3cd009b042e464b41ea3edaab6ec | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jan 20 16:16:40 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jan 20 16:16:40 2023 +0000 |
tree | af51c9fb40a7eaab924bf550fcf9833e233b8d3b | |
parent | 0ad996d4ebac8a56bf82700ce30b7dcf5e1edd24 [diff] | |
parent | 357908ddf6f407cf7d222dc0f3ff21fb5945f5e6 [diff] |
Merge "Defer to getpagesize() in sysconf()."
diff --git a/libc/bionic/sysconf.cpp b/libc/bionic/sysconf.cpp index dd6b129..1c06c9e 100644 --- a/libc/bionic/sysconf.cpp +++ b/libc/bionic/sysconf.cpp
@@ -88,7 +88,7 @@ case _SC_PAGESIZE: case _SC_PAGE_SIZE: // _SC_PAGESIZE and _SC_PAGE_SIZE are distinct, but return the same value. - return static_cast<long>(getauxval(AT_PAGESZ)); + return getpagesize(); case _SC_PHYS_PAGES: return get_phys_pages();