Commit b2c85464be

Veikka Tuominen <git@vexu.eu>
2023-01-16 21:25:34
std.os.linux.io_uring: fix ABI error
`register_files_update` was passing a pointer to a Zig struct to the kernel.
1 parent 342bae0
Changed files (1)
lib
std
os
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),