std: update for linux 5.4

This commit is contained in:
daurnimator 2019-11-23 16:15:52 +11:00 committed by Andrew Kelley
parent 8309b6188d
commit 69b780647a

View File

@ -1114,11 +1114,17 @@ pub const io_uring_params = extern struct {
flags: u32,
sq_thread_cpu: u32,
sq_thread_idle: u32,
resv: [5]u32,
features: u32,
resv: [4]u32,
sq_off: io_sqring_offsets,
cq_off: io_cqring_offsets,
};
// io_uring_params.features flags
pub const IORING_FEAT_SINGLE_MMAP = 1 << 0;
// io_uring_params.flags
/// io_context is polled
@ -1185,6 +1191,7 @@ pub const io_uring_sqe = extern struct {
poll_events: u16,
sync_range_flags: u32,
msg_flags: u32,
timeout_flags: u32,
};
union1: union1,
user_data: u64,
@ -1217,6 +1224,7 @@ pub const IORING_OP_POLL_REMOVE = 7;
pub const IORING_OP_SYNC_FILE_RANGE = 8;
pub const IORING_OP_SENDMSG = 9;
pub const IORING_OP_RECVMSG = 10;
pub const IORING_OP_TIMEOUT = 11;
// io_uring_sqe.fsync_flags
pub const IORING_FSYNC_DATASYNC = (1 << 0);