aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-10-28 20:51:25 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-10-28 22:16:41 +0100
commit2adfdd77958cb60f22b9f2dcae517e92c80a2029 (patch)
tree775bad31fd9808848831fdb20c45d2644937fba3
parentd70361dab7f575b0962dbd61aa323704841406cf (diff)
downloadman-pages-2adfdd77958cb60f22b9f2dcae517e92c80a2029.tar.gz
getdents.2: SYNOPSIS: Add missing header and feature test macro
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getdents.24
1 files changed, 4 insertions, 0 deletions
diff --git a/man2/getdents.2 b/man2/getdents.2
index 02790b8f75..17904ed66e 100644
--- a/man2/getdents.2
+++ b/man2/getdents.2
@@ -35,6 +35,10 @@ getdents, getdents64 \- get directory entries
.nf
.BI "int getdents(unsigned int " fd ", struct linux_dirent *" dirp ,
.BI " unsigned int " count );
+.PP
+.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
+.BR "#include <dirent.h>" " /* See NOTES */"
+.PP
.BI "int getdents64(unsigned int " fd ", struct linux_dirent64 *" dirp ,
.BI " unsigned int " count );
.fi