mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
87078544f2
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.
19 lines
450 B
C
19 lines
450 B
C
#ifndef _TERMIOS_H
|
|
#include <termios/termios.h>
|
|
|
|
#ifndef _ISOMAC
|
|
/* Now define the internal interfaces. */
|
|
extern int __tcgetattr (int __fd, struct termios *__termios_p);
|
|
extern int __tcsetattr (int __fd, int __optional_actions,
|
|
const struct termios *__termios_p);
|
|
|
|
extern int __libc_tcdrain (int __fd);
|
|
|
|
libc_hidden_proto (__tcgetattr)
|
|
libc_hidden_proto (tcsetattr)
|
|
libc_hidden_proto (cfsetispeed)
|
|
libc_hidden_proto (cfsetospeed)
|
|
|
|
#endif
|
|
#endif
|