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
fix config file path
[AROS.git]
/
compiler
/
clib
/
cfsetospeed.c
blob
ce05db324a5926902abb30b945f9dbe0518c2098
1
#include <errno.h>
2
3
#include
"__arosc_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
}