<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/stdio, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2018-02-28T02:49:48Z</updated>
<entry>
<title>MFC r329848:</title>
<updated>2018-02-28T02:49:48Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-02-28T02:49:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=333e9ced4a87819f6000bcebe77db757e4064467'/>
<id>urn:sha1:333e9ced4a87819f6000bcebe77db757e4064467</id>
<content type='text'>
__printf_render_int(): small type change to match use.

Variable l is consistently used as an int rather than a char.
Sort names while here.

Obtained from:	Apple's Libc-1244.30.3
</content>
</entry>
<entry>
<title>MFC r325030:</title>
<updated>2017-11-04T05:17:03Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2017-11-04T05:17:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=804785977ec4291d422e9577285c2c2d0e3b4140'/>
<id>urn:sha1:804785977ec4291d422e9577285c2c2d0e3b4140</id>
<content type='text'>
Remove redundant sys/cdefs.h include.
</content>
</entry>
<entry>
<title>MFC r318705:</title>
<updated>2017-07-18T08:33:29Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-18T08:33:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c58c3b0bd66aba8f9a96340185194f0b490a080a'/>
<id>urn:sha1:c58c3b0bd66aba8f9a96340185194f0b490a080a</id>
<content type='text'>
fopen(3): make manlint fixes

- Break on new lines.
- Use .Dv with NULL.
- Rewrap lines as necessary/when possible.
</content>
</entry>
<entry>
<title>MFC r320472,r320508,r320509:</title>
<updated>2017-07-17T14:09:34Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2017-07-17T14:09:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1aad44dbd7ec77df8137d3e510d0a200256a02d3'/>
<id>urn:sha1:1aad44dbd7ec77df8137d3e510d0a200256a02d3</id>
<content type='text'>
Make stdio deferred cancel-safe.

Requested by:	eugen
</content>
</entry>
<entry>
<title>MFC r305413</title>
<updated>2016-09-08T07:14:48Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-09-08T07:14:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=11d068f0199950d7bc31cf3acf842cf0294a72cc'/>
<id>urn:sha1:11d068f0199950d7bc31cf3acf842cf0294a72cc</id>
<content type='text'>
Fix error handling.
</content>
</entry>
<entry>
<title>MFC r305406,r305409,r305412</title>
<updated>2016-09-08T05:13:50Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-09-08T05:13:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=983e3d1a9e00a0a31453ba2fd74a5bd984e6f68f'/>
<id>urn:sha1:983e3d1a9e00a0a31453ba2fd74a5bd984e6f68f</id>
<content type='text'>
1) Fix errors handling.

2) Prevent out of bounds access to ws[-1] (passed buffer) which happens
when the first mb sequence is incomplete and there are not enougn chars in
the read buffer. ws[-1] may lead to memory faults or false results, in
case the memory here contains '\n'.

3) Fix n == 1 case. Here should be no physical read (fill buffer) attempt
(we read n - 1 chars with the room for NUL, see fgets()),
and no NULL return.
</content>
</entry>
<entry>
<title>MFC r305241</title>
<updated>2016-09-05T01:57:32Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-09-05T01:57:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3b48425e45930dfc09afbda2d3b16a1fac39b70e'/>
<id>urn:sha1:3b48425e45930dfc09afbda2d3b16a1fac39b70e</id>
<content type='text'>
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 &amp;&amp; !__sfeof(fp)) and must relay on __sferror(fp) with
__SERR clearing/restoring.
</content>
</entry>
<entry>
<title>MFC r305219</title>
<updated>2016-09-04T00:34:15Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-09-04T00:34:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ead6c07827dbf30cb0378c8cd23e8684014aa01a'/>
<id>urn:sha1:ead6c07827dbf30cb0378c8cd23e8684014aa01a</id>
<content type='text'>
If error happens, don't overwrite original errno comes from __mbrtowc()
and __srefill().
</content>
</entry>
<entry>
<title>MFC r304607,r304641,r304819,r304811</title>
<updated>2016-08-27T10:34:01Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-08-27T10:34:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=46164b0d993aacf77eb8485f7bb8ca2fca031e02'/>
<id>urn:sha1:46164b0d993aacf77eb8485f7bb8ca2fca031e02</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>MFC r304810</title>
<updated>2016-08-27T09:58:06Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2016-08-27T09:58:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=470eb23810078f844e589809c921365b8780e5ac'/>
<id>urn:sha1:470eb23810078f844e589809c921365b8780e5ac</id>
<content type='text'>
Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.
</content>
</entry>
</feed>
