home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / usr / src / libc / gen / stty.c < prev    next >
Encoding:
C/C++ Source or Header  |  1979-01-10  |  216 b   |  18 lines

  1. /*
  2.  * Writearound to old stty and gtty system calls
  3.  */
  4.  
  5. #include <sgtty.h>
  6.  
  7. stty(fd, ap)
  8. struct sgtty *ap;
  9. {
  10.     return(ioctl(fd, TIOCSETP, ap));
  11. }
  12.  
  13. gtty(fd, ap)
  14. struct sgtty *ap;
  15. {
  16.     return(ioctl(fd, TIOCGETP, ap));
  17. }
  18.