[PATCH] man/man2/getdents.2: Fix incorrect argument type

vursc
2026-04-04T07:49:15Z

The count argument of getdents64 is an unsigned int; see
SYSCALL_DEFINE3(getdents64, ...) in linux/fs/readdir.c.

Signed-off-by: vursc <vursc@vursc.org>
---
man/man2/getdents.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man2/getdents.2 b/man/man2/getdents.2
index 8c5bbebbc..3890943ee 100644
--- a/man/man2/getdents.2
+++ b/man/man2/getdents.2
@@ -23,7 +23,7 @@ Standard C library
.B #include <dirent.h>
.P
.BR "ssize_t getdents64(" "size_t count;"
-.BI " int " fd ", void " dirp [ count "], size_t " count );
+.BI " int " fd ", void " dirp [ count "], unsigned int " count );
.fi
.P
.IR Note :
--
2.53.0