summaryrefslogtreecommitdiff
path: root/stage3/fs.h
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-19 19:31:03 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-19 19:41:57 +0100
commit42c69b59e1fdcf70219bc04a3124d2f35d9463ac (patch)
tree554838f5c4a759262563e3fb505d0a7097acf8ea /stage3/fs.h
parent3102878c86c810c0bf877d72aceefeb28a44271d (diff)
downloadcuddles-42c69b59e1fdcf70219bc04a3124d2f35d9463ac.tar.xz
ls command
Diffstat (limited to 'stage3/fs.h')
-rw-r--r--stage3/fs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/stage3/fs.h b/stage3/fs.h
index c1fea24..f75f511 100644
--- a/stage3/fs.h
+++ b/stage3/fs.h
@@ -5,4 +5,18 @@
str fs_read(str filename);
+typedef struct {
+ str name;
+ bool is_dir;
+ usize size;
+ usize children;
+} dirent;
+
+typedef struct {
+ usize len;
+ dirent *data;
+} dir;
+
+dir fs_readdir(str path);
+
#endif