14 lines
275 B
C++
14 lines
275 B
C++
#include <bits/errno-return.h>
|
|
#include <sys/poll.h>
|
|
#include <sys/syscall.h>
|
|
#include <unistd.h>
|
|
|
|
extern "C"
|
|
{
|
|
int poll(struct pollfd* fds, nfds_t nfds, int timeout)
|
|
{
|
|
long rc = syscall(SYS_poll, fds, nfds, timeout);
|
|
__errno_return(rc, int);
|
|
}
|
|
}
|