The text ccc831eb1db1, as FreeBSD 7.1-RELEASE shipped it.
check and reset stream status
fileno(3) on FreeBSD now