Copyright clean-up (part 1):
[AROS.git] / compiler / posixc / cfsetispeed.c
blob80d703d373ae91d1ef0ccd07fe9ab7c7fcd16f8c
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 cfsetispeed(struct termios *__termios_p, speed_t speed)
13 if (__termios_p)
15 struct termios_intern *t = (struct termios_intern *)__termios_p;
16 t->c_ispeed = speed;
17 return 0;
19 else
21 errno = EINVAL;
22 return -1;