Skip to content

Commit

Permalink
the execve functions return 'a
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6132 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
Basile Starynkevitch committed Feb 25, 2004
1 parent 7ffa235 commit 6354cda
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions otherlibs/unix/unixLabels.mli
Expand Up @@ -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. *)

Expand Down

0 comments on commit 6354cda

Please sign in to comment.