Lines Matching defs:pty
245 static int master; /* master side of pty */
246 static int pty; /* side of pty that gets ioctls */
2412 * also flush the pty input buffer (by dropping its data) if it becomes
2734 * Get a pty, scan input lines.
2743 int ptmfd; /* fd of logindmux connected to pty */
2763 fatal(f, "could not grant slave pty");
2765 fatal(f, "could not unlock slave pty");
2767 fatal(f, "could not enable slave pty");
2770 fatal(f, "could not open slave pty");
2780 pty = t;
2783 syslog(LOG_INFO, "ioctl TIOCGETP pty t: %m\n");
2789 syslog(LOG_INFO, "ioctl TIOCSETN pty t: %m\n");
2790 if (ioctl(pty, TIOCGETP, &b) == -1)
2791 syslog(LOG_INFO, "ioctl TIOCGETP pty pty: %m\n");
2793 if (ioctl(pty, TIOCSETN, &b) == -1)
2794 syslog(LOG_INFO, "ioctl TIOCSETN pty pty: %m\n");
3106 * and have the pty as its controlling tty. Thus we need
3107 * to re-open the slave side of the pty no without
3250 * Main loop. Select from pty and network, and
3253 * flow between pty and network takes place through
3269 syslog(LOG_INFO, "ioctl FIONBIO pty p: %m\n");
3495 * Send the process on the pty side an
3521 if (ioctl(pty, TIOCGLTC, &tmpltc) == -1)
3547 if (ioctl(pty, TIOCGETP, &b) == -1)
4004 (void) ioctl(pty, TIOCSWINSZ, &ws);
4201 if (tcgetattr(pty, &tios) < 0)
4229 if (tcsetattr(pty, TCSANOW, &tios) < 0)
4234 * Send interrupt to process on other side of pty.
4245 if (ioctl(pty, TIOCGETP, &b) == -1)
4251 *pfrontp++ = ioctl(pty, TIOCGETC, &tchars) < 0 ?
4256 * Send quit to process on other side of pty.
4267 (void) ioctl(pty, TIOCGETP, &b);
4272 *pfrontp++ = ioctl(pty, TIOCGETC, &tchars) < 0 ?