]> sourceware.org Git - glibc.git/commitdiff
Hide internal __tcgetattr function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:48:11 +0000 (17:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:48:24 +0000 (17:48 -0700)
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.

ChangeLog
include/termios.h
sysdeps/unix/bsd/tcgetattr.c
sysdeps/unix/sysv/linux/tcgetattr.c
termios/tcgetattr.c

index 86d30bedf267dbd49f00fa34e87744c4f0450fd8..dc58bf19605b85642fd388ffe5725d3009ad0078 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [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.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 1a36e226b8313704d26b97b467c5e7a03294e3d3..e2c35ebbae0967bcf5fc97bf26a7c2819c0f2def 100644 (file)
@@ -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)
index 1779bb934233aac7a9990138b42a27ac19b2d518..654f1e6407bc2b7f04264899f06c39da65f7e410 100644 (file)
@@ -35,4 +35,5 @@ __tcgetattr (int fd, struct termios *termios_p)
   return __ioctl (fd, TIOCGETA, termios_p);
 }
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
index b1d73d042a33adf29858365a1b5a5ba1d132395c..99a59b6cd99c3ee3d80e318f666fee9cbb233c39 100644 (file)
@@ -76,4 +76,5 @@ __tcgetattr (int fd, struct termios *termios_p)
   return retval;
 }
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
index a5c076b1b0dd58a451e19abacf7a1d1df716bf03..12a56dd30f4085d3fa741baef9050844f9f66712 100644 (file)
@@ -39,4 +39,5 @@ __tcgetattr (int fd, struct termios *termios_p)
 }
 stub_warning (tcgetattr)
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
This page took 0.078714 seconds and 5 git commands to generate.