Lines Matching refs:moved_to
7800 int moved_to; member
7809 sq[i].moved_to = moved; in append_squirrel()
7816 int moved_to; in add_squirrel() local
7822 if (fd == sq[i].moved_to) { in add_squirrel()
7823 sq[i].moved_to = dup_CLOEXEC(sq[i].moved_to, avoid_fd); in add_squirrel()
7824 debug_printf_redir("redirect_fd %d: already busy, moving to %d\n", fd, sq[i].moved_to); in add_squirrel()
7825 if (sq[i].moved_to < 0) /* what? */ in add_squirrel()
7837 moved_to = dup_CLOEXEC(fd, avoid_fd); in add_squirrel()
7838 …g_printf_redir("redirect_fd %d: previous fd is moved to %d (-1 if it was closed)\n", fd, moved_to); in add_squirrel()
7839 if (moved_to < 0 && errno != EBADF) in add_squirrel()
7841 return append_squirrel(sq, i, fd, moved_to); in add_squirrel()
7945 if (sq[i].moved_to >= 0) { in restore_redirects()
7947 debug_printf_redir("restoring redirected fd from %d to %d\n", sq[i].moved_to, sq[i].orig_fd); in restore_redirects()
7948 xmove_fd(sq[i].moved_to, sq[i].orig_fd); in restore_redirects()
8001 if (fd == sq[i].moved_to) in internally_opened_fd()