summaryrefslogtreecommitdiff
path: root/scalls/ppoll.c
blob: 8feb35c980c59dedcce41bdf5e271b97db598b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <scalls/ppoll.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);
}