Home | History | Annotate | Download | only in pppd

Lines Matching refs:pty_master

124 static int pty_master;		/* fd for master side of pty */
532 pty_master = -1;
536 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) {
649 if (device_script(ptycommand, pty_master, pty_master, 1) < 0)
676 close(pty_master);
677 pty_master = -1;
765 if (pty_master >= 0) {
766 close(pty_master);
767 pty_master = -1;
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);