Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
termios
/
tcgetattr.c
blob: 0650b97fd925cd1cbf34a50d19925c0a90196447 [
file
] [
log
] [
blame
]
#include
<sys/ioctl.h>
#include
<termios.h>
int
tcgetattr
(
int
fd
,
struct
termios
*
tio
)
{
if
(
ioctl
(
fd
,
TCGETS
,
tio
))
return
-
1
;
return
0
;
}