The text e4c0bc63d282, as FreeBSD 9.3-RELEASE shipped it.
check and reset stream status
ferror(3) on FreeBSD now