Lines Matching refs:saved_stdout
568 _cleanup_close_ int fd = -1, saved_stdin = -1, saved_stdout = -1;
578 saved_stdout = fcntl(STDOUT_FILENO, F_DUPFD, 3);
579 if (saved_stdout < 0)
610 *_saved_stdout = saved_stdout;
612 saved_stdin = saved_stdout = -1;
634 static int restore_confirm_stdio(int *saved_stdin, int *saved_stdout) {
638 assert(saved_stdout);
646 if (*saved_stdout >= 0)
647 if (dup2(*saved_stdout, STDOUT_FILENO) < 0)
651 *saved_stdout = safe_close(*saved_stdout);
657 int saved_stdout = -1, saved_stdin = -1, r;
660 r = setup_confirm_stdio(&saved_stdin, &saved_stdout);
670 restore_confirm_stdio(&saved_stdin, &saved_stdout);