Lines Matching refs:two_fd
5677 struct squirrel two_fd[]; member
5689 for (i = 0; sq->two_fd[i].orig_fd != EMPTY; i++) { in add_squirrel_closed()
5691 if (fd == sq->two_fd[i].orig_fd) { in add_squirrel_closed()
5703 sq->two_fd[i].orig_fd = fd; in add_squirrel_closed()
5704 sq->two_fd[i].moved_to = CLOSED; in add_squirrel_closed()
5753 for (i = 0; sq->two_fd[i].orig_fd != EMPTY; i++) { in save_fd_on_redirect()
5755 if (fd == sq->two_fd[i].moved_to) { in save_fd_on_redirect()
5757 sq->two_fd[i].moved_to = new_fd; in save_fd_on_redirect()
5763 if (fd == sq->two_fd[i].orig_fd) { in save_fd_on_redirect()
5778 sq->two_fd[i].moved_to = new_fd; in save_fd_on_redirect()
5779 sq->two_fd[i].orig_fd = fd; in save_fd_on_redirect()
5806 if (sq) for (i = 0; i < sq->pair_count && sq->two_fd[i].orig_fd != EMPTY; i++) { in internally_opened_fd()
5807 if (fd == sq->two_fd[i].moved_to) in internally_opened_fd()
5934 sv = ckzalloc(sizeof(*sv) + sizeof(sv->two_fd[0])); in pushfd()
5936 sv->two_fd[0].orig_fd = fd; in pushfd()
5937 sv->two_fd[0].moved_to = CLOSED; in pushfd()
5962 sv = ckzalloc(sizeof(*sv) + i * sizeof(sv->two_fd[0])); in pushredir()
5965 sv->two_fd[i].orig_fd = sv->two_fd[i].moved_to = EMPTY; in pushredir()
5985 int fd = rp->two_fd[i].orig_fd; in popredir()
5986 int copy = rp->two_fd[i].moved_to; in popredir()