Back to index

glibc  2.9
Classes | Defines | Typedefs | Enumerations | Functions
epoll.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <bits/sigset.h>

Go to the source code of this file.

Classes

union  epoll_data
struct  epoll_event

Defines

#define __sigset_t_defined
#define EPOLL_CLOEXEC   EPOLL_CLOEXEC
#define EPOLL_NONBLOCK   EPOLL_NONBLOCK
#define EPOLLIN   EPOLLIN
#define EPOLLPRI   EPOLLPRI
#define EPOLLOUT   EPOLLOUT
#define EPOLLRDNORM   EPOLLRDNORM
#define EPOLLRDBAND   EPOLLRDBAND
#define EPOLLWRNORM   EPOLLWRNORM
#define EPOLLWRBAND   EPOLLWRBAND
#define EPOLLMSG   EPOLLMSG
#define EPOLLERR   EPOLLERR
#define EPOLLHUP   EPOLLHUP
#define EPOLLRDHUP   EPOLLRDHUP
#define EPOLLONESHOT   EPOLLONESHOT
#define EPOLLET   EPOLLET
#define EPOLL_CTL_ADD   1 /* Add a file descriptor to the interface. */
#define EPOLL_CTL_DEL   2 /* Remove a file descriptor from the interface. */
#define EPOLL_CTL_MOD   3 /* Change file descriptor epoll_event structure. */

Typedefs

typedef __sigset_t sigset_t
typedef union epoll_data epoll_data_t

Enumerations

enum  { EPOLL_CLOEXEC = 010000000, EPOLL_CLOEXEC = 010000000, EPOLL_NONBLOCK }
enum  EPOLL_EVENTS {
  EPOLLIN = 0x001, EPOLLIN = 0x001, EPOLLPRI = 0x002, EPOLLPRI = 0x002,
  EPOLLOUT = 0x004, EPOLLOUT = 0x004, EPOLLRDNORM = 0x040, EPOLLRDNORM = 0x040,
  EPOLLRDBAND = 0x080, EPOLLRDBAND = 0x080, EPOLLWRNORM = 0x100, EPOLLWRNORM = 0x100,
  EPOLLWRBAND = 0x200, EPOLLWRBAND = 0x200, EPOLLMSG = 0x400, EPOLLMSG = 0x400,
  EPOLLERR = 0x008, EPOLLERR = 0x008, EPOLLHUP = 0x010, EPOLLHUP = 0x010,
  EPOLLRDHUP = 0x2000, EPOLLRDHUP = 0x2000, EPOLLONESHOT = (1 << 30), EPOLLONESHOT = (1 << 30),
  EPOLLET, EPOLLIN = 0x001, EPOLLIN = 0x001, EPOLLPRI = 0x002,
  EPOLLPRI = 0x002, EPOLLOUT = 0x004, EPOLLOUT = 0x004, EPOLLRDNORM = 0x040,
  EPOLLRDNORM = 0x040, EPOLLRDBAND = 0x080, EPOLLRDBAND = 0x080, EPOLLWRNORM = 0x100,
  EPOLLWRNORM = 0x100, EPOLLWRBAND = 0x200, EPOLLWRBAND = 0x200, EPOLLMSG = 0x400,
  EPOLLMSG = 0x400, EPOLLERR = 0x008, EPOLLERR = 0x008, EPOLLHUP = 0x010,
  EPOLLHUP = 0x010, EPOLLRDHUP = 0x2000, EPOLLRDHUP = 0x2000, EPOLLONESHOT = (1 << 30),
  EPOLLONESHOT = (1 << 30), EPOLLET, EPOLLIN = 0x001, EPOLLIN = 0x001,
  EPOLLPRI = 0x002, EPOLLPRI = 0x002, EPOLLOUT = 0x004, EPOLLOUT = 0x004,
  EPOLLRDNORM = 0x040, EPOLLRDNORM = 0x040, EPOLLRDBAND = 0x080, EPOLLRDBAND = 0x080,
  EPOLLWRNORM = 0x100, EPOLLWRNORM = 0x100, EPOLLWRBAND = 0x200, EPOLLWRBAND = 0x200,
  EPOLLMSG = 0x400, EPOLLMSG = 0x400, EPOLLERR = 0x008, EPOLLERR = 0x008,
  EPOLLHUP = 0x010, EPOLLHUP = 0x010, EPOLLRDHUP = 0x2000, EPOLLRDHUP = 0x2000,
  EPOLLONESHOT = (1 << 30), EPOLLONESHOT = (1 << 30), EPOLLET, EPOLLIN = 0x001,
  EPOLLIN = 0x001, EPOLLPRI = 0x002, EPOLLPRI = 0x002, EPOLLOUT = 0x004,
  EPOLLOUT = 0x004, EPOLLRDNORM = 0x040, EPOLLRDNORM = 0x040, EPOLLRDBAND = 0x080,
  EPOLLRDBAND = 0x080, EPOLLWRNORM = 0x100, EPOLLWRNORM = 0x100, EPOLLWRBAND = 0x200,
  EPOLLWRBAND = 0x200, EPOLLMSG = 0x400, EPOLLMSG = 0x400, EPOLLERR = 0x008,
  EPOLLERR = 0x008, EPOLLHUP = 0x010, EPOLLHUP = 0x010, EPOLLRDHUP = 0x2000,
  EPOLLRDHUP = 0x2000, EPOLLONESHOT = (1 << 30), EPOLLONESHOT = (1 << 30), EPOLLET,
  EPOLLIN = 0x001, EPOLLIN = 0x001, EPOLLPRI = 0x002, EPOLLPRI = 0x002,
  EPOLLOUT = 0x004, EPOLLOUT = 0x004, EPOLLRDNORM = 0x040, EPOLLRDNORM = 0x040,
  EPOLLRDBAND = 0x080, EPOLLRDBAND = 0x080, EPOLLWRNORM = 0x100, EPOLLWRNORM = 0x100,
  EPOLLWRBAND = 0x200, EPOLLWRBAND = 0x200, EPOLLMSG = 0x400, EPOLLMSG = 0x400,
  EPOLLERR = 0x008, EPOLLERR = 0x008, EPOLLHUP = 0x010, EPOLLHUP = 0x010,
  EPOLLRDHUP = 0x2000, EPOLLRDHUP = 0x2000, EPOLLONESHOT = (1 << 30), EPOLLONESHOT = (1 << 30),
  EPOLLET
}

Functions

__BEGIN_DECLS int epoll_create (int __size) __THROW
int epoll_create2 (int __size, int __flags) __THROW
int epoll_ctl (int __epfd, int __op, int __fd, struct epoll_event *__event) __THROW
int epoll_wait (int __epfd, struct epoll_event *__events, int __maxevents, int __timeout)
int epoll_pwait (int __epfd, struct epoll_event *__events, int __maxevents, int __timeout, __const __sigset_t *__ss)

Class Documentation

union epoll_data

Definition at line 81 of file epoll.h.

Class Members
int fd
void * ptr
uint32_t u32
uint64_t u64
struct epoll_event

Definition at line 89 of file epoll.h.

Collaboration diagram for epoll_event:
Class Members
epoll_data_t data
uint32_t events

Define Documentation

Definition at line 29 of file epoll.h.

Definition at line 38 of file epoll.h.

#define EPOLL_CTL_ADD   1 /* Add a file descriptor to the interface. */

Definition at line 76 of file epoll.h.

#define EPOLL_CTL_DEL   2 /* Remove a file descriptor from the interface. */

Definition at line 77 of file epoll.h.

#define EPOLL_CTL_MOD   3 /* Change file descriptor epoll_event structure. */

Definition at line 78 of file epoll.h.

#define EPOLLERR   EPOLLERR

Definition at line 63 of file epoll.h.

#define EPOLLET   EPOLLET
#define EPOLLHUP   EPOLLHUP

Definition at line 65 of file epoll.h.

#define EPOLLIN   EPOLLIN

Definition at line 47 of file epoll.h.

#define EPOLLMSG   EPOLLMSG

Definition at line 61 of file epoll.h.

#define EPOLLONESHOT   EPOLLONESHOT

Definition at line 69 of file epoll.h.

#define EPOLLOUT   EPOLLOUT

Definition at line 51 of file epoll.h.

#define EPOLLPRI   EPOLLPRI

Definition at line 49 of file epoll.h.

#define EPOLLRDBAND   EPOLLRDBAND

Definition at line 55 of file epoll.h.

#define EPOLLRDHUP   EPOLLRDHUP

Definition at line 67 of file epoll.h.

#define EPOLLRDNORM   EPOLLRDNORM

Definition at line 53 of file epoll.h.

#define EPOLLWRBAND   EPOLLWRBAND

Definition at line 59 of file epoll.h.

#define EPOLLWRNORM   EPOLLWRNORM

Definition at line 57 of file epoll.h.


Typedef Documentation

typedef union epoll_data epoll_data_t

Definition at line 30 of file epoll.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
EPOLL_CLOEXEC 
EPOLL_CLOEXEC 
EPOLL_NONBLOCK 

Definition at line 35 of file epoll.h.

  {
    EPOLL_CLOEXEC = 010000000,
#define EPOLL_CLOEXEC EPOLL_CLOEXEC
    EPOLL_NONBLOCK = 04
#define EPOLL_NONBLOCK EPOLL_NONBLOCK
  };
Enumerator:
EPOLLIN 
EPOLLIN 
EPOLLPRI 
EPOLLPRI 
EPOLLOUT 
EPOLLOUT 
EPOLLRDNORM 
EPOLLRDNORM 
EPOLLRDBAND 
EPOLLRDBAND 
EPOLLWRNORM 
EPOLLWRNORM 
EPOLLWRBAND 
EPOLLWRBAND 
EPOLLMSG 
EPOLLMSG 
EPOLLERR 
EPOLLERR 
EPOLLHUP 
EPOLLHUP 
EPOLLRDHUP 
EPOLLRDHUP 
EPOLLONESHOT 
EPOLLONESHOT 
EPOLL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RDHUP 
EPOLLRDHUP 
EPOLLONESHOT 
EPOLLONESHOT 
EPOLLET 

Definition at line 44 of file epoll.h.

  {
    EPOLLIN = 0x001,
#define EPOLLIN EPOLLIN
    EPOLLPRI = 0x002,
#define EPOLLPRI EPOLLPRI
    EPOLLOUT = 0x004,
#define EPOLLOUT EPOLLOUT
    EPOLLRDNORM = 0x040,
#define EPOLLRDNORM EPOLLRDNORM
    EPOLLRDBAND = 0x080,
#define EPOLLRDBAND EPOLLRDBAND
    EPOLLWRNORM = 0x100,
#define EPOLLWRNORM EPOLLWRNORM
    EPOLLWRBAND = 0x200,
#define EPOLLWRBAND EPOLLWRBAND
    EPOLLMSG = 0x400,
#define EPOLLMSG EPOLLMSG
    EPOLLERR = 0x008,
#define EPOLLERR EPOLLERR
    EPOLLHUP = 0x010,
#define EPOLLHUP EPOLLHUP
    EPOLLRDHUP = 0x2000,
#define EPOLLRDHUP EPOLLRDHUP
    EPOLLONESHOT = (1 << 30),
#define EPOLLONESHOT EPOLLONESHOT
    EPOLLET = (1 << 31)
#define EPOLLET EPOLLET
  };

Function Documentation

int epoll_create2 ( int  __size,
int  __flags 
)
int epoll_ctl ( int  __epfd,
int  __op,
int  __fd,
struct epoll_event __event 
)
int epoll_pwait ( int  __epfd,
struct epoll_event __events,
int  __maxevents,
int  __timeout,
__const __sigset_t __ss 
)
int epoll_wait ( int  __epfd,
struct epoll_event __events,
int  __maxevents,
int  __timeout 
)