summaryrefslogtreecommitdiff
path: root/src/termios/cfgetospeed.c
blob: 0ebc198c1c500ab532f1bda94891e4859949b706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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);
}