uwt

libuv bindings
IN THIS PACKAGE
Module Uwt . Misc
type timeval = Uwt_base.Misc.timeval = {
sec : int;
usec : int;
}
type rusage = Uwt_base.Misc.rusage = {
utime : timeval;
stime : timeval;
maxrss : int64;
ixrss : int64;
idrss : int64;
isrss : int64;
minflt : int64;
majflt : int64;
nswap : int64;
inblock : int64;
outblock : int64;
msgsnd : int64;
msgrcv : int64;
nsignals : int64;
nvcsw : int64;
nivcsw : int64;
}
type cpu_times = Uwt_base.Misc.cpu_times = {
user : int64;
nice : int64;
sys : int64;
idle : int64;
irq : int64;
}
type cpu_info = Uwt_base.Misc.cpu_info = {
model : string;
speed : int;
cpu_times : cpu_times;
}
type interface_address = Uwt_base.Misc.interface_address = {
name : string;
phys_addr : string;
is_internal : bool;
address : sockaddr option;
netmask : sockaddr option;
}
type handle_type = Uwt_base.Misc.handle_type =
| File
| Tty
| Pipe
| Tcp
| Udp
| Unknown
val guess_handle : Unix.file_descr -> handle_type
val resident_set_memory : unit -> int64 uv_result
val resident_set_memory_exn : unit -> int64
val uptime : unit -> float uv_result
val uptime_exn : unit -> float
val getrusage : unit -> rusage uv_result
val getrusage_exn : unit -> rusage
val cpu_info : unit -> cpu_info array uv_result
val cpu_info_exn : unit -> cpu_info array
val interface_addresses : unit -> interface_address array uv_result
val interface_addresses_exn : unit -> interface_address array
val load_avg : unit -> float * float * float
val ip4_addr : string -> int -> sockaddr uv_result
val ip4_addr_exn : string -> int -> sockaddr
val ip4_name : sockaddr -> string uv_result
val ip4_name_exn : sockaddr -> string
val ip6_addr : string -> int -> sockaddr uv_result
val ip6_addr_exn : string -> int -> sockaddr
val ip6_name : sockaddr -> string uv_result
val ip6_name_exn : sockaddr -> string
val get_total_memory : unit -> int64
val hrtime : unit -> int64
type version = Uwt_base.Misc.version = {
major : int;
minor : int;
patch : int;
}
val version : unit -> version
val version_raw : unit -> int
val version_string : unit -> string
val os_homedir : unit -> string uv_result
val os_tmpdir : unit -> string uv_result
val get_passwd : unit -> Unix.passwd_entry uv_result
val exepath : unit -> string uv_result
val cwd : unit -> string uv_result
val chdir : string -> Int_result.unit
val getenv : string -> string uv_result
val putenv : key:string -> data:string -> Int_result.unit
val unsetenv : string -> Int_result.unit
val getppid : unit -> Int_result.int
val set_process_title : string -> Int_result.unit
val get_process_title : unit -> string uv_result