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