Lines Matching refs:pty_master
75 static int pty_master; /* fd for master side of pty */
469 pty_master = -1;
473 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) {
572 if (device_script(ptycommand, pty_master, pty_master, 1) < 0)
575 close(pty_master);
576 pty_master = -1;
689 if (pty_master >= 0)
690 close(pty_master);
848 close(pty_master);
849 pty_master = -1;
948 flags = fcntl(pty_master, F_GETFL);
950 || fcntl(pty_master, F_SETFL, flags | O_NONBLOCK) == -1)
976 nfds = (ofd > pty_master? ofd: pty_master) + 1;
997 FD_SET(pty_master, &writey);
1006 FD_SET(pty_master, &ready);
1042 write(pty_master, inpacket_buf, 0);
1047 FD_SET(pty_master, &writey);
1053 if (FD_ISSET(pty_master, &ready)) {
1055 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN);
1099 if (FD_ISSET(pty_master, &writey)) {
1103 n = write(pty_master, ibufp, n);