From 26db31f6f6a5e034333ff81f2352901201572cba Mon Sep 17 00:00:00 2001 From: Stephen Gregoratto Date: Wed, 1 Nov 2023 23:30:17 +1100 Subject: Add `fchmodat2` to the Linux syscall list This syscall was added to simplify the the libc implementations of fchmodat, as the original syscall does not take a `flags` argument. Another syscall, `map_shadow_stack`, was also added for x86_64. --- lib/std/os/linux/syscalls.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/std/os/linux/syscalls.zig b/lib/std/os/linux/syscalls.zig index b919c354c2..b584f2bd17 100644 --- a/lib/std/os/linux/syscalls.zig +++ b/lib/std/os/linux/syscalls.zig @@ -443,6 +443,7 @@ pub const X86 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, }; pub const X64 = enum(usize) { @@ -809,6 +810,8 @@ pub const X64 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, + map_shadow_stack = 453, }; pub const Arm = enum(usize) { @@ -1218,6 +1221,7 @@ pub const Arm = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, breakpoint = arm_base + 1, cacheflush = arm_base + 2, @@ -1611,6 +1615,7 @@ pub const Sparc64 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, }; pub const Mips = enum(usize) { @@ -2035,6 +2040,7 @@ pub const Mips = enum(usize) { futex_waitv = Linux + 449, set_mempolicy_home_node = Linux + 450, cachestat = Linux + 451, + fchmodat2 = Linux + 452, }; pub const Mips64 = enum(usize) { @@ -2395,6 +2401,7 @@ pub const Mips64 = enum(usize) { futex_waitv = Linux + 449, set_mempolicy_home_node = Linux + 450, cachestat = Linux + 451, + fchmodat2 = Linux + 452, }; pub const PowerPC = enum(usize) { @@ -2830,6 +2837,7 @@ pub const PowerPC = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, }; pub const PowerPC64 = enum(usize) { @@ -3237,6 +3245,7 @@ pub const PowerPC64 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, }; pub const Arm64 = enum(usize) { @@ -3547,6 +3556,7 @@ pub const Arm64 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, }; pub const RiscV64 = enum(usize) { @@ -3858,6 +3868,7 @@ pub const RiscV64 = enum(usize) { futex_waitv = 449, set_mempolicy_home_node = 450, cachestat = 451, + fchmodat2 = 452, riscv_flush_icache = arch_specific_syscall + 15, }; -- cgit v1.2.3