math: fix i386/expl.s with more precise x*log2e
[musl] / src / linux / mount.c
index 61299d4..34e11af 100644 (file)
@@ -1,8 +1,17 @@
 #include <sys/mount.h>
-#define SYSCALL_STANDALONE
 #include "syscall.h"
 
 int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data)
 {
-       return syscall5(__NR_mount, (long)special, (long)dir, (long)fstype, flags, (long)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);
 }