Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
126f58b2f44a0ba730831a6a4fef8daf85d9a601
/
.
/
src
/
termios
/
cfgetospeed.c
blob: 55fa6f55c0ecb4c9ecdb84dfbf61da12b5813579 [
file
] [
log
] [
blame
]
#define
_BSD_SOURCE
#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
);
}