`sig
type fd_style =
[ `Read_write
| `Recv_send of Unix.sockaddr * Unix.sockaddr
| `Recv_send_implied
| `Recvfrom_sendto
| `W32_event
| `W32_input_thread
| `W32_output_thread
| `W32_pipe
| `W32_pipe_server
| `W32_process ]
val get_fd_style : Unix.file_descr -> Netsys.fd_style
val gread :
Netsys.fd_style -> Unix.file_descr -> string -> int -> int -> int
val blocking_gread :
Netsys.fd_style -> Unix.file_descr -> string -> int -> int -> int
val really_gread :
Netsys.fd_style -> Unix.file_descr -> string -> int -> int -> unit
val gwrite :
Netsys.fd_style -> Unix.file_descr -> string -> int -> int -> int
val really_gwrite :
Netsys.fd_style -> Unix.file_descr -> string -> int -> int -> unit
exception Shutdown_not_supported
val gshutdown :
Netsys.fd_style -> Unix.file_descr -> Unix.shutdown_command -> unit
val is_readable : Netsys.fd_style -> Unix.file_descr -> bool
val is_writable : Netsys.fd_style -> Unix.file_descr -> bool
val is_prird : Netsys.fd_style -> Unix.file_descr -> bool
val wait_until_readable :
Netsys.fd_style -> Unix.file_descr -> float -> bool
val wait_until_writable :
Netsys.fd_style -> Unix.file_descr -> float -> bool
val wait_until_prird : Netsys.fd_style -> Unix.file_descr -> float -> bool
val gclose : Netsys.fd_style -> Unix.file_descr -> unit
val wait_until_connected : Unix.file_descr -> float -> bool
val connect_check : Unix.file_descr -> unit
val domain_of_inet_addr : Unix.inet_addr -> Unix.socket_domain
val protostring_of_inet_addr : Unix.inet_addr -> string
val inet_addr_of_protostring : string -> Unix.inet_addr
val getpeername : Unix.file_descr -> Unix.sockaddr
val is_absolute : string -> bool
val restart : ('a -> 'b) -> 'a -> 'b
val restart_tmo : (float -> 'b) -> float -> 'b
val restarting_select :
Unix.file_descr list ->
Unix.file_descr list ->
Unix.file_descr list ->
float ->
Unix.file_descr list * Unix.file_descr list * Unix.file_descr list
val sleep : float -> unit
val restarting_sleep : float -> unit
val unix_error_of_code : int -> Unix.error
val int64_of_file_descr : Unix.file_descr -> int64
val string_of_fd : Unix.file_descr -> string
val string_of_sockaddr : Unix.sockaddr -> string
val string_of_fd_style : Netsys.fd_style -> string
val is_stdin : Unix.file_descr -> bool
val is_stdout : Unix.file_descr -> bool
val is_stderr : Unix.file_descr -> bool
val set_close_on_exec : Unix.file_descr -> unit
val clear_close_on_exec : Unix.file_descr -> unit
external _exit : int -> unit = "netsys__exit"
val logand_inet_addr : Unix.inet_addr -> Unix.inet_addr -> Unix.inet_addr
val logor_inet_addr : Unix.inet_addr -> Unix.inet_addr -> Unix.inet_addr
val logxor_inet_addr : Unix.inet_addr -> Unix.inet_addr -> Unix.inet_addr
val lognot_inet_addr : Unix.inet_addr -> Unix.inet_addr
val is_ipv4_inet_addr : Unix.inet_addr -> bool
val is_ipv6_inet_addr : Unix.inet_addr -> bool
val is_multicast_inet_addr : Unix.inet_addr -> bool
val mcast_set_loop : Unix.file_descr -> bool -> unit
val mcast_set_ttl : Unix.file_descr -> int -> unit
val mcast_add_membership :
Unix.file_descr -> Unix.inet_addr -> Unix.inet_addr -> unit
val mcast_drop_membership :
Unix.file_descr -> Unix.inet_addr -> Unix.inet_addr -> unit
val moncontrol : bool -> unit
val blocking_read : Unix.file_descr -> string -> int -> int -> int
val really_read : Unix.file_descr -> string -> int -> int -> unit
val really_write : Unix.file_descr -> string -> int -> int -> unit
type shm_open_flag =
Netsys_posix.shm_open_flag =
SHM_O_RDONLY
| SHM_O_RDWR
| SHM_O_CREAT
| SHM_O_EXCL
| SHM_O_TRUNC
val have_posix_shm : unit -> bool
val shm_open :
string -> Netsys.shm_open_flag list -> int -> Unix.file_descr
val shm_unlink : string -> unit
module Debug : sig val enable : bool Pervasives.ref end
val set_moncontrol : (bool -> unit) -> unit
end`