Lines Matching refs:pty
123 struct termios termbuf, termbuf2; /* pty control structure */
148 (void) ioctl(pty, TIOCGETP, (char *)&termbuf.sg);
149 (void) ioctl(pty, TIOCGETC, (char *)&termbuf.tc);
150 (void) ioctl(pty, TIOCGLTC, (char *)&termbuf.ltc);
152 (void) ioctl(pty, TIOCGSTATE, (char *)&termbuf.state);
155 (void) tcgetattr(pty, &termbuf);
180 (void) ioctl(pty, TIOCSETN, (char *)&termbuf.sg);
183 (void) ioctl(pty, TIOCSETC, (char *)&termbuf.tc);
186 (void) ioctl(pty, TIOCSLTC, (char *)&termbuf.ltc);
188 (void) ioctl(pty, TIOCLSET, (char *)&termbuf.lflags);
191 (void) tcsetattr(pty, TCSANOW, &termbuf);
376 * Allocate a pty. As a side effect, the external character
379 * Returns the file descriptor of the opened pty.
447 (void) ioctl(pty, TIOCEXT, (char *)&on);
831 * Open the slave side of the pty, and do any initialization
924 * Leave the pty open so that we can write out the rlogin
928 if (pty > 2) {
929 (void) close(pty);
930 pty = -1;
940 * Open the specified slave side of the pty,
969 * is necessary to startup the login process on the slave side of the pty.
1103 if (pty > 2) {
1125 xpty = pty;
1126 pty = 0;
1158 pty = xpty;
1180 if (pty > 2)
1181 close(pty);