Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/1] getdents.2: Mention glibc support for getdents64()
@ 2019-10-07 13:53 Petr Vorel
  0 siblings, 0 replies; only message in thread
From: Petr Vorel @ 2019-10-07 13:53 UTC (permalink / raw)
  To: linux-man; +Cc: Petr Vorel, Michael Kerrisk

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
--- 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
-- 
2.23.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 13:53 [PATCH 1/1] getdents.2: Mention glibc support for getdents64() Petr Vorel

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git