On 09/19/2018 07:12 PM, Eugene Syromyatnikov wrote: > Signed-off-by: Eugene Syromyatnikov <evgsyr@xxxxxxxxx> Thanks, Eugene. Patch applied. Cheers, Michael > --- > 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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/