diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-04-21 01:34:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-04-21 01:34:36 +0000 |
commit | 5cdf86a96f6d9b259c7e35dc1c8191a55436ecce (patch) | |
tree | 8ef3f5806a2a0a65da760efd28e9e53f6c5b0d10 | |
parent | 280b34b02463267977e8369ba7c2516a8e14feda (diff) |
Joseph S. Myers writes: The MIPS <bits/mman.h> header is missing definitions of POSIX_MADV_*
-rw-r--r-- | libc/sysdeps/linux/mips/bits/mman.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bits/mman.h b/libc/sysdeps/linux/mips/bits/mman.h index e287e3b37..b1b00e6f3 100644 --- a/libc/sysdeps/linux/mips/bits/mman.h +++ b/libc/sysdeps/linux/mips/bits/mman.h @@ -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 |