Lines Matching refs:fds
233 int fds[2]; in TEST() local
234 ASSERT_NE(-1, pipe(fds)); in TEST()
239 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[0])); in TEST()
240 ASSERT_EQ(0, posix_spawn_file_actions_adddup2(&fa, fds[1], 1)); in TEST()
241 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in TEST()
243 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in TEST()
252 ASSERT_EQ(0, close(fds[1])); in TEST()
254 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &content)); in TEST()
255 ASSERT_EQ(0, close(fds[0])); in TEST()
269 int fds[2]; in CatFileToString() local
270 ASSERT_NE(-1, pipe(fds)); in CatFileToString()
274 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[0])); in CatFileToString()
275 ASSERT_EQ(0, posix_spawn_file_actions_adddup2(&fa, fds[1], 1)); in CatFileToString()
276 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in CatFileToString()
284 ASSERT_EQ(0, close(fds[1])); in CatFileToString()
285 ASSERT_TRUE(android::base::ReadFdToString(fds[0], content)); in CatFileToString()
286 ASSERT_EQ(0, close(fds[0])); in CatFileToString()