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);
}