Lines Matching refs:pty_master
123 static int pty_master; /* fd for master side of pty */ variable
527 pty_master = -1; in connect_tty()
531 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) { in connect_tty()
641 if (device_script(ptycommand, pty_master, pty_master, 1) < 0) in connect_tty()
668 close(pty_master); in connect_tty()
669 pty_master = -1; in connect_tty()
754 if (pty_master >= 0) { in connect_tty()
755 close(pty_master); in connect_tty()
756 pty_master = -1; in connect_tty()
1038 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE)
1040 ifd, ofd, pty_master);
1052 flags = fcntl(pty_master, F_GETFL);
1054 || fcntl(pty_master, F_SETFL, flags | O_NONBLOCK) == -1)
1080 nfds = (ofd > pty_master? ofd: pty_master) + 1;
1101 FD_SET(pty_master, &writey);
1110 FD_SET(pty_master, &ready);
1148 FD_SET(pty_master, &writey);
1154 if (FD_ISSET(pty_master, &ready)) {
1156 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN);
1201 if (FD_ISSET(pty_master, &writey)) {
1205 n = write(pty_master, ibufp, n);