carta

clearerr(3) on FreeBSD

The text e4c0bc63d282, as FreeBSD 9.3-RELEASE shipped it.

check and reset stream status

clearerr(3) on FreeBSD now