#endif
#include <stdint.h>
+#include <fcntl.h>
struct inotify_event {
int wd;
char name[];
};
-#define IN_CLOEXEC 02000000
-#define IN_NONBLOCK 04000
+#define IN_CLOEXEC O_CLOEXEC
+#define IN_NONBLOCK O_NONBLOCK
#define IN_ACCESS 0x00000001
#define IN_MODIFY 0x00000002
#define IN_ONLYDIR 0x01000000
#define IN_DONT_FOLLOW 0x02000000
+#define IN_EXCL_UNLINK 0x04000000
#define IN_MASK_ADD 0x20000000
#define IN_ISDIR 0x40000000
int inotify_init(void);
int inotify_init1(int);
int inotify_add_watch(int, const char *, uint32_t);
-int inotify_rm_watch(int, uint32_t);
+int inotify_rm_watch(int, int);
#ifdef __cplusplus
}