summaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
Diffstat (limited to 'interface')
-rw-r--r--interface/crt0.s1
-rw-r--r--interface/fs.h25
2 files changed, 25 insertions, 1 deletions
diff --git a/interface/crt0.s b/interface/crt0.s
index ad9884f..9ef2a67 100644
--- a/interface/crt0.s
+++ b/interface/crt0.s
@@ -26,7 +26,6 @@ movl $0xf5000000, _impure_ptr
pop %eax
mov %eax, environ
-
# call main (argc and argv are on the stack)
call main
diff --git a/interface/fs.h b/interface/fs.h
new file mode 100644
index 0000000..0a8b59e
--- /dev/null
+++ b/interface/fs.h
@@ -0,0 +1,25 @@
+/**
+ * @file
+ * abstraction layer for filesystems
+ */
+
+#ifndef FOOLOS_FS
+#define FOOLOS_FS
+
+#include <stdint.h>
+
+enum FS_FILE_TYPE{
+ FS_FILE_TYPE_DIR = 1,
+ FS_FILE_TYPE_FILE = 2
+};
+
+typedef struct fs_dirent_struct
+{
+ uint32_t mount; //mount identifier
+ uint32_t inode; //inode number or similar
+ uint8_t type; //FILE OR DIR
+ char name[255];
+
+}fs_dirent;
+
+#endif