carta

ferror_unlocked(3) on FreeBSD

The text ffb040e77cc0, as FreeBSD 12.3-RELEASE shipped it.

check and reset stream status

ferror_unlocked(3) on FreeBSD now