carta

feof(3) on FreeBSD

The text eabffcd81be9, as FreeBSD 13.2-RELEASE shipped it.

check and reset stream status

feof(3) on FreeBSD now