gtty.c 129 B

123456
  1. /* $Id$ */
  2. #include <sgtty.h>
  3. int
  4. gtty(fildes,argp) int fildes ; struct sgttyb *argp ; {
  5. return ioctl(fildes,TIOCGETP,argp) ;
  6. }