From: Samuel Thibault Date: Sun, 24 Nov 2024 23:54:26 +0000 (+0100) Subject: hurd: Add MAP_NORESERVE mmap flag X-Git-Tag: glibc-2.41~449 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d92a5e1dad39ab0ac09ab1beeb055c1f1d981cd4;p=thirdparty%2Fglibc.git hurd: Add MAP_NORESERVE mmap flag This is already the current default behavior, which we will change with overcommit support addition. --- diff --git a/sysdeps/mach/hurd/bits/mman_ext.h b/sysdeps/mach/hurd/bits/mman_ext.h index d5a371e39e..6baee1ea74 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. */