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:
Axel Dörfler 2002-11-29 02:49:58 +00:00
parent 0010bfc64f
commit 717eabde1f
1 changed files with 6 additions and 6 deletions

View File

@ -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 {