aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:16:22 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:16:41 -0700
commit6d56699d7e808419ccf244150ecba122156932ba (patch)
tree6976b4d354951f51e9c56f4220fddf195360b2ff /include
parent8303c7409cee86f42485177061d1e0ce04c07e9f (diff)
downloadglibc-6d56699d7e808419ccf244150ecba122156932ba.zip
glibc-6d56699d7e808419ccf244150ecba122156932ba.tar.gz
glibc-6d56699d7e808419ccf244150ecba122156932ba.tar.bz2
Mark internal fcntl functions hidden
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.
Diffstat (limited to 'include')
-rw-r--r--include/fcntl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index de23728..4168ee4 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -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;