1 #include <sys/inotify.h>
6 return inotify_init1(0);
8 int inotify_init1(int flags)
10 int r = __syscall(SYS_inotify_init1, flags);
11 #ifdef SYS_inotify_init
12 if (r==-ENOSYS && !flags) r = __syscall(SYS_inotify_init);
14 return __syscall_ret(r);
17 int inotify_add_watch(int fd, const char *pathname, uint32_t mask)
19 return syscall(SYS_inotify_add_watch, fd, pathname, mask);
22 int inotify_rm_watch(int fd, int wd)
24 return syscall(SYS_inotify_rm_watch, fd, wd);