Sign in
cobalt
/
cobalt
/
9708d320f5c570ac1ada07d0e0136706ac0a5c29
/
.
/
third_party
/
musl
/
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
);
}