authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-02 08:14:54+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-03 09:12:35+02:00
log8060fad4250d0157ac412f95c76511770e1eb097
treecb5dbe7346c4efa5d7c59f99dee25a9cd59ca9b4
parentfe30df6b8c398000c737b9370750dda5a4c24911
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

generate_linux_syscalls: Rename mmap_pgoff to mmap2.


2 files changed, 4 insertions(+), 2 deletions(-)

lib/std/os/linux/syscalls.zig+2-2
......@@ -6852,7 +6852,7 @@ pub const Arc = enum(usize) {
68526852 keyctl = 219,
68536853 clone = 220,
68546854 execve = 221,
6855 mmap_pgoff = 222,
6855 mmap2 = 222,
68566856 fadvise64_64 = 223,
68576857 swapon = 224,
68586858 swapoff = 225,
......@@ -7538,7 +7538,7 @@ pub const Hexagon = enum(usize) {
75387538 keyctl = 219,
75397539 clone = 220,
75407540 execve = 221,
7541 mmap_pgoff = 222,
7541 mmap2 = 222,
75427542 fadvise64_64 = 223,
75437543 swapon = 224,
75447544 swapoff = 225,
tools/generate_linux_syscalls.zig+2
......@@ -22,6 +22,8 @@ const stdlib_renames = std.StaticStringMap([]const u8).initComptime(.{
2222 // ARM EABI/Thumb.
2323 .{ "arm_sync_file_range", "sync_file_range" },
2424 .{ "arm_fadvise64_64", "fadvise64_64" },
25 // ARC and Hexagon.
26 .{ "mmap_pgoff", "mmap2" },
2527});
2628
2729// Only for newer architectures where we use the C preprocessor.