]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r304607,r304641,r304819,r304811
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 Aug 2016 10:34:01 +0000 (10:34 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 Aug 2016 10:34:01 +0000 (10:34 +0000)
commitb1a4149f976c66d281b93cda77264c60d5fe4964
treeec303e5e12bcee42a6b93b2ab65b9c4ba65faba5
parent645ef8eda244825e78e9f4300508dd39cf1364df
MFC r304607,r304641,r304819,r304811

1) Don't forget to set __SERR on __slbexpand() error.

2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
encoding errors and ignores them all.
One of affected encoding example: US-ASCII

3)  Original fgetln() from 44lite return success for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR:     212033

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