backport
[AROS.git] / compiler / clib / cfgetispeed.c
blobdcb8a86ffab70f1ecb4797e1b1440f498c1537b0
1 #include <termios.h>
3 /* FIXME: Add autodocs */
4 speed_t cfgetispeed(const struct termios *__termios_p)
6 if (__termios_p)
7 return __termios_p->c_ispeed;
9 /* According to man pages and online standard documents providing an
10 * invalid pointer does not result in an error. Tests on Linux resulted
11 * in segmentation faults, we can not do this so we retun a speed of 0.
13 return B0;