mirror_zfs/include/linux
Richard Yao e0093fea58 Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR
torvalds/linux@1dce27c5aa 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
2012-06-13 16:18:51 -07:00
..
bitops_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
compiler_compat.h Fix compilation error due to undefined ACCESS_ONCE macro. 2010-07-20 13:47:52 -07:00
file_compat.h Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR 2012-06-13 16:18:51 -07:00
kallsyms_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
list_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
Makefile.in Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
math64_compat.h Add __divdi3(), remove __udivdi3() kernel dependency 2010-07-13 16:44:02 -07:00
mm_compat.h Proxmox VE kernel compat, invalidate_inodes() 2011-12-21 14:29:45 -08:00
module_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
mutex_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
proc_compat.h Prepend spl_ to all init/fini functions 2011-11-11 09:18:28 -08:00
rwsem_compat.h Linux 3.2 compat: rw_semaphore.wait_lock is raw 2012-01-11 16:28:05 -08:00
smp_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
sysctl_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
time_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
uaccess_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
workqueue_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
zlib_compat.h Linux 2.6.39 compat, zlib_deflate_workspacesize() 2011-04-20 14:39:15 -07:00