summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/bits/mman.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-05 09:09:22 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-05 09:09:22 +0000
commit3a3af36f1bef68c9942e9ef3fb83cc15aeabfcc0 (patch)
treecb5b06dfd527980b1b5cc6df57c5a46cf4f7953c /libc/sysdeps/linux/nios2/bits/mman.h
parent385a0b9d4fa0806c0f22e21d01f42b523c1b43cf (diff)
Atle Nissestad writes: The attached patch fixes compilation of the current svn on the nios2 platform, and updates the crt1/n/i.S files to get CTOR/DTOR-support to work.
Diffstat (limited to 'libc/sysdeps/linux/nios2/bits/mman.h')
-rw-r--r--libc/sysdeps/linux/nios2/bits/mman.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nios2/bits/mman.h b/libc/sysdeps/linux/nios2/bits/mman.h
index 7f644b99b..2fa35e663 100644
--- a/libc/sysdeps/linux/nios2/bits/mman.h
+++ b/libc/sysdeps/linux/nios2/bits/mman.h
@@ -59,6 +59,15 @@
# define MAP_NORESERVE 0x4000 /* Don't check for reservations. */
#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
+
/* Flags to `msync'. */
#define MS_ASYNC 1 /* Sync memory asynchronously. */
#define MS_SYNC 4 /* Synchronous memory sync. */