File mman-linux-map-shared-validate.patch of Package glibc.10668

2018-02-06  Joseph Myers  <joseph@codesourcery.com>

	* bits/mman-linux.h [__USE_MISC]
	(MAP_SHARED_VALIDATE): New macro.
	* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
	(MAP_SHARED_VALIDATE): Likewise.

Index: glibc-2.26/bits/mman-linux.h
===================================================================
--- glibc-2.26.orig/bits/mman-linux.h
+++ glibc-2.26/bits/mman-linux.h
@@ -45,6 +45,8 @@
 #define MAP_SHARED	0x01		/* Share changes.  */
 #define MAP_PRIVATE	0x02		/* Changes are private.  */
 #ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE	0x03	/* Share changes and validate
+					   extension flags.  */
 # define MAP_TYPE	0x0f		/* Mask for type of mapping.  */
 #endif
 
Index: glibc-2.26/sysdeps/unix/sysv/linux/hppa/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/hppa/bits/mman.h
@@ -34,6 +34,8 @@
 #define MAP_SHARED	0x01		/* Share changes */
 #define MAP_PRIVATE	0x02		/* Changes are private */
 #ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE	0x03	/* Share changes and validate
+					   extension flags.  */
 # define MAP_TYPE	0x03		/* Mask for type of mapping */
 #endif
openSUSE Build Service is sponsored by