package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Base.Sys end
val get_argv : unit -> string array
val argv : string array
  • deprecated [since 2019-08] Use [Sys.get_argv] instead, which has the correct behavior when [caml_sys_modify_argv] is called.
val interactive : bool Stdlib.ref
val os_type : string
val unix : bool
val win32 : bool
val cygwin : bool
type backend_type = Base__.Sys0.backend_type =
  1. | Native
  2. | Bytecode
  3. | Other of string
val backend_type : backend_type
val word_size_in_bits : int
val int_size_in_bits : int
val big_endian : bool
val max_string_length : int
val max_array_length : int
val runtime_variant : unit -> string
val runtime_parameters : unit -> string
val ocaml_version : string
val enable_runtime_warnings : bool -> unit
val runtime_warnings_enabled : unit -> bool
val getenv : string -> string option
val getenv_exn : string -> string
val opaque_identity : 'a -> 'a
val opaque_identity_global : 'a -> 'a
val quote : Base.String.t -> Base.String.t

quote s quotes the string in a format suitable for the shell of the current system (e.g. suitable for command). On Unix, this function only quotes as necessary, which makes its output more legible than Filename.quote.

WARNING: This may not work with some shells, but should work with sh, bash, and zsh.

val concat_quoted : Base.String.t Base.List.t -> Base.String.t

Converts a list of tokens to a command line fragment that can be passed to the shell of the current system. Each token is escaped as appropriate using quote.

val c_int_size : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val catch_break : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val chdir : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val command : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val command_exn : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val executable_name : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val execution_mode : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val file_exists : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val file_exists_exn : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val fold_dir : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val getcwd : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val home_directory : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val is_directory : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val is_directory_exn : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val is_file : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val is_file_exn : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val ls_dir : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val override_argv : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val readdir : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val remove : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val rename : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val unsafe_getenv : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
val unsafe_getenv_exn : [ `Use_Sys_unix ]
  • deprecated [since 2021-04] Use [Sys_unix]
exception Break
  • deprecated [since 2021-04] Use [Sys_unix]
OCaml

Innovation. Community. Security.