Searched refs:pipefd (Results 1 – 1 of 1) sorted by relevance
388 int pipefd[2] = {-1, -1}; in DFX_ExecDump() local391 if (pipe(pipefd) != 0) { in DFX_ExecDump()396 pipefd[0] = g_pipeFds[WRITE_TO_DUMP][0]; in DFX_ExecDump()397 pipefd[1] = g_pipeFds[WRITE_TO_DUMP][1]; in DFX_ExecDump()401 if (fcntl(pipefd[1], F_SETPIPE_SZ, writeLen) < writeLen) { in DFX_ExecDump()412 if (OHOS_TEMP_FAILURE_RETRY(writev(pipefd[1], iovs, 1)) != writeLen) { in DFX_ExecDump()416 OHOS_TEMP_FAILURE_RETRY(dup2(pipefd[0], STDIN_FILENO)); in DFX_ExecDump()417 if (pipefd[0] != STDIN_FILENO) { in DFX_ExecDump()418 syscall(SYS_close, pipefd[0]); in DFX_ExecDump()420 syscall(SYS_close, pipefd[1]); in DFX_ExecDump()