about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits/mman-linux.h
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2013-03-06 16:35:19 +0100
committerAndreas Jaeger <aj@suse.de>2013-03-06 16:35:19 +0100
commit67525cb83217602994d2b75c4a07c9d92705079f (patch)
treedafb888df124aadc9bca3634f75ca5b2cf38ca35 /sysdeps/unix/sysv/linux/bits/mman-linux.h
parent5c56e933683b20ce48512ca1c17c3d7a967998fb (diff)
downloadglibc-67525cb83217602994d2b75c4a07c9d92705079f.tar.gz
glibc-67525cb83217602994d2b75c4a07c9d92705079f.tar.xz
glibc-67525cb83217602994d2b75c4a07c9d92705079f.zip
Sync with Linux 3.8
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/mman-linux.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index 6c06069cdc..27d2dc41c4 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -51,6 +51,9 @@
 # define MAP_FILE	0
 # define MAP_ANONYMOUS	0x20		/* Don't use a file.  */
 # define MAP_ANON	MAP_ANONYMOUS
+/* When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size.  */
+# define MAP_HUGE_SHIFT	26
+# define MAP_HUGE_MASK	0x3f
 #endif
 
 /* Flags to `msync'.  */