1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 17:54:57 +00:00
serenity/LibC/poll.cpp
2019-01-23 07:28:25 +01:00

14 lines
228 B
C++

#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);
}
}