aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/mount.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-11 16:14:56 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-11 16:14:56 +0100
commit05cf1511dfcde10717894bab2004150ad43cca3f (patch)
treeacada1433570dc18d3de473c48d7ab8b071f3795 /lib/sys/mount.h
parent331e61b02afbd48b00ae135b3fab096b9ef16741 (diff)
add mount
Diffstat (limited to 'lib/sys/mount.h')
-rw-r--r--lib/sys/mount.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/mount.h b/lib/sys/mount.h
new file mode 100644
index 0000000..6451b22
--- /dev/null
+++ b/lib/sys/mount.h
@@ -0,0 +1,11 @@
+#ifndef MOUNT_H
+#define MOUNT_H
+
+#include "syscalls.h"
+
+int mount(const char *src, const char *target, const char *type, unsigned long flags, const void *data)
+{
+ return syscall(MOUNT, src, target, type, flags, data);
+}
+
+#endif