aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-22 18:10:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-22 18:10:19 +0000
commitee0835df62285caaa5b3ff8aed5ec15358fd123d (patch)
treeedb868f51b6b33fadf7896062618889397847948 /sysdeps
parent0ddd06d11f8fabb479037c56b9ba02822ec5f0b7 (diff)
downloadglibc-ee0835df62285caaa5b3ff8aed5ec15358fd123d.tar
glibc-ee0835df62285caaa5b3ff8aed5ec15358fd123d.tar.gz
glibc-ee0835df62285caaa5b3ff8aed5ec15358fd123d.tar.bz2
glibc-ee0835df62285caaa5b3ff8aed5ec15358fd123d.zip
(MADV_*): Add flags from latest Linux kernel.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/bits/mman.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/mman.h b/sysdeps/unix/sysv/linux/powerpc/bits/mman.h
index d863f0955b..2d04b28d5f 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/mman.h
@@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. Linux/PowerPC version.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2000 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
@@ -72,3 +72,12 @@
#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