mirror of https://github.com/mkerrisk/man-pages
Fix text that warns against use of NULL argv and envp.
Using a NULL envp does in fact seem to be portable (works on Solaris and FreeBSD), but the Linux semantics for a NULL argv certainly aren't consistent with other implementations. See http://bugzilla.kernel.org/show_bug.cgi?id=8408.
This commit is contained in:
parent
5c1decfcc2
commit
34dcae5481
|
@ -467,14 +467,13 @@ are used to delimit the arguments.
|
|||
|
||||
On Linux,
|
||||
.I argv
|
||||
and
|
||||
.I envp
|
||||
can be specified as NULL,
|
||||
which has the same effect as specifying these arguments
|
||||
as pointers to lists containing a single NULL pointer.
|
||||
which has the same effect as specifying this argument
|
||||
as a pointer to a list containing a single NULL pointer.
|
||||
.B "Do not take advantage of this misfeature!"
|
||||
It is non-standard and non-portable:
|
||||
on most other Unix systems doing this will result in an error.
|
||||
on most other Unix systems doing this will result in an error
|
||||
.RB ( EFAULT ).
|
||||
.\" e.g., EFAULT on Solaris 8 and FreeBSD 6.1; but
|
||||
.\" HP-UX 11 is like Linux -- mtk, Apr 2007
|
||||
.\" FIXME .
|
||||
|
|
Loading…
Reference in New Issue