From 372c633aa22d826bc515213ad4211791440f60f8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 3 Oct 2024 16:08:46 +0200 Subject: libc: Add sendfile and queue --- userland/libc/queue.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 userland/libc/queue.c (limited to 'userland/libc/queue.c') diff --git a/userland/libc/queue.c b/userland/libc/queue.c new file mode 100644 index 0000000..6d4d380 --- /dev/null +++ b/userland/libc/queue.c @@ -0,0 +1,15 @@ +#include +#include + +int queue_create(void) { + RC_ERRNO(syscall(SYS_QUEUE_CREATE, 0, 0, 0, 0, 0)); +} + +int queue_mod_entries(int fd, int flag, struct queue_entry *entries, + int num_entries) { + RC_ERRNO(syscall(SYS_QUEUE_MOD_ENTRIES, fd, flag, entries, num_entries, 0)); +} + +int queue_wait(int fd, struct queue_entry *events, int num_events) { + RC_ERRNO(syscall(SYS_QUEUE_WAIT, fd, events, num_events, 0, 0)); +} -- cgit v1.2.3