minix/lib/posix/_isatty.c

14 lines
208 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#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);
}