generate_linux_syscalls: Rename mmap_pgoff to mmap2.

This commit is contained in:
Alex Rønne Petersen 2024-10-02 08:14:54 +02:00
parent fe30df6b8c
commit 8060fad425
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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.