aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
diff options
context:
space:
mode:
authorJoran Dirk Greef <joran@ronomon.com>2020-09-19 18:50:24 +0200
committerJoran Dirk Greef <joran@ronomon.com>2020-09-19 18:50:24 +0200
commit4bc1b7a7ac99d57619b4f9a84e159310820e83ff (patch)
treec27823f6eb0a5abace7a3ca9019a1e182041ee11 /lib/std/os/bits/linux.zig
parent92407bfcd7b65f153b7523d97ac5f69193561d27 (diff)
downloadzig-4bc1b7a7ac99d57619b4f9a84e159310820e83ff.tar.gz
zig-4bc1b7a7ac99d57619b4f9a84e159310820e83ff.zip
Fix io_uring_sqe to use the names of the first member of each union
Now we're really future-proof... no more `opflags` creeping in. When anonymous unions land, we can start using `accept_flags` etc. Until then, code using this struct won't break when the kernel adds features. Refs: https://github.com/ziglang/zig/issues/6349 Refs: https://github.com/ziglang/zig/issues/985
Diffstat (limited to 'lib/std/os/bits/linux.zig')
-rw-r--r--lib/std/os/bits/linux.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig
index 703c08fc4a..9c0a29a652 100644
--- a/lib/std/os/bits/linux.zig
+++ b/lib/std/os/bits/linux.zig
@@ -1272,7 +1272,7 @@ pub const io_uring_sqe = extern struct {
off: u64,
addr: u64,
len: u32,
- opflags: u32,
+ rw_flags: u32,
user_data: u64,
buf_index: u16,
personality: u16,