Guest User

Untitled

a guest
Feb 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. #define IN_ACCESS 0x00000001 /* File was accessed */
  2. #define IN_MODIFY 0x00000002 /* File was modified */
  3. #define IN_ATTRIB 0x00000004 /* Metadata changed */
  4. #define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed */
  5. #define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed */
  6. #define IN_OPEN 0x00000020 /* File was opened */
  7. #define IN_MOVED_FROM 0x00000040 /* File was moved from X */
  8. #define IN_MOVED_TO 0x00000080 /* File was moved to Y */
  9. #define IN_CREATE 0x00000100 /* Subfile was created */
  10. #define IN_DELETE 0x00000200 /* Subfile was deleted */
  11. #define IN_DELETE_SELF 0x00000400 /* Self was deleted */
  12. #define IN_MOVE_SELF 0x00000800 /* Self was moved */
  13.  
  14. /* the following are legal events. they are sent as needed to any watch */
  15. #define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted */
  16. #define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed */
  17. #define IN_IGNORED 0x00008000 /* File was ignored */
  18.  
  19. /* helper events */
  20. #define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */
  21. #define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* moves */
  22.  
  23. /* special flags */
  24. #define IN_MASK_ADD 0x20000000 /* add to the mask of an already existing watch */
  25. #define IN_ISDIR 0x40000000 /* event occurred against dir */
  26. #define IN_ONESHOT 0x80000000 /* only send event once */
Add Comment
Please, Sign In to add comment