/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
pty.py | 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) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
pty.py | 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) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 70 master_fd, slave_name = pty.master_open() 71 debug("Got master_fd '%d', slave_name '%s'" % 72 (master_fd, slave_name)) 87 orig_flags = fcntl.fcntl(master_fd, fcntl.F_GETFL) 88 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK) 90 s1 = os.read(master_fd, 1024) 96 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags) 100 s1 = os.read(master_fd, 1024) 107 s2 = os.read(master_fd, 1024) 111 os.close(master_fd) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 70 master_fd, slave_name = pty.master_open() 71 debug("Got master_fd '%d', slave_name '%s'" % 72 (master_fd, slave_name)) 87 orig_flags = fcntl.fcntl(master_fd, fcntl.F_GETFL) 88 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK) 90 s1 = os.read(master_fd, 1024) 96 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags) 100 s1 = os.read(master_fd, 1024) 107 s2 = os.read(master_fd, 1024) 111 os.close(master_fd) [all...] |
/external/ppp/pppd/ |
sys-linux.c | 180 static int master_fd = -1; /* pty for old-style demand mode, master */ variable 371 if (master_fd >= 0) 372 close(master_fd); 694 int master_fd; local 699 master_fd = open("/dev/ppp", O_RDWR); 700 if (master_fd < 0) 702 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { 704 close(master_fd); 711 modify_flags(master_fd, 0, SC_MULTILINK); 712 close(master_fd); [all...] |