package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Dynamic linking.

See Shared library handling in libuv.

type t

Binds uv_lib_t.

val open_ : string -> t option

Loads a shared library.

Binds uv_dlopen. See dlopen(3p).

Evaluates to None on failure. In that case, call Luv.DLL.last_error to get the error message.

val close : t -> unit

Closes a shared library.

Binds uv_dlclose. See dlclose(3p).

val sym : t -> string -> nativeint option

Loads a symbol from a shared library.

Binds uv_dlsym. See dlsym(3p).

Evaluates to None on failure. In that case, call Luv.DLL.last_error to get the error message.

val error : t -> string

Retrieves the last error message from Luv.DLL.open_ or Luv.DLL.sym.

Binds uv_dlerror. See dlerror(3p).

OCaml

Innovation. Community. Security.