epoll_ctl

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

Manipulate an epoll instance

Parameters

epfdan epoll file descriptor instance
opone of the EPOLL_CTL_* constants
fdtarget file descriptor of the operation
eventdescribes which events the caller is interested in and any associated user dat

Returns

0 in case of success, -1 in case of error ( the "errno" variable

will contain the specific error code )