public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Issue in man page getdents.2
@ 2023-11-01 14:02 Helge Kreutzmann
  2023-11-01 15:28 ` Alejandro Colomar
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Kreutzmann @ 2023-11-01 14:02 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    Zero padding byte →  null padding byte?

msgid ""
"struct linux_dirent {\n"
"    unsigned long  d_ino;     /* Inode number */\n"
"    unsigned long  d_off;     /* Offset to next I<linux_dirent> */\n"
"    unsigned short d_reclen;  /* Length of this I<linux_dirent> */\n"
"    char           d_name[];  /* Filename (null-terminated) */\n"
"                      /* length is actually (d_reclen - 2 -\n"
"                         offsetof(struct linux_dirent, d_name)) */\n"
"    /*\n"
"    char           pad;       // Zero padding byte\n"
"    char           d_type;    // File type (only since Linux\n"
"                              // 2.6.4); offset is (d_reclen - 1)\n"
"    */\n"
"}\n"

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Issue in man page getdents.2
@ 2024-11-17 10:46 Helge Kreutzmann
  2024-11-17 15:24 ` Alejandro Colomar
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Kreutzmann @ 2024-11-17 10:46 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    B<readdir>(3)B<.> → B<readdir>(3).

"I<d_ino> is an inode number.  I<d_off> is a filesystem-specific value with "
"no specific meaning to user space, though on older filesystems it used to be "
"the distance from the start of the directory to the start of the next "
"I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
"entire I<linux_dirent>.  I<d_name> is a null-terminated filename."

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Issue in man page getdents.2
@ 2025-08-24 14:48 Helge Kreutzmann
  0 siblings, 0 replies; 7+ messages in thread
From: Helge Kreutzmann @ 2025-08-24 14:48 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    B<ssize_t getdents64(>size_t count; → B<ssize_t getdents64(size_t >I<count>B<;>

"B<ssize_t getdents64(>size_t count;\n"
"B<                   int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"

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

end of thread, other threads:[~2025-08-24 14:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 14:02 Issue in man page getdents.2 Helge Kreutzmann
2023-11-01 15:28 ` Alejandro Colomar
2023-11-01 15:40   ` Helge Kreutzmann
2023-11-11 19:45     ` Alejandro Colomar
  -- strict thread matches above, loose matches on Subject: below --
2024-11-17 10:46 Helge Kreutzmann
2024-11-17 15:24 ` Alejandro Colomar
2025-08-24 14:48 Helge Kreutzmann

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