Unit Linuxapi.Epoll

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
record epoll_data  
packed record epoll_event  

Functions and Procedures

function epoll_create(size: Integer): Integer; cdecl; external libc name _PU + 'epoll_create';
function epoll_create1(flags: Integer): Integer; cdecl; external libc name _PU + 'epoll_create1';
function epoll_ctl(epfd: Integer; op: Integer; fd: Integer; event: pepoll_event): Integer; cdecl; external libc name _PU + 'epoll_ctl';
function epoll_wait(epfd: Integer; events: pepoll_event; maxevents, timeout: Integer): Integer; cdecl; external libc name _PU + 'epoll_wait';
function epoll_pwait(epfd: Integer; events: pepoll_event; maxevents, timeout: Integer; sigmask: ptsigset): Integer; cdecl; external libc name _PU + 'epoll_pwait';
function EventToString(const AEvent: epoll_event): UnicodeString;

Types

pepoll_event = ˆepoll_event;
ptsigset = ˆsigset_t;

Constants

EPOLLIN = $01;
EPOLLPRI = $02;
EPOLLOUT = $04;
EPOLLERR = $08;
EPOLLHUP = $10;
EPOLLRDNORM = $40;
EPOLLRDBAND = $80;
EPOLLWRNORM = $100;
EPOLLWRBAND = $200;
EPOLLMSG = $400;
EPOLLRDHUP = $2000;
EPOLLWAKEUP = 1 shl 29;
EPOLLONESHOT = 1 shl 30;
EPOLLET = UInt32(1 shl 31);
EPOLL_CTL_ADD = 1;
EPOLL_CTL_DEL = 2;
EPOLL_CTL_MOD = 3;

Description

Functions and Procedures

function epoll_create(size: Integer): Integer; cdecl; external libc name _PU + 'epoll_create';

create an epoll instance

function epoll_create1(flags: Integer): Integer; cdecl; external libc name _PU + 'epoll_create1';
 
function epoll_ctl(epfd: Integer; op: Integer; fd: Integer; event: pepoll_event): Integer; cdecl; external libc name _PU + 'epoll_ctl';

apply an operation to an epoll instance

function epoll_wait(epfd: Integer; events: pepoll_event; maxevents, timeout: Integer): Integer; cdecl; external libc name _PU + 'epoll_wait';

wait for events on an epoll instance

function epoll_pwait(epfd: Integer; events: pepoll_event; maxevents, timeout: Integer; sigmask: ptsigset): Integer; cdecl; external libc name _PU + 'epoll_pwait';
 
function EventToString(const AEvent: epoll_event): UnicodeString;

Helpers

Types

pepoll_event = ˆepoll_event;
 
ptsigset = ˆsigset_t;
 

Constants

EPOLLIN = $01;
 
EPOLLPRI = $02;
 
EPOLLOUT = $04;
 
EPOLLERR = $08;
 
EPOLLHUP = $10;
 
EPOLLRDNORM = $40;
 
EPOLLRDBAND = $80;
 
EPOLLWRNORM = $100;
 
EPOLLWRBAND = $200;
 
EPOLLMSG = $400;
 
EPOLLRDHUP = $2000;
 
EPOLLWAKEUP = 1 shl 29;
 
EPOLLONESHOT = 1 shl 30;
 
EPOLLET = UInt32(1 shl 31);
 
EPOLL_CTL_ADD = 1;

opcodes epoll_ctl

EPOLL_CTL_DEL = 2;
 
EPOLL_CTL_MOD = 3;
 

Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26