aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/madvise.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-14 05:59:03 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-14 05:59:03 +0000
commit8f6f7a31c9aea07b4f364fe1ba33fa099169a007 (patch)
tree2126fb19d16b6cdc6d74334291f300c92bb8e308 /sysdeps/generic/madvise.c
parent79e195ed8251bd39619f1b1b6ade9bf50e5a6ee3 (diff)
downloadglibc-8f6f7a31c9aea07b4f364fe1ba33fa099169a007.zip
glibc-8f6f7a31c9aea07b4f364fe1ba33fa099169a007.tar.gz
glibc-8f6f7a31c9aea07b4f364fe1ba33fa099169a007.tar.bz2
Update.
2000-04-13 Ulrich Drepper <drepper@redhat.com> * 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.
Diffstat (limited to 'sysdeps/generic/madvise.c')
-rw-r--r--sysdeps/generic/madvise.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/generic/madvise.c b/sysdeps/generic/madvise.c
index 5431bda..d6c2322 100644
--- a/sysdeps/generic/madvise.c
+++ b/sysdeps/generic/madvise.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,11 +24,12 @@
for the region starting at ADDR and extending LEN bytes. */
int
-madvise (__ptr_t addr, size_t len, int advice)
+__madvise (__ptr_t addr, size_t len, int advice)
{
__set_errno (ENOSYS);
return -1;
}
-
+weak_alias (__madvice, madvice)
+weak_alias (__madvice, posix_madvise)
stub_warning (madvise)
#include <stub-tag.h>