carta

ferror_unlocked(3) on FreeBSD

The text 4bfcccdb1406, as FreeBSD 8.2-RELEASE shipped it.

check and reset stream status

ferror_unlocked(3) on FreeBSD now