Add MREMAP_DONTUNMAP from Linux 5.7

Message ID alpine.DEB.2.21.2006222059050.24721@digraph.polyomino.org.uk
State New
Headers show
Series
  • Add MREMAP_DONTUNMAP from Linux 5.7
Related show

Commit Message

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

Tested with build-many-glibcs.py.


-- 
Joseph S. Myers
joseph@codesourcery.com

Comments

Andreas Schwab June 23, 2020, 7:08 a.m. | #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.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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