HomeFreeBSD

Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR

Description

Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR

torvalds/linux@1dce27c5aa6770e9d195f2bb7db1db3d4dde5591 introduced
__clear_close_on_exec() as a replacement for FD_CLR. Further commits
appear to have removed FD_CLR from the Linux source tree. This
causes the following failure:

error: implicit declaration of function '__FD_CLR'
[-Werror=implicit-function-declaration]

To correct this we update the code to use the current
clear_close_on_exec() interface for readability. Then we introduce
an autotools check to determine if
clear_close_on_exec() is available.
If it isn't then we define some compatibility logic which used the older
FD_CLR() interface.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #124

Details

Provenance
Richard Yao <ryao@gentoo.org>Authored on Jun 6 2012, 4:51 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 13 2012, 11:18 PM
Parents
rGeaac9ba51027: Fix uninit variable in slab reclaim test
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe0093fea58f2: Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR (authored by Richard Yao <ryao@gentoo.org>).Jun 13 2012, 11:18 PM