aboutsummaryrefslogtreecommitdiff
path: root/include/base/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base/fs.h')
-rw-r--r--include/base/fs.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/base/fs.h b/include/base/fs.h
index b2d61c3..dc6ef9e 100644
--- a/include/base/fs.h
+++ b/include/base/fs.h
@@ -9,9 +9,16 @@ enum
};
#undef iota
-typedef struct fs·Walker fs·Walker;
-typedef struct fs·History fs·History;
+typedef struct fs·Walker fs·Walker;
+typedef struct fs·History fs·History;
+typedef sys·DirEntry fs·DirEntry;
+typedef sys·Directory fs·Directory;
+
+/* node in filesystem */
+
+// XXX: simplify with our newer code
+/* walk a filesystem hierarchy */
struct fs·Walker
{
int fd, lev, max, err;
@@ -28,6 +35,7 @@ int fs·init(fs·Walker *, char *path);
void fs·fini(fs·Walker *);
void fs·walk(fs·Walker *);
+/* small utilities */
int fs·exists(byte *path, int flag);
byte *fs·dirname(byte *path);
byte *fs·basename(byte *path);