X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Finotify.h;h=46638cac9d4b4012deba5f526f238f92123bd19f;hb=48be5b6313d7b827acf555769e93b389fa9f6307;hp=59644ef37e6d8b19394e68e03f3d3cfe5cb29c66;hpb=095a5ae6f2466cdd457cdf3e9925b1fbd302c9be;p=musl diff --git a/include/sys/inotify.h b/include/sys/inotify.h index 59644ef3..46638cac 100644 --- a/include/sys/inotify.h +++ b/include/sys/inotify.h @@ -6,15 +6,16 @@ extern "C" { #endif #include +#include struct inotify_event { - int we; + int wd; uint32_t mask, cookie, len; char name[]; }; -#define IN_CLOEXEC 020000000 -#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 @@ -46,7 +48,7 @@ struct inotify_event { 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 }