svn commit: trunk/uClibc/libc/sysdeps/linux/mips/bits

vapier at uclibc.org vapier at uclibc.org
Fri Apr 21 01:34:36 UTC 2006


Author: vapier
Date: 2006-04-20 18:34:36 -0700 (Thu, 20 Apr 2006)
New Revision: 14936

Log:
Joseph S. Myers writes: The MIPS <bits/mman.h> header is missing definitions of POSIX_MADV_*


Modified:
   trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
+++ trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h	2006-04-21 01:34:36 UTC (rev 14936)
@@ -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




More information about the uClibc-cvs mailing list