Lines Matching refs:master_fd
181 static int master_fd = -1; /* pty for old-style demand mode, master */ variable
377 if (master_fd >= 0) in sys_close()
378 close(master_fd); in sys_close()
700 int master_fd; in bundle_attach() local
705 master_fd = open("/dev/ppp", O_RDWR); in bundle_attach()
706 if (master_fd < 0) in bundle_attach()
708 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { in bundle_attach()
710 close(master_fd); in bundle_attach()
717 modify_flags(master_fd, 0, SC_MULTILINK); in bundle_attach()
718 close(master_fd); in bundle_attach()
1175 while ((n = read(master_fd, inbuf, sizeof(inbuf))) > 0) in get_loop_output()
2703 if (!get_pty(&master_fd, &slave_fd, loop_name, 0)) in open_ppp_loopback()
2708 flags = fcntl(master_fd, F_GETFL); in open_ppp_loopback()
2710 fcntl(master_fd, F_SETFL, flags | O_NONBLOCK) == -1) in open_ppp_loopback()
2730 return master_fd; in open_ppp_loopback()