carta

ferror(3) on FreeBSD

The text 2e4c7d19a214, as FreeBSD 9.0-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now