termios.h: Put some non-standard fields in a private struct.
[AROS.git] / compiler / clib / cfgetispeed.c
blob06827a3247c14de726a996141944b9a0f1f5be08
1 #include "__arosc_termios.h"
3 /* FIXME: Add autodocs */
4 speed_t cfgetispeed(const struct termios *__termios_p)
6 if (__termios_p)
8 struct termios_intern *t = (struct termios_intern *)__termios_p;
9 return t->c_ispeed;
12 /* According to man pages and online standard documents providing an
13 * invalid pointer does not result in an error. Tests on Linux resulted
14 * in segmentation faults, we can not do this so we retun a speed of 0.
16 return B0;