diff options
author | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-02-25 12:43:16 +0000 |
---|---|---|
committer | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-02-25 12:43:16 +0000 |
commit | 6354cdaf8388e22d051cebb08928fa940c7610a5 (patch) | |
tree | 8e596d9a6501b8e1c286e1da14094c7bfabeb513 /otherlibs/unix/unixLabels.mli | |
parent | 7ffa235c4403e8e378c00f39d4b30b0ae6f68174 (diff) |
the execve functions return 'a
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6132 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/unixLabels.mli')
-rw-r--r-- | otherlibs/unix/unixLabels.mli | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/otherlibs/unix/unixLabels.mli b/otherlibs/unix/unixLabels.mli index 536df710c..9cf0fe7e9 100644 --- a/otherlibs/unix/unixLabels.mli +++ b/otherlibs/unix/unixLabels.mli @@ -156,19 +156,22 @@ type wait_flag = (** Flags for {!UnixLabels.waitpid}. *) -val execv : prog:string -> args:string array -> unit +val execv : prog:string -> args:string array -> 'a (** [execv prog args] execute the program in file [prog], with - the arguments [args], and the current process environment. *) + the arguments [args], and the current process environment. + These [execv*] functions never return: on success, the current + program is replaced by the new one; + on failure, a {!UnixLabels.Unix_error} exception is raised. *) -val execve : prog:string -> args:string array -> env:string array -> unit +val execve : prog:string -> args:string array -> env:string array -> 'a (** Same as {!UnixLabels.execv}, except that the third argument provides the environment to the program executed. *) -val execvp : prog:string -> args:string array -> unit +val execvp : prog:string -> args:string array -> 'a (** Same as {!UnixLabels.execv} respectively, except that the program is searched in the path. *) -val execvpe : prog:string -> args:string array -> env:string array -> unit +val execvpe : prog:string -> args:string array -> env:string array -> 'a (** Same as {!UnixLabels.execvp} respectively, except that the program is searched in the path. *) |