095a5ae6
1 2 3 4 5 6 7
#include <sys/inotify.h> #include "syscall.h" int inotify_add_watch(int fd, const char *pathname, uint32_t mask) { return syscall3(__NR_inotify_add_watch, fd, (long)pathname, mask); }