carta

ferror(3) on FreeBSD

The text 04da0b9caf6f, as FreeBSD 10.1-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now