From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Petr Vorel <pvorel@suse.cz>, linux-man@vger.kernel.org
Cc: mtk.manpages@gmail.com
Subject: Re: [PATCH 1/1] getdents.2: Mention glibc support for getdents64()
Date: Tue, 14 Apr 2020 11:43:04 +0200 [thread overview]
Message-ID: <39488d73-6d42-3213-98c3-5dc4f54203aa@gmail.com> (raw)
In-Reply-To: <20191007135315.2214-1-pvorel@suse.cz>
Hello Petr,
On 10/7/19 3:53 PM, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> man2/getdents.2 | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/man2/getdents.2 b/man2/getdents.2
> index 712d23c58..a6b7aad1f 100644
Thanks. Patch applied.
Cheers,
Michael
> --- a/man2/getdents.2
> +++ b/man2/getdents.2
> @@ -40,7 +40,8 @@ getdents, getdents64 \- get directory entries
> .fi
> .PP
> .IR Note :
> -There are no glibc wrappers for these system calls; see NOTES.
> +There is no glibc wrapper for getdents().
> +Wrapper for getdents64() was added in glibc 2.30; see NOTES.
> .SH DESCRIPTION
> These are not the interfaces you are interested in.
> Look at
> @@ -203,9 +204,11 @@ File descriptor does not refer to a directory.
> SVr4.
> .\" SVr4 documents additional ENOLINK, EIO error conditions.
> .SH NOTES
> -Glibc does not provide a wrapper for these system calls; call them using
> +Library support for getdents64() was added in glibc 2.30;
> +there is no glibc wrapper for getdents();
> +call getdents() (or getdents64() on earlier versions) requires using
> .BR syscall (2).
> -You will need to define the
> +In that case you will need to define the
> .I linux_dirent
> or
> .I linux_dirent64
>
--
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-04-14 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-07 13:53 [PATCH 1/1] getdents.2: Mention glibc support for getdents64() Petr Vorel
2020-04-14 9:43 ` Michael Kerrisk (man-pages) [this message]
2020-04-14 18:10 ` Petr Vorel
2020-04-15 6:42 ` Michael Kerrisk (man-pages)
2020-04-15 7:44 ` Petr Vorel
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=39488d73-6d42-3213-98c3-5dc4f54203aa@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=pvorel@suse.cz \
/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;
as well as URLs for NNTP newsgroup(s).