mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
14 lines
228 B
C++
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);
|
|
}
|
|
|
|
}
|
|
|