package core_unix

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

Module Core_unix.PasswdSource

Structure of entries in the passwd database

Sourcetype t = {
  1. name : string;
  2. passwd : string;
  3. uid : int;
  4. gid : int;
  5. gecos : string;
  6. dir : string;
  7. shell : string;
}
include Ppx_compare_lib.Comparable.S with type t := t
Sourceval compare : t -> t -> int
Sourceval shell : t -> string
Sourceval dir : t -> string
Sourceval gecos : t -> string
Sourceval gid : t -> int
Sourceval uid : t -> int
Sourceval passwd : t -> string
Sourceval name : t -> string
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval getbyname : string -> t option
Sourceval getbyname_exn : string -> t
Sourceval getbyuid : int -> t option
Sourceval getbyuid_exn : int -> t
Sourceval getpwents : unit -> t list

getpwents is a thread-safe wrapper over the low-level passwd database functions. The order in which the results are returned is not deterministic.

Sourcemodule Low_level : sig ... end

These functions may not be thread safe. Use getpwents, above, if possible.

OCaml

Innovation. Community. Security.