compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / cfgetispeed.c
blobcd396f049cbc6f631a9dbd16ba891019eb7c3241
1 #include <termios.h>
3 speed_t cfgetispeed(const struct termios *__termios_p)
5 if (__termios_p)
6 return __termios_p->c_ispeed;
8 /* According to man pages and online standard documents providing an
9 * invalid pointer does not result in an error. Tests on Linux resulted
10 * in segmentation faults, we can not do this so we retun a speed of 0.
12 return B0;