diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-03-17 18:45:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-03-17 18:45:19 +0000 |
commit | f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8 (patch) | |
tree | 8bd7a715a40693fd0ed9a191b38b7de748caea3f /sysdeps/unix/sysv/linux | |
parent | b9b178acee8a965154399fffaf505b15c1ab21cb (diff) | |
download | glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.zip glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.tar.gz glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.tar.bz2 |
Update.
2000-03-16 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
* sysdeps/unix/sysv/linux/madvise.c: Remove.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
from latest Linux kernel.
* sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/bits/mman.h | 9 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/madvise.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/bits/mman.h | 9 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/syscalls.list | 2 |
4 files changed, 20 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/bits/mman.h b/sysdeps/unix/sysv/linux/i386/bits/mman.h index 8738e98..7c33f79 100644 --- a/sysdeps/unix/sysv/linux/i386/bits/mman.h +++ b/sysdeps/unix/sysv/linux/i386/bits/mman.h @@ -73,3 +73,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 diff --git a/sysdeps/unix/sysv/linux/madvise.c b/sysdeps/unix/sysv/linux/madvise.c deleted file mode 100644 index c223184..0000000 --- a/sysdeps/unix/sysv/linux/madvise.c +++ /dev/null @@ -1 +0,0 @@ -#include <sysdeps/generic/madvise.c> diff --git a/sysdeps/unix/sysv/linux/sparc/bits/mman.h b/sysdeps/unix/sysv/linux/sparc/bits/mman.h index 8114244..ffe1e52 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/mman.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/mman.h @@ -75,3 +75,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 diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index 7947cb6..4ce48d4 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -24,6 +24,8 @@ ioperm - ioperm 3 ioperm iopl - iopl 1 iopl klogctl EXTRA syslog 3 klogctl lchown - lchown 3 __lchown lchown +madvise - madvise 3 madvise +mincore - mincore 3 mincore mlock EXTRA mlock 2 __mlock mlock mlockall EXTRA mlockall 1 __mlockall mlockall mmap - mmap 6 __mmap mmap |