intuition.library: remove not needed include
[AROS.git] / compiler / posixc / cfgetospeed.c
blobf167fab7b3cc1739946ad710685c59f17b83e11c
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 cfgetospeed(const struct termios *__termios_p)
11 if (__termios_p)
13 struct termios_intern * t = (struct termios_intern *)__termios_p;
14 return t->c_ospeed;
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;