package frama-c
Install
dune-project
Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
TTristan Le Gall
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
MMuriel Roger
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=5b13574a16a58971c27909bee94ae7f37b17d897852b40c768a3d4e2e09e39d2
doc/frama-c.kernel/Frama_c_kernel/Command/index.html
Module Frama_c_kernel.Command
Useful high-level system operations.
File Utilities
val pp_to_file : string -> (Format.formatter -> unit) -> unitpp_to_file file pp runs pp on a formatter that writes into file. The formatter is always properly flushed and closed on return. Exceptions in pp are re-raised after closing.
val pp_from_file : Format.formatter -> string -> unitpp_from_file fmt file dumps the content of file into the fmt. Exceptions in pp are re-raised after closing.
val bincopy : bytes -> in_channel -> out_channel -> unitcopy buffer cin cout reads cin until end-of-file and copy it in cout. buffer is a temporary string used during the copy. Recommended size is 2048.
copy source target copies source file to target file using bincopy.
val read_file : string -> (in_channel -> 'a) -> 'aProperly close the channel and re-raise exceptions
val write_file : string -> (out_channel -> 'a) -> 'aProperly close the channel and re-raise exceptions
val print_file : string -> (Format.formatter -> 'a) -> 'aProperly flush and close the channel and re-raise exceptions
Timing Utility
type timer = float refCompute 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_statusSame arguments as Unix.create_process but returns only when execution is complete.
type process_result = | Not_ready of unit -> unit| Result of Unix.process_status(*
*)Not_ready fmeans that the child process is not yet finished and may be terminated manually withf ().
val full_command_async :
string ->
string array ->
stdin:Unix.file_descr ->
stdout:Unix.file_descr ->
stderr:Unix.file_descr ->
unit ->
process_resultSame arguments as Unix.create_process.
val command_async :
?stdout:Buffer.t ->
?stderr:Buffer.t ->
string ->
string array ->
unit ->
process_resultSame arguments as Unix.create_process.
val command :
?timeout:int ->
?stdout:Buffer.t ->
?stderr:Buffer.t ->
string ->
string array ->
Unix.process_statusSame arguments as Unix.create_process. When this function returns, the stdout and stderr of the child process will be filled into the arguments buffer.