summaryrefslogtreecommitdiff
path: root/LibC/poll.cpp
blob: 2e3f939a80e1f08d1776dc3983d5168532a9a878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <poll.h>
#include <Kernel/Syscall.h>
#include <errno.h>

extern "C" {

int poll(struct pollfd* fds, int nfds, int timeout)
{
    int rc = syscall(SC_poll, fds, nfds, timeout);
    __RETURN_WITH_ERRNO(rc, rc, -1);
}

}