aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-02-06 00:35:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-02-06 00:35:09 +0000
commit92669d6ee3f25b3ca4cb227d194900489f895432 (patch)
tree3155b7b028bad8b7854221d46a96bff0fb89c28a /sysdeps
parent6a5cac49b6eeb60abc891f9e28908da733766630 (diff)
downloadglibc-92669d6ee3f25b3ca4cb227d194900489f895432.zip
glibc-92669d6ee3f25b3ca4cb227d194900489f895432.tar.gz
glibc-92669d6ee3f25b3ca4cb227d194900489f895432.tar.bz2
Add MAP_SHARED_VALIDATE from Linux 4.15.
This patch adds the MAP_SHARED_VALIDATE macro from Linux 4.15 to bits/mman-linux.h and the hppa bits/mman.h. Tested for x86_64. * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC] (MAP_SHARED_VALIDATE): New macro. * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-linux.h2
-rw-r--r--sysdeps/unix/sysv/linux/hppa/bits/mman.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index e61212a..70edeb6 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -42,6 +42,8 @@
#define MAP_SHARED 0x01 /* Share changes. */
#define MAP_PRIVATE 0x02 /* Changes are private. */
#ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate
+ extension flags. */
# define MAP_TYPE 0x0f /* Mask for type of mapping. */
#endif
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/mman.h b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
index 84ba0d6..380be7b 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
@@ -34,6 +34,8 @@
#define MAP_SHARED 0x01 /* Share changes */
#define MAP_PRIVATE 0x02 /* Changes are private */
#ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate
+ extension flags. */
# define MAP_TYPE 0x03 /* Mask for type of mapping */
#endif