summaryrefslogtreecommitdiff
path: root/StdLib/Include
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/Include')
-rw-r--r--StdLib/Include/sys/dirent.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/StdLib/Include/sys/dirent.h b/StdLib/Include/sys/dirent.h
index 64b46e4d46..2c171de5b7 100644
--- a/StdLib/Include/sys/dirent.h
+++ b/StdLib/Include/sys/dirent.h
@@ -43,10 +43,11 @@
@(#)dirent.h 8.3 (Berkeley) 8/10/94
NetBSD: dirent.h,v 1.23 2005/12/26 18:41:36 perry Exp
**/
-
#ifndef _SYS_DIRENT_H_
#define _SYS_DIRENT_H_
+#include <Uefi.h>
+
#include <sys/featuretest.h>
#include <time.h>
#include <sys/time.h>
@@ -70,13 +71,19 @@ struct dirent {
UINT64 FileSize; // The size of the file in bytes.
UINT64 PhysicalSize; // The amount of physical space the file consumes
// on the file system volume.
- struct timespec CreateTime; // The time the file was created.
- struct timespec LastAccessTime; // The time when the file was last accessed.
- struct timespec ModificationTime; // The time when the file's contents were last modified.
+ EFI_TIME CreateTime; // The time the file was created.
+ EFI_TIME LastAccessTime; // The time when the file was last accessed.
+ EFI_TIME ModificationTime; // The time when the file's contents were last modified.
UINT64 Attribute; // (d_type) The attribute bits for the file. See below.
CHAR16 FileName[1]; // (d_name) The Null-terminated name of the file.
};
+/* For compatibility */
+#define d_name FileName
+#define d_type Attribute
+#define d_reclen Size
+
+
/*
* File Attributes
*/