Sign in
cobalt
/
cobalt
/
5864f47b864e8bb7b417f15981009ad93bdff2ac
/
.
/
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
;
}