Lines Matching refs:rd_fd
616 int rd_fd; /* fd to redirect */ member
3616 r->rd_fd, redir_table[r->rd_type].descrip); in free_pipe()
4383 redir->rd_fd = (fd == -1) ? redir_table[style].default_fd : fd; in parse_redirect()
4385 debug_printf_parse("redirect type %d %s\n", redir->rd_fd, in parse_redirect()
4394 redir->rd_fd, redir->rd_dup); in parse_redirect()
7737 close(redir->rd_fd); /* often saves dup2+close in xmove_fd */ in setup_heredoc()
7739 xmove_fd(pair.rd, redir->rd_fd); in setup_heredoc()
7774 close(redir->rd_fd); /* read side of the pipe */ in setup_heredoc()
8019 save_fd_on_redirect(redir->rd_fd, /*avoid:*/ 0, sqp); in setup_redirects()
8054 if (newfd == redir->rd_fd && sqp) { in setup_redirects()
8068 if (newfd == redir->rd_fd) in setup_redirects()
8075 closed = save_fd_on_redirect(redir->rd_fd, /*avoid:*/ newfd, sqp); in setup_redirects()
8081 close(redir->rd_fd); in setup_redirects()
8095 xdup2(newfd, redir->rd_fd); in setup_redirects()