source:
trunk/minix/lib/posix/_isatty.c@
20
Last change on this file since 20 was 9, checked in by , 14 years ago | |
---|---|
File size: 208 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define isatty _isatty |
3 | #define tcgetattr _tcgetattr |
4 | #include <termios.h> |
5 | #include <unistd.h> |
6 | |
7 | PUBLIC int isatty(fd) |
8 | int fd; |
9 | { |
10 | struct termios dummy; |
11 | |
12 | return(tcgetattr(fd, &dummy) == 0); |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.