From 20d8f138db4ccac83a89a4339271b0ac12d10e12 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 8 Sep 2025 20:47:23 +0200 Subject: WIP --- programs/initd/initd.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'programs/initd') diff --git a/programs/initd/initd.c b/programs/initd/initd.c index 1568995..1be1a9c 100644 --- a/programs/initd/initd.c +++ b/programs/initd/initd.c @@ -16,15 +16,28 @@ * along with this program. If not, see . */ +#if 0 #include +#endif +#include #include #include +#include #include int main(void) { - if (mount("/dev/mc0", "/home", "ps1mcfs", 0, NULL)) +#if 1 + puts("hi from wasm!"); +#endif +#if 0 + if (mkdir("/home", 0755)) return errno; +#endif +#if 0 + if (mount("/dev/mc0", "/home", NULL, 0, NULL)) + return errno; +#endif return 1; } -- cgit v1.2.3