Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d2-release
/
.
/
src
/
termios
/
tcgetattr.c
blob: 545a0bf8ad135696e526c22c9bf1f251879292ac [
file
] [
log
] [
blame
] [
edit
]
#include
<termios.h>
#include
<sys/ioctl.h>
int
tcgetattr
(
int
fd
,
struct
termios
*
tio
)
{
if
(
ioctl
(
fd
,
TCGETS
,
tio
))
return
-
1
;
return
0
;
}