aboutsummaryrefslogtreecommitdiff
path: root/include/base
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-04 14:17:51 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-04 14:17:51 -0800
commit861897dd86ca96410b1c11a8a9cc3086bbcb054f (patch)
tree28aeeca29c0b40e3614adb15770cbc6bcd373887 /include/base
parent12e09f9f85ac48ff891adf92f3b2c9a5fea27273 (diff)
chore(rm): removed small os package. moved functions to filesystem
Diffstat (limited to 'include/base')
-rw-r--r--include/base/fs.h4
-rw-r--r--include/base/io.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/include/base/fs.h b/include/base/fs.h
index bb7ffdc..b2d61c3 100644
--- a/include/base/fs.h
+++ b/include/base/fs.h
@@ -27,3 +27,7 @@ struct fs·Walker
int fs·init(fs·Walker *, char *path);
void fs·fini(fs·Walker *);
void fs·walk(fs·Walker *);
+
+int fs·exists(byte *path, int flag);
+byte *fs·dirname(byte *path);
+byte *fs·basename(byte *path);
diff --git a/include/base/io.h b/include/base/io.h
index 541159f..dae57ef 100644
--- a/include/base/io.h
+++ b/include/base/io.h
@@ -132,11 +132,3 @@ intptr io·offset(io·Header *io);
int io·print(io·Header *io, char *fmt, ...);
int io·vprint(io·Header *io, char *fmt, va_list args);
-
-/* basic os helpers */
-/* XXX: find a better location for this */
-int os·exists(byte *path, int flag);
-byte *os·dirname(byte *path);
-byte *os·basename(byte *path);
-int os·sep(void);
-