Lines Matching refs:fa
236 posix_spawn_file_actions_t fa; in TEST() local
237 ASSERT_EQ(0, posix_spawn_file_actions_init(&fa)); 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()
244 ASSERT_EQ(0, posix_spawn_file_actions_addopen(&fa, 56, "/proc/version", O_RDONLY, 0)); in TEST()
249 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), &fa, nullptr, eth.GetArgs(), eth.GetEnv())); in TEST()
250 ASSERT_EQ(0, posix_spawn_file_actions_destroy(&fa)); in TEST()
272 posix_spawn_file_actions_t fa; in CatFileToString() local
273 ASSERT_EQ(0, posix_spawn_file_actions_init(&fa)); 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()
281 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), &fa, sa, eth.GetArgs(), nullptr)); in CatFileToString()
282 ASSERT_EQ(0, posix_spawn_file_actions_destroy(&fa)); in CatFileToString()