Commit 8060fad425
Changed files (2)
lib
std
os
linux
lib/std/os/linux/syscalls.zig
@@ -6852,7 +6852,7 @@ pub const Arc = enum(usize) {
keyctl = 219,
clone = 220,
execve = 221,
- mmap_pgoff = 222,
+ mmap2 = 222,
fadvise64_64 = 223,
swapon = 224,
swapoff = 225,
@@ -7538,7 +7538,7 @@ pub const Hexagon = enum(usize) {
keyctl = 219,
clone = 220,
execve = 221,
- mmap_pgoff = 222,
+ mmap2 = 222,
fadvise64_64 = 223,
swapon = 224,
swapoff = 225,
tools/generate_linux_syscalls.zig
@@ -22,6 +22,8 @@ const stdlib_renames = std.StaticStringMap([]const u8).initComptime(.{
// ARM EABI/Thumb.
.{ "arm_sync_file_range", "sync_file_range" },
.{ "arm_fadvise64_64", "fadvise64_64" },
+ // ARC and Hexagon.
+ .{ "mmap_pgoff", "mmap2" },
});
// Only for newer architectures where we use the C preprocessor.