summaryrefslogtreecommitdiff
path: root/src/linux/fanotify.c
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2014-01-02 22:10:45 +0100
committerrofl0r <retnyg@gmx.net>2014-01-02 22:10:45 +0100
commit5c81b8fe453994a74afa7cd355dd707ee2d01a24 (patch)
tree2f8e74037a5927821c5a97072dea20786ecd9689 /src/linux/fanotify.c
parent7e10f209fbc26a5179a4c0817c986e7c7bd327c9 (diff)
downloadmusl-5c81b8fe453994a74afa7cd355dd707ee2d01a24.tar.gz
musl-5c81b8fe453994a74afa7cd355dd707ee2d01a24.tar.bz2
musl-5c81b8fe453994a74afa7cd355dd707ee2d01a24.tar.xz
musl-5c81b8fe453994a74afa7cd355dd707ee2d01a24.zip
add fanotify syscall wrapper and header
Diffstat (limited to 'src/linux/fanotify.c')
-rw-r--r--src/linux/fanotify.c14
1 files changed, 14 insertions, 0 deletions
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 <sys/inotify.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, flags, __SYSCALL_LL_O(mask), dfd, pathname);
+}
+