remove __SYSCALL_SSLEN arch macro in favor of using public _NSIG
[musl] / src / linux / epoll.c
1 #include <sys/epoll.h>
2 #include <signal.h>
3 #include "syscall.h"
4
5 int epoll_create(int size)
6 {
7         return syscall(SYS_epoll_create, size);
8 }
9
10 int epoll_create1(int flags)
11 {
12         return syscall(SYS_epoll_create1, flags);
13 }
14
15 int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
16 {
17         return syscall(SYS_epoll_ctl, fd, op, fd2, ev);
18 }
19
20 int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
21 {
22         return syscall(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8);
23 }
24
25 int epoll_wait(int fd, struct epoll_event *ev, int cnt, int to)
26 {
27         return syscall(SYS_epoll_wait, fd, ev, cnt, to);
28 }