Skip to content

Commit 64c2266

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 <mega.alpha100@gmail.com>
1 parent 5cd615c commit 64c2266

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
@@ -8343,6 +8343,13 @@ pub const MADV = struct {
83438343
pub const SOFT_OFFLINE = 101;
83448344
};
83458345

8346+
pub const Madvice = enum(u32) {
8347+
_, // TODO: add options
8348+
};
8349+
pub const Fadvice = enum(u32) {
8350+
_, // TODO: add options
8351+
};
8352+
83468353
pub const POSIX_FADV = switch (native_arch) {
83478354
.s390x => if (@typeInfo(usize).int.bits == 64) struct {
83488355
pub const NORMAL = 0;

0 commit comments

Comments
 (0)