Fixed compatibility of output.
[AROS.git] / compiler / posixc / cfsetospeed.c
blob6f15940c2f90975eb18388becab8662aa7779eb5
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <errno.h>
8 #include "__termios.h"
10 /* FIXME: Add autodoc */
11 int cfsetospeed(struct termios *__termios_p, speed_t speed)
13 if (__termios_p)
15 struct termios_intern * t = (struct termios_intern *)__termios_p;
16 t->c_ospeed = speed;
17 return 0;
19 else
21 errno = EINVAL;
22 return -1;