Sign in
◑
Theme
android
/
platform
/
external
/
musl
/
fb7aa8f8c0e9d6af9003b45a7869f0b9760bbd16
/
.
/
src
/
termios
/
tcgetattr.c
blob: 545a0bf8ad135696e526c22c9bf1f251879292ac [
file
]
#include
<termios.h>
#include
<sys/ioctl.h>
int
tcgetattr
(
int
fd
,
struct
termios
*
tio
)
{
if
(
ioctl
(
fd
,
TCGETS
,
tio
))
return
-
1
;
return
0
;
}