#include #include #include #include #include #include #include #include #include #include "inotify.h" #define ALL_MASK 0xffffffff #include "inotify.h" #include "event_queue.h" #include "inotify_utils.h" /* This program will take as argument a directory name, and monitor it, printing event notifications to the console */ int main (int argc, char **argv) { /* This is the file descriptor for the inotify device */ int inotify_fd; /* First we open the inotify dev entry */ inotify_fd = open_inotify_dev(); if (inotify_fd < 0) { printf ("No inotify\n"); return 0; } close_inotify_dev (inotify_fd); return 0; }