Searched refs:old_stdout (Results 1 – 4 of 4) sorted by relevance
84 if (ctx->old_stdout != INVALID_FD) { in cleanup_test_output()85 IGNORE_RETVAL(dup2(ctx->old_stdout, STDOUT_FILENO)); in cleanup_test_output()86 ctx->old_stdout = INVALID_FD; in cleanup_test_output()114 ctx->old_stdout = dup(STDOUT_FILENO); in setup_test_output()115 if (ctx->old_stdout < 0) { in setup_test_output()116 ctx->old_stdout = INVALID_FD; in setup_test_output()140 ctx->output_file = fdopen(ctx->old_stdout, "w"); in setup_test_output()183 ctx.old_stdout = INVALID_FD; in libusb_testlib_run_tests()
56 int old_stdout; member
55 static int old_stdout; variable129 old_stdout = dup(STDOUT_FILENO); in create_subpipe()130 if (old_stdout < 0) in create_subpipe()251 if (dup2(old_stdout, STDOUT_FILENO) < 0) in end_of_output_subpipe()253 close(old_stdout); in end_of_output_subpipe()
180 old_stdout = sys.stdout196 sys.stdout = old_stdout