Frama-C API - Command
Useful high-level system operations.
File Utilities
val pp_to_file : Filepath.Normalized.t -> (Stdlib.Format.formatter -> unit) -> unit
val copy : Filepath.Normalized.t -> Filepath.Normalized.t -> unit
val read_file : Filepath.Normalized.t -> (Stdlib.in_channel -> 'a) -> 'a
val read_lines : Filepath.Normalized.t -> (string -> unit) -> unit
val write_file : Filepath.Normalized.t -> (Stdlib.out_channel -> 'a) -> 'a
val print_file : Filepath.Normalized.t -> (Stdlib.Format.formatter -> 'a) -> 'a
Pretty from files
val pp_from_file : Stdlib.Format.formatter -> Filepath.Normalized.t -> unit
pp_from_file fmt file
dumps the content of file
into the fmt
. Exceptions in pp
are re-raised after closing.
Timing Utility
Compute the elapsed time with Sys.time
. The rmax
timer is maximized and the radd
timer is cumulated. Computed result is returned, or exception is re-raised.
System commands
val full_command : string -> string array -> stdin:Unix.file_descr -> stdout:Unix.file_descr -> stderr:Unix.file_descr -> Unix.process_status
val full_command_async : string -> string array -> stdin:Unix.file_descr -> stdout:Unix.file_descr -> stderr:Unix.file_descr -> unit -> process_result
val async : ?stdout:Stdlib.Buffer.t -> ?stderr:Stdlib.Buffer.t -> string -> string list -> unit -> process_result
Same arguments as Unix.create_process
.
val command_async : ?stdout:Stdlib.Buffer.t -> ?stderr:Stdlib.Buffer.t -> string -> string list -> unit -> process_result