Use intern GENMF function.
[AROS.git] / compiler / posixc / cfgetispeed.c
blob30377a052460acf8c11230547754e3330f189ca5
1 #include "__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;