OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sysvi386/] [isatty.c] - Blame information for rev 829

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.