Lines Matching defs:pty
31 * Telnetd operates by allocating a pseudo-terminal device (see pty(4)) for
120 | pty | | socket |
222 DEBUG_OUT("getpty(): couldn't get pty\n");
227 DEBUG_OUT("getpty(): couldn't grant and unlock pty\n");
231 DEBUG_OUT("getpty(): got pty %s\n",ptsname(p));
255 int pty, pid;
273 pty = getpty(tty_name);
275 if (pty < 0) {
280 if (pty > maxfd)
281 maxfd = pty;
283 ts->ptyfd = pty;
517 /* buf1 is used from socket to pty
518 * buf2 is used from pty to socket
521 FD_SET(ts->ptyfd, &wrfdset); /* can write to pty */
530 FD_SET(ts->ptyfd, &rdfdset); /* can read from pty */
578 /* Write to pty from buffer 1. */
643 /* Read from pty to buffer 2. */