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.
This commit is contained in:
Stephen Gregoratto 2023-11-01 23:30:17 +11:00 committed by Andrew Kelley
parent bd46410419
commit 26db31f6f6

View File

@ -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,
};