package opasswd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val passwd_file : string
type ent = {
  1. name : string;
  2. passwd : string;
  3. uid : int;
  4. gid : int;
  5. gecos : string;
  6. dir : string;
  7. shell : string;
}
val to_string : ent -> string
type db = ent list
val db_to_string : db -> string
type file_descr
val getpwnam : string -> ent
val getpwuid : int -> ent
val getpwent : unit -> ent option
val setpwent : unit -> unit
val endpwent : unit -> unit
val putpwent : file_descr -> ent -> unit
val open_passwd : ?file:string -> unit -> file_descr
val close_passwd : file_descr -> unit
val get_db : unit -> db
val update_db : db -> ent -> db
val write_db : ?file:string -> db -> unit
OCaml

Innovation. Community. Security.