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: }