From eb24aedc69dd70e1ec75ff4196c5fe89eff39400 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 11 May 2015 08:59:50 +0200 Subject: [PATCH] execve.2: Elaborate on envp/argv as NULL behavior Signed-off-by: Michael Kerrisk --- man2/execve.2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/man2/execve.2 b/man2/execve.2 index 3763b2676..d5eb7ba19 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -496,10 +496,15 @@ and can be specified as NULL. In both cases, this has the same effect as specifying the argument as a pointer to a list containing a single null pointer. -.B "Do not take advantage of this misfeature!" -It is nonstandard and nonportable: -on most other UNIX systems doing this will result in an error +.B "Do not take advantage of this nonstandard and nonportable misfeature!" +On many other UNIX systems, specifying +.I argv +as NULL will result in an error .RB ( EFAULT ). +.I Some +other UNIX systems treat the +.I envp==NULL +case the same as Linux. .\" e.g., EFAULT on Solaris 8 and FreeBSD 6.1; but .\" HP-UX 11 is like Linux -- mtk, Apr 2007 .\" Bug filed 30 Apr 2007: http://bugzilla.kernel.org/show_bug.cgi?id=8408