summaryrefslogtreecommitdiff
path: root/kernel/syscalls/ppoll.c
blob: fa85e8ca5276b9112e5cef3164bdd84fd56133d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <syscalls.h>
#include <fs/vfs.h>
#include <poll.h>
#include <sched/scheduler.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);
}