sig
val sendfile :
?pos:int -> ?len:int -> fd:Unix.file_descr -> Unix.file_descr -> int
type tcp_bool_option = Linux_ext.tcp_bool_option = TCP_CORK | TCP_NODELAY
external gettcpopt_bool : Unix.file_descr -> tcp_bool_option -> bool
= "linux_gettcpopt_bool_stub"
external settcpopt_bool :
Unix.file_descr -> tcp_bool_option -> bool -> unit
= "linux_settcpopt_bool_stub"
val send_nonblocking_no_sigpipe :
Unix.file_descr -> ?pos:int -> ?len:int -> string -> int option
val send_no_sigpipe :
Unix.file_descr -> ?pos:int -> ?len:int -> string -> int
val sendmsg_nonblocking_no_sigpipe :
Unix.file_descr -> ?count:int -> string Unix_ext.IOVec.t array -> int
val send_fd : sock:Unix.file_descr -> fd_to_send:Unix.file_descr -> unit
val recv_fd : sock:Unix.file_descr -> Unix.file_descr
val clock_process_cputime_id : Unix_ext.clock
val clock_thread_cputime_id : Unix_ext.clock
external get_terminal_size : unit -> int * int
= "linux_get_terminal_size_stub"
external pr_set_pdeathsig : int -> unit = "linux_pr_set_pdeathsig_stub"
external pr_get_pdeathsig : unit -> int = "linux_pr_get_pdeathsig_stub"
val file_descr_realpath : Unix.file_descr -> string
val out_channel_realpath : out_channel -> string
val in_channel_realpath : in_channel -> string
module Epoll :
sig
type flag =
Linux_ext.Epoll.flag =
IN
| OUT
| PRI
| ERR
| HUP
| ET
| ONESHOT
type flags = Linux_ext.Epoll.flags
external make_flags : flag array -> flags
= "linux_epoll_make_flags_stub"
external get_flags : flags -> flag array = "linux_epoll_get_flags_stub"
external has_in : flags -> bool = "linux_epoll_has_EPOLLIN_stub"
"noalloc"
external has_out : flags -> bool = "linux_epoll_has_EPOLLOUT_stub"
"noalloc"
external has_pri : flags -> bool = "linux_epoll_has_EPOLLPRI_stub"
"noalloc"
external has_err : flags -> bool = "linux_epoll_has_EPOLLERR_stub"
"noalloc"
external has_hup : flags -> bool = "linux_epoll_has_EPOLLHUP_stub"
"noalloc"
external has_et : flags -> bool = "linux_epoll_has_EPOLLET_stub"
"noalloc"
external has_oneshot : flags -> bool
= "linux_epoll_has_EPOLLONESHOT_stub" "noalloc"
val flag_to_string : flag -> string
external create : int -> Unix.file_descr = "linux_epoll_create_stub"
external add :
epfd:Unix.file_descr -> fd:Unix.file_descr -> flags -> unit
= "linux_epoll_add_stub"
external modify :
epfd:Unix.file_descr -> fd:Unix.file_descr -> 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 * flags) array
= "linux_epoll_wait_stub"
end
end