package uwt

  1. Overview
  2. Docs
val gethostname : unit -> string Lwt.t
val gethostbyname : string -> Unix.host_entry Lwt.t

These function don't fail with Not_found. but with Uwt_error(Uwt.ENOENT,"function_name",x)

val gethostbyaddr : Unix.inet_addr -> Unix.host_entry Lwt.t
val getservbyname : name:string -> protocol:string -> Unix.service_entry Lwt.t
val getservbyport : int -> string -> Unix.service_entry Lwt.t
val getprotobyname : string -> Unix.protocol_entry Lwt.t
val getprotobynumber : int -> Unix.protocol_entry Lwt.t
val getlogin : unit -> string Lwt.t
val getpwnam : string -> Unix.passwd_entry Lwt.t
val getpwuid : int -> Unix.passwd_entry Lwt.t
val getgrnam : string -> Unix.group_entry Lwt.t
val getgrgid : int -> Unix.group_entry Lwt.t
val lseek : file -> int64 -> Unix.seek_command -> int64 Lwt.t
val getcwd : unit -> string Lwt.t
val chdir : string -> unit Lwt.t
val chroot : string -> unit Lwt.t
val lockf : file -> Unix.lock_command -> int64 -> unit Lwt.t
val sleep : float -> unit Lwt.t
val pipe : ?cloexec:bool -> unit -> (Pipe.t * Pipe.t) result
  • parameter cloexec

    is true by default

val pipe_exn : ?cloexec:bool -> unit -> Pipe.t * Pipe.t
val realpath : string -> string Lwt.t

wrapper around realpath under Unix and GetFinalPathNameByHandleW or GetFullPathName under windows.

OCaml

Innovation. Community. Security.