HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/src/glibc/debian/patches/hurd-i386/unsubmitted-mremap.diff
MREMAP is unimplemented on GNU/Hurd for now

--- a/bits/mman.h
+++ b/bits/mman.h
@@ -85,10 +85,12 @@
 #define MS_INVALIDATE	2		/* Invalidate the caches.  */
 
 /* Flags for `mremap'.  */
+#if 0
 #ifdef __USE_GNU
 # define MREMAP_MAYMOVE	1		/* Mapping address may change.  */
 # define MREMAP_FIXED	2		/* Fifth argument sets new address.  */
 #endif
+#endif
 
 /* Flags for `mlockall' (can be OR'd together).  */
 #define MCL_CURRENT	1		/* Lock all currently mapped pages.  */
--- a/malloc/memusage.c
+++ b/malloc/memusage.c
@@ -680,6 +680,9 @@ mmap64 (void *start, size_t len, int pro
   return result;
 }
 
+#ifndef MREMAP_FIXED
+#define MREMAP_FIXED 0
+#endif
 
 /* `mremap' replacement.  We do not have to keep track of the size since
    `munmap' will get it as a parameter.  */