aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libc/sys')
-rw-r--r--system/include/libc/sys/dirent.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/system/include/libc/sys/dirent.h b/system/include/libc/sys/dirent.h
index a3fb5c02..5dc42ebe 100644
--- a/system/include/libc/sys/dirent.h
+++ b/system/include/libc/sys/dirent.h
@@ -7,7 +7,23 @@
#ifdef __cplusplus
extern "C" {
#endif
-#error "<dirent.h> not supported"
+
+struct DIR;
+
+/* XXX Emscripten */
+struct dirent {
+ ino_t d_ino;
+ char d_name[MAXNAMLEN];
+ int d_off;
+ int d_reclen;
+ char d_type;
+};
+
+DIR *opendir(const char *);
+void seekdir(DIR *, long);
+long telldir(DIR *);
+struct dirent *readdir(DIR *);
+
#ifdef __cplusplus
}
#endif