posix_spawn_file_actions_addopen(3): Correct error for bad file descriptor.
As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a file descriptor is negative, not [EINVAL]. The bug was only in the manual page; the code is correct. MFC after: 1 week
This commit is contained in:
parent
e63091ea6c
commit
39e499a8d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250412
@ -34,7 +34,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd March 24, 2008
|
.Dd May 9, 2013
|
||||||
.Dt POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 3
|
.Dt POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -145,7 +145,7 @@ otherwise, an error number is returned to indicate the error.
|
|||||||
These
|
These
|
||||||
functions fail if:
|
functions fail if:
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
.It Bq Er EINVAL
|
.It Bq Er EBADF
|
||||||
The value specified by
|
The value specified by
|
||||||
.Fa fildes
|
.Fa fildes
|
||||||
or
|
or
|
||||||
|
Loading…
Reference in New Issue
Block a user