Lines Matching refs:pipefd
222 int pipefd[2] = {-1, -1};
225 if (syscall(SYS_pipe2, pipefd, 0) != 0) {
230 pipefd[0] = g_pipeFds[WRITE_TO_DUMP][0];
231 pipefd[1] = g_pipeFds[WRITE_TO_DUMP][1];
235 if (fcntl(pipefd[1], F_SETPIPE_SZ, writeLen) < writeLen) {
246 if (OHOS_TEMP_FAILURE_RETRY(writev(pipefd[1], iovs, 1)) != writeLen) {
250 OHOS_TEMP_FAILURE_RETRY(dup2(pipefd[0], STDIN_FILENO));
251 if (pipefd[0] != STDIN_FILENO) {
252 syscall(SYS_close, pipefd[0]);
254 syscall(SYS_close, pipefd[1]);