1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)isatty.c	5.2 (Berkeley) 3/9/86";
   3: #endif LIBC_SCCS and not lint
   4: 
   5: /*
   6:  * Returns 1 iff file is a tty
   7:  */
   8: 
   9: #include <sgtty.h>
  10: 
  11: isatty(f)
  12: {
  13:     struct sgttyb ttyb;
  14: 
  15:     if (ioctl(f, TIOCGETP, &ttyb) < 0)
  16:         return(0);
  17:     return(1);
  18: }

Defined functions

isatty defined in line 11; used 124 times

Defined variables

sccsid defined in line 2; never used
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1133
Valid CSS Valid XHTML 1.0 Strict