authorgravatar for dev@sgregoratto.meStephen Gregoratto <dev@sgregoratto.me> 2023-11-01 23:30:17+11:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-13 23:52:01-07:00
log26db31f6f6a5e034333ff81f2352901201572cba
tree24c8816ac9cf2fe65194fc4931a439b188fe55b4
parentbd46410419086acd274e33b47d9ae5dc1f678a1b

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.

1 files changed, 11 insertions(+), 0 deletions(-)

lib/std/os/linux/syscalls.zig+11
......@@ -443,6 +443,7 @@ pub const X86 = enum(usize) {
443443 futex_waitv = 449,
444444 set_mempolicy_home_node = 450,
445445 cachestat = 451,
446 fchmodat2 = 452,
446447};
447448
448449pub const X64 = enum(usize) {
......@@ -809,6 +810,8 @@ pub const X64 = enum(usize) {
809810 futex_waitv = 449,
810811 set_mempolicy_home_node = 450,
811812 cachestat = 451,
813 fchmodat2 = 452,
814 map_shadow_stack = 453,
812815};
813816
814817pub const Arm = enum(usize) {
......@@ -1218,6 +1221,7 @@ pub const Arm = enum(usize) {
12181221 futex_waitv = 449,
12191222 set_mempolicy_home_node = 450,
12201223 cachestat = 451,
1224 fchmodat2 = 452,
12211225
12221226 breakpoint = arm_base + 1,
12231227 cacheflush = arm_base + 2,
......@@ -1611,6 +1615,7 @@ pub const Sparc64 = enum(usize) {
16111615 futex_waitv = 449,
16121616 set_mempolicy_home_node = 450,
16131617 cachestat = 451,
1618 fchmodat2 = 452,
16141619};
16151620
16161621pub const Mips = enum(usize) {
......@@ -2035,6 +2040,7 @@ pub const Mips = enum(usize) {
20352040 futex_waitv = Linux + 449,
20362041 set_mempolicy_home_node = Linux + 450,
20372042 cachestat = Linux + 451,
2043 fchmodat2 = Linux + 452,
20382044};
20392045
20402046pub const Mips64 = enum(usize) {
......@@ -2395,6 +2401,7 @@ pub const Mips64 = enum(usize) {
23952401 futex_waitv = Linux + 449,
23962402 set_mempolicy_home_node = Linux + 450,
23972403 cachestat = Linux + 451,
2404 fchmodat2 = Linux + 452,
23982405};
23992406
24002407pub const PowerPC = enum(usize) {
......@@ -2830,6 +2837,7 @@ pub const PowerPC = enum(usize) {
28302837 futex_waitv = 449,
28312838 set_mempolicy_home_node = 450,
28322839 cachestat = 451,
2840 fchmodat2 = 452,
28332841};
28342842
28352843pub const PowerPC64 = enum(usize) {
......@@ -3237,6 +3245,7 @@ pub const PowerPC64 = enum(usize) {
32373245 futex_waitv = 449,
32383246 set_mempolicy_home_node = 450,
32393247 cachestat = 451,
3248 fchmodat2 = 452,
32403249};
32413250
32423251pub const Arm64 = enum(usize) {
......@@ -3547,6 +3556,7 @@ pub const Arm64 = enum(usize) {
35473556 futex_waitv = 449,
35483557 set_mempolicy_home_node = 450,
35493558 cachestat = 451,
3559 fchmodat2 = 452,
35503560};
35513561
35523562pub const RiscV64 = enum(usize) {
......@@ -3858,6 +3868,7 @@ pub const RiscV64 = enum(usize) {
38583868 futex_waitv = 449,
38593869 set_mempolicy_home_node = 450,
38603870 cachestat = 451,
3871 fchmodat2 = 452,
38613872
38623873 riscv_flush_icache = arch_specific_syscall + 15,
38633874};