projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8adf42f
)
sys/mman.h: add MREMAP_DONTUNMAP from linux v5.7
author
Szabolcs Nagy
<nsz@port70.net>
Mon, 13 Jul 2020 19:43:44 +0000
(19:43 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 9 Sep 2020 21:20:54 +0000
(17:20 -0400)
it remaps anon mappings without unmapping the original. chromeos plans
to use it with userfaultfd, see:
linux commit
e346b3813067d4b17383f975f197a9aa28a3b077
mm/mremap: add MREMAP_DONTUNMAP to mremap()
include/sys/mman.h
patch
|
blob
|
history
diff --git
a/include/sys/mman.h
b/include/sys/mman.h
index
3bade72
..
4d603e9
100644
(file)
--- a/
include/sys/mman.h
+++ b/
include/sys/mman.h
@@
-101,6
+101,7
@@
extern "C" {
#ifdef _GNU_SOURCE
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
+#define MREMAP_DONTUNMAP 4
#define MLOCK_ONFAULT 0x01