mirror of https://github.com/mkerrisk/man-pages
execve.2: Mention use of 'environ' to access environment list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f9429ced31
commit
318519daa3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue