isblank() implementation.
[minix.git] / lib / libc / posix / _isatty.c
blob39d0069fe39229e951678745ef0efbd306dda3a0
1 #include <lib.h>
2 #define isatty _isatty
3 #define tcgetattr _tcgetattr
4 #include <termios.h>
5 #include <unistd.h>
7 PUBLIC int isatty(fd)
8 int fd;
10 struct termios dummy;
12 return(tcgetattr(fd, &dummy) == 0);