Lines Matching defs:pipefd
74 _cleanup_close_pair_ int pipefd[2] = { -1, -1 };
81 if (pipe2(pipefd, O_CLOEXEC) < 0)
104 pipefd[1] = safe_close(pipefd[1]);
106 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) {
111 if (pipefd[0] != STDIN_FILENO)
112 pipefd[0] = safe_close(pipefd[0]);
144 pipefd[0] = safe_close(pipefd[0]);
145 r = pipefd[1];
146 pipefd[1] = -1;
154 _cleanup_close_pair_ int pipefd[2] = { -1, -1 };
161 if (pipe2(pipefd, O_CLOEXEC) < 0)
178 pipefd[0] = safe_close(pipefd[0]);
180 if (dup2(pipefd[1], STDOUT_FILENO) != STDOUT_FILENO) {
185 if (pipefd[1] != STDOUT_FILENO)
186 pipefd[1] = safe_close(pipefd[1]);
218 pipefd[1] = safe_close(pipefd[1]);
219 r = pipefd[0];
220 pipefd[0] = -1;