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 | |
parent | b9b178acee8a965154399fffaf505b15c1ab21cb (diff) | |
download | glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.tar.gz glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.tar.xz glibc-f5ef7558c7c50cc2a73e09a0f0d1a229e7db0ea8.zip |
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.
-rw-r--r-- | ChangeLog | 10 | ||||
-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 |
5 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 909a2d2a4f..f16aaa84a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +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. + 2000-03-17 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit diff --git a/sysdeps/unix/sysv/linux/i386/bits/mman.h b/sysdeps/unix/sysv/linux/i386/bits/mman.h index 8738e98c30..7c33f79896 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 c223184aac..0000000000 --- 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 8114244053..ffe1e527d2 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 7947cb6920..4ce48d44a2 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 |