add new masked cancellation mode
[musl] / src / linux / fanotify.c
index 73f941d..c6211af 100644 (file)
@@ -1,5 +1,5 @@
 #include "syscall.h"
-#include <sys/inotify.h>
+#include <sys/fanotify.h>
 
 int fanotify_init(unsigned flags, unsigned event_f_flags)
 {
@@ -9,6 +9,6 @@ int fanotify_init(unsigned flags, unsigned 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);
+       return syscall(SYS_fanotify_mark, fanotify_fd, flags, __SYSCALL_LL_E(mask), dfd, pathname);
 }