aboutsummaryrefslogtreecommitdiff
path: root/programs/initd/initd.c
diff options
context:
space:
mode:
Diffstat (limited to 'programs/initd/initd.c')
-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;
}