mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user