diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-09-12 06:16:38 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-09-12 06:16:38 +0100 |
| commit | 318519daa385eaf0145ad84b1d6b64b155f68601 (patch) | |
| tree | a4a2fabe92b05848e0d2aa9dab063f67f54e2d0e | |
| parent | f9429ced31a5f07cfc010484e8e8ad7bfe081803 (diff) | |
| download | man-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.2 | 6 |
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 |
