Lines Matching full:master
19 // Open a new PTTY master in test_ptsname_equivalence()
36 // Open a new PTTY master in test_ptsname_copy()
52 // Open a new PTTY master in test_ptsname_r_copy()
68 // Open a new PTTY master in test_ptsname_unique()
71 // Open a second PTTY master in test_ptsname_unique()
84 // Open a new PTTY master in open_ptty_pair()
85 let master = posix_openpt(OFlag::O_RDWR).expect("posix_openpt failed"); in open_ptty_pair() localVariable
88 grantpt(&master).expect("grantpt failed"); in open_ptty_pair()
89 unlockpt(&master).expect("unlockpt failed"); in open_ptty_pair()
92 let slave_name = unsafe { ptsname(&master) }.expect("ptsname failed"); in open_ptty_pair()
124 (master, slave) in open_ptty_pair()
127 /// Test opening a master/slave PTTY pair
131 /// master/slave PTTY pair.
144 /// Test `io::Read` on the PTTY master
147 let (mut master, mut slave) = open_ptty_pair(); in test_read_ptty_pair()
152 master.read_exact(&mut buf).unwrap(); in test_read_ptty_pair()
155 let mut master = &master; in test_read_ptty_pair() localVariable
157 master.read_exact(&mut buf).unwrap(); in test_read_ptty_pair()
161 /// Test `io::Write` on the PTTY master
164 let (mut master, mut slave) = open_ptty_pair(); in test_write_ptty_pair()
168 master.write_all(b"adios").unwrap(); in test_write_ptty_pair()
172 let mut master = &master; in test_write_ptty_pair() localVariable
173 master.write_all(b"adios").unwrap(); in test_write_ptty_pair()
188 write(&pty.master, string.as_bytes()).unwrap(); in test_openpty()
196 crate::read_exact(&pty.master, &mut buf); in test_openpty()
203 crate::read_exact(&pty.master, &mut buf); in test_openpty()
227 write(&pty.master, string.as_bytes()).unwrap(); in test_openpty_with_termios()
234 crate::read_exact(&pty.master, &mut buf); in test_openpty_with_termios()
241 crate::read_exact(&pty.master, &mut buf); in test_openpty_with_termios()
270 crate::read_exact(&pty.master, &mut buf); in test_forkpty()