zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b2c85464bef931c8263b50b40697a584600ee69e (tree)
parent 342bae02d86d9bd9f2db6ae9489021bab28595ae
Author: Veikka Tuominen <git@vexu.eu>
Date:   Mon, 16 Jan 2023 22:25:34 +0200

std.os.linux.io_uring: fix ABI error

`register_files_update` was passing a pointer to a Zig struct to the kernel.

Diffstat:
Mlib/std/os/linux/io_uring.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/os/linux/io_uring.zig b/lib/std/os/linux/io_uring.zig @@ -954,7 +954,7 @@ pub const IO_Uring = struct { pub fn register_files_update(self: *IO_Uring, offset: u32, fds: []const os.fd_t) !void { assert(self.fd >= 0); - const FilesUpdate = struct { + const FilesUpdate = extern struct { offset: u32, resv: u32, fds: u64 align(8),