]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r250412: posix_spawn_file_actions_addopen(3): Correct error for bad file
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 May 2013 20:34:21 +0000 (20:34 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 May 2013 20:34:21 +0000 (20:34 +0000)
commitba541e1f8d6e6d6017e6ea38e923737bb85a44ed
tree121213fd25e492d1baf24ddb42d039025d5cf3a0
parent9ed5ac48cc6e19acac223ea34f1c4ebd058bbc95
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/9@250715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/posix_spawn_file_actions_addopen.3