]> sourceware.org Git - glibc.git/commitdiff
Mark internal fcntl functions hidden
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:16:22 +0000 (14:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:16:41 +0000 (14:16 -0700)
Since internal fcntl functions are only used internally in ld.so and
libc.so, they can be made hidden.

[BZ #19122]
* include/fcntl.h (__libc_fcntl): Add attribute_hidden.
[IS_IN (rtld)] (__open): Likewise.
[IS_IN (rtld)] (__fcntl): Likewise.

ChangeLog
include/fcntl.h

index d0dbccfb152862a305a68c5659ca9d33dad4a56f..338608b00e3096149abe1d79da6253d6cca87a27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19122]
+       * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
+       [IS_IN (rtld)] (__open): Likewise.
+       [IS_IN (rtld)] (__fcntl): Likewise.
+
        * include/dirent.h (__opendirat): Add attribute_hidden.
        (__getdents): Likewise.
        (__getdents64): Likewise.
index de2372883c99e9d419817f668551de6368691a06..4168ee429fba2c20ca2dbfd84ad993a69fef6df9 100644 (file)
@@ -8,7 +8,7 @@ libc_hidden_proto (__open64)
 extern int __libc_open64 (const char *file, int oflag, ...);
 extern int __libc_open (const char *file, int oflag, ...);
 libc_hidden_proto (__libc_open)
-extern int __libc_fcntl (int fd, int cmd, ...);
+extern int __libc_fcntl (int fd, int cmd, ...) attribute_hidden;
 #ifndef NO_CANCELLATION
 extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
 libc_hidden_proto (__libc_fcntl)
@@ -30,6 +30,11 @@ extern int __openat_2 (int __fd, const char *__path, int __oflag);
 extern int __openat64_2 (int __fd, const char *__path, int __oflag);
 
 
+#if IS_IN (rtld)
+extern __typeof (__open) __open attribute_hidden;
+extern __typeof (__fcntl) __fcntl attribute_hidden;
+#endif
+
 /* Flag determining whether the *at system calls are available.  */
 extern int __have_atfcts attribute_hidden;
 
This page took 0.120592 seconds and 5 git commands to generate.