From 8f6f7a31c9aea07b4f364fe1ba33fa099169a007 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Apr 2000 05:59:03 +0000 Subject: Update. 2000-04-13 Ulrich Drepper * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice. * misc/sys/mman.h (posix_madvise): Add prototype. * sysdeps/generic/madvise.c (madvise): Renamed to __madvise. Make old name and posix_madvise weak aliases. * sysdeps/unix/sysv/linux/syscalls.list: Likewise. * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants. * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise. --- misc/sys/mman.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc') diff --git a/misc/sys/mman.h b/misc/sys/mman.h index b86ba5e083..848ee4cdfb 100644 --- a/misc/sys/mman.h +++ b/misc/sys/mman.h @@ -91,6 +91,10 @@ extern int msync (void *__addr, size_t __len, int __flags) __THROW; for the region starting at ADDR and extending LEN bytes. */ extern int madvise (void *__addr, size_t __len, int __advice) __THROW; #endif +#ifdef __USE_XOPEN2K +/* This is the POSIX name for this function. */ +extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; +#endif /* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to be memory resident. */ -- cgit v1.2.3