From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Alejandro Colomar <alx.manpages@gmail.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org,
Jakub Wilk <jwilk@jwilk.net>
Subject: Re: [PATCH] get_phys_pages.3: glibc gets the info from sysinfo(2) since 2.23
Date: Wed, 30 Dec 2020 23:40:20 +0100 [thread overview]
Message-ID: <ff303eb6-ffd0-8567-1a72-72fd86671f0e@gmail.com> (raw)
In-Reply-To: <20201230214147.874671-7-alx.manpages@gmail.com>
Hi Alewx,
On 12/30/20 10:41 PM, Alejandro Colomar wrote:
> 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>
> ---
> man3/get_phys_pages.3 | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/man3/get_phys_pages.3 b/man3/get_phys_pages.3
> index 35f83fedb..a8a1ce3f4 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 .
Thanks for the patch. But I think it would be better to put
all the info into NOTES, rather than splitting some out into
VERSIONS.
> +.SH CONFORMING TO
> +These functions are GNU extensions.
And it's good to add this, but let's make it a separate patch.
> +.SH NOTES
> +Since glibc 2.23,
> +these functions obtain the required information by calling
> +.BR sysinfo (2).
> .PP
> The following
> .BR sysconf (3)
Thanks,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
next prev parent reply other threads:[~2020-12-30 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-30 21:41 [PATCH] get_phys_pages.3: glibc gets the info from sysinfo(2) since 2.23 Alejandro Colomar
2020-12-30 22:40 ` Michael Kerrisk (man-pages) [this message]
2020-12-30 23:22 ` Alejandro Colomar (man-pages)
2020-12-31 8:21 ` Michael Kerrisk (man-pages)
2020-12-31 11:48 ` Alejandro Colomar (man-pages)
2021-01-01 22:39 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff303eb6-ffd0-8567-1a72-72fd86671f0e@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=jwilk@jwilk.net \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox