minix/lib/posix/_isatty.c
2009-11-09 10:26:00 +00:00

13 lines
208 B
C

#include <lib.h>
#define isatty _isatty
#define tcgetattr _tcgetattr
#include <termios.h>
#include <unistd.h>
PUBLIC int isatty(fd)
int fd;
{
struct termios dummy;
return(tcgetattr(fd, &dummy) == 0);
}