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