diff options
Diffstat (limited to 'programs/initd')
| -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; } |
