1 2 3 4 5 6 7 8 9 10 11
#include <fs/vfs.h> #include <poll.h> #include <sched/scheduler.h> #include <syscalls.h> 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); }