diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-27 03:20:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-27 03:20:20 +0000 |
commit | 93a4b7cac4c68f108d784fba8ded542bf41d03bd (patch) | |
tree | 4d89f1e0162077b8b760c5069028301566979497 /sysdeps/unix/sysv | |
parent | 0a04075ed9766681c796dfe0f2e2fb81881f09ba (diff) | |
download | glibc-93a4b7cac4c68f108d784fba8ded542bf41d03bd.tar.gz glibc-93a4b7cac4c68f108d784fba8ded542bf41d03bd.tar.xz glibc-93a4b7cac4c68f108d784fba8ded542bf41d03bd.zip |
Update.
2001-03-26 Ben Collins <bcollins@debian.org> * sysdeps/unix/sysv/linux/mips/bits/mman.h: Add MAP_* and MADV_* defines to match other architectures.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/bits/mman.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/bits/mman.h b/sysdeps/unix/sysv/linux/mips/bits/mman.h index 5b8c752ccd..f6c5094f87 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/mman.h +++ b/sysdeps/unix/sysv/linux/mips/bits/mman.h @@ -53,10 +53,12 @@ /* These are Linux-specific. */ #ifdef __USE_MISC -# define MAP_GROWSDOWN 0x1000 /* Stack-like segment. */ +# define MAP_NORESERVE 0x0400 /* don't check for reservations */ +# define MAP_ANONYMOUS 0x0800 /* don't use a file */ +# define MAP_GROWSDOWN 0x1000 /* stack-like segment */ # define MAP_DENYWRITE 0x2000 /* ETXTBSY */ -# define MAP_EXECUTABLE 0x4000 /* Mark it as an executable. */ -# define MAP_NORESERVE 0x0400 /* Don't check for reservations. */ +# define MAP_EXECUTABLE 0x4000 /* mark it as an executable */ +# define MAP_LOCKED 0x8000 /* pages are locked */ #endif /* Flags to `msync'. */ @@ -69,6 +71,15 @@ #define MCL_FUTURE 2 /* Lock all additions to address space. */ +/* Advice to `madvise'. */ +#ifdef __USE_BSD +#define MADV_NORMAL 0 /* default page-in behavior */ +#define MADV_RANDOM 1 /* page-in minimum required */ +#define MADV_SEQUENTIAL 2 /* read-ahead aggressively */ +#define MADV_WILLNEED 3 /* pre-fault pages */ +#define MADV_DONTNEED 4 /* discard these pages */ +#endif + /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 |