diff options
author | dzwdz | 2022-07-24 15:07:57 +0200 |
---|---|---|
committer | dzwdz | 2022-07-24 15:07:57 +0200 |
commit | 9f3fdb830f61cd8c8c1f1db9d03cba1c546c1a7e (patch) | |
tree | f5ec030c736f5201332c51cb99169b288185b84b /src/user/fs/misc.h | |
parent | 0228be3fd404cdebecf6d21b8964f6063f12dfbe (diff) |
user: change the directory structure to prepare for multiple binaries
Diffstat (limited to 'src/user/fs/misc.h')
-rw-r--r-- | src/user/fs/misc.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/user/fs/misc.h b/src/user/fs/misc.h deleted file mode 100644 index 3a8b071..0000000 --- a/src/user/fs/misc.h +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once -#include <user/lib/stdlib.h> -#include <stdbool.h> - -bool fork2_n_mount(const char *path); - -void fs_passthru(const char *prefix); -void fs_whitelist(const char **list); - -void fs_dir_inject(const char *path); - -/** Mounts something and injects its path into the fs */ -// TODO path needs to have a trailing slash -#define MOUNT(path, impl) \ - if (!fork2_n_mount(path)) {_klogf("impl %s", path); impl;} \ - if (!fork2_n_mount("/")) {_klogf("dir for %s", path); fs_dir_inject(path);} |