diff options
Diffstat (limited to 'userland/libc/queue.c')
-rw-r--r-- | userland/libc/queue.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <queue.h> +#include <syscall.h> + +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)); +} |