Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
musl
/
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
;
}