[Midnightbsd-cvs] src [9396] trunk/lib/libc/gen/posix_spawn_file_actions_addopen.3: posix_spawn_file_actions_addopen(3): Correct error for bad file
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Mar 4 16:28:26 EST 2017
Revision: 9396
http://svnweb.midnightbsd.org/src/?rev=9396
Author: laffer1
Date: 2017-03-04 16:28:26 -0500 (Sat, 04 Mar 2017)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/lib/libc/gen/posix_spawn_file_actions_addopen.3
Modified: trunk/lib/libc/gen/posix_spawn_file_actions_addopen.3
===================================================================
--- trunk/lib/libc/gen/posix_spawn_file_actions_addopen.3 2017-03-04 21:28:02 UTC (rev 9395)
+++ trunk/lib/libc/gen/posix_spawn_file_actions_addopen.3 2017-03-04 21:28:26 UTC (rev 9396)
@@ -34,7 +34,7 @@
.\"
.\" $MidnightBSD$
.\"
-.Dd March 24, 2008
+.Dd May 9, 2013
.Dt POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 3
.Os
.Sh NAME
@@ -145,7 +145,7 @@
These
functions fail if:
.Bl -tag -width Er
-.It Bq Er EINVAL
+.It Bq Er EBADF
The value specified by
.Fa fildes
or
More information about the Midnightbsd-cvs
mailing list