Up

Module Std

Signature

include Extended_common
val run_main : (unit -> unit) -> _
val write_wrap : ?mode:[
| `Clobber
| `Append
| `Atomic
| `Atomic_update
] -> f:(Pervasives.out_channel -> 'a) -> string -> 'a

write_wrap ~atomic ~f fname Runs f on an out_channel. If mode is `Atomic or `Atomic_update is set all the changes will be written to a temporary file which will then be moved over fname otherwise we are writing straight to fname.

Values for mode:

  • `Clobber: clear the file on opening (this is the default value)
  • `Append: append to the file
  • `Atomic: replace the file atomically when we are done writing it
  • `Atomic_update: replace the file atomically when we are done writing it iff its content has been modified.
module Array : sig .. end
module Bitarray = Bitarray
module Cache = Cache
module Cbuffer = Cbuffer
module Date : sig .. end
module English = English
module Exn : sig .. end
module Filename : sig .. end
module Find = Find
module Fold_map = Fold_map
module Float : sig .. end
module Gc : sig .. end
module Hashtbl : sig .. end
module Hashtbl2 = Hashtbl2
module Int : sig .. end
module Int32 : sig .. end
module Int63 : sig .. end
module Int64 : sig .. end
module Nativeint : sig .. end
module Number = Number
module Thread : sig .. end
module Iter = Iter
module Lazy_m = Lazy_m
module Linebuf = Linebuf
module Linux_ext : sig .. end
module List : sig .. end
module Logger = Logger
module Memo : sig .. end
module Flang = Flang
module Olang = Olang
module Set_lang = Set_lang
module Pp = Pp
module Printc = Printc
module Process = Process
module Procfs = Procfs
module Readline = Readline
module Result : sig .. end
module Rw_mutex = Rw_mutex
module Sampler = Sampler
module Search = Search_foo
module Sendmail = Sendmail
module Sexp : sig .. end
module Shell = Shell
module Sntp = Sntp
module String : sig .. end
module Sys : sig .. end
module Tcp = Tcp
module Time : sig .. end
module Trie = Trie
module Unix : sig .. end