Classes | Macros | Typedefs | Enumerations | Functions
wepoll.h File Reference
#include <stdint.h>
Include dependency graph for wepoll.h:

Go to the source code of this file.

Classes

union  epoll_data
 
struct  epoll_event
 

Macros

#define EPOLL_CTL_ADD   1
 
#define EPOLL_CTL_DEL   3
 
#define EPOLL_CTL_MOD   2
 
#define EPOLLERR   (1U << 3)
 
#define EPOLLHUP   (1U << 4)
 
#define EPOLLIN   (1U << 0)
 
#define EPOLLMSG   (1U << 10)
 
#define EPOLLONESHOT   (1U << 31)
 
#define EPOLLOUT   (1U << 2)
 
#define EPOLLPRI   (1U << 1)
 
#define EPOLLRDBAND   (1U << 7)
 
#define EPOLLRDHUP   (1U << 13)
 
#define EPOLLRDNORM   (1U << 6)
 
#define EPOLLWRBAND   (1U << 9)
 
#define EPOLLWRNORM   (1U << 8)
 
#define WEPOLL_EXPORT
 

Typedefs

typedef union epoll_data epoll_data_t
 
typedef voidHANDLE
 
typedef uintptr_t SOCKET
 

Enumerations

enum  EPOLL_EVENTS {
  EPOLLIN = (int) (1U << 0), EPOLLPRI = (int) (1U << 1), EPOLLOUT = (int) (1U << 2), EPOLLERR = (int) (1U << 3),
  EPOLLHUP = (int) (1U << 4), EPOLLRDNORM = (int) (1U << 6), EPOLLRDBAND = (int) (1U << 7), EPOLLWRNORM = (int) (1U << 8),
  EPOLLWRBAND = (int) (1U << 9), EPOLLMSG = (int) (1U << 10), EPOLLRDHUP = (int) (1U << 13), EPOLLONESHOT = (int) (1U << 31),
  EPOLLIN = (int) (1U << 0), EPOLLPRI = (int) (1U << 1), EPOLLOUT = (int) (1U << 2), EPOLLERR = (int) (1U << 3),
  EPOLLHUP = (int) (1U << 4), EPOLLRDNORM = (int) (1U << 6), EPOLLRDBAND = (int) (1U << 7), EPOLLWRNORM = (int) (1U << 8),
  EPOLLWRBAND = (int) (1U << 9), EPOLLMSG = (int) (1U << 10), EPOLLRDHUP = (int) (1U << 13), EPOLLONESHOT = (int) (1U << 31)
}
 

Functions

WEPOLL_EXPORT int epoll_close (HANDLE ephnd)
 
WEPOLL_EXPORT HANDLE epoll_create (int size)
 
WEPOLL_EXPORT HANDLE epoll_create1 (int flags)
 
WEPOLL_EXPORT int epoll_ctl (HANDLE ephnd, int op, SOCKET sock, struct epoll_event *event)
 
WEPOLL_EXPORT int epoll_wait (HANDLE ephnd, struct epoll_event *events, int maxevents, int timeout)
 

Macro Definition Documentation

◆ EPOLL_CTL_ADD

#define EPOLL_CTL_ADD   1

Definition at line 69 of file wepoll.h.

◆ EPOLL_CTL_DEL

#define EPOLL_CTL_DEL   3

Definition at line 71 of file wepoll.h.

◆ EPOLL_CTL_MOD

#define EPOLL_CTL_MOD   2

Definition at line 70 of file wepoll.h.

◆ EPOLLERR

#define EPOLLERR   (1U << 3)

Definition at line 59 of file wepoll.h.

◆ EPOLLHUP

#define EPOLLHUP   (1U << 4)

Definition at line 60 of file wepoll.h.

◆ EPOLLIN

#define EPOLLIN   (1U << 0)

Definition at line 56 of file wepoll.h.

◆ EPOLLMSG

#define EPOLLMSG   (1U << 10)

Definition at line 65 of file wepoll.h.

◆ EPOLLONESHOT

#define EPOLLONESHOT   (1U << 31)

Definition at line 67 of file wepoll.h.

◆ EPOLLOUT

#define EPOLLOUT   (1U << 2)

Definition at line 58 of file wepoll.h.

◆ EPOLLPRI

#define EPOLLPRI   (1U << 1)

Definition at line 57 of file wepoll.h.

◆ EPOLLRDBAND

#define EPOLLRDBAND   (1U << 7)

Definition at line 62 of file wepoll.h.

◆ EPOLLRDHUP

#define EPOLLRDHUP   (1U << 13)

Definition at line 66 of file wepoll.h.

◆ EPOLLRDNORM

#define EPOLLRDNORM   (1U << 6)

Definition at line 61 of file wepoll.h.

◆ EPOLLWRBAND

#define EPOLLWRBAND   (1U << 9)

Definition at line 64 of file wepoll.h.

◆ EPOLLWRNORM

#define EPOLLWRNORM   (1U << 8)

Definition at line 63 of file wepoll.h.

◆ WEPOLL_EXPORT

#define WEPOLL_EXPORT

Definition at line 36 of file wepoll.h.

Typedef Documentation

◆ epoll_data_t

typedef union epoll_data epoll_data_t

◆ HANDLE

typedef void* HANDLE

Definition at line 73 of file wepoll.h.

◆ SOCKET

typedef uintptr_t SOCKET

Definition at line 74 of file wepoll.h.

Enumeration Type Documentation

◆ EPOLL_EVENTS

Enumerator
EPOLLIN 
EPOLLPRI 
EPOLLOUT 
EPOLLERR 
EPOLLHUP 
EPOLLRDNORM 
EPOLLRDBAND 
EPOLLWRNORM 
EPOLLWRBAND 
EPOLLMSG 
EPOLLRDHUP 
EPOLLONESHOT 
EPOLLIN 
EPOLLPRI 
EPOLLOUT 
EPOLLERR 
EPOLLHUP 
EPOLLRDNORM 
EPOLLRDBAND 
EPOLLWRNORM 
EPOLLWRBAND 
EPOLLMSG 
EPOLLRDHUP 
EPOLLONESHOT 

Definition at line 41 of file wepoll.h.

Function Documentation

◆ epoll_close()

WEPOLL_EXPORT int epoll_close ( HANDLE  ephnd)

Definition at line 591 of file wepoll.c.

◆ epoll_create()

WEPOLL_EXPORT HANDLE epoll_create ( int  size)

Definition at line 577 of file wepoll.c.

◆ epoll_create1()

WEPOLL_EXPORT HANDLE epoll_create1 ( int  flags)

Definition at line 584 of file wepoll.c.

◆ epoll_ctl()

WEPOLL_EXPORT int epoll_ctl ( HANDLE  ephnd,
int  op,
SOCKET  sock,
struct epoll_event event 
)

Definition at line 616 of file wepoll.c.

◆ epoll_wait()

WEPOLL_EXPORT int epoll_wait ( HANDLE  ephnd,
struct epoll_event events,
int  maxevents,
int  timeout 
)

Definition at line 648 of file wepoll.c.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:05