Sign in
mojo
/
mojo-tools
/
7d579155cc597aa3befcbfad66eef54bda06b57c
/
.
/
fusl
/
src
/
termios
/
tcsetattr.c
blob: f3a7bea6145578b8cac5862601fad921d054f0cc [
file
] [
log
] [
blame
]
#include
<termios.h>
#include
<sys/ioctl.h>
#include
<errno.h>
int
tcsetattr
(
int
fd
,
int
act
,
const
struct
termios
*
tio
)
{
if
(
act
<
0
||
act
>
2
)
{
errno
=
EINVAL
;
return
-
1
;
}
return
ioctl
(
fd
,
TCSETS
+
act
,
tio
);
}