Retro68/gcc/newlib/libc/sys/sysvi386/isatty.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +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;
}