File mman-map-sync.patch of Package glibc.10713

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

	* sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
	(MAP_SYNC): New macro.
	* sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
	Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
	(MAP_SYNC): Likewise.
	* sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
	(MAP_SYNC): Likewise.
	* sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
	(MAP_SYNC): Likewise.
	* sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
	(MAP_SYNC): Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
	(MAP_SYNC): Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
	Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
	Likewise.

Index: glibc-2.26/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
@@ -36,6 +36,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 
Index: glibc-2.26/sysdeps/unix/sysv/linux/arm/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/arm/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/arm/bits/mman.h
@@ -34,6 +34,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/ia64/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/ia64/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/ia64/bits/mman.h
@@ -35,6 +35,8 @@
 # define MAP_NONBLOCK	  0x10000	/* Do not block on IO.  */
 # define MAP_STACK	  0x20000	/* Allocation is for a stack.  */
 # define MAP_HUGETLB	  0x40000	/* Create huge page mapping.  */
+# define MAP_SYNC	  0x80000	/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/m68k/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/m68k/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/m68k/bits/mman.h
@@ -34,6 +34,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/microblaze/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/microblaze/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/microblaze/bits/mman.h
@@ -36,6 +36,8 @@
 # define MAP_NONBLOCK       0x10000     /* Do not block on IO.  */
 # define MAP_STACK          0x20000     /* Allocation is for a stack.  */
 # define MAP_HUGETLB        0x40000     /* Create huge page mapping.  */
+# define MAP_SYNC           0x80000	/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/nios2/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/nios2/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/nios2/bits/mman.h
@@ -36,6 +36,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/s390/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/s390/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/s390/bits/mman.h
@@ -35,6 +35,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/sh/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/sh/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/sh/bits/mman.h
@@ -34,6 +34,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
Index: glibc-2.26/sysdeps/unix/sysv/linux/x86/bits/mman.h
===================================================================
--- glibc-2.26.orig/sysdeps/unix/sysv/linux/x86/bits/mman.h
+++ glibc-2.26/sysdeps/unix/sysv/linux/x86/bits/mman.h
@@ -39,6 +39,8 @@
 # define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 # define MAP_STACK	0x20000		/* Allocation is for a stack.  */
 # define MAP_HUGETLB	0x40000		/* Create huge page mapping.  */
+# define MAP_SYNC	0x80000		/* Perform synchronous page
+					   faults for the mapping.  */
 #endif
 
 /* Include generic Linux declarations.  */
openSUSE Build Service is sponsored by