aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-25 00:54:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-25 00:55:33 +0100
commitd92a5e1dad39ab0ac09ab1beeb055c1f1d981cd4 (patch)
tree18b248e6782cd1653e06113f374710d1654e89c8 /sysdeps/mach
parent03b8d764109be48a53b18abd4b5050e8cdc2c6da (diff)
downloadglibc-d92a5e1dad39ab0ac09ab1beeb055c1f1d981cd4.zip
glibc-d92a5e1dad39ab0ac09ab1beeb055c1f1d981cd4.tar.gz
glibc-d92a5e1dad39ab0ac09ab1beeb055c1f1d981cd4.tar.bz2
hurd: Add MAP_NORESERVE mmap flag
This is already the current default behavior, which we will change with overcommit support addition.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/bits/mman_ext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/mman_ext.h b/sysdeps/mach/hurd/bits/mman_ext.h
index d5a371e..6baee1e 100644
--- a/sysdeps/mach/hurd/bits/mman_ext.h
+++ b/sysdeps/mach/hurd/bits/mman_ext.h
@@ -24,6 +24,7 @@
# define SHM_ANON ((const char *) 1)
# define MAP_32BIT 0x1000 /* Map in the lower 2 GB. */
+# define MAP_NORESERVE 0x2000 /* Don't check for reservations. */
# define MAP_EXCL 0x4000 /* With MAP_FIXED, don't replace existing mappings. */
# define MAP_TRYFIXED (MAP_FIXED | MAP_EXCL) /* BSD name. */