diff options
Diffstat (limited to 'lib/libc/gen/exec.3')
-rw-r--r-- | lib/libc/gen/exec.3 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3 index daeccd1..448a1b9 100644 --- a/lib/libc/gen/exec.3 +++ b/lib/libc/gen/exec.3 @@ -38,6 +38,7 @@ .Nm exect , .Nm execv , .Nm execvp , +.Nm execvpe , .Nm execvP .Nd execute a file .Sh LIBRARY @@ -64,6 +65,8 @@ .Ft int .Fn execvp "const char *file" "char *const argv[]" .Ft int +.Fn execvpe "const char *file" "char *const argv[]" "char *const envp[]" +.Ft int .Fn execvP "const char *file" "const char *search_path" "char *const argv[]" .Sh DESCRIPTION The @@ -118,9 +121,10 @@ be terminated by a pointer. .Pp The -.Fn execle -and +.Fn execle , .Fn exect +and +.Fn execvpe functions also specify the environment of the executed process by following the .Dv NULL @@ -142,6 +146,7 @@ Some of these functions have special semantics. The functions .Fn execlp , .Fn execvp , +.Fn execvpe , and .Fn execvP will duplicate the actions of the shell in searching for an executable file @@ -152,6 +157,7 @@ For .Fn execlp and .Fn execvp , +.Fn execvpe , search path is the path specified in the environment by .Dq Ev PATH variable. @@ -277,7 +283,8 @@ The .Fn execl , .Fn execle , .Fn execlp , -.Fn execvp +.Fn execvp , +.Fn execvpe and .Fn execvP functions @@ -319,3 +326,7 @@ The .Fn execvP function first appeared in .Fx 5.2 . +The +.Fn execvpe +function first appeared in +.Fx 8.0 . |