carta

ferror(3) on FreeBSD

The text f74c4e05ed5e, as FreeBSD 12.1-RELEASE shipped it.

check and reset stream status

ferror(3) on FreeBSD now