Lines Matching refs:ioctl
125 # define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
130 # define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
134 # define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
137 # define tcsetattr(f, a, t) ioctl(f, a, t)
178 if (ioctl(spty, TIOCGETP, (char *)&termbuf.sg) == -1)
179 perror("ioctl TIOCGETP");
180 if (ioctl(spty, TIOCGETC, (char *)&termbuf.tc) == -1)
181 perror("ioctl TIOCGETC");
182 if (ioctl(spty, TIOCGLTC, (char *)&termbuf.ltc) == -1)
183 perror("ioctl TIOCGLTC");
185 if (-1 == ioctl(spty, TIOCGSTATE, (char *)&termbuf.state))
186 perror("ioctl TIOCGSTATE");
215 if (-1 == ioctl(spty, TIOCSETN, (char *)&termbuf.sg))
216 perror("ioctl TIOSETN");
220 if (-1 == ioctl(spty, TIOCSETC, (char *)&termbuf.tc))
221 perror("ioctl TIOSETC");
225 if (-1 == ioctl(spty, TIOCSLTC, (char *)&termbuf.ltc))
226 perror("ioctl TIOCSLTC");
229 (void) ioctl(spty, TIOCLSET, (char *)&termbuf.lflags);
518 if (-1 == ioctl(spty, TIOCEXT, (char *)&on))
519 perror("ioctl TIOCEXT");
941 (void) ioctl(t, TIOCNOTTY, (char *)0);
960 (void)ioctl(t, TIOCSWINSZ, (char *)&ws);