summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/linux/fanotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/linux/fanotify.c')
-rw-r--r--libc-top-half/musl/src/linux/fanotify.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/linux/fanotify.c b/libc-top-half/musl/src/linux/fanotify.c
new file mode 100644
index 0000000..c6211af
--- /dev/null
+++ b/libc-top-half/musl/src/linux/fanotify.c
@@ -0,0 +1,14 @@
+#include "syscall.h"
+#include <sys/fanotify.h>
+
+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);
+}
+