Lines Matching refs:master
31 int master, slave; in TEST() local
34 ASSERT_EQ(0, openpty(&master, &slave, name, nullptr, &w)); in TEST()
35 ASSERT_NE(-1, master); in TEST()
37 ASSERT_NE(master, slave); in TEST()
50 close(master); in TEST()
57 int master; in TEST() local
58 pid_t pid = forkpty(&master, nullptr, nullptr, nullptr); in TEST()
71 close(master); in TEST()
117 int master; in TEST() local
119 ASSERT_EQ(0, openpty(&master, &slave, nullptr, nullptr, nullptr)); in TEST()
159 ASSERT_TRUE(android::base::WriteFully(master, &counter_buf, sizeof(counter_buf))); in TEST()
165 close(master); in TEST()