Lines Matching refs:slave_fd
22 """openpty() -> (master_fd, slave_fd)
30 slave_fd = slave_open(slave_name)
31 return master_fd, slave_fd
39 master_fd, slave_fd = os.openpty()
43 slave_name = os.ttyname(slave_fd)
44 os.close(slave_fd)
73 """slave_open(tty_name) -> slave_fd
107 master_fd, slave_fd = openpty()
115 os.dup2(slave_fd, STDIN_FILENO)
116 os.dup2(slave_fd, STDOUT_FILENO)
117 os.dup2(slave_fd, STDERR_FILENO)
118 if (slave_fd > STDERR_FILENO):
119 os.close (slave_fd)
125 os.close(slave_fd)