From 9aa1efde5818008f9110bc6a282809a7799c9d91 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sun, 19 Aug 2018 09:57:04 +0200 Subject: [PATCH] xlat: add IN_MASK_CREATE to inotify_flags.in * xlat/inotify_flags.in (IN_MASK_CREATE): New constant, introduced by Linux commit v4.19-rc1~115^2. * tests/inotify.c (main): Update expected output. --- tests/inotify.c | 4 ++-- xlat/inotify_flags.in | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/inotify.c b/tests/inotify.c index 925d69ff..595f09a6 100644 --- a/tests/inotify.c +++ b/tests/inotify.c @@ -52,8 +52,8 @@ main(void) static const char *bogus_mask_str = "IN_ACCESS|IN_ATTRIB|" "IN_CLOSE_WRITE|IN_OPEN|IN_MOVED_TO|IN_DELETE|IN_DELETE_SELF|" "IN_MOVE_SELF|IN_Q_OVERFLOW|IN_IGNORED|IN_ONLYDIR|" - "IN_DONT_FOLLOW|IN_EXCL_UNLINK|IN_MASK_ADD|IN_ISDIR|IN_ONESHOT|" - "0x18ff1000"; + "IN_DONT_FOLLOW|IN_EXCL_UNLINK|IN_MASK_CREATE|IN_MASK_ADD|" + "IN_ISDIR|IN_ONESHOT|0x8ff1000"; long rc; char *bogus_path = tail_memdup(bogus_path_str.path, diff --git a/xlat/inotify_flags.in b/xlat/inotify_flags.in index db1d8393..671bd0e6 100644 --- a/xlat/inotify_flags.in +++ b/xlat/inotify_flags.in @@ -16,6 +16,7 @@ IN_IGNORED 0x00008000 IN_ONLYDIR 0x01000000 IN_DONT_FOLLOW 0x02000000 IN_EXCL_UNLINK 0x04000000 +IN_MASK_CREATE 0x10000000 IN_MASK_ADD 0x20000000 IN_ISDIR 0x40000000 IN_ONESHOT 0x80000000 -- 2.40.0