1 --- exec.3.orig 2009-12-15 13:07:38.000000000 -0800
2 +++ exec.3 2009-12-15 13:09:07.000000000 -0800
16 .Vt extern char **environ ;
18 -.Fn execl "const char *path" "const char *arg" ... /* "(char *)0" */
20 -.Fn execlp "const char *file" "const char *arg" ... /* "(char *)0" */
22 +.Fa "const char *path"
23 +.Fa "const char *arg0"
24 +.Fa ... /* "(char *)0" */
28 -.Fa "const char *path" "const char *arg" ...
29 +.Fa "const char *path"
30 +.Fa "const char *arg0"
34 .Fa "(char *)0" "char *const envp[]" */
38 -.Fn exect "const char *path" "char *const argv[]" "char *const envp[]"
40 +.Fa "const char *file"
41 +.Fa "const char *arg0"
42 +.Fa ... /* "(char *)0" */
45 -.Fn execv "const char *path" "char *const argv[]"
47 +.Fa "const char *path"
48 +.Fa "char *const argv[]"
51 -.Fn execvp "const char *file" "char *const argv[]"
53 +.Fa "const char *file"
54 +.Fa "char *const argv[]"
57 -.Fn execvP "const char *file" "const char *search_path" "char *const argv[]"
59 +.Fa "const char *file"
60 +.Fa "const char *search_path"
61 +.Fa "char *const argv[]"
66 @@ -80,7 +97,7 @@ The initial argument for these functions
70 -.Fa "const char *arg"
71 +.Fa "const char *arg0"
72 and subsequent ellipses in the
75 @@ -102,7 +119,6 @@ be terminated by a
83 @@ -119,10 +135,8 @@ pointer.
89 -functions also specify the environment of the executed process by following
91 +function also specifies the environment of the executed process
94 pointer that terminates the list of arguments in the argument list
95 or the pointer to the argv array with an additional argument.
96 @@ -199,11 +213,6 @@ returned
97 these functions will execute the shell with the path of
98 the file as its first argument.
99 (If this attempt fails, no further searching is done.)
103 -executes a file with the program tracing facilities enabled (see
108 @@ -277,7 +286,7 @@ The
117 @@ -289,11 +298,8 @@ and
126 +function may fail and set
128 for any of the errors specified for the library function
130 @@ -301,7 +307,6 @@ for any of the errors specified for the
138 @@ -309,7 +314,7 @@ The