#include #include #include #include extern "C" { int poll(struct pollfd* fds, nfds_t nfds, int timeout) { long rc = syscall(SYS_poll, fds, nfds, timeout); __errno_return(rc, int); } }