tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / compiler / posixc / cfgetispeed.c
blobfdee15dbb66b56c7d3fda3356258a866ae20291e
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "__termios.h"
8 /* FIXME: Add autodocs */
9 speed_t cfgetispeed(const struct termios *__termios_p)
11 if (__termios_p)
13 struct termios_intern *t = (struct termios_intern *)__termios_p;
14 return t->c_ispeed;
17 /* According to man pages and online standard documents providing an
18 * invalid pointer does not result in an error. Tests on Linux resulted
19 * in segmentation faults, we can not do this so we retun a speed of 0.
21 return B0;