diff options
author | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
---|---|---|
committer | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
commit | 5e1bf20850aaa9b1ceb86a971848609ee9e84c47 (patch) | |
tree | f3a6e5b5c38263fe527e6275ff95425f12637226 /stdlib/sys.mli | |
parent | 8ec769214e067da9ee8b33d05f4ef275e9269dd5 (diff) | |
download | ocaml-gcaml.tar.gz |
port to the latest ocaml (2004/06/18)gcaml
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml@6419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/sys.mli')
-rw-r--r-- | stdlib/sys.mli | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/stdlib/sys.mli b/stdlib/sys.mli index 28cb6de0e3..9c829b1660 100644 --- a/stdlib/sys.mli +++ b/stdlib/sys.mli @@ -32,7 +32,9 @@ external remove : string -> unit = "caml_sys_remove" external rename : string -> string -> unit = "caml_sys_rename" (** Rename a file. The first argument is the old name and the - second is the new name. *) + second is the new name. If there is already another file + under the new name, [rename] may replace it, or raise an + exception, depending on your operating system. *) external getenv : string -> string = "caml_sys_getenv" (** Return the value associated to a variable in the process @@ -98,9 +100,11 @@ type signal_behavior = external signal : int -> signal_behavior -> signal_behavior = "caml_install_signal_handler" -(** Set the behavior of the system on receipt of a given signal. - The first argument is the signal number. Return the behavior - previously associated with the signal. *) +(** Set the behavior of the system on receipt of a given signal. The + first argument is the signal number. Return the behavior + previously associated with the signal. If the signal number is + invalid (or not available on your system), an [Invalid_argument] + exception is raised. *) val set_signal : int -> signal_behavior -> unit (** Same as {!Sys.signal} but return value is ignored. *) |