Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / usr / libc / src / posix / mount.c
diff --git a/lunaix-os/usr/libc/src/posix/mount.c b/lunaix-os/usr/libc/src/posix/mount.c
new file mode 100644 (file)
index 0000000..930930c
--- /dev/null
@@ -0,0 +1,14 @@
+#include <lunaix/syscall.h>
+
+int
+mount(const char* source, const char* target,
+      const char* fstype, int options)
+{
+    return do_lunaix_syscall(__SYSCALL_mount, source, target, fstype, options);
+}
+
+int
+unmount(const char* target)
+{
+    return do_lunaix_syscall(__SYSCALL_unmount, target);
+}
\ No newline at end of file