--- Linux-Inotify2/Inotify2.xs 2005/12/19 16:50:27 1.3 +++ Linux-Inotify2/Inotify2.xs 2017/09/04 01:11:47 1.6 @@ -7,8 +7,7 @@ #include #include -#include "inotify.h" -#include "inotify-syscalls.h" +#include MODULE = Linux::Inotify2 PACKAGE = Linux::Inotify2 @@ -35,6 +34,9 @@ newCONSTSUB (stash, "IN_IGNORED" , newSViv (IN_IGNORED)); newCONSTSUB (stash, "IN_CLOSE" , newSViv (IN_CLOSE)); newCONSTSUB (stash, "IN_MOVE" , newSViv (IN_MOVE)); + newCONSTSUB (stash, "IN_ONLYDIR" , newSViv (IN_ONLYDIR)); + newCONSTSUB (stash, "IN_DONT_FOLLOW" , newSViv (IN_DONT_FOLLOW)); + newCONSTSUB (stash, "IN_MASK_ADD" , newSViv (IN_MASK_ADD)); newCONSTSUB (stash, "IN_ISDIR" , newSViv (IN_ISDIR)); newCONSTSUB (stash, "IN_ONESHOT" , newSViv (IN_ONESHOT)); newCONSTSUB (stash, "IN_ALL_EVENTS" , newSViv (IN_ALL_EVENTS)); @@ -56,7 +58,7 @@ int inotify_blocking (int fd, I32 blocking) - CODE: + CODE: fcntl (fd, F_SETFL, blocking ? 0 : O_NONBLOCK); void @@ -93,4 +95,3 @@ } } -