mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std: update for linux 5.4
This commit is contained in:
parent
8309b6188d
commit
69b780647a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user