summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/exec.3
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-03-27 20:49:07 +0000
committermpp <mpp@FreeBSD.org>1996-03-27 20:49:07 +0000
commit822fdcab93140306c21991b7fe837e606e75b48e (patch)
tree56c4c6b3ee0f1367c7bb50d3cb70ee35ec089c82 /lib/libc/gen/exec.3
parentcd9e381ea0b409efec3ad4c0f4633f95a1eac734 (diff)
downloadFreeBSD-src-822fdcab93140306c21991b7fe837e606e75b48e.zip
FreeBSD-src-822fdcab93140306c21991b7fe837e606e75b48e.tar.gz
Added missing section numbers to a bunch of .Xr macros, or
converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
Diffstat (limited to 'lib/libc/gen/exec.3')
-rw-r--r--lib/libc/gen/exec.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3
index 5c74ada..bda6e9e 100644
--- a/lib/libc/gen/exec.3
+++ b/lib/libc/gen/exec.3
@@ -65,7 +65,7 @@ new process image.
The functions described in this manual page are front-ends for the function
.Xr execve 2 .
(See the manual page for
-.Xr execve
+.Xr execve 2
for detailed information about the replacement of the current process.)
.Pp
The initial argument for these functions is the pathname of a file which
@@ -148,7 +148,7 @@ used.
In addition, certain errors are treated specially.
.Pp
If permission is denied for a file (the attempted
-.Xr execve
+.Fn execve
returned
.Er EACCES ) ,
these functions will continue searching the rest of
@@ -159,7 +159,7 @@ set to
.Er EACCES .
.Pp
If the header of a file isn't recognized (the attempted
-.Xr execve
+.Fn execve
returned
.Er ENOEXEC ) ,
these functions will execute the shell with the path of
@@ -167,7 +167,7 @@ the file as its first argument.
(If this attempt fails, no further searching is done.)
.Pp
If the file is currently busy (the attempted
-.Xr execve
+.Fn execve
returned
.Er ETXTBUSY ) ,
these functions will sleep for several seconds,
@@ -179,7 +179,7 @@ executes a file with the program tracing facilities enabled (see
.Xr ptrace 2 ) .
.Sh RETURN VALUES
If any of the
-.Xr exec
+.Fn exec
functions returns, an error will have occurred.
The return value is \-1, and the global variable
.Va errno
OpenPOWER on IntegriCloud