epoll_ctl

Manipulate an epoll instance

version(linux)
extern (C) @nogc nothrow
int
epoll_ctl
(
int epfd
,
int op
,
int fd
,
epoll_event* event
)

Parameters

epfd int

an epoll file descriptor instance

op int

one of the EPOLL_CTL_* constants

fd int

target file descriptor of the operation

event epoll_event*

describes which events the caller is interested in and any associated user dat

Return Value

Type: int

0 in case of success, -1 in case of error ( the "errno" variable will contain the specific error code )

Meta