Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
termios
/
tcsetattr.c
blob: 94df18f91e1718b034303c32b8ee919808ac9f9c [
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
);
}