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) {...@@ -6852,7 +6852,7 @@ pub const Arc = enum(usize) {
6852 keyctl = 219,6852 keyctl = 219,
6853 clone = 220,6853 clone = 220,
6854 execve = 221,6854 execve = 221,
6855 mmap_pgoff = 222,6855 mmap2 = 222,
6856 fadvise64_64 = 223,6856 fadvise64_64 = 223,
6857 swapon = 224,6857 swapon = 224,
6858 swapoff = 225,6858 swapoff = 225,
...@@ -7538,7 +7538,7 @@ pub const Hexagon = enum(usize) {...@@ -7538,7 +7538,7 @@ pub const Hexagon = enum(usize) {
7538 keyctl = 219,7538 keyctl = 219,
7539 clone = 220,7539 clone = 220,
7540 execve = 221,7540 execve = 221,
7541 mmap_pgoff = 222,7541 mmap2 = 222,
7542 fadvise64_64 = 223,7542 fadvise64_64 = 223,
7543 swapon = 224,7543 swapon = 224,
7544 swapoff = 225,7544 swapoff = 225,
tools/generate_linux_syscalls.zig+2
...@@ -22,6 +22,8 @@ const stdlib_renames = std.StaticStringMap([]const u8).initComptime(.{...@@ -22,6 +22,8 @@ const stdlib_renames = std.StaticStringMap([]const u8).initComptime(.{
22 // ARM EABI/Thumb.22 // ARM EABI/Thumb.
23 .{ "arm_sync_file_range", "sync_file_range" },23 .{ "arm_sync_file_range", "sync_file_range" },
24 .{ "arm_fadvise64_64", "fadvise64_64" },24 .{ "arm_fadvise64_64", "fadvise64_64" },
25 // ARC and Hexagon.
26 .{ "mmap_pgoff", "mmap2" },
25});27});
2628
27// Only for newer architectures where we use the C preprocessor.29// Only for newer architectures where we use the C preprocessor.