mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
3e41f17afa
svn:r42
27 lines
496 B
C
27 lines
496 B
C
#include <stdint.h>
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/syscall.h>
|
|
#include <sys/epoll.h>
|
|
#include <unistd.h>
|
|
|
|
int
|
|
epoll_create(int size)
|
|
{
|
|
return (syscall(__NR_epoll_create, size));
|
|
}
|
|
|
|
int
|
|
epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
|
|
{
|
|
|
|
return (syscall(__NR_epoll_ctl, epfd, op, fd, event));
|
|
}
|
|
|
|
int
|
|
epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)
|
|
{
|
|
return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout));
|
|
}
|