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