(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** {5 System utilities} *)
type physical_path = string type load_path = physical_path list
val physical_path_of_string : string -> physical_path val string_of_physical_path : physical_path -> string
(** Escape what has to be escaped (e.g. surround with quotes if with spaces) *) val escaped_string_of_physical_path : physical_path -> string
val canonical_path_name : string -> string
(** Remove all initial "./" in a path *) val remove_path_dot : string -> string
(** If a path [p] starts with the current directory $PWD then [strip_pathp]returnsthesub-pathrelativeto$PWD.
Any leading "./" are also removed from the result. *) val strip_path : string -> string
(** correct_path f dir = dir/f if f is relative *) val correct_path : string -> string -> string
val path_to_list : string -> stringlist
(** [make_suffix file suf] catenate [file] with [suf] when
[file] does not already end with [suf]. *) val make_suffix : string -> string -> string
val file_readable_p : string -> bool
(** {6 Executing commands } *)
(** [run_command com] launches command [com], and returns thecontentsofstdoutandstderr.Ifgiven,[~hook]
is called on each elements read on stdout or stderr. *)
val run_command :
?hook:(bytes->unit) -> string -> Unix.process_status * string
(** [sys_command] launches program [prog] with arguments [args]. Itbehaveslike[Sys.command],exceptthatwerelyon [Unix.create_process],it'shardlymorecomplexandavoidsdealing withshells.Inparticular,noneedtoquotearguments (againstwhitespaceorotherfunnycharsinpaths),hencenoneed
to care about the different quoting conventions of /bin/sh and cmd.exe. *)
val sys_command : string -> stringlist -> Unix.process_status
(** A version of [Unix.waitpid] immune to EINTR exceptions *)
val waitpid_non_intr : int -> Unix.process_status
(** Check if two file names refer to the same (existing) file *) val same_file : string -> string -> bool
(** Like [Stdlib.Filename.temp_file] but producing a directory. *) val mktemp_dir : ?temp_dir:string -> string -> string -> string
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.