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