Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
unistd
/
isatty.c
blob: c8badaf55edd7d6c4e692e5d238e093848cc7290 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<sys/ioctl.h>
#include
"syscall.h"
int
isatty
(
int
fd
)
{
struct
winsize wsz
;
return
!
__syscall
(
SYS_ioctl
,
fd
,
TIOCGWINSZ
,
&
wsz
);
}