carta

ferror(3) on FreeBSD

The text cb856c39e4af, as FreeBSD 12.0-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now