]> sourceware.org Git - glibc.git/commitdiff
Hide internal fadvise64/fallocate64 functions [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 01:05:52 +0000 (18:05 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 01:06:04 +0000 (18:06 -0700)
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.

ChangeLog
sysdeps/unix/sysv/linux/posix_fadvise64.c
sysdeps/unix/sysv/linux/posix_fallocate64.c

index 567a258cc5088be8ec685802be1fc63247506acc..21374605c31809af23c4a3c8a3deb7e2b10962f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [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.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index aaee60add79caa3328624aa431b2bd15c7fa3866..6dee86c833fef48f0eedc40c273d8098c7bbe46a 100644 (file)
@@ -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)
index eb05f7c5d0631e288ce9a01ff19f92549fff5472..76cf27a616e9e5e31575a4473040538de17140c5 100644 (file)
@@ -19,6 +19,7 @@
 #include <sysdep.h>
 
 extern int __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len);
+libc_hidden_proto (__posix_fallocate64_l64)
 #define __posix_fallocate64_l64 static internal_fallocate64
 #include <sysdeps/posix/posix_fallocate64.c>
 #undef __posix_fallocate64_l64
@@ -42,3 +43,4 @@ __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len)
     return INTERNAL_SYSCALL_ERRNO (res, err);
   return internal_fallocate64 (fd, offset, len);
 }
+libc_hidden_def (__posix_fallocate64_l64)
This page took 0.073862 seconds and 5 git commands to generate.