authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-23 16:15:52+11:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-25 02:07:23-05:00
log69b780647abd14f0809a58006242397f3e94ac51
treea2f79ef253e884d3681ef4f7870c3ffcd72ba6e5
parent8309b6188d849c5d4c27c086b7759566d9f86716

std: update for linux 5.4


1 files changed, 9 insertions(+), 1 deletions(-)

lib/std/os/bits/linux.zig+9-1
......@@ -1114,11 +1114,17 @@ pub const io_uring_params = extern struct {
11141114 flags: u32,
11151115 sq_thread_cpu: u32,
11161116 sq_thread_idle: u32,
1117 resv: [5]u32,
1117 features: u32,
1118 resv: [4]u32,
11181119 sq_off: io_sqring_offsets,
11191120 cq_off: io_cqring_offsets,
11201121};
11211122
1123// io_uring_params.features flags
1124
1125pub const IORING_FEAT_SINGLE_MMAP = 1 << 0;
1126
1127
11221128// io_uring_params.flags
11231129
11241130/// io_context is polled
......@@ -1185,6 +1191,7 @@ pub const io_uring_sqe = extern struct {
11851191 poll_events: u16,
11861192 sync_range_flags: u32,
11871193 msg_flags: u32,
1194 timeout_flags: u32,
11881195 };
11891196 union1: union1,
11901197 user_data: u64,
......@@ -1217,6 +1224,7 @@ pub const IORING_OP_POLL_REMOVE = 7;
12171224pub const IORING_OP_SYNC_FILE_RANGE = 8;
12181225pub const IORING_OP_SENDMSG = 9;
12191226pub const IORING_OP_RECVMSG = 10;
1227pub const IORING_OP_TIMEOUT = 11;
12201228
12211229// io_uring_sqe.fsync_flags
12221230pub const IORING_FSYNC_DATASYNC = (1 << 0);