summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-01-20 08:46:46 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-01-20 08:46:46 +0000
commit47ed6ce0dabbad69698de595dc3ea3741c3faba4 (patch)
treec75b44762bc974a1b8ac08ad32a814c475f1cf25 /lib/libc
parent76eded7f590ac9b53d043761983b15fdf294a694 (diff)
Add missing section numbers to .Xr; found while testing mandocdb(8).
While here, improve the wording at one place. OK jmc@.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/exec.317
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3
index 52ac332ee9a..56bba41957b 100644
--- a/lib/libc/gen/exec.3
+++ b/lib/libc/gen/exec.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: exec.3,v 1.23 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: exec.3,v 1.24 2014/01/20 08:46:45 schwarze Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: January 20 2014 $
.Dt EXEC 3
.Os
.Sh NAME
@@ -58,11 +58,10 @@ The
.Nm exec
family of functions replace the current process image with a
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
-for detailed information about the replacement of the current process.)
+The functions described in this manual page are front-ends for the
+.Xr execve 2
+system call; see that manual page for detailed information
+about the replacement of the current process.
.Pp
The initial argument for these functions is the pathname of a file which
is to be executed.
@@ -143,7 +142,7 @@ is used instead, its value being:
In addition, certain errors are treated specially.
.Pp
If permission is denied for a file (the attempted
-.Xr execve
+.Xr execve 2
returned
.Er EACCES ) ,
these functions will continue searching the rest of
@@ -154,7 +153,7 @@ set to
.Er EACCES .
.Pp
If the header of a file isn't recognized (the attempted
-.Xr execve
+.Xr execve 2
returned
.Er ENOEXEC ) ,
these functions will execute the shell with the path of