blob: 6d73c173e25f1c4956a5cbfa3ad0219074dcd62c [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);
}