Lines Matching refs:master_fd
29 master_fd, slave_name = _open_terminal()
31 return master_fd, slave_fd
39 master_fd, slave_fd = os.openpty()
45 return master_fd, slave_name
58 tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0)
61 return master_fd, tty_name
107 master_fd, slave_fd = openpty()
112 os.close(master_fd)
128 return pid, master_fd
140 def _copy(master_fd, master_read=_read, stdin_read=_read): argument
145 fds = [master_fd, STDIN_FILENO]
148 if master_fd in rfds:
149 data = master_read(master_fd)
151 fds.remove(master_fd)
159 _writen(master_fd, data)
165 pid, master_fd = fork()
175 _copy(master_fd, master_read, stdin_read)
180 os.close(master_fd)