package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type user = {
  1. username : string;
  2. uid : Unsigned.ulong;
  3. gid : Unsigned.ulong;
  4. shell : string option;
  5. homedir : string;
}
val get_passwd : ?uid:Unsigned.ulong -> unit -> (user, Error.t) result

Gets passwd entry for the current user or the user with the given uid.

Binds uv_os_get_passwd. See getpwuid_r(3p).

Requires libuv 1.9.0.

Feature check: Luv.Require.(has os_get_passwd)

The ?uid argument requires Luv 0.5.13 and libuv 1.45.0.

Feature check: Luv.Require.(has os_get_passwd_uid)

type group = {
  1. groupname : string;
  2. gid : Unsigned.ulong;
  3. members : string list;
}

Binds uv_group_t.

val get_group : Unsigned.ulong -> (group, Error.t) result

Gets the entry for the group with the given gid.

Binds uv_os_get_group.

Requires Luv 0.5.13 and libuv 1.45.0.

Feature check: Luv.Require.(has os_get_group)

OCaml

Innovation. Community. Security.