From 5c81b8fe453994a74afa7cd355dd707ee2d01a24 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 2 Jan 2014 22:10:45 +0100 Subject: add fanotify syscall wrapper and header --- src/linux/fanotify.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/linux/fanotify.c (limited to 'src') diff --git a/src/linux/fanotify.c b/src/linux/fanotify.c new file mode 100644 index 00000000..73f941de --- /dev/null +++ b/src/linux/fanotify.c @@ -0,0 +1,14 @@ +#include "syscall.h" +#include + +int fanotify_init(unsigned flags, unsigned event_f_flags) +{ + return syscall(SYS_fanotify_init, flags, event_f_flags); +} + +int fanotify_mark(int fanotify_fd, unsigned flags, unsigned long long mask, + int dfd, const char *pathname) +{ + return syscall(SYS_fanotify_mark, flags, __SYSCALL_LL_O(mask), dfd, pathname); +} + -- cgit v1.2.1