All of lore.kernel.org
 help / color / mirror / Atom feed
From: vursc <vursc@vursc.org>
To: linux-man@vger.kernel.org
Cc: vursc <vursc@vursc.org>
Subject: [PATCH] man/man2/getdents.2: Fix incorrect argument type
Date: Sat,  4 Apr 2026 07:49:09 +0000	[thread overview]
Message-ID: <20260404074909.92900-1-vursc@vursc.org> (raw)

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


             reply	other threads:[~2026-04-04  7:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-04  7:49 vursc [this message]
2026-04-04 21:53 ` [PATCH] man/man2/getdents.2: Fix incorrect argument type Mark Harris
2026-04-05 22:04   ` Alejandro Colomar
2026-04-06  5:37   ` vursc
2026-04-06  8:28     ` Alejandro Colomar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260404074909.92900-1-vursc@vursc.org \
    --to=vursc@vursc.org \
    --cc=linux-man@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.