@(#)dirent.h 8.3 (Berkeley) 8/10/94\r
NetBSD: dirent.h,v 1.23 2005/12/26 18:41:36 perry Exp\r
**/\r
-\r
#ifndef _SYS_DIRENT_H_\r
#define _SYS_DIRENT_H_\r
\r
+#include <Uefi.h>\r
+\r
#include <sys/featuretest.h>\r
#include <time.h>\r
#include <sys/time.h>\r
UINT64 FileSize; // The size of the file in bytes.\r
UINT64 PhysicalSize; // The amount of physical space the file consumes\r
// on the file system volume.\r
- struct timespec CreateTime; // The time the file was created.\r
- struct timespec LastAccessTime; // The time when the file was last accessed.\r
- struct timespec ModificationTime; // The time when the file's contents were last modified.\r
+ EFI_TIME CreateTime; // The time the file was created.\r
+ EFI_TIME LastAccessTime; // The time when the file was last accessed.\r
+ EFI_TIME ModificationTime; // The time when the file's contents were last modified.\r
UINT64 Attribute; // (d_type) The attribute bits for the file. See below.\r
CHAR16 FileName[1]; // (d_name) The Null-terminated name of the file.\r
};\r
\r
+/* For compatibility */\r
+#define d_name FileName\r
+#define d_type Attribute\r
+#define d_reclen Size\r
+\r
+\r
/*\r
* File Attributes\r
*/\r