minix/lib/posix/_isatty.c
2005-04-21 14:53:53 +00:00

13 lines
208 B
C
Executable file

#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);
}