mirror of https://github.com/mkerrisk/man-pages
getdents.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b7ac18e926
commit
eda9aaf6ba
|
@ -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)
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue