public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man/man2/getdents.2: Fix incorrect argument type
@ 2026-04-04  7:49 vursc
  2026-04-04 21:53 ` Mark Harris
  0 siblings, 1 reply; 5+ messages in thread
From: vursc @ 2026-04-04  7:49 UTC (permalink / raw)
  To: linux-man; +Cc: vursc

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-06  8:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04  7:49 [PATCH] man/man2/getdents.2: Fix incorrect argument type vursc
2026-04-04 21:53 ` Mark Harris
2026-04-05 22:04   ` Alejandro Colomar
2026-04-06  5:37   ` vursc
2026-04-06  8:28     ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox