hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9705222092074bfe46494b773dbedf0a9b7c5355
parent bda9d45cde0a79bb7c65302daa4b1ad2d49c72b4
Author: illiliti <illiliti@dimension.sh>
Date:   Sat,  2 Sep 2023 00:08:41 +0300

rt+linux: add io_uring_enter2

Signed-off-by: illiliti <illiliti@dimension.sh>

Diffstat:
Mrt/+linux/syscalls.ha | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -759,6 +759,19 @@ export fn io_uring_enter( flags: u64, sig: uintptr: u64))?: uint; }; +export fn io_uring_enter2( + fd: int, + to_submit: uint, + min_complete: uint, + flags: uint, + arg: const nullable *opaque, + argsz: size, +) (uint | errno) = { + return wrap_return(syscall6(SYS_io_uring_enter, + fd: u64, to_submit: u64, min_complete: u64, + flags: u64, arg: uintptr: u64, argsz: u64))?: uint; +}; + export fn mlock2(addr: *opaque, length: size, flags: uint) (void | errno) = { return wrap_return(syscall3(SYS_mlock2, addr: uintptr: u64, length: u64, flags: u64))?: void;