X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Finotify.h;h=a5bf96a61f42be550d35cf2d3c0fbf96edfc0250;hp=78acdfd07a7cc418e42f28dfb3cc68e8151ba18b;hb=48854dffdb66191e7e54c0ea94bd1bd330905d7d;hpb=570edb19d12dd3920b576db06b657b639fdbac00 diff --git a/include/sys/inotify.h b/include/sys/inotify.h index 78acdfd0..a5bf96a6 100644 --- a/include/sys/inotify.h +++ b/include/sys/inotify.h @@ -6,6 +6,7 @@ extern "C" { #endif #include +#include struct inotify_event { int wd; @@ -13,8 +14,8 @@ struct inotify_event { 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 @@ -38,6 +39,7 @@ struct inotify_event { #define IN_ONLYDIR 0x01000000 #define IN_DONT_FOLLOW 0x02000000 +#define IN_EXCL_UNLINK 0x04000000 #define IN_MASK_ADD 0x20000000 #define IN_ISDIR 0x40000000