Fix fanotify_mark decoding on 32-bit architectures
The fanotify_mark syscall takes a 64-bit mask, and on 32-bit
architectures it is split up into two syscall arguments.
* configure.ac (AC_CHECK_FUNCS): Add fanotify_mark.
(AC_CHECK_HEADERS): Add sys/fanotify.h.
* defs.h (getllval): New prototype.
* util.c (getllval): New function based on printllval.
(printllval): Use getllval.
* fanotify.c (sys_fanotify_mark): Use getllval to properly decode
64-bit mask and two syscall arguments followed by it.
* tests/fanotify_mark.c: New file.
* tests/fanotify_mark.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add fanotify_mark.
(TESTS): Add fanotify_mark.test.
* tests/.gitignore: Add fanotify_mark.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b88ed55..7c8f7b1 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -5,6 +5,7 @@
check_PROGRAMS = \
inet-accept-connect-send-recv \
caps \
+ fanotify_mark \
mmsg \
net-accept-connect \
netlink_inet_diag \
@@ -32,6 +33,7 @@
strace-f.test \
qual_syscall.test \
caps.test \
+ fanotify_mark.test \
getdents.test \
scm_rights-fd.test \
sigaction.test \