This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

MIPS bits/mman.h missing POSIX_MADV_* definitions


The MIPS <bits/mman.h> header is missing definitions of POSIX_MADV_* 
(present on other targets), as shown up by Open POSIX testing.  (Examining 
the other bits/mman.h headers shows that HPPA also seems to be missing 
these definitions.)

2006-04-20  Joseph S. Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/mips/bits/mman.h (POSIX_MADV_NORMAL,
	POSIX_MADV_RANDOM, POSIX_MADV_SEQUENTIAL, POSIX_MADV_WILLNEED,
	POSIX_MADV_DONTNEED): Define.

Index: sysdeps/unix/sysv/linux/mips/bits/mman.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/bits/mman.h,v
retrieving revision 1.11
diff -u -r1.11 mman.h
--- sysdeps/unix/sysv/linux/mips/bits/mman.h	31 Jan 2006 01:26:05 -0000	1.11
+++ sysdeps/unix/sysv/linux/mips/bits/mman.h	20 Apr 2006 21:07:30 -0000
@@ -88,6 +88,15 @@
 #define MADV_REMOVE	5		/* remove these pages & resources */
 #endif
 
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL	0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM	1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL	2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED	3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED	4 /* Don't need these pages.  */
+#endif
+
 /* Flags for `mremap'.  */
 #ifdef __USE_GNU
 # define MREMAP_MAYMOVE	1

-- 
Joseph S. Myers
joseph@codesourcery.com


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