From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/linux/mount.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/linux/mount.c (limited to 'src/linux/mount.c') diff --git a/src/linux/mount.c b/src/linux/mount.c new file mode 100644 index 0000000..34e11af --- /dev/null +++ b/src/linux/mount.c @@ -0,0 +1,17 @@ +#include +#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); +} -- cgit v1.2.3