From a288258785bac3c2000227532f4a17210813c506 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 16 Nov 2023 15:24:45 +0100 Subject: Kernel: Change how syscalls are built and implemented. --- kernel/syscalls/ppoll.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kernel/syscalls/ppoll.c (limited to 'kernel/syscalls/ppoll.c') diff --git a/kernel/syscalls/ppoll.c b/kernel/syscalls/ppoll.c new file mode 100644 index 0000000..fa85e8c --- /dev/null +++ b/kernel/syscalls/ppoll.c @@ -0,0 +1,11 @@ +#include +#include +#include +#include + +int syscall_poll(SYS_POLL_PARAMS *args) { + struct pollfd *fds = args->fds; + size_t nfds = args->nfds; + int timeout = args->timeout; + return poll(fds, nfds, timeout); +} -- cgit v1.2.3