diff options
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r-- | include/linux/fanotify.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index 00bc6d4fbb58..95aeea2a3ca6 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h | |||
@@ -18,10 +18,23 @@ | |||
18 | /* helper events */ | 18 | /* helper events */ |
19 | #define FAN_CLOSE (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE) /* close */ | 19 | #define FAN_CLOSE (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE) /* close */ |
20 | 20 | ||
21 | /* flags used for fanotify_init() */ | ||
21 | #define FAN_CLOEXEC 0x00000001 | 22 | #define FAN_CLOEXEC 0x00000001 |
22 | #define FAN_NONBLOCK 0x00000002 | 23 | #define FAN_NONBLOCK 0x00000002 |
23 | 24 | ||
24 | #define FAN_ALL_INIT_FLAGS (FAN_CLOEXEC | FAN_NONBLOCK) | 25 | #define FAN_ALL_INIT_FLAGS (FAN_CLOEXEC | FAN_NONBLOCK) |
26 | |||
27 | /* flags used for fanotify_modify_mark() */ | ||
28 | #define FAN_MARK_ADD 0x00000001 | ||
29 | #define FAN_MARK_REMOVE 0x00000002 | ||
30 | #define FAN_MARK_DONT_FOLLOW 0x00000004 | ||
31 | #define FAN_MARK_ONLYDIR 0x00000008 | ||
32 | |||
33 | #define FAN_ALL_MARK_FLAGS (FAN_MARK_ADD |\ | ||
34 | FAN_MARK_REMOVE |\ | ||
35 | FAN_MARK_DONT_FOLLOW |\ | ||
36 | FAN_MARK_ONLYDIR) | ||
37 | |||
25 | /* | 38 | /* |
26 | * All of the events - we build the list by hand so that we can add flags in | 39 | * All of the events - we build the list by hand so that we can add flags in |
27 | * the future and not break backward compatibility. Apps will get only the | 40 | * the future and not break backward compatibility. Apps will get only the |