aboutsummaryrefslogtreecommitdiff
path: root/termios/speed.c
diff options
context:
space:
mode:
Diffstat (limited to 'termios/speed.c')
-rw-r--r--termios/speed.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/termios/speed.c b/termios/speed.c
index d65bf03..5030621 100644
--- a/termios/speed.c
+++ b/termios/speed.c
@@ -22,21 +22,25 @@
/* Return the output baud rate stored in *TERMIOS_P. */
speed_t
-cfgetospeed (const struct termios *termios_p)
+__cfgetospeed (const struct termios *termios_p)
{
return termios_p->__ospeed;
}
+libc_hidden_def (__cfgetospeed)
+weak_alias (__cfgetospeed, cfgetospeed)
/* Return the input baud rate stored in *TERMIOS_P. */
speed_t
-cfgetispeed (const struct termios *termios_p)
+__cfgetispeed (const struct termios *termios_p)
{
return termios_p->__ispeed;
}
+libc_hidden_def (__cfgetispeed)
+weak_alias (__cfgetispeed, cfgetispeed)
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
int
-cfsetospeed (struct termios *termios_p, speed_t speed)
+__cfsetospeed (struct termios *termios_p, speed_t speed)
{
if (termios_p == NULL)
{
@@ -47,11 +51,12 @@ cfsetospeed (struct termios *termios_p, speed_t speed)
termios_p->__ospeed = speed;
return 0;
}
-libc_hidden_def (cfsetospeed)
+libc_hidden_def (__cfsetospeed)
+weak_alias (__cfsetospeed, cfsetospeed)
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
int
-cfsetispeed (struct termios *termios_p, speed_t speed)
+__cfsetispeed (struct termios *termios_p, speed_t speed)
{
if (termios_p == NULL)
{
@@ -62,4 +67,5 @@ cfsetispeed (struct termios *termios_p, speed_t speed)
termios_p->__ispeed = speed;
return 0;
}
-libc_hidden_def (cfsetispeed)
+libc_hidden_def (__cfsetispeed)
+weak_alias (__cfsetispeed, cfsetispeed)