Lines Matching refs:fa
132 spawn_closefrom_test (posix_spawn_file_actions_t *fa, int lowfd, int highfd, in spawn_closefrom_test() argument
167 TEST_COMPARE (posix_spawn (&pid, args[0], fa, NULL, args, environ), 0); in spawn_closefrom_test()
182 posix_spawn_file_actions_t fa; in do_test_closefrom() local
183 TEST_COMPARE (posix_spawn_file_actions_init (&fa), 0); in do_test_closefrom()
185 int ret = posix_spawn_file_actions_addclosefrom_np (&fa, half_fd); in do_test_closefrom()
191 spawn_closefrom_test (&fa, lowfd, half_fd, NULL, 0); in do_test_closefrom()
193 TEST_COMPARE (posix_spawn_file_actions_destroy (&fa), 0); in do_test_closefrom()
205 posix_spawn_file_actions_t fa; in do_test_closefrom() local
206 TEST_COMPARE (posix_spawn_file_actions_init (&fa), 0); in do_test_closefrom()
208 TEST_COMPARE (posix_spawn_file_actions_addclosefrom_np (&fa, half_fd), 0); in do_test_closefrom()
210 spawn_closefrom_test (&fa, lowfd, half_fd, NULL, 0); in do_test_closefrom()
212 TEST_COMPARE (posix_spawn_file_actions_destroy (&fa), 0); in do_test_closefrom()
217 posix_spawn_file_actions_t fa; in do_test_closefrom() local
218 TEST_COMPARE (posix_spawn_file_actions_init (&fa), 0); in do_test_closefrom()
220 TEST_COMPARE (posix_spawn_file_actions_addclosefrom_np (&fa, lowfd + 1), 0); in do_test_closefrom()
222 spawn_closefrom_test (&fa, lowfd, lowfd + 1, NULL, 0); in do_test_closefrom()
224 TEST_COMPARE (posix_spawn_file_actions_destroy (&fa), 0); in do_test_closefrom()
229 posix_spawn_file_actions_t fa; in do_test_closefrom() local
230 TEST_COMPARE (posix_spawn_file_actions_init (&fa), 0); in do_test_closefrom()
232 TEST_COMPARE (posix_spawn_file_actions_addclosefrom_np (&fa, lowfd), 0); in do_test_closefrom()
234 spawn_closefrom_test (&fa, lowfd, lowfd, NULL, 0); in do_test_closefrom()
236 TEST_COMPARE (posix_spawn_file_actions_destroy (&fa), 0); in do_test_closefrom()
241 posix_spawn_file_actions_t fa; in do_test_closefrom() local
242 TEST_COMPARE (posix_spawn_file_actions_init (&fa), 0); in do_test_closefrom()
244 TEST_COMPARE (posix_spawn_file_actions_addclosefrom_np (&fa, lowfd + 1), 0); in do_test_closefrom()
245 TEST_COMPARE (posix_spawn_file_actions_addopen (&fa, lowfd, "/dev/null", in do_test_closefrom()
247 TEST_COMPARE (posix_spawn_file_actions_adddup2 (&fa, lowfd, lowfd + 1), 0); in do_test_closefrom()
248 TEST_COMPARE (posix_spawn_file_actions_addopen (&fa, lowfd, "/dev/null", in do_test_closefrom()
251 spawn_closefrom_test (&fa, lowfd, lowfd, (int[]){lowfd, lowfd + 1}, 2); in do_test_closefrom()
253 TEST_COMPARE (posix_spawn_file_actions_destroy (&fa), 0); in do_test_closefrom()