aboutsummaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-11 00:05:00 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-11 00:08:15 +0100
commitf7ad4d9216b488f76ed4b3c8e423cd926e134b9d (patch)
tree39a83931c1c8a5e6d025623aba5e5826c7ef38e0 /programs
parent7861a52adf92a083bb2aed4c35f98d8035dce032 (diff)
WIP
Diffstat (limited to 'programs')
-rw-r--r--programs/initd/initd.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/programs/initd/initd.c b/programs/initd/initd.c
index 67ac4d4..5e200b3 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 1
#include <sys/mount.h>
+#endif
+#include <sys/stat.h>
#include <errno.h>
#include <stddef.h>
+#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
- if (mount("/dev/mc0", "/home", "ps1mcfs", 0, NULL))
+#if 0
+ puts("hi from wasm!");
+#endif
+#if 1
+ if (mkdir("/home", 0755))
return errno;
+#endif
+#if 1
+ if (mount("/dev/mc0", "/home", NULL, 0, NULL))
+ return errno;
+#endif
return 1;
}