Loading...
--- Libc/Libc-1725.40.4/gen/FreeBSD/exec.3
+++ Libc/Libc-763.13/gen/FreeBSD/exec.3
@@ -33,8 +33,9 @@
.Os
.Sh NAME
.Nm execl ,
+.Nm execlp ,
.Nm execle ,
-.Nm execlp ,
+.Nm exect ,
.Nm execv ,
.Nm execvp ,
.Nm execvP
@@ -45,43 +46,25 @@
.In unistd.h
.Vt extern char **environ ;
.Ft int
-.Fo execl
-.Fa "const char *path"
-.Fa "const char *arg0"
-.Fa ... /* "(char *)0" */
-.Fc
+.Fn execl "const char *path" "const char *arg" ... /* "(char *)0" */
+.Ft int
+.Fn execlp "const char *file" "const char *arg" ... /* "(char *)0" */
.Ft int
.Fo execle
-.Fa "const char *path"
-.Fa "const char *arg0"
-.Fa ...
+.Fa "const char *path" "const char *arg" ...
.Fa /*
.Bk -words
.Fa "(char *)0" "char *const envp[]" */
.Ek
.Fc
.Ft int
-.Fo execlp
-.Fa "const char *file"
-.Fa "const char *arg0"
-.Fa ... /* "(char *)0" */
-.Fc
-.Ft int
-.Fo execv
-.Fa "const char *path"
-.Fa "char *const argv[]"
-.Fc
-.Ft int
-.Fo execvp
-.Fa "const char *file"
-.Fa "char *const argv[]"
-.Fc
-.Ft int
-.Fo execvP
-.Fa "const char *file"
-.Fa "const char *search_path"
-.Fa "char *const argv[]"
-.Fc
+.Fn exect "const char *path" "char *const argv[]" "char *const envp[]"
+.Ft int
+.Fn execv "const char *path" "char *const argv[]"
+.Ft int
+.Fn execvp "const char *file" "char *const argv[]"
+.Ft int
+.Fn execvP "const char *file" "const char *search_path" "char *const argv[]"
.Sh DESCRIPTION
The
.Nm exec
@@ -97,7 +80,7 @@
is to be executed.
.Pp
The
-.Fa "const char *arg0"
+.Fa "const char *arg"
and subsequent ellipses in the
.Fn execl ,
.Fn execlp ,
@@ -119,6 +102,7 @@
pointer.
.Pp
The
+.Fn exect ,
.Fn execv ,
.Fn execvp ,
and
@@ -135,8 +119,10 @@
.Pp
The
.Fn execle
-function also specifies the environment of the executed process
-by following the
+and
+.Fn exect
+functions also specify the environment of the executed process by following
+the
.Dv NULL
pointer that terminates the list of arguments in the argument list
or the pointer to the argv array with an additional argument.
@@ -213,6 +199,11 @@
these functions will execute the shell with the path of
the file as its first argument.
(If this attempt fails, no further searching is done.)
+.Pp
+The function
+.Fn exect
+executes a file with the program tracing facilities enabled (see
+.Xr ptrace 2 ) .
.Sh RETURN VALUES
If any of the
.Fn exec
@@ -286,7 +277,7 @@
.Fn execl ,
.Fn execle ,
.Fn execlp ,
-.Fn execvp ,
+.Fn execvp
and
.Fn execvP
functions
@@ -298,8 +289,11 @@
.Xr malloc 3 .
.Pp
The
+.Fn exect
+and
.Fn execv
-function may fail and set
+functions
+may fail and set
.Va errno
for any of the errors specified for the library function
.Xr execve 2 .
@@ -307,6 +301,7 @@
.Xr sh 1 ,
.Xr execve 2 ,
.Xr fork 2 ,
+.Xr ktrace 2 ,
.Xr ptrace 2 ,
.Xr environ 7
.Sh STANDARDS
@@ -314,7 +309,7 @@
.Fn execl ,
.Fn execv ,
.Fn execle ,
-.Fn execlp ,
+.Fn execlp
and
.Fn execvp
functions