This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MREMAP_FIXED usage


MREMAP_FIXED is needed for malloc/memusage.c, and GNU/Hurd uses the
generic version mman.h which doesn't define it, the following patch
fixes that.

2005-10-16  Alfred M. Szmidt  <ams@gnu.org>

	* sysdeps/generic/bits/mman.h (MREMAP_MAYMOVE)
	(MREMAP_FIXED) [__USE_GNU]: Define.

Index: sysdeps/generic/bitsmman.h
===================================================================
RCS file: /cvsroot/libc/libc/sysdeps/generic/bits/mman.h,v
retrieving revision 1.6
diff -p -u -u -p -r1.6 sysdeps/generic/bits/mman.h
--- sysdeps/generic/bits/mman.h	19 Feb 2002 00:21:48 -0000	1.6
+++ sysdeps/generic/bits/mman.h	16 Oct 2005 21:43:31 -0000
@@ -85,6 +85,12 @@
 #define MS_SYNC		0		/* Synchronous memory sync.  */
 #define MS_INVALIDATE	2		/* Invalidate the caches.  */
 
+/* Flags for `mremap'.  */
+#ifdef __USE_GNU
+# define MREMAP_MAYMOVE	1
+# define MREMAP_FIXED	2
+#endif
+
 /* Flags for `mlockall' (can be OR'd together).  */
 #define MCL_CURRENT	1		/* Lock all currently mapped pages.  */
 #define MCL_FUTURE	2		/* Lock all additions to address


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]