carta

ferror(3) on FreeBSD

The text 4bfe774f3c2c, as FreeBSD 7.4-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now