about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits/mman-linux.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2022-06-01 14:45:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2022-06-01 14:45:48 +0000
commitde3501d60fac6d194954e0ccc7bd297f53442b3e (patch)
tree0a108bced3cf96d36da3d1062a6804d7dd224000 /sysdeps/unix/sysv/linux/bits/mman-linux.h
parent9d03bac7e7aa140dc3f48ac884e83265ee4f94c5 (diff)
downloadglibc-de3501d60fac6d194954e0ccc7bd297f53442b3e.tar.gz
glibc-de3501d60fac6d194954e0ccc7bd297f53442b3e.tar.xz
glibc-de3501d60fac6d194954e0ccc7bd297f53442b3e.zip
Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
Linux 5.18 adds a constant MADV_DONTNEED_LOCKED (defined in multiple
header files, but with the same value on all architectures).  Add this
constant to bits/mman-linux.h.

Tested for x86_64.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/mman-linux.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index 85bc4d3c3c..cb5ad30ef9 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -93,6 +93,8 @@
 				   readable.  */
 # define MADV_POPULATE_WRITE 23	/* Populate (prefault) page tables
 				   writable.  */
+# define MADV_DONTNEED_LOCKED 24 /* Like MADV_DONTNEED, but drop
+				    locked pages too.  */
 # define MADV_HWPOISON	  100	/* Poison a page for testing.  */
 #endif