source:
trunk/minix/lib/posix/_isatty.c@
9
| Last change on this file since 9 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 208 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 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.