From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/linux/fanotify.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/linux/fanotify.c (limited to 'src/linux/fanotify.c') diff --git a/src/linux/fanotify.c b/src/linux/fanotify.c new file mode 100644 index 0000000..c6211af --- /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, fanotify_fd, flags, __SYSCALL_LL_E(mask), dfd, pathname); +} + -- cgit v1.2.3