module Sys = struct ... end | Exceptions | |
Break |
Exception raised on interactive interrupt if catch_break
is on. |
| Simple values | |
argv |
string arrayThe command line arguments given to the process. The first element is the command name used to invoke the program. The following elements are the command-line arguments given to the program. |
interactive |
bool Pervasives.refThis reference is initially set to false in standalone
programs and to true if the code is being executed under
the interactive toplevel system ocaml. |
os_type |
stringOperating system currently executing the Caml program. One of "Unix", "Win32", "Cygwin" or "MacOS". |
word_size |
intSize of one word on the machine currently executing the Caml program, in bits: 32 or 64. |
max_string_length |
intMaximum length of a string. |
max_array_length |
intMaximum length of an array. |
sigabrt |
intAbnormal termination |
sigalrm |
intTimeout |
sigfpe |
intArithmetic exception |
sighup |
intHangup on controlling terminal |
sigill |
intInvalid hardware instruction |
sigint |
intInteractive interrupt (ctrl-C) |
sigkill |
intTermination (cannot be ignored) |
sigpipe |
intBroken pipe |
sigquit |
intInteractive termination |
sigsegv |
intInvalid memory reference |
sigterm |
intTermination |
sigusr1 |
intApplication-defined signal 1 |
sigusr2 |
intApplication-defined signal 2 |
sigchld |
intChild process terminated |
sigcont |
intContinue |
sigstop |
intStop |
sigtstp |
intInteractive stop |
sigttin |
intTerminal read from background process |
sigttou |
intTerminal write from background process |
sigvtalrm |
intTimeout in virtual time |
sigprof |
intProfiling interrupt |
| Functions |
file_exists
: string -> bool |
remove
: string -> unit |
rename
: src:string -> dst:string -> unit |
getenv
: string -> string |
Not_found if the variable is unbound.
command
: string -> int |
time
: unit -> float |
chdir
: string -> unit |
getcwd
: unit -> string |
signal
: int -> signal_behavior -> signal_behavior |
set_signal
: int -> signal_behavior -> unit |
signal but return value is ignored.
catch_break
: bool -> unit |
catch_break governs whether interactive interrupt (ctrl-C)
terminates the program or raises the Break exception.
Call catch_break true to enable raising Break,
and catch_break false to let the system
terminate the program on user interrupt.