[CRIU] [PATCH 1/6] syscall: Add sys_open_by_handle_at
Cyrill Gorcunov
gorcunov at openvz.org
Tue Apr 17 09:22:26 EDT 2012
Need it for inotify restore.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/syscall-codes.h | 1 +
include/syscall.h | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/syscall-codes.h b/include/syscall-codes.h
index b7ed848..f1c7ff6 100644
--- a/include/syscall-codes.h
+++ b/include/syscall-codes.h
@@ -53,6 +53,7 @@
#define __NR_set_tid_address 218
#define __NR_restart_syscall 219
#define __NR_msync 227
+#define __NR_open_by_handle_at 304
#define __NR_setns 308
#define __NR_kcmp 312
diff --git a/include/syscall.h b/include/syscall.h
index 5baaf7f..0b92e07 100644
--- a/include/syscall.h
+++ b/include/syscall.h
@@ -419,6 +419,14 @@ static long always_inline sys_fcntl(int fd, int type, long arg)
return syscall3(__NR_fcntl, (long)fd, (long)type, (long)arg);
}
+struct file_handle;
+
+static long always_inline
+sys_open_by_handle_at(int mountdirfd, struct file_handle *handle, int flags)
+{
+ return syscall3(__NR_open_by_handle_at, (long)mountdirfd, (long)handle, (long)flags);
+}
+
#ifndef F_GETFD
#define F_GETFD 1
#endif
--
1.7.7.6
More information about the CRIU
mailing list