diff options
author | Szabolcs Nagy <nsz@port70.net> | 2020-07-13 19:43:44 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-09-09 17:20:54 -0400 |
commit | a6c302bec1d47903bfd455c0d8129cd618037672 (patch) | |
tree | f2b3d8484bf45919c5d42bc3c1926ff9651393c9 /include | |
parent | 8adf42f7c13c2c569b35521db2615844ddd5a4a9 (diff) | |
download | musl-a6c302bec1d47903bfd455c0d8129cd618037672.tar.gz musl-a6c302bec1d47903bfd455c0d8129cd618037672.tar.xz musl-a6c302bec1d47903bfd455c0d8129cd618037672.zip |
sys/mman.h: add MREMAP_DONTUNMAP from linux v5.7
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()
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/mman.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index 3bade727..4d603e91 100644 --- 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 |