[PATCH 10/16] readdir.2: fix struct old_linux_dirent in accordance with current definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Eugene Syromyatnikov <evgsyr@xxxxxxxxx>
---
 man2/readdir.2 | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/man2/readdir.2 b/man2/readdir.2
index 37aa018..77c0c65 100644
--- a/man2/readdir.2
+++ b/man2/readdir.2
@@ -64,22 +64,24 @@ structure is read.
 .PP
 The
 .I old_linux_dirent
-structure is declared as follows:
+structure is declared (privately in Linux kernel file
+.BR fs/readdir.c )
+as follows:
 .PP
 .in +4n
 .EX
 struct old_linux_dirent {
-    long  d_ino;              /* inode number */
-    off_t d_off;              /* offset to this \fIold_linux_dirent\fP */
-    unsigned short d_reclen;  /* length of this \fId_name\fP */
-    char  d_name[NAME_MAX+1]; /* filename (null-terminated) */
+    unsigned long d_ino;     /* inode number */
+    unsigned long d_offset;  /* offset to this \fIold_linux_dirent\fP */
+    unsigned short d_namlen; /* length of this \fId_name\fP */
+    char  d_name[1];         /* filename (null-terminated) */
 }
 .EE
 .in
 .PP
 .I d_ino
 is an inode number.
-.I d_off
+.I d_offset
 is the distance from the start of the directory to this
 .IR old_linux_dirent .
 .I d_reclen
-- 
2.1.4




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux