The c3270 port uses freopen to re-open the standard streams. I don't know if other ports use it, but it would be useful if this was part of zoslib.