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
Use intern GENMF function.
[AROS.git]
/
compiler
/
posixc
/
cfsetospeed.c
blob
0721a98edd2f4d84e1b196ce951485d775511aeb
1
#include <errno.h>
2
3
#include
"__termios.h"
4
5
/* FIXME: Add autodoc */
6
int
cfsetospeed
(
struct
termios
*
__termios_p
,
speed_t speed
)
7
{
8
if
(
__termios_p
)
9
{
10
struct
termios_intern
*
t
= (
struct
termios_intern
*)
__termios_p
;
11
t
->
c_ospeed
=
speed
;
12
return
0
;
13
}
14
else
15
{
16
errno
=
EINVAL
;
17
return
-
1
;
18
}
19
}