Sign in
chromium
/
native_client
/
nacl-toolchain
/
gcc-4.4.3
/
.
/
newlib
/
newlib
/
libc
/
sys
/
sysvi386
/
isatty.c
blob: fa1e3557f20af77225197656976b78db15e79290 [
file
] [
log
] [
blame
]
#include
<sys/termio.h>
int
isatty
(
fd
)
int
fd
;
{
struct
termio buf
;
if
(
ioctl
(
fd
,
TCGETA
,
&
buf
)
==
-
1
)
return
0
;
return
1
;
}