2 * _isatty - check if a file descriptor is associated with a terminal
4 /* $Id: isatty.c,v 1.3 1994/06/24 11:50:38 ceriel Exp $ */
6 int _gtty(int d, char *buf);
11 /* not a sgttyb struct; it might not be large enough;
12 I know for a fact that it isn't large enough on PC/IX,
13 where gtty is an ioctl(..., TCGETA, ...)
16 return _gtty(d, buf) >= 0;