diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 18:05:52 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 18:06:04 -0700 |
commit | 397286ea93ad30c24a5dad7928d0056c7b7d603d (patch) | |
tree | d2f301caac41b108f77c2d49d9f7c1b125393221 /sysdeps/unix/sysv/linux/posix_fadvise64.c | |
parent | d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3 (diff) | |
download | glibc-397286ea93ad30c24a5dad7928d0056c7b7d603d.tar glibc-397286ea93ad30c24a5dad7928d0056c7b7d603d.tar.gz glibc-397286ea93ad30c24a5dad7928d0056c7b7d603d.tar.bz2 glibc-397286ea93ad30c24a5dad7928d0056c7b7d603d.zip |
Hide internal fadvise64/fallocate64 functions [BZ #18822]
Hide internal fadvise64/fallocate64 functions to allow direct access
within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/posix_fadvise64.c
(__posix_fadvise64_l64): Add Add libc_hidden_proto and
libc_hidden_def.
* sysdeps/unix/sysv/linux/posix_fallocate64.c
(__posix_fallocate64_l64): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/posix_fadvise64.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/posix_fadvise64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/posix_fadvise64.c b/sysdeps/unix/sysv/linux/posix_fadvise64.c index aaee60add7..6dee86c833 100644 --- a/sysdeps/unix/sysv/linux/posix_fadvise64.c +++ b/sysdeps/unix/sysv/linux/posix_fadvise64.c @@ -20,6 +20,7 @@ #include <shlib-compat.h> int __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise); +libc_hidden_proto (__posix_fadvise64_l64) /* Both arm and powerpc implements fadvise64_64 with last 'advise' argument just after 'fd' to avoid the requirement of implementing 7-arg syscalls. @@ -83,3 +84,4 @@ weak_alias (__posix_fadvise64_l64, posix_fadvise64); weak_alias (__posix_fadvise64_l64, posix_fadvise64); strong_alias (__posix_fadvise64_l64, posix_fadvise); #endif +libc_hidden_def (__posix_fadvise64_l64) |