]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305241
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 01:57:32 +0000 (01:57 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 01:57:32 +0000 (01:57 +0000)
commit47025c121aa7dac65253649685f905043217872f
tree364acde762ec68fd48037f015ccda7d49712c939
parent85e38145375e3042f65efa8cfe55ea5e3b6628f2
MFC r305241

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@305403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdio/fgetwln.c