Annotation of 42BSD/lib/libc/gen/isatty.c, revision 1.1.1.1

1.1       root        1: /* @(#)isatty.c        4.1 (Berkeley) 12/21/80 */
                      2: /*
                      3:  * Returns 1 iff file is a tty
                      4:  */
                      5: 
                      6: #include <sgtty.h>
                      7: 
                      8: isatty(f)
                      9: {
                     10:        struct sgttyb ttyb;
                     11: 
                     12:        if (gtty(f, &ttyb) < 0)
                     13:                return(0);
                     14:        return(1);
                     15: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.