sig
type flag = IN | OUT | PRI | ERR | HUP | ET | ONESHOT
type flags
external make_flags : Linux_ext.Epoll.flag array -> Linux_ext.Epoll.flags
= "linux_epoll_make_flags_stub"
external get_flags : Linux_ext.Epoll.flags -> Linux_ext.Epoll.flag array
= "linux_epoll_get_flags_stub"
external has_in : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLIN_stub" "noalloc"
external has_out : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLOUT_stub" "noalloc"
external has_pri : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLPRI_stub" "noalloc"
external has_err : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLERR_stub" "noalloc"
external has_hup : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLHUP_stub" "noalloc"
external has_et : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLET_stub" "noalloc"
external has_oneshot : Linux_ext.Epoll.flags -> bool
= "linux_epoll_has_EPOLLONESHOT_stub" "noalloc"
val flag_to_string : Linux_ext.Epoll.flag -> string
external create : int -> Unix.file_descr = "linux_epoll_create_stub"
external add :
epfd:Unix.file_descr ->
fd:Unix.file_descr -> Linux_ext.Epoll.flags -> unit
= "linux_epoll_add_stub"
external modify :
epfd:Unix.file_descr ->
fd:Unix.file_descr -> Linux_ext.Epoll.flags -> unit
= "linux_epoll_modify_stub"
external del : epfd:Unix.file_descr -> fd:Unix.file_descr -> unit
= "linux_epoll_del_stub"
external wait :
Unix.file_descr ->
maxevents:int ->
timeout:int -> (Unix.file_descr * Linux_ext.Epoll.flags) array
= "linux_epoll_wait_stub"
end