PR#2352
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6200 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
5dfbddcaea
commit
01cbd4fca5
|
@ -179,7 +179,7 @@ CAMLprim value caml_sys_remove(value name)
|
|||
CAMLprim value caml_sys_rename(value oldname, value newname)
|
||||
{
|
||||
if (rename(String_val(oldname), String_val(newname)) != 0)
|
||||
caml_sys_error(oldname);
|
||||
caml_sys_error("Sys.rename");
|
||||
return Val_unit;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue