From 01cf24ec66c663e3f40be1d5c703aa9666effc85 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 18:44:07 +0100 Subject: Add inotify and reorganize eventfd and io_uring syscalls --- lib/libc/sys/inotify/Kbuild | 1 + lib/libc/sys/inotify/inotify_add_watch.c | 7 +++++++ lib/libc/sys/inotify/inotify_init.c | 7 +++++++ lib/libc/sys/inotify/inotify_rm_watch.c | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 lib/libc/sys/inotify/Kbuild create mode 100644 lib/libc/sys/inotify/inotify_add_watch.c create mode 100644 lib/libc/sys/inotify/inotify_init.c create mode 100644 lib/libc/sys/inotify/inotify_rm_watch.c (limited to 'lib/libc/sys/inotify') 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 +#include + +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 +#include + +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 +#include + +int inotify_rm_watch(int fildes, int wd) +{ + return syscall(inotify_rm_watch, fildes, wd); +} -- cgit v1.2.3