summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>2016-06-14 15:12:18 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-15 20:42:52 +0200
commit5e3d8e668238f1ebbf96843ceb0a699d73a16a38 (patch)
tree6fea2bcb318b013312222e2f80372f08ee26e48e /libc/stdio
parent766da4190705a32fbddd5d0fe61175d76ad31090 (diff)
sysconf: Support _SC_(AV)?PHYS_PAGES.
Do it by following the trail of the existing commented code, which implemented it by calling get_phys_pages() and get_avphys_pages(). This patch implements these two functions, which are also glibc extensions. Some program/libraries (e.g. libuv) assumes that sysconf(_SC_PHYS_PAGES) works on linux and never check for -1, thus they report an insane amount of memory. Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Diffstat (limited to 'libc/stdio')
0 files changed, 0 insertions, 0 deletions