Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
termios
/
tcsetattr.c
blob: 7aefe90ed3895f83fac5805990edc4f1f3e0b40c [
file
] [
log
] [
blame
]
#include
<errno.h>
#include
<sys/ioctl.h>
#include
<termios.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
);
}