Lines Matching refs:actions
152 posix_spawn_file_actions_t actions;
177 if ((err = posix_spawn_file_actions_init (&actions)) != 0
179 (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
180 || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
181 || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
186 … || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
189 posix_spawn_file_actions_destroy (&actions);
202 posix_spawn_file_actions_destroy (&actions);
279 posix_spawn_file_actions_t actions;
306 if ((err = posix_spawn_file_actions_init (&actions)) != 0
308 …(err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) !…
309 … || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
312 posix_spawn_file_actions_destroy (&actions);
317 posix_spawn_file_actions_destroy (&actions);
422 posix_spawn_file_actions_t actions;
423 if (posix_spawn_file_actions_init (&actions) != 0)
425 if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
463 posix_spawn_file_actions_t actions;
464 if (posix_spawn_file_actions_init (&actions) != 0)
466 if (posix_spawn_file_actions_adddup2 (&actions, 10000000, 2) == 0)
505 posix_spawn_file_actions_t actions;
506 if (posix_spawn_file_actions_init (&actions) != 0)
508 if (posix_spawn_file_actions_addopen (&actions, 10000000, "foo", 0, O_RDONLY)