diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-08 20:47:23 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-15 23:14:43 +0200 |
| commit | 20d8f138db4ccac83a89a4339271b0ac12d10e12 (patch) | |
| tree | d15832e2d39b614540fc9b2b87f00e8b2feda147 /programs/initd/initd.c | |
| parent | b42e218f0d66af002c585a6bb0f586f92a628a40 (diff) | |
WIPsio-115200
Diffstat (limited to 'programs/initd/initd.c')
| -rw-r--r-- | programs/initd/initd.c | 15 |
1 files changed, 14 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. */ +#if 0 #include <sys/mount.h> +#endif +#include <sys/stat.h> #include <errno.h> #include <stddef.h> +#include <stdio.h> #include <stdlib.h> 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; } |
