Lines Matching refs:master_fd
35 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_equivalence() localVariable
36 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_equivalence()
39 let slave_name = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_equivalence()
40 let slave_name_r = ptsname_r(&master_fd).unwrap(); in test_ptsname_equivalence()
52 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_copy() localVariable
53 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_copy()
56 let slave_name1 = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_copy()
57 let slave_name2 = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_copy()
69 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_r_copy() localVariable
70 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_r_copy()
73 let slave_name1 = ptsname_r(&master_fd).unwrap(); in test_ptsname_r_copy()
74 let slave_name2 = ptsname_r(&master_fd).unwrap(); in test_ptsname_r_copy()