getdents.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-03-29 08:15:03 +01:00
parent b36f83cf95
commit 1e9736f39d
1 changed files with 4 additions and 4 deletions

View File

@ -69,12 +69,12 @@ struct linux_dirent {
unsigned long d_off; /* Offset to next \fIlinux_dirent\fP */
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)) */
/* length is actually (d_reclen \- 2 \-
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)
char d_type; // File type (only since Linux
// 2.6.4); offset is (d_reclen \- 1)
*/
}