summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-27 08:26:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-27 08:26:21 +0000
commitccad4e1cf58b472bff1c04f868c8359f2d3bb297 (patch)
tree3296a32cbc3bcfbe4b50c6b772ba5342a708119f /lib/libc/sys
parentd06a7fc905510fbcd4cbf15396d634740dc81423 (diff)
We don't have an "Ap" macro so ".Fn execve() Ap d" is wrong, reword to remove
it. ok jmc
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/execve.231
1 files changed, 15 insertions, 16 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 879c656e939..630ba0e56b3 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.33 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: execve.2,v 1.34 2009/10/27 08:26:20 nicm Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)execve.2 8.3 (Berkeley) 1/24/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: October 27 2009 $
.Dt EXECVE 2
.Os
.Sh NAME
@@ -69,26 +69,25 @@ An interpreter file begins with a line of the form:
.Bq Em arg
.Ed
.Pp
-When an interpreter file is
-.Fn execve Ap d ,
-the system
-.Fn execve Ap s
-runs the specified
+When an interpreter file is passed to
+.Fn execve
+the system instead calls
+.Fn execve
+with the specified
.Em interpreter .
If the optional
.Em arg
is specified, it becomes the first argument to the
.Em interpreter ,
-and the name of the originally
-.Fn execve Ap d
-file becomes the second argument;
-otherwise, the name of the originally
-.Fn execve Ap d
-file becomes the first argument.
+and the original
+.Ar path
+becomes the second argument;
+otherwise,
+.Ar path
+becomes the first argument.
The original arguments are shifted over to become the subsequent arguments.
-The zeroth argument, normally the name of the
-.Fn execve Ap d
-file, is left unchanged.
+The zeroth argument, normally the name of the file being executed, is left
+unchanged.
.Pp
The argument
.Fa argv