getdents.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-03-24 16:34:38 +01:00
parent b7ac18e926
commit eda9aaf6ba
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@ struct linux_dirent {
unsigned short d_reclen; /* Length of this \fIlinux_dirent\fP */
char d_name[]; /* Filename (null-terminated) */
/* length is actually (d_reclen \- 2 \-
offsetof(struct linux_dirent, d_name) */
offsetof(struct linux_dirent, d_name)) */
/*
char pad; // Zero padding byte
char d_type; // File type (only since Linux 2.6.4;
// offset is (d_reclen \- 1))
// offset is (d_reclen \- 1)
*/
}