Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6fce6ca129c34d8975f777216d32cf92e77c18f2
/
.
/
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
);
}