about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-02-20 13:23:24 +0000
committerAndreas Schwab <schwab@suse.de>2003-02-20 13:23:24 +0000
commitccc081e1b620bdb24261b3b1066d57496bbf461c (patch)
tree95ade052a45d39c195f5b1253a0b0b26aefe27d8
parentc5acd3d77e9fc3abef96a5ca6b745eb53789bbde (diff)
downloadglibc-ccc081e1b620bdb24261b3b1066d57496bbf461c.tar.gz
glibc-ccc081e1b620bdb24261b3b1066d57496bbf461c.tar.xz
glibc-ccc081e1b620bdb24261b3b1066d57496bbf461c.zip
Add MADV_* and POSIX_MADV_* constants.
-rw-r--r--sysdeps/unix/sysv/linux/m68k/bits/mman.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/bits/mman.h b/sysdeps/unix/sysv/linux/m68k/bits/mman.h
index 34f14ee5bf..5c49fc8987 100644
--- a/sysdeps/unix/sysv/linux/m68k/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/m68k/bits/mman.h
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/m68k version.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -73,3 +73,21 @@
 #ifdef __USE_GNU
 # define MREMAP_MAYMOVE	1
 #endif
+
+/* Advice to `madvise'.  */
+#ifdef __USE_BSD
+# define MADV_NORMAL	 0	/* No further special treatment.  */
+# define MADV_RANDOM	 1	/* Expect random page references.  */
+# define MADV_SEQUENTIAL 2	/* Expect sequential page references.  */
+# define MADV_WILLNEED	 3	/* Will need these pages.  */
+# define MADV_DONTNEED	 4	/* Don't need these pages.  */
+#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