]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
posix_spawn_file_actions_addopen(3): Correct error for bad file descriptor.
authorjilles <jilles@FreeBSD.org>
Thu, 9 May 2013 16:42:01 +0000 (16:42 +0000)
committerjilles <jilles@FreeBSD.org>
Thu, 9 May 2013 16:42:01 +0000 (16:42 +0000)
commitbbb5917525854d5051697db3fb20c8a062fc3e2a
tree2596d6d3f4990af9792f85a138f57a87cc96527a
parentbd49099038824e1817f3a5da01c52f82eebe392e
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
lib/libc/gen/posix_spawn_file_actions_addopen.3