/prebuilts/gdb/darwin-x86/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/gdb/linux-x86/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/ |
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/gdb/darwin-x86/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/gdb/linux-x86/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/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...] |
/bionic/tests/ |
pty_test.cpp | 75 int slave_fd; member in struct:PtyReader_28979140_Arg 92 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read)); 101 close(arg->slave_fd); 126 arg.slave_fd = slave;
|
/external/ppp/pppd/ |
sys-linux.c | 180 static int slave_fd = -1; /* pty for old-style demand mode, slave */ variable 278 if (!hungup || ppp_fd == slave_fd) 280 if (slave_fd >= 0) { 281 set_ppp_fd(slave_fd); 375 if (slave_fd >= 0) 376 close(slave_fd); 418 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { 613 set_ppp_fd(slave_fd); [all...] |