Home | History | Annotate | Download | only in python2.7

Lines Matching refs:master_fd

22     """openpty() -> (master_fd, slave_fd)
29 master_fd, slave_name = _open_terminal()
31 return master_fd, slave_fd
34 """master_open() -> (master_fd, slave_name)
39 master_fd, slave_fd = os.openpty()
45 return master_fd, slave_name
50 """Open pty master and return (master_fd, tty_name).
58 tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0)
61 return master_fd, tty_name
91 """fork() -> (pid, master_fd)
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):
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)