stdio: Clarify logic