ladybird/LibC/poll.cpp
2019-06-07 11:49:03 +02:00

12 lines
226 B
C++

#include <Kernel/Syscall.h>
#include <errno.h>
#include <poll.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);
}
}