Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
650b04f8cc66d4153fa7e47505dae6d8f0a24704
/
.
/
src
/
termios
/
tcgetattr.c
blob: 545a0bf8ad135696e526c22c9bf1f251879292ac [
file
] [
log
] [
blame
]
#include
<termios.h>
#include
<sys/ioctl.h>
int
tcgetattr
(
int
fd
,
struct
termios
*
tio
)
{
if
(
ioctl
(
fd
,
TCGETS
,
tio
))
return
-
1
;
return
0
;
}