summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/linux/mount.c')
-rw-r--r--libc-top-half/musl/src/linux/mount.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/linux/mount.c b/libc-top-half/musl/src/linux/mount.c
new file mode 100644
index 0000000..34e11af
--- /dev/null
+++ b/libc-top-half/musl/src/linux/mount.c
@@ -0,0 +1,17 @@
+#include <sys/mount.h>
+#include "syscall.h"
+
+int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data)
+{
+ return syscall(SYS_mount, special, dir, fstype, flags, data);
+}
+
+int umount(const char *special)
+{
+ return syscall(SYS_umount2, special, 0);
+}
+
+int umount2(const char *special, int flags)
+{
+ return syscall(SYS_umount2, special, flags);
+}