| author | |
| committer | |
| log | 2eadc2177a673c5ca5130d677c0eebca8a8eb981 |
| tree | fa102aa1c40db61890dcf8482e48052411473ab5 |
| parent | 3c46da14db296beec186c3df4fe3669f6c99b715 |
| signature |
Fixes ziglang/zig#36597. The syscall io_uring_register with opcode
REGISTER_FILE_ALLOC_RANGE will always return -EINVAL unless `nr_args` is
zero.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux/IoUring.zig+1-1| ... | ... | @@ -1230,7 +1230,7 @@ pub fn register_file_alloc_range(self: *IoUring, offset: u32, len: u32) !void { |
| 1230 | 1230 | self.fd, |
| 1231 | 1231 | .REGISTER_FILE_ALLOC_RANGE, |
| 1232 | 1232 | @ptrCast(range), |
| 1233 | @as(u32, @sizeOf(linux.io_uring_file_index_range)), | |
| 1233 | 0, | |
| 1234 | 1234 | ); |
| 1235 | 1235 | |
| 1236 | 1236 | return handle_registration_result(res); |