Searched refs:stdin_saved (Results 1 – 1 of 1) sorted by relevance
108 stdin_saved = dup(STDIN_FILENO); in SetUp()109 if (stdin_saved < 0) err(1, "failed to dup stdin"); in SetUp()121 if (stdin_saved == -1) return; in TearDown()122 if (!dup2(stdin_saved, STDIN_FILENO)) warn("failed to restore stdin"); in TearDown()124 static_cast<void>(close(stdin_saved)); in TearDown()130 int stdin_saved = -1; member