carta

ferror(3) on FreeBSD

The text bf96ae97e0a8, as FreeBSD 8.4-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now