aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2020-12-30 22:41:47 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-12-31 09:18:04 +0100
commita6f73f75e62e1ad3c71e2393efe10406a037c24b (patch)
treef44802e9352ef47b385e7760636c13422330bbe4
parent00d3eabb53c5cf37c8e240441cc74dbbaf3b1618 (diff)
downloadman-pages-a6f73f75e62e1ad3c71e2393efe10406a037c24b.tar.gz
get_phys_pages.3: glibc gets the info from sysinfo(2) since 2.23
See glibc's commit: 0ce657c576bf1b24 https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0ce657c576bf1b24 Reported-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/get_phys_pages.313
1 files changed, 9 insertions, 4 deletions
diff --git a/man3/get_phys_pages.3 b/man3/get_phys_pages.3
index 35f83fedb2..a8a1ce3f46 100644
--- a/man3/get_phys_pages.3
+++ b/man3/get_phys_pages.3
@@ -55,15 +55,20 @@ The system could not provide the required information
(possibly because the
.I /proc
filesystem was not mounted).
-.SH CONFORMING TO
-These functions are GNU extensions.
-.SH NOTES
-These functions obtain the required information by scanning the
+.SH VERSIONS
+Before glibc 2.23,
+these functions obtained the required information by scanning the
.I MemTotal
and
.I MemFree
fields of
.IR /proc/meminfo .
+.SH CONFORMING TO
+These functions are GNU extensions.
+.SH NOTES
+Since glibc 2.23,
+these functions obtain the required information by calling
+.BR sysinfo (2).
.PP
The following
.BR sysconf (3)