/usr/lib/ocaml/ocamlbricks/sysExtra.mli is in libocamlbricks-ocaml-dev 0.90+bzr400-1build2.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | (* This file is part of our reusable OCaml BRICKS library
Copyright (C) 2009 Jean-Vincent Loddo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. *)
(** Additional features for the standard module [Sys]. *)
(** {2 Reading environments } *)
val meaningful_getenv :
string ->
< non_empty_string : string option;
existing_file : string option;
existing_directory : string option;
int : int option;
float : float option;
bool : bool option;
>
(** {2 Reading directories } *)
val readdir_as_list :
?only_directories:unit ->
?only_not_directories:unit ->
?name_filter:(string -> bool) ->
?name_converter:(string -> string) ->
string -> string list
(** {2 Rewriting files } *)
val put : ?callback:(string -> unit) -> string -> string -> unit
(** {2 Signals} *)
val int_of_signal : int -> int
val name_of_signal : int -> string
val description_of_signal : int -> string * string * string * string
val description_of_name : string -> string * string * string
val signal_behavior : int -> Sys.signal_behavior
val iter_on_signals : ?except:(int list) -> (int -> Sys.signal_behavior -> unit) -> unit
val fold_on_signals : ?except:(int list) -> ('a -> int -> Sys.signal_behavior -> 'a) -> 'a -> 'a
val log_signal_reception : ?except:(int list) -> unit -> unit
IFDEF DOCUMENTATION_OR_DEBUGGING THEN
module Test : sig
val log_signal_reception : unit -> unit
end
ENDIF
|