]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/exec.3.patch
b22f837c7623f660efce6ce039aa1ca34c122137
[apple/libc.git] / gen / FreeBSD / exec.3.patch
1 --- exec.3.orig Tue May 20 15:21:01 2003
2 +++ exec.3 Mon Oct 27 23:21:54 2003
3 @@ -39,7 +39,6 @@
4 .Nm execl ,
5 .Nm execlp ,
6 .Nm execle ,
7 -.Nm exect ,
8 .Nm execv ,
9 .Nm execvp
10 .Nd execute a file
11 @@ -55,8 +54,6 @@
12 .Ft int
13 .Fn execle "const char *path" "const char *arg" ...
14 .Ft int
15 -.Fn exect "const char *path" "char *const argv[]" "char *const envp[]"
16 -.Ft int
17 .Fn execv "const char *path" "char *const argv[]"
18 .Ft int
19 .Fn execvp "const char *file" "char *const argv[]"
20 @@ -97,8 +94,7 @@
21 pointer.
22 .Pp
23 The
24 -.Fn exect ,
25 -.Fn execv ,
26 +.Fn execv
27 and
28 .Fn execvp
29 functions provide an array of pointers to null-terminated strings that
30 @@ -113,9 +109,7 @@
31 .Pp
32 The
33 .Fn execle
34 -and
35 -.Fn exect
36 -functions also specify the environment of the executed process by following
37 +function also specify the environment of the executed process by following
38 the
39 .Dv NULL
40 pointer that terminates the list of arguments in the argument list
41 @@ -185,11 +179,6 @@
42 these functions will execute the shell with the path of
43 the file as its first argument.
44 (If this attempt fails, no further searching is done.)
45 -.Pp
46 -The function
47 -.Fn exect
48 -executes a file with the program tracing facilities enabled (see
49 -.Xr ptrace 2 ) .
50 .Sh RETURN VALUES
51 If any of the
52 .Fn exec
53 @@ -218,10 +207,8 @@
54 .Xr malloc 3 .
55 .Pp
56 The
57 -.Fn exect
58 -and
59 .Fn execv
60 -functions
61 +function
62 may fail and set
63 .Va errno
64 for any of the errors specified for the library function