diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:44:07 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:44:07 +0100 |
| commit | 01cf24ec66c663e3f40be1d5c703aa9666effc85 (patch) | |
| tree | 9e5bed524b013ee2609d7e5f1282eaa96eec404c /lib/libc/sys/inotify | |
| parent | 6f6c027a90fba09f06ea0937b57cfd349661620e (diff) | |
Add inotify and reorganize eventfd and io_uring syscalls
Diffstat (limited to 'lib/libc/sys/inotify')
| -rw-r--r-- | lib/libc/sys/inotify/Kbuild | 1 | ||||
| -rw-r--r-- | lib/libc/sys/inotify/inotify_add_watch.c | 7 | ||||
| -rw-r--r-- | lib/libc/sys/inotify/inotify_init.c | 7 | ||||
| -rw-r--r-- | lib/libc/sys/inotify/inotify_rm_watch.c | 7 |
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); +} |
