From 861897dd86ca96410b1c11a8a9cc3086bbcb054f Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 4 Dec 2021 14:17:51 -0800 Subject: chore(rm): removed small os package. moved functions to filesystem --- include/base/fs.h | 4 ++++ include/base/io.h | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'include/base') 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); - -- cgit v1.2.1