summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-05-09 16:42:01 +0000
committerjilles <jilles@FreeBSD.org>2013-05-09 16:42:01 +0000
commitbbb5917525854d5051697db3fb20c8a062fc3e2a (patch)
tree2596d6d3f4990af9792f85a138f57a87cc96527a
parentbd49099038824e1817f3a5da01c52f82eebe392e (diff)
downloadFreeBSD-src-bbb5917525854d5051697db3fb20c8a062fc3e2a.zip
FreeBSD-src-bbb5917525854d5051697db3fb20c8a062fc3e2a.tar.gz
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
-rw-r--r--lib/libc/gen/posix_spawn_file_actions_addopen.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/posix_spawn_file_actions_addopen.3 b/lib/libc/gen/posix_spawn_file_actions_addopen.3
index c6fd017..e01b497 100644
--- a/lib/libc/gen/posix_spawn_file_actions_addopen.3
+++ b/lib/libc/gen/posix_spawn_file_actions_addopen.3
@@ -34,7 +34,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 24, 2008
+.Dd May 9, 2013
.Dt POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 3
.Os
.Sh NAME
@@ -145,7 +145,7 @@ otherwise, an error number is returned to indicate the error.
These
functions fail if:
.Bl -tag -width Er
-.It Bq Er EINVAL
+.It Bq Er EBADF
The value specified by
.Fa fildes
or
OpenPOWER on IntegriCloud