blob: 1b22c026f0117e77af6585f9bfbcbff85e1c7aff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#define _NO_MACROS
#include <sys/termios.h>
speed_t
cfgetospeed(const struct termios *tp) {
return tp->c_ospeed;
}
int
cfsetospeed(struct termios *tp, speed_t speed) {
tp->c_ospeed = speed;
return 0;
}
speed_t
cfgetispeed(const struct termios *tp) {
return tp->c_ispeed;
}
int
cfsetispeed(struct termios *tp, speed_t speed) {
tp->c_ispeed = speed;
return 0;
}
|