HomeFreeBSD

fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete

Description

fgetwc(3) may set both SEOF and SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !sfeof(fp)) and must relay on sferror(fp) with
__SERR clearing/restoring.

MFC after: 7 days

Details

Provenance
acheAuthored on
Parents
rS305240: cxgbe/cxgbei: Retire all DDP related code from cxgbei and switch to
Branches
Unknown
Tags
Unknown