Module Core__Core_unix.Passwd

Structure of entries in the passwd database

type t = {
name : string;
passwd : string;
uid : int;
gid : int;
gecos : string;
dir : string;
shell : string;
}
include sig ... end
val compare : t ‑> t ‑> int
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
val getbyname : string ‑> t option
val getbyname_exn : string ‑> t
val getbyuid : int ‑> t option
val getbyuid_exn : int ‑> t
val 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.

module Low_level : sig ... end