execve.2: Mention use of 'environ' to access environment list

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-09-12 06:16:38 +01:00
parent f9429ced31
commit 318519daa3
1 changed files with 6 additions and 0 deletions

View File

@ -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