Retro68/gcc/newlib/libc/sys/sysvi386/isatty.c
2012-03-27 01:51:53 +02:00

12 lines
133 B
C

#include <sys/termio.h>
int
isatty(fd)
int fd; {
struct termio buf;
if (ioctl (fd, TCGETA, &buf) == -1)
return 0;
return 1;
}