Lines Matching refs:pty_master
124 static int pty_master; /* fd for master side of pty */ variable
532 pty_master = -1; in connect_tty()
536 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) { in connect_tty()
649 if (device_script(ptycommand, pty_master, pty_master, 1) < 0) in connect_tty()
676 close(pty_master); in connect_tty()
677 pty_master = -1; in connect_tty()
765 if (pty_master >= 0) { in connect_tty()
766 close(pty_master); in connect_tty()
767 pty_master = -1; in connect_tty()
1041 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE)
1043 ifd, ofd, pty_master);
1055 flags = fcntl(pty_master, F_GETFL);
1057 || fcntl(pty_master, F_SETFL, flags | O_NONBLOCK) == -1)
1083 nfds = (ofd > pty_master? ofd: pty_master) + 1;
1104 FD_SET(pty_master, &writey);
1113 FD_SET(pty_master, &ready);
1151 FD_SET(pty_master, &writey);
1157 if (FD_ISSET(pty_master, &ready)) {
1159 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN);
1204 if (FD_ISSET(pty_master, &writey)) {
1208 n = write(pty_master, ibufp, n);