Lines Matching refs:ofd
125 int ofd[2];
142 if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0)
147 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
166 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
185 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
227 close (ofd[0]);
238 close (ofd[1]);
246 fd[1] = ofd[1];
253 int ofd[2];
266 if (pipe_safer (ofd) < 0)
271 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
288 ofd[0], STDIN_FILENO))
295 && (err = posix_spawn_file_actions_addclose (&actions, ofd[0]))
301 && (err = posix_spawn_file_actions_addclose (&actions, ofd[1]))
356 close (ofd[0]);
357 close (ofd[1]);
371 close (ofd[0]);
378 fd[1] = ofd[1];