aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:48:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:48:24 -0700
commit87078544f24cfbd355bf2f7e63a0d01ff7c96cca (patch)
tree40347f0d9510bea540d38f6cb4830caca1ba7289 /include
parentdd3121df08d5ee44ba770d12365022aa802fb364 (diff)
downloadglibc-87078544f24cfbd355bf2f7e63a0d01ff7c96cca.zip
glibc-87078544f24cfbd355bf2f7e63a0d01ff7c96cca.tar.gz
glibc-87078544f24cfbd355bf2f7e63a0d01ff7c96cca.tar.bz2
Hide internal __tcgetattr function [BZ #18822]
Hide internal __tcgetattr function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/termios.h (__tcgetattr): Add libc_hidden_proto. * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add libc_hidden_def. * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise. * termios/tcgetattr.c (__tcgetattr): Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/termios.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/termios.h b/include/termios.h
index 1a36e22..e2c35eb 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -9,6 +9,7 @@ extern int __tcsetattr (int __fd, int __optional_actions,
extern int __libc_tcdrain (int __fd);
+libc_hidden_proto (__tcgetattr)
libc_hidden_proto (tcsetattr)
libc_hidden_proto (cfsetispeed)
libc_hidden_proto (cfsetospeed)