mirror_zfs/module/splat
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
..
.gitignore sun-misc-gitignore 2010-01-08 09:37:54 -08:00
Makefile.in Add linux compatibility tests 2011-06-21 14:02:46 -07:00
splat-atomic.c Split <sys/debug.h> header 2010-07-20 13:29:35 -07:00
splat-condvar.c Remove condition variable names 2012-04-06 12:06:19 -07:00
splat-cred.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-ctl.c Add SPL_META_RELEASE to module load/unload messages 2012-03-23 12:11:50 -07:00
splat-generic.c Add __divdi3(), remove __udivdi3() kernel dependency 2010-07-13 16:44:02 -07:00
splat-internal.h Add linux compatibility tests 2011-06-21 14:02:46 -07:00
splat-kmem.c Fix uninit variable in slab reclaim test 2012-06-13 16:17:22 -07:00
splat-kobj.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-linux.c Add linux compatibility tests 2011-06-21 14:02:46 -07:00
splat-list.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-mutex.c Treat mutex->owner as volatile 2010-06-28 16:02:57 -07:00
splat-random.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-rwlock.c Fix incorrect krw_type_t type 2010-11-09 10:18:01 -08:00
splat-taskq.c Add taskq contention splat test 2012-01-18 10:36:51 -08:00
splat-thread.c Add Thread Specific Data (TSD) Regression Test 2010-12-07 10:02:44 -08:00
splat-time.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-vnode.c Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR 2012-06-13 16:18:51 -07:00
splat-zlib.c Add zlib regression test 2011-02-25 16:56:46 -08:00