hare

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

commit 4e867f6f0f40b22229532ce1015c8d5d18033ebb
parent 7e5b40b6bdbee9bdf204eae2bf47c01ce0b2f628
Author: Alexey Yerin <yyp@disroot.org>
Date:   Wed, 28 Jul 2021 22:03:50 +0300

linux::io_uring: use error instead of errors::error

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mlinux/io_uring/queue.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/linux/io_uring/queue.ha b/linux/io_uring/queue.ha @@ -41,7 +41,7 @@ fn needs_flush(ring: *io_uring) bool = // Submits queued I/O asynchronously. Returns the number of submissions accepted // by the kernel. -export fn submit(ring: *io_uring) (uint | errors::error) = +export fn submit(ring: *io_uring) (uint | error) = do_submit(ring, flush_sq(ring), 0u); // Submits queued I/O asynchronously and blocks until at least "wait" events are @@ -50,7 +50,7 @@ export fn submit(ring: *io_uring) (uint | errors::error) = // one event is completed. // // Returns the number of submissions accepted by the kernel. -export fn submit_wait(ring: *io_uring, wait: uint) (uint | errors::error) = +export fn submit_wait(ring: *io_uring, wait: uint) (uint | error) = do_submit(ring, flush_sq(ring), wait); fn flush_sq(ring: *io_uring) uint = { @@ -76,7 +76,7 @@ fn do_submit( ring: *io_uring, submitted: uint, wait: uint, -) (uint | errors::error) = { +) (uint | error) = { let flags: enter_flags = enter_flags::GETEVENTS; if (needs_enter(ring, &flags) || wait != 0) { return match (rt::io_uring_enter(ring.fd,