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