Add IN_MASK_CREATE from Linux 4.19 to sys/inotify.h

Message ID alpine.DEB.2.21.1810251552380.25504@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers Oct. 25, 2018, 3:52 p.m. UTC
  This patch adds the IN_MASK_CREATE macro from Linux 4.19 to
sys/inotify.h.

Tested for x86_64.

2018-10-25  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
	macro.
  

Comments

Dmitry V. Levin Oct. 25, 2018, 3:55 p.m. UTC | #1
On Thu, Oct 25, 2018 at 03:52:56PM +0000, Joseph Myers wrote:
> This patch adds the IN_MASK_CREATE macro from Linux 4.19 to
> sys/inotify.h.
> 
> Tested for x86_64.
> 
> 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
> 	macro.

Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/sys/inotify.h b/sysdeps/unix/sysv/linux/sys/inotify.h
index 49cc374851..8f766baf3d 100644
--- a/sysdeps/unix/sysv/linux/sys/inotify.h
+++ b/sysdeps/unix/sysv/linux/sys/inotify.h
@@ -66,6 +66,7 @@  struct inotify_event
 #define IN_DONT_FOLLOW	 0x02000000	/* Do not follow a sym link.  */
 #define IN_EXCL_UNLINK	 0x04000000	/* Exclude events on unlinked
 					   objects.  */
+#define IN_MASK_CREATE	 0x10000000	/* Only create watches.  */
 #define IN_MASK_ADD	 0x20000000	/* Add to the mask of an already
 					   existing watch.  */
 #define IN_ISDIR	 0x40000000	/* Event occurred against dir.  */