Lines Matching refs:ofd
142 int ofd[2];
157 if (_pipe (ofd, 4096, O_BINARY | O_NOINHERIT) < 0)
162 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
181 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
200 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
222 close (ofd[0]);
233 close (ofd[1]);
240 fd[1] = ofd[1];
247 int ofd[2];
264 if (pipe (ofd) < 0)
269 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
287 ofd[0], STDIN_FILENO))
294 && (err = posix_spawn_file_actions_addclose (&actions, ofd[0]))
300 && (err = posix_spawn_file_actions_addclose (&actions, ofd[1]))
355 close (ofd[0]);
356 close (ofd[1]);
374 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
376 && (!pipe_stdin || close (ofd[0]) >= 0)
378 && (!pipe_stdin || close (ofd[1]) >= 0)
415 close (ofd[0]);
416 close (ofd[1]);
427 close (ofd[0]);
434 fd[1] = ofd[1];