Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
2cee45762a1e69444cd711a1a8112a401540081a
/
.
/
src
/
termios
/
cfgetospeed.c
blob: 0ebc198c1c500ab532f1bda94891e4859949b706 [
file
] [
log
] [
blame
]
#include
<termios.h>
#include
<sys/ioctl.h>
speed_t
cfgetospeed
(
const
struct
termios
*
tio
)
{
return
tio
->
c_cflag
&
CBAUD
;
}
speed_t
cfgetispeed
(
const
struct
termios
*
tio
)
{
return
cfgetospeed
(
tio
);
}