initial check-in, version 0.5.0
[musl] / src / select / poll.c
1 #include <poll.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int poll(struct pollfd *fds, nfds_t n, int timeout)
6 {
7         int r;
8         CANCELPT_BEGIN;
9         r = syscall3(__NR_poll, (long)fds, n, timeout);
10         CANCELPT_END;
11         return r;
12 }