source: trunk/libs/newlib/src/newlib/libc/sys/sysvi386/isatty.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 133 bytes
Line 
1#include <sys/termio.h>
2
3int
4isatty(fd)
5int 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.