Home
last modified time | relevance | path

Searched refs:actions (Results 1 – 4 of 4) sorted by relevance

/posix/
A Dspawn_faction_addfchdir.c26 posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *actions, in posix_spawn_file_actions_addfchdir_np() argument
32 if (actions->__used == actions->__allocated in posix_spawn_file_actions_addfchdir_np()
33 && __posix_spawn_file_actions_realloc (actions) != 0) in posix_spawn_file_actions_addfchdir_np()
38 rec = &actions->__actions[actions->__used]; in posix_spawn_file_actions_addfchdir_np()
43 ++actions->__used; in posix_spawn_file_actions_addfchdir_np()
A Dtst-spawn-chdir.c72 add_chdir (posix_spawn_file_actions_t *actions, const char *path, in add_chdir() argument
78 (actions, tmpfd, path, O_DIRECTORY | O_RDONLY, 0), 0); in add_chdir()
80 (actions, tmpfd), 0); in add_chdir()
151 posix_spawn_file_actions_t actions; in do_test() local
152 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in do_test()
153 add_chdir (&actions, subdir_path, do_fchdir, 4); in do_test()
155 (&actions, 3, /* Arbitrary unused descriptor. */ in do_test()
160 add_chdir (&actions, "..", do_fchdir, 5); in do_test()
162 (&actions, STDOUT_FILENO, "output-file", in do_test()
174 TEST_COMPARE (posix_spawnp (&pid, "pwd", &actions, in do_test()
[all …]
A Dtst-posix_spawn-fd.c37 static posix_spawn_file_actions_t actions; variable
82 (&actions, fd, "/dev/null", O_RDONLY, 0); in addopen()
88 return posix_spawn_file_actions_adddup2 (&actions, fd, 1); in adddup2()
94 return posix_spawn_file_actions_adddup2 (&actions, 1, fd); in adddup2_reverse()
100 return posix_spawn_file_actions_addclose (&actions, fd); in addclose()
143 int ret = posix_spawn_file_actions_init (&actions); in do_test()
153 ret = posix_spawn_file_actions_destroy (&actions); in do_test()
A Dtst-spawn.c149 posix_spawn_file_actions_t actions; in do_test() local
194 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in do_test()
196 TEST_COMPARE (posix_spawn_file_actions_addclose (&actions, temp_fd1), 0); in do_test()
199 TEST_COMPARE (posix_spawn_file_actions_addopen (&actions, temp_fd3, in do_test()
208 TEST_COMPARE (posix_spawn_file_actions_adddup2 (&actions, temp_fd2, fd4), in do_test()
213 TEST_COMPARE (posix_spawn_file_actions_adddup2 (&actions, temp_fd5, in do_test()
236 TEST_COMPARE (posix_spawn (&pid, argv[1], &actions, NULL, spargv, environ), in do_test()
246 TEST_COMPARE (posix_spawn (NULL, argv[1], &actions, NULL, spargv, environ), in do_test()
250 TEST_COMPARE (posix_spawn_file_actions_destroy (&actions), 0); in do_test()

Completed in 9 milliseconds