]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r250412: posix_spawn_file_actions_addopen(3): Correct error for bad file
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Aug 2013 15:00:34 +0000 (15:00 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Aug 2013 15:00:34 +0000 (15:00 +0000)
commitb5a90a5000cf31291fb0f043ae85f9e23c1b4212
tree788dfc093e6978c08cc9bf03c4f9e65d7f1c0551
parent0106f0e1df0a1c370903c2bfd42226789668fc39
MFC r250412: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@254869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/posix_spawn_file_actions_addopen.3