remount: add new syscall interface
authorAlan Cox <alan@linux.intel.com>
Sun, 22 Oct 2017 14:13:13 +0000 (15:13 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 22 Oct 2017 14:13:13 +0000 (15:13 +0100)
Library/libs/remount.c [new file with mode: 0644]

diff --git a/Library/libs/remount.c b/Library/libs/remount.c
new file mode 100644 (file)
index 0000000..0b9ba1d
--- /dev/null
@@ -0,0 +1,7 @@
+#include <syscalls.h>
+#include <sys/mount.h>
+
+int remount(const char *target, int flags)
+{
+    return _umount(target, flags | MS_REMOUNT);
+}