/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
pty.py | 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 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
pty.py | 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 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 74 slave_fd = pty.slave_open(slave_name) 75 debug("Got slave_fd '%d'" % slave_fd) 80 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 98 debug("Writing to slave_fd") 99 os.write(slave_fd, TEST_STRING_1) 105 os.write(slave_fd, TEST_STRING_2[:5]) 106 os.write(slave_fd, TEST_STRING_2[5:]) 110 os.close(slave_fd) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 74 slave_fd = pty.slave_open(slave_name) 75 debug("Got slave_fd '%d'" % slave_fd) 80 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 98 debug("Writing to slave_fd") 99 os.write(slave_fd, TEST_STRING_1) 105 os.write(slave_fd, TEST_STRING_2[:5]) 106 os.write(slave_fd, TEST_STRING_2[5:]) 110 os.close(slave_fd) [all...] |
/external/chromium_org/chromeos/process_proxy/ |
process_proxy.cc | 218 bool ProcessProxy::LaunchProcess(const std::string& command, int slave_fd, 222 fds_mapping.push_back(std::make_pair(slave_fd, STDIN_FILENO)); 223 fds_mapping.push_back(std::make_pair(slave_fd, STDOUT_FILENO)); 224 fds_mapping.push_back(std::make_pair(slave_fd, STDERR_FILENO)); 227 options.ctrl_terminal_fd = slave_fd;
|
process_proxy.h | 62 bool LaunchProcess(const std::string& command, int slave_fd, pid_t* pid);
|
/external/ppp/pppd/ |
sys-linux.c | 179 static int slave_fd = -1; /* pty for old-style demand mode, slave */ variable 275 if (!hungup || ppp_fd == slave_fd) 277 if (slave_fd >= 0) { 278 set_ppp_fd(slave_fd); 369 if (slave_fd >= 0) 370 close(slave_fd); 412 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { 607 set_ppp_fd(slave_fd); [all...] |
/external/qemu/ |
qemu-char.c | 1045 int slave_fd, len; local 1058 if (openpty(&s->fd, &slave_fd, pty_name, NULL, NULL) < 0) { 1063 tcgetattr(slave_fd, &tty); 1065 tcsetattr(slave_fd, TCSAFLUSH, &tty); 1066 close(slave_fd); [all...] |