summaryrefslogtreecommitdiff
path: root/lib/libc/sys/inotify
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/inotify')
-rw-r--r--lib/libc/sys/inotify/Kbuild1
-rw-r--r--lib/libc/sys/inotify/inotify_add_watch.c7
-rw-r--r--lib/libc/sys/inotify/inotify_init.c7
-rw-r--r--lib/libc/sys/inotify/inotify_rm_watch.c7
4 files changed, 22 insertions, 0 deletions
diff --git a/lib/libc/sys/inotify/Kbuild b/lib/libc/sys/inotify/Kbuild
new file mode 100644
index 00000000..339bef40
--- /dev/null
+++ b/lib/libc/sys/inotify/Kbuild
@@ -0,0 +1 @@
+obj-y += inotify_init.o
diff --git a/lib/libc/sys/inotify/inotify_add_watch.c b/lib/libc/sys/inotify/inotify_add_watch.c
new file mode 100644
index 00000000..22ffd7b1
--- /dev/null
+++ b/lib/libc/sys/inotify/inotify_add_watch.c
@@ -0,0 +1,7 @@
+#include <sys/inotify.h>
+#include <syscall.h>
+
+int inotify_add_watch(int fildes, const char *name, uint32_t mask)
+{
+ return syscall(inotify_add_watch, fildes, name, mask);
+}
diff --git a/lib/libc/sys/inotify/inotify_init.c b/lib/libc/sys/inotify/inotify_init.c
new file mode 100644
index 00000000..5baa9589
--- /dev/null
+++ b/lib/libc/sys/inotify/inotify_init.c
@@ -0,0 +1,7 @@
+#include <sys/inotify.h>
+#include <syscall.h>
+
+int inotify_init(void)
+{
+ return syscall(inotify_init);
+}
diff --git a/lib/libc/sys/inotify/inotify_rm_watch.c b/lib/libc/sys/inotify/inotify_rm_watch.c
new file mode 100644
index 00000000..e2729cd0
--- /dev/null
+++ b/lib/libc/sys/inotify/inotify_rm_watch.c
@@ -0,0 +1,7 @@
+#include <sys/inotify.h>
+#include <syscall.h>
+
+int inotify_rm_watch(int fildes, int wd)
+{
+ return syscall(inotify_rm_watch, fildes, wd);
+}