summaryrefslogtreecommitdiffstats
path: root/usr/klibc/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/umount.c')
-rw-r--r--usr/klibc/umount.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/klibc/umount.c b/usr/klibc/umount.c
new file mode 100644
index 0000000..d31a300
--- /dev/null
+++ b/usr/klibc/umount.c
@@ -0,0 +1,12 @@
+/*
+ * umount.c
+ *
+ * Single-argument form of umount
+ */
+
+#include <sys/mount.h>
+
+int umount(const char *dir)
+{
+ return umount2(dir, 0);
+}