summaryrefslogtreecommitdiff
path: root/src/linux/name_to_handle_at.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/name_to_handle_at.c')
-rw-r--r--src/linux/name_to_handle_at.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/linux/name_to_handle_at.c b/src/linux/name_to_handle_at.c
new file mode 100644
index 00000000..cd4075bd
--- /dev/null
+++ b/src/linux/name_to_handle_at.c
@@ -0,0 +1,10 @@
+#define _GNU_SOURCE
+#include <fcntl.h>
+#include "syscall.h"
+
+int name_to_handle_at(int dirfd, const char *pathname,
+ struct file_handle *handle, int *mount_id, int flags)
+{
+ return syscall(SYS_name_to_handle_at, dirfd,
+ pathname, handle, mount_id, flags);
+}