execve.2: Note that the first argv[] value should contain name of executable

Reported-by: Sebastian Geiger <sbastig@gmx.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2011-09-14 07:57:12 +02:00
parent 866ed7369f
commit 1e8a0addef
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@
.\" 2007-09-14 Ollie Wild <aaw@google.com>, mtk
.\" Add text describing limits on command-line arguments + environment
.\"
.TH EXECVE 2 2010-01-06 "Linux" "Linux Programmer's Manual"
.TH EXECVE 2 2011-09-14 "Linux" "Linux Programmer's Manual"
.SH NAME
execve \- execute program
.SH SYNOPSIS
@ -58,6 +58,8 @@ starting with a line of the form:
For details of the latter case, see "Interpreter scripts" below.
\fIargv\fP is an array of argument strings passed to the new program.
By convention, the first of these strings should contain the filename
associated with the file being executed.
\fIenvp\fP is an array of strings, conventionally of the form
\fBkey=value\fP, which are passed as environment to the new program.
Both \fIargv\fP and \fIenvp\fP must be terminated by a null pointer.