carta

feof(3) on FreeBSD

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

check and reset stream status

feof(3) on FreeBSD now