diff options
Diffstat (limited to 'mdk-stage1/dietlibc/lib/cfgetospeed.c')
-rw-r--r-- | mdk-stage1/dietlibc/lib/cfgetospeed.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/cfgetospeed.c b/mdk-stage1/dietlibc/lib/cfgetospeed.c new file mode 100644 index 000000000..c330352b2 --- /dev/null +++ b/mdk-stage1/dietlibc/lib/cfgetospeed.c @@ -0,0 +1,8 @@ +#include <termios.h> +#include <sys/types.h> + +speed_t cfgetospeed(struct termios *termios_p) { + return ((termios_p->c_cflag & (CBAUD|CBAUDEX))); +} + +speed_t cfgetispeed(struct termios *termios_p) __attribute__((weak,alias("cfgetospeed"))); |