Lines Matching refs:p_fd
4783 struct pipe_ref p_fd[3]; in _PyPopen() local
4843 pipe_err = pipe((int *)&p_fd[i++]); in _PyPopen()
4849 close(p_fd[i].wr); in _PyPopen()
4850 close(p_fd[i].rd); in _PyPopen()
4862 if (dup2(p_fd[0].rd, 0) == 0) in _PyPopen()
4864 close(p_fd[0].rd); in _PyPopen()
4865 i = fcntl(p_fd[0].wr, F_GETFD, 0); in _PyPopen()
4866 fcntl(p_fd[0].wr, F_SETFD, i | FD_CLOEXEC); in _PyPopen()
4867 if ((p_s[0] = fdopen(p_fd[0].wr, wr_mode)) == NULL) in _PyPopen()
4869 close(p_fd[0].wr); in _PyPopen()
4881 if (dup2(p_fd[1].wr, 1) == 1) in _PyPopen()
4883 close(p_fd[1].wr); in _PyPopen()
4884 i = fcntl(p_fd[1].rd, F_GETFD, 0); in _PyPopen()
4885 fcntl(p_fd[1].rd, F_SETFD, i | FD_CLOEXEC); in _PyPopen()
4886 if ((p_s[1] = fdopen(p_fd[1].rd, rd_mode)) == NULL) in _PyPopen()
4888 close(p_fd[1].rd); in _PyPopen()
4904 if (dup2(p_fd[2].wr, 2) == 2) in _PyPopen()
4906 close(p_fd[2].wr); in _PyPopen()
4907 i = fcntl(p_fd[2].rd, F_GETFD, 0); in _PyPopen()
4908 fcntl(p_fd[2].rd, F_SETFD, i | FD_CLOEXEC); in _PyPopen()
4909 if ((p_s[2] = fdopen(p_fd[2].rd, rd_mode)) == NULL) in _PyPopen()
4911 close(p_fd[2].rd); in _PyPopen()
4965 close(p_fd[i].rd); in _PyPopen()
4966 close(p_fd[i].wr); in _PyPopen()