lapi: Add abisize.h

This moves ifdefs that decides if we should use compat version of
syscall or not from fallocate.h to lapi/abisize.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
fix fanotify syscall check on compat kernel

The fanotify[0-5] testcases use the myfanotify_mark() wrapper for the
fanotify_mark() syscall. But the #define does not take into account, that
the mask field is actually of type _u64 where we need to split the hi
and low word in the syscall on a 32bit arch.

The attached patch converts the #define to a inline function where
the compiler will help to convert the given values to the correct types
(e.g. unsigned long).

Bug found and tested on the parisc/hppa (32bit userspace with 64bit
kernel) arch.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>