diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:10:31 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:10:31 +0000 |
commit | d70abb0d67922ef481a998b60af61cd38184c303 (patch) | |
tree | bf1baa2b2d6c385b31bec7945d23e61548c75fd1 | |
parent | 9432bd85ddf720fa564183dc0282b57ab5227224 (diff) | |
download | glibc-d70abb0d67922ef481a998b60af61cd38184c303.tar.gz glibc-d70abb0d67922ef481a998b60af61cd38184c303.tar.xz glibc-d70abb0d67922ef481a998b60af61cd38184c303.zip |
2007-04-19 Ulrich Drepper <drepper@redhat.com>
* include/sys/mman.h: Mark madvise hidden. * misc/madvise.c: Add libc_hidden_def.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/sys/mman.h | 3 | ||||
-rw-r--r-- | misc/madvise.c | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 29aa09cf7d..0a19fc69b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-19 Ulrich Drepper <drepper@redhat.com> + + * include/sys/mman.h: Mark madvise hidden. + * misc/madvise.c: Add libc_hidden_def. + 2007-04-17 Ulrich Drepper <drepper@redhat.com> [BZ #4368] diff --git a/include/sys/mman.h b/include/sys/mman.h index 8c07a4e2c6..a4687b30f7 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -12,4 +12,7 @@ extern int __mprotect (void *__addr, size_t __len, int __prot); /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...); + +libc_hidden_proto (madvise); + #endif diff --git a/misc/madvise.c b/misc/madvise.c index dbef959dd8..aa3eea7db3 100644 --- a/misc/madvise.c +++ b/misc/madvise.c @@ -29,5 +29,6 @@ madvise (__ptr_t addr, size_t len, int advice) __set_errno (ENOSYS); return -1; } +libc_hidden_def (madvise) stub_warning (madvise) #include <stub-tag.h> |