<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdio, branch releng/14.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-08-25T13:57:56Z</updated>
<entry>
<title>lib: Fix calls that naively set F_SETFD.</title>
<updated>2025-08-25T13:57:56Z</updated>
<author>
<name>Ricardo Branco</name>
<email>rbranco@suse.de</email>
</author>
<published>2025-07-14T20:10:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a58eb4d233bfdddff243faec071f8dc18d3e5492'/>
<id>urn:sha1:a58eb4d233bfdddff243faec071f8dc18d3e5492</id>
<content type='text'>
With the recent inclusion of the FD_CLOFORK and FD_RESOLVE_BENEATH flags,
we must avoid clearing them when setting only FD_CLOEXEC.

Signed-off-by: Ricardo Branco &lt;rbranco@suse.de&gt;

Reviewed by:	kib, markj
MFC after:	1 month
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1766

(cherry picked from commit 8768b60de16a3d72a8783ec1241a711a782a36a9)
</content>
</entry>
<entry>
<title>stdio: Fix bug in integer-parsing FSM</title>
<updated>2025-08-14T14:00:09Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-08T22:17:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=89906b9b20fd0aaf33e4eaea14b99190179ad572'/>
<id>urn:sha1:89906b9b20fd0aaf33e4eaea14b99190179ad572</id>
<content type='text'>
If we encounter a zero in the havezero state, we should assume octal,
just like we would if we encountered any other digit below 8.

MFC after:	1 week
PR:		288440
Fixes:		d9dc1603d6e4 ("libc: Implement N2630.")
Reviewed by:	mandree
Differential Revision:	https://reviews.freebsd.org/D51832

(cherry picked from commit 602e98dd35ea5041b800fb56a2b1ac34f6649310)
</content>
</entry>
<entry>
<title>libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c</title>
<updated>2025-03-26T01:28:39Z</updated>
<author>
<name>Ahmad Khalifa</name>
<email>ahmadkhalifa570@gmail.com</email>
</author>
<published>2024-08-31T03:42:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ce4f021827a718005e44db693ee5aee7ed175b9'/>
<id>urn:sha1:2ce4f021827a718005e44db693ee5aee7ed175b9</id>
<content type='text'>
With the %b format specifier we need enough space to write a uintmax_t
in binary.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1400

(cherry picked from commit d4f9e326393e3298062a58338e2c94ef6baff8b5)
</content>
</entry>
<entry>
<title>fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__</title>
<updated>2024-12-27T15:48:27Z</updated>
<author>
<name>Graham Percival</name>
<email>gperciva@tarsnap.com</email>
</author>
<published>2024-10-06T22:57:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=334e641d3861a866817a91a85b0bc3ec76936799'/>
<id>urn:sha1:334e641d3861a866817a91a85b0bc3ec76936799</id>
<content type='text'>
This matches the man page for qsort_s().

PR:		281828
Signed-off-by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Sponsored by:	Tarsnap Backup Inc.

(cherry picked from commit d0a3fd34a05794bc5cbf48709001a78e9f85169a)
</content>
</entry>
<entry>
<title>fileno(3): set errno when returning -1</title>
<updated>2024-12-03T00:39:22Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-11-28T22:12:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9fb5c02356b0717aa3cdde3c19adc6d3f0521225'/>
<id>urn:sha1:9fb5c02356b0717aa3cdde3c19adc6d3f0521225</id>
<content type='text'>
PR:	283014

(cherry picked from commit 7cd756ff4fe7e65a9a3f588904998bf6f4b37623)
</content>
</entry>
<entry>
<title>stdio(3): correct summary information for fileno(3)</title>
<updated>2024-12-03T00:39:22Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-11-28T22:11:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb0014d04e845f1cec15981a4ca1186cc9dfdb26'/>
<id>urn:sha1:fb0014d04e845f1cec15981a4ca1186cc9dfdb26</id>
<content type='text'>
(cherry picked from commit 35ac34a23bc0e54eb2a2314b906c6e7769dee7f0)
</content>
</entry>
<entry>
<title>libc: indicate existing functions that are POSIX 2024</title>
<updated>2024-11-21T00:45:07Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-11-14T19:30:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=098ed26bf4564362c4478b8c92b11ab9ca074da1'/>
<id>urn:sha1:098ed26bf4564362c4478b8c92b11ab9ca074da1</id>
<content type='text'>
Reviewed by:	brooks, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47581

(cherry picked from commit dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16)
</content>
</entry>
<entry>
<title>libc: fix access mode tests in fmemopen(3)</title>
<updated>2024-10-29T19:11:38Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-10-23T13:41:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fbd6e0e3ca8e69d2d3789ecda6e4dd76c34e06a'/>
<id>urn:sha1:4fbd6e0e3ca8e69d2d3789ecda6e4dd76c34e06a</id>
<content type='text'>
Previously a stream opened as read-only could be written to.  Add a test
case for the fix.

Also correct another incorrect access mode check that worked by
accident, and improve the tests for that.

PR:		281953
Reported by:	Erkki Moorits, fuz
Reviewed by:	fuz, khng (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47265

(cherry picked from commit 0953460ce149e6f384aafbcb1e6213dfbf8f6a16)
(cherry picked from commit 6b9f7133aba44189d9625c352bc2c2a59baf18ef)
</content>
</entry>
<entry>
<title>printf(): Save errno earlier.</title>
<updated>2024-10-06T09:12:49Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-09-20T16:30:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2403e6d5aa9e8ad71c472639af7e903f16ce3b27'/>
<id>urn:sha1:2403e6d5aa9e8ad71c472639af7e903f16ce3b27</id>
<content type='text'>
The manual page says %m is replaced with “the string representation of
the error code stored in the errno variable at the beginning of the
call”.  However, we don't actually save `errno` until fairly late in
`__vfprintf()`.  Make sure it is saved before we do anything that
might perturb `errno`.

MFC after:	1 week
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D46718

(cherry picked from commit 74f1007fcc838501c74a633792c3f01833bf65e1)
</content>
</entry>
<entry>
<title>libc printf_render_errno(): do not use strerror()</title>
<updated>2024-04-30T00:48:10Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-23T17:15:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=09bcfbd1aede8f7596f14a95fd408aa79a239a9c'/>
<id>urn:sha1:09bcfbd1aede8f7596f14a95fd408aa79a239a9c</id>
<content type='text'>
(cherry picked from commit aa66995b4c804cbb579f71645d97fe282a798bfc)
</content>
</entry>
</feed>
