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>
This commit is contained in:
Alejandro Colomar 2020-10-28 20:51:25 +01:00 committed by Michael Kerrisk
parent d70361dab7
commit 2adfdd7795
1 changed files with 4 additions and 0 deletions

View File

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