repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tools/adflib: build only host variant which is used by Sam440 target
[AROS.git]
/
compiler
/
posixc
/
cfsetispeed.c
blob
80d703d373ae91d1ef0ccd07fe9ab7c7fcd16f8c
1
/*
2
Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <errno.h>
7
8
#include
"__termios.h"
9
10
/* FIXME: Add autodoc */
11
int
cfsetispeed
(
struct
termios
*
__termios_p
,
speed_t speed
)
12
{
13
if
(
__termios_p
)
14
{
15
struct
termios_intern
*
t
= (
struct
termios_intern
*)
__termios_p
;
16
t
->
c_ispeed
=
speed
;
17
return
0
;
18
}
19
else
20
{
21
errno
=
EINVAL
;
22
return
-
1
;
23
}
24
}