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
Forward compatibility: libarossupport.a - remove dependency on C library
[AROS.git]
/
compiler
/
posixc
/
cfsetospeed.c
blob
6f15940c2f90975eb18388becab8662aa7779eb5
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
cfsetospeed
(
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_ospeed
=
speed
;
17
return
0
;
18
}
19
else
20
{
21
errno
=
EINVAL
;
22
return
-
1
;
23
}
24
}