summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/posix/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/sdk/inc/posix/dirent.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/public/sdk/inc/posix/dirent.h b/public/sdk/inc/posix/dirent.h
new file mode 100644
index 000000000..284d12004
--- /dev/null
+++ b/public/sdk/inc/posix/dirent.h
@@ -0,0 +1,46 @@
+/*++
+
+Copyright (c) 1989-1996 Microsoft Corporation
+
+Module Name:
+
+ dirent.h
+
+Abstract:
+
+ This module contains the directory entry procedure
+ prototypes
+
+--*/
+
+#ifndef _DIRENT_
+#define _DIRENT_
+
+#include <types.h>
+#include <limits.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct dirent {
+ char d_name[NAME_MAX+1];
+};
+
+typedef struct _DIR {
+ int Directory;
+ unsigned long Index;
+ char RestartScan; /* really BOOLEAN */
+ struct dirent Dirent;
+} DIR;
+
+DIR * _CRTAPI1 opendir(const char *);
+struct dirent * _CRTAPI1 readdir(DIR *);
+void _CRTAPI1 rewinddir(DIR *);
+int _CRTAPI1 closedir(DIR *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DIRENT_H */