/usr/lib/ocaml/netstring/netdb.mli is in libocamlnet-ocaml-dev 4.1.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | (* $Id$
* ----------------------------------------------------------------------
*
*)
(* This is an internal interface of ocamlnet! Do not use outside! *)
(* This module manages persistent values (often lookup tables). These
* values can be stored in external files, or they can be initialized
* from string values.
*)
val read_db : string -> string
(* Reads the value with the given name, and returns it.
*
* First it is checked whether there was a set_db call, and if so,
* this value is unmarshalled and returned. Otherwise, it is checked
* whether there is a loader, and if so, it is called.
*
* In both cases the checksum is checked.
*)
val exists_db : string -> bool
(* Checks whether the named value is available, i.e. read_db would
* be able to find it
*)
val set_db_checksum : string -> string -> unit
(* [set_db_checksum key cksum]: sets the MD5 digest of this key *)
val set_db : string -> string -> unit
(* Sets the persistent value with the given name (1st arg) to the
* passed value (2nd arg). The value must be marshalled as string.
*)
val set_db_loader : string -> (string -> string) -> unit
(* [set_db_loader key loader]: sets a loader for this key, which is called
when set_db has not been set for this key. The arg of the loader is the
key.
*)
val enable_db_loaders : bool -> unit
(* Whether dynamic loading is enabled *)
|