poll.cpp 228 B

1234567891011121314
  1. #include <poll.h>
  2. #include <Kernel/Syscall.h>
  3. #include <errno.h>
  4. extern "C" {
  5. int poll(struct pollfd* fds, int nfds, int timeout)
  6. {
  7. int rc = syscall(SC_poll, fds, nfds, timeout);
  8. __RETURN_WITH_ERRNO(rc, rc, -1);
  9. }
  10. }