Lines Matching refs:result

32   struct support_subprocess result;  in support_subprocess_init()  local
34 xpipe (result.stdout_pipe); in support_subprocess_init()
35 TEST_VERIFY (result.stdout_pipe[0] > STDERR_FILENO); in support_subprocess_init()
36 TEST_VERIFY (result.stdout_pipe[1] > STDERR_FILENO); in support_subprocess_init()
38 xpipe (result.stderr_pipe); in support_subprocess_init()
39 TEST_VERIFY (result.stderr_pipe[0] > STDERR_FILENO); in support_subprocess_init()
40 TEST_VERIFY (result.stderr_pipe[1] > STDERR_FILENO); in support_subprocess_init()
45 return result; in support_subprocess_init()
51 struct support_subprocess result = support_subprocess_init (); in support_subprocess() local
53 result.pid = xfork (); in support_subprocess()
54 if (result.pid == 0) in support_subprocess()
56 xclose (result.stdout_pipe[0]); in support_subprocess()
57 xclose (result.stderr_pipe[0]); in support_subprocess()
58 xdup2 (result.stdout_pipe[1], STDOUT_FILENO); in support_subprocess()
59 xdup2 (result.stderr_pipe[1], STDERR_FILENO); in support_subprocess()
60 xclose (result.stdout_pipe[1]); in support_subprocess()
61 xclose (result.stderr_pipe[1]); in support_subprocess()
65 xclose (result.stdout_pipe[1]); in support_subprocess()
66 xclose (result.stderr_pipe[1]); in support_subprocess()
68 return result; in support_subprocess()
74 struct support_subprocess result = support_subprocess_init (); in support_subprogram() local
80 xposix_spawn_file_actions_addclose (&fa, result.stdout_pipe[0]); in support_subprogram()
81 xposix_spawn_file_actions_addclose (&fa, result.stderr_pipe[0]); in support_subprogram()
82 xposix_spawn_file_actions_adddup2 (&fa, result.stdout_pipe[1], STDOUT_FILENO); in support_subprogram()
83 xposix_spawn_file_actions_adddup2 (&fa, result.stderr_pipe[1], STDERR_FILENO); in support_subprogram()
84 xposix_spawn_file_actions_addclose (&fa, result.stdout_pipe[1]); in support_subprogram()
85 xposix_spawn_file_actions_addclose (&fa, result.stderr_pipe[1]); in support_subprogram()
87 result.pid = xposix_spawn (file, &fa, NULL, argv, environ); in support_subprogram()
89 xclose (result.stdout_pipe[1]); in support_subprogram()
90 xclose (result.stderr_pipe[1]); in support_subprogram()
92 return result; in support_subprogram()