diff options
Diffstat (limited to 'lib/libc/termios/cfgetospeed.c')
| -rw-r--r-- | lib/libc/termios/cfgetospeed.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/termios/cfgetospeed.c b/lib/libc/termios/cfgetospeed.c new file mode 100644 index 00000000..e36befc3 --- /dev/null +++ b/lib/libc/termios/cfgetospeed.c @@ -0,0 +1,6 @@ +#include <asm-generic/termbits.h> + +speed_t cfgetospeed(const struct termios *termios_p) +{ + return termios_p->c_cflag & CBAUD; +} |
