diff options
Diffstat (limited to 'newlib/libc/sys/sysvi386/isatty.c')
-rw-r--r-- | newlib/libc/sys/sysvi386/isatty.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/sys/sysvi386/isatty.c b/newlib/libc/sys/sysvi386/isatty.c new file mode 100644 index 0000000..fa1e355 --- /dev/null +++ b/newlib/libc/sys/sysvi386/isatty.c @@ -0,0 +1,11 @@ +#include <sys/termio.h> + +int +isatty(fd) +int fd; { + struct termio buf; + + if (ioctl (fd, TCGETA, &buf) == -1) + return 0; + return 1; +} |