From 3b3325f761b09ebbfef04c44eed546cc4fdeb329 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 02:01:33 +0100 Subject: Added aio and eventfd support, along with sleep and yes utilities --- lib/libc/aio/aio_write.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/libc/aio/aio_write.c (limited to 'lib/libc/aio/aio_write.c') diff --git a/lib/libc/aio/aio_write.c b/lib/libc/aio/aio_write.c new file mode 100644 index 00000000..4254fdcd --- /dev/null +++ b/lib/libc/aio/aio_write.c @@ -0,0 +1,16 @@ +#include <__aio.h> +#include +#include +#include + +int aio_write(struct aiocb *aiocbp) +{ + struct aio_request *req = malloc(sizeof(*req)); + + if (req == NULL) + return -1; + + req->aiocbp = aiocbp; + + return __aio_request(req, IORING_OP_WRITE); +} -- cgit v1.2.3