source: trunk/libs/newlib/src/newlib/libc/sys/sysvi386/speed.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 370 bytes
Line 
1#define _NO_MACROS
2#include <sys/termios.h>
3
4speed_t
5cfgetospeed(const struct termios *tp) {
6        return tp->c_ospeed;
7}
8
9int
10cfsetospeed(struct termios *tp, speed_t speed) {
11        tp->c_ospeed = speed;
12        return 0;
13}
14
15speed_t
16cfgetispeed(const struct termios *tp) {
17        return tp->c_ispeed;
18}
19
20int
21cfsetispeed(struct termios *tp, speed_t speed) {
22        tp->c_ispeed = speed;
23        return 0;
24}
Note: See TracBrowser for help on using the repository browser.