aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 06:16:38 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 06:16:38 +0100
commit318519daa385eaf0145ad84b1d6b64b155f68601 (patch)
treea4a2fabe92b05848e0d2aa9dab063f67f54e2d0e
parentf9429ced31a5f07cfc010484e8e8ad7bfe081803 (diff)
downloadman-pages-318519daa385eaf0145ad84b1d6b64b155f68601.tar.gz
execve.2: Mention use of 'environ' to access environment list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/execve.26
1 files changed, 6 insertions, 0 deletions
diff --git a/man2/execve.2 b/man2/execve.2
index 59af1cc473..c6c341e30f 100644
--- a/man2/execve.2
+++ b/man2/execve.2
@@ -75,6 +75,12 @@ int main(int argc, char *argv[], char *envp[])
.fi
.in
+Note, however, that the use of a third argument to the main function
+is not specified in POSIX.1;
+according to POSIX.1,
+the environment should be accessed via the external variable
+.BR environ (7).
+
.BR execve ()
does not return on success, and the text, inititialized data,
uninitialized data (bss), and stack of the calling process are overwritten