Added comments to the fields of the dirent structure. Most important one
is d_reclen which points out that this field is not the name length but the one of the whole record (this is also handled incorrectly by the kernel file systems right now). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2109 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0010bfc64f
commit
717eabde1f
@ -8,12 +8,12 @@
|
||||
|
||||
|
||||
typedef struct dirent {
|
||||
dev_t d_dev;
|
||||
dev_t d_pdev;
|
||||
ino_t d_ino;
|
||||
ino_t d_pino;
|
||||
unsigned short d_reclen;
|
||||
char d_name[1];
|
||||
dev_t d_dev; /* device */
|
||||
dev_t d_pdev; /* parent device (only for queries) */
|
||||
ino_t d_ino; /* inode number */
|
||||
ino_t d_pino; /* parent inode (only for queries) */
|
||||
unsigned short d_reclen; /* length of this record, not the name */
|
||||
char d_name[1]; /* name of the entry (null byte terminated) */
|
||||
} dirent_t;
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user