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/inotify_add_watch.c | |
| parent | 6f6c027a90fba09f06ea0937b57cfd349661620e (diff) | |
Add inotify and reorganize eventfd and io_uring syscalls
Diffstat (limited to 'lib/libc/sys/inotify/inotify_add_watch.c')
| -rw-r--r-- | lib/libc/sys/inotify/inotify_add_watch.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); +} |
