aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gregoratto <dev@sgregoratto.me>2023-11-01 23:30:17 +1100
committerAndrew Kelley <andrew@ziglang.org>2024-01-13 23:52:01 -0700
commit26db31f6f6a5e034333ff81f2352901201572cba (patch)
tree24c8816ac9cf2fe65194fc4931a439b188fe55b4
parentbd46410419086acd274e33b47d9ae5dc1f678a1b (diff)
downloadzig-26db31f6f6a5e034333ff81f2352901201572cba.tar.gz
zig-26db31f6f6a5e034333ff81f2352901201572cba.zip
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.
-rw-r--r--lib/std/os/linux/syscalls.zig11
1 files changed, 11 insertions, 0 deletions
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,
};