From 2e79a2e5af3affa7a6a3becdffb1c91d89af90af Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 21:54:51 +0200 Subject: user: reorganize the userland sources --- src/init/fs/misc.h | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/init/fs/misc.h (limited to 'src/init/fs/misc.h') diff --git a/src/init/fs/misc.h b/src/init/fs/misc.h deleted file mode 100644 index d64ab1e..0000000 --- a/src/init/fs/misc.h +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once -#include -#include - -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);} -- cgit v1.2.3