ack/plat/pdpv7/libsys/isatty.c

11 lines
179 B
C
Raw Normal View History

2022-08-01 20:08:23 +00:00
extern int ioctl(int fd, unsigned int request, ...);
int isatty(int fd)
{
unsigned u;
if (ioctl(fd, /*TIOCGETD*/(('t'<<8)|0), &u) < 0)
return 0;
return 1;
}