ack/plat/em/libsys/isatty.c
David Given 7eaa235fd1 Bodge the ancient em monitor library into building as a libsys for the em22
plat. It's completely untested, but it builds and makes e.out executables.
2018-06-13 21:44:25 +09:00

13 lines
249 B
C

/* $Id$ */
isatty(f)
{
char buf[128];
/* not a sgttyb struct; it might not be large enough;
I know for a fact that it is'nt large enough on PC/IX,
where gtty is an ioctl(..., TCGETA, ...)
*/
if (gtty(f, buf) < 0) return 0;
return 1;
}