diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-01 13:43:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-01 13:43:16 +0100 |
| commit | 5c6b25d9bb4d6fbee8f823ddc2c4ffcc7b4a9e35 (patch) | |
| tree | 65bf15a41fce09936ffd49e9dbee14bd422bad8f /lib | |
| parent | aa7d138462602e086aacf738e4b92bfa3372bebe (diff) | |
| parent | 17315109336a8ae048f98170f557b9abb79568db (diff) | |
| download | zig-5c6b25d9bb4d6fbee8f823ddc2c4ffcc7b4a9e35.tar.gz zig-5c6b25d9bb4d6fbee8f823ddc2c4ffcc7b4a9e35.zip | |
Merge pull request #22115 from alexrp/x32-tests
`test`: Add `x86_64-linux-(gnux32,muslx32)` to module tests.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/os/linux.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 7bd727e79f..e9a84d8062 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -2451,7 +2451,10 @@ pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize { const length_halves = splitValue64(len); return syscall6( - .fadvise64_64, + switch (builtin.abi) { + .gnuabin32, .gnux32, .muslabin32, .muslx32 => .fadvise64, + else => .fadvise64_64, + }, @as(usize, @bitCast(@as(isize, fd))), offset_halves[0], offset_halves[1], |
