From b2c85464bef931c8263b50b40697a584600ee69e Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Mon, 16 Jan 2023 22:25:34 +0200 Subject: [PATCH] std.os.linux.io_uring: fix ABI error `register_files_update` was passing a pointer to a Zig struct to the kernel. --- lib/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 index 3bc3fbaf7b..61bf39105f 100644 --- 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),