source:
trunk/libs/newlib/src/newlib/libc/sys/sysvi386/isatty.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 133 bytes |
Line | |
---|---|
1 | #include <sys/termio.h> |
2 | |
3 | int |
4 | isatty(fd) |
5 | int fd; { |
6 | struct termio buf; |
7 | |
8 | if (ioctl (fd, TCGETA, &buf) == -1) |
9 | return 0; |
10 | return 1; |
11 | } |
Note: See TracBrowser
for help on using the repository browser.