From 9d60b18e94847a3e124d344a2255a75fb175c06c Mon Sep 17 00:00:00 2001 From: Jiaheng Hu Date: Tue, 23 Jun 2020 19:37:13 +0000 Subject: sys/linux: add openat2 description Added the openat2 syscall for file and for directory. Details of the syscall can be seen at https://man7.org/linux/man-pages/man2/openat2.2.html. --- sys/linux/sys_amd64.const | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/linux/sys_amd64.const') diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index f66b32056..a2d39af2a 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -392,6 +392,11 @@ READ_IMPLIES_EXEC = 4194304 RENAME_EXCHANGE = 2 RENAME_NOREPLACE = 1 RENAME_WHITEOUT = 4 +RESOLVE_BENEATH = 8 +RESOLVE_IN_ROOT = 16 +RESOLVE_NO_MAGICLINKS = 2 +RESOLVE_NO_SYMLINKS = 4 +RESOLVE_NO_XDEV = 1 RLIMIT_AS = 9 RLIMIT_CORE = 4 RLIMIT_CPU = 0 @@ -661,6 +666,7 @@ __NR_newfstatat = 262 __NR_open = 2 __NR_open_by_handle_at = 304 __NR_openat = 257 +__NR_openat2 = 437 __NR_pause = 34 __NR_personality = 135 __NR_pidfd_getfd = 438 -- cgit mrf-deployment