• Home
  • Raw
  • Download

Lines Matching refs:master

104     let master = posix_openpt(OFlag::O_RDWR).expect("posix_openpt failed");  in open_ptty_pair()  localVariable
107 grantpt(&master).expect("grantpt failed"); in open_ptty_pair()
108 unlockpt(&master).expect("unlockpt failed"); in open_ptty_pair()
111 let slave_name = unsafe { ptsname(&master) }.expect("ptsname failed"); in open_ptty_pair()
143 (master, slave) in open_ptty_pair()
153 let (master, slave) = open_ptty_pair(); in test_open_ptty_pair()
154 assert!(master.as_raw_fd() > 0); in test_open_ptty_pair()
168 let (mut master, mut slave) = open_ptty_pair(); in test_read_ptty_pair()
173 master.read_exact(&mut buf).unwrap(); in test_read_ptty_pair()
176 let mut master = &master; in test_read_ptty_pair() localVariable
178 master.read_exact(&mut buf).unwrap(); in test_read_ptty_pair()
185 let (mut master, mut slave) = open_ptty_pair(); in test_write_ptty_pair()
189 master.write_all(b"adios").unwrap(); in test_write_ptty_pair()
193 let mut master = &master; in test_write_ptty_pair() localVariable
194 master.write_all(b"adios").unwrap(); in test_write_ptty_pair()
205 assert!(pty.master > 0); in test_openpty()
211 write(pty.master, string.as_bytes()).unwrap(); in test_openpty()
219 crate::read_exact(pty.master, &mut buf); in test_openpty()
226 crate::read_exact(pty.master, &mut buf); in test_openpty()
230 close(pty.master).unwrap(); in test_openpty()
242 assert!(pty.master > 0); in test_openpty_with_termios()
245 close(pty.master).unwrap(); in test_openpty_with_termios()
254 assert!(pty.master > 0); in test_openpty_with_termios()
260 write(pty.master, string.as_bytes()).unwrap(); in test_openpty_with_termios()
267 crate::read_exact(pty.master, &mut buf); in test_openpty_with_termios()
274 crate::read_exact(pty.master, &mut buf); in test_openpty_with_termios()
278 close(pty.master).unwrap(); in test_openpty_with_termios()
306 crate::read_exact(pty.master, &mut buf); in test_forkpty()
310 close(pty.master).unwrap(); in test_forkpty()