aboutsummaryrefslogtreecommitdiff
path: root/core/unmount.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-14 17:09:59 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-14 17:09:59 +0100
commit7a98e998c5cda484611d19854649ab8535f503d4 (patch)
tree43f7dae6921ced5ee9001f1d31c662351678a718 /core/unmount.c
parentc0178363472e162a7cb21e381c512979130dfdb0 (diff)
add simplet init system
Diffstat (limited to 'core/unmount.c')
-rw-r--r--core/unmount.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/unmount.c b/core/unmount.c
new file mode 100644
index 0000000..81103d9
--- /dev/null
+++ b/core/unmount.c
@@ -0,0 +1,12 @@
+#include "../lib/io/io.h"
+#include "../lib/sys/unmount.h"
+
+int main(int argc, char **argv)
+{
+ if (argc != 2) {
+ wff(STDERR_FD, "unmount <path>\n");
+ return -1;
+ }
+
+ return unmount(argv[1], 9);
+}