Skip to content

Commit fe648af

Browse files
committed
Implement some more IoUring operations
Add timeout update, cancel_fd, epoll_wait, files_update, open, open_direct, f/madvice don't implement f/madvice64 for now I doubt it is used by a lot of people in practice Implement BufferGroup read_multishot Try to make definition of function align as logically as posible with liburing to make keeping our implementation in sync easy TODO: add M/Fadvice enum flags TODO: understand buffer_selection and how its different from BufferGroup Signed-off-by: Bernard Assan <[email protected]>
1 parent 3c25080 commit fe648af

File tree

2 files changed

+454
-267
lines changed

2 files changed

+454
-267
lines changed

lib/std/os/linux.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8411,6 +8411,13 @@ pub const MADV = struct {
84118411
pub const SOFT_OFFLINE = 101;
84128412
};
84138413

8414+
pub const Madvice = enum(u32) {
8415+
_, // TODO: add options
8416+
};
8417+
pub const Fadvice = enum(u32) {
8418+
_, // TODO: add options
8419+
};
8420+
84148421
pub const POSIX_FADV = switch (native_arch) {
84158422
.s390x => if (@typeInfo(usize).int.bits == 64) struct {
84168423
pub const NORMAL = 0;

0 commit comments

Comments
 (0)