Lines Matching defs:ofd
120 int ofd[2];
137 if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0)
142 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
161 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
180 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
222 close (ofd[0]);
233 close (ofd[1]);
241 fd[1] = ofd[1];
248 int ofd[2];
261 if (pipe_safer (ofd) < 0)
266 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
283 ofd[0], STDIN_FILENO))
290 && (err = posix_spawn_file_actions_addclose (&actions, ofd[0]))
296 && (err = posix_spawn_file_actions_addclose (&actions, ofd[1]))
351 close (ofd[0]);
352 close (ofd[1]);
366 close (ofd[0]);
373 fd[1] = ofd[1];