ReactOS 0.4.16-dev-91-g764881a
epoll_sub.c File Reference
#include <wintirpc.h>
#include <stdint.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/epoll.h>
#include <unistd.h>
Include dependency graph for epoll_sub.c:

Go to the source code of this file.

Macros

#define __NR_epoll_create   254
 
#define __NR_epoll_ctl   255
 
#define __NR_epoll_wait   256
 

Functions

int epoll_create (int size)
 
int epoll_ctl (int epfd, int op, int fd, struct epoll_event *event)
 
int epoll_wait (int epfd, struct epoll_event *events, int maxevents, int timeout)
 

Macro Definition Documentation

◆ __NR_epoll_create

#define __NR_epoll_create   254

Definition at line 39 of file epoll_sub.c.

◆ __NR_epoll_ctl

#define __NR_epoll_ctl   255

Definition at line 40 of file epoll_sub.c.

◆ __NR_epoll_wait

#define __NR_epoll_wait   256

Definition at line 41 of file epoll_sub.c.

Function Documentation

◆ epoll_create()

int epoll_create ( int  size)

Definition at line 44 of file epoll_sub.c.

45{
46 return (syscall(__NR_epoll_create, size));
47}
#define __NR_epoll_create
Definition: epoll_sub.c:39
GLsizeiptr size
Definition: glext.h:5919

◆ epoll_ctl()

int epoll_ctl ( int  epfd,
int  op,
int  fd,
struct epoll_event *  event 
)

Definition at line 50 of file epoll_sub.c.

51{
52
53 return (syscall(__NR_epoll_ctl, epfd, op, fd, event));
54}
UINT op
Definition: effect.c:236
#define __NR_epoll_ctl
Definition: epoll_sub.c:40
struct _cl_event * event
Definition: glext.h:7739
static int fd
Definition: io.c:51

◆ epoll_wait()

int epoll_wait ( int  epfd,
struct epoll_event *  events,
int  maxevents,
int  timeout 
)

Definition at line 57 of file epoll_sub.c.

58{
59 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout));
60}
#define __NR_epoll_wait
Definition: epoll_sub.c:41
HANDLE events[2]
Definition: event.c:4
Definition: dhcpd.h:245