Add MREMAP_DONTUNMAP from Linux 5.7

Message ID alpine.DEB.2.21.2006222059050.24721@digraph.polyomino.org.uk
State Committed
Commit 8ec13b46395a7075d3f01e9d0a65b4bee0adbfca
Headers
Series Add MREMAP_DONTUNMAP from Linux 5.7 |

Commit Message

Joseph Myers June 22, 2020, 8:59 p.m. UTC
  Add the new constant MREMAP_DONTUNMAP from Linux 5.7 to
bits/mman-shared.h.

Tested with build-many-glibcs.py.
  

Comments

Andreas Schwab June 23, 2020, 7:08 a.m. UTC | #1
On Jun 22 2020, Joseph Myers wrote:

> Add the new constant MREMAP_DONTUNMAP from Linux 5.7 to
> bits/mman-shared.h.

Ok.

Andreas.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h
index d016086c7e..64f1d65117 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-shared.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h
@@ -24,6 +24,7 @@ 
 /* Flags for mremap.  */
 # define MREMAP_MAYMOVE	1
 # define MREMAP_FIXED	2
+# define MREMAP_DONTUNMAP 4
 
 /* Flags for memfd_create.  */
 # ifndef MFD_CLOEXEC