OSDN Git Service

Joseph S. Myers writes: The MIPS <bits/mman.h> header is missing definitions of POSIX...
authorMike Frysinger <vapier@gentoo.org>
Fri, 21 Apr 2006 01:34:36 +0000 (01:34 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 21 Apr 2006 01:34:36 +0000 (01:34 -0000)
libc/sysdeps/linux/mips/bits/mman.h

index e287e3b..b1b00e6 100644 (file)
 #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