From 717eabde1f5b49b7377931e6b0ac0790be5305f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 29 Nov 2002 02:49:58 +0000 Subject: [PATCH] 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 --- headers/posix/dirent.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/posix/dirent.h b/headers/posix/dirent.h index d0191cf709..801e4dbce8 100644 --- a/headers/posix/dirent.h +++ b/headers/posix/dirent.h @@ -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 {