]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Add MAP_NORESERVE mmap flag
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 24 Nov 2024 23:54:26 +0000 (00:54 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 24 Nov 2024 23:55:33 +0000 (00:55 +0100)
This is already the current default behavior, which we will change with
overcommit support addition.

sysdeps/mach/hurd/bits/mman_ext.h

index d5a371e39e4a66cbc837d52528a18124e5945aea..6baee1ea74f3e4fb4749f9c124d56faff05777fc 100644 (file)
@@ -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.  */