<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdio, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libc: drop NO_FP_LIBC support</title>
<updated>2026-01-17T06:43:40+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2026-01-17T06:41:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8e6843db9bc5af14b0ee631081ecaf1f02ce821a'/>
<id>8e6843db9bc5af14b0ee631081ecaf1f02ce821a</id>
<content type='text'>
NO_FP_LIBC was added in 2004 to save space by disabling FP support in
*printf()/*scanf(). The size benefit is negligible on modern systems
and conflicts with assumptions made by current base utilities.

Remove the option and always build libc with floating-point support.

Reported by:	Oskar Holmlund &lt;eovholmlund at gmail com&gt;
MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NO_FP_LIBC was added in 2004 to save space by disabling FP support in
*printf()/*scanf(). The size benefit is negligible on modern systems
and conflicts with assumptions made by current base utilities.

Remove the option and always build libc with floating-point support.

Reported by:	Oskar Holmlund &lt;eovholmlund at gmail com&gt;
MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>stdio: Fix bug in integer-parsing FSM</title>
<updated>2025-08-08T22:46:03+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-08T22:17:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=602e98dd35ea5041b800fb56a2b1ac34f6649310'/>
<id>602e98dd35ea5041b800fb56a2b1ac34f6649310</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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: Drop gets() from symbol map</title>
<updated>2025-08-02T17:56:35+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-02T17:56:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7cde6868f80b07be449c12e180e81545347d6279'/>
<id>7cde6868f80b07be449c12e180e81545347d6279</id>
<content type='text'>
We have an explicit __sym_compat() entry for the legacy implementation.

Fixes:		7381dcc9eeb7
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D51701
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have an explicit __sym_compat() entry for the legacy implementation.

Fixes:		7381dcc9eeb7
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D51701
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: Fix calls that naively set F_SETFD.</title>
<updated>2025-07-17T17:00:32+00:00</updated>
<author>
<name>Ricardo Branco</name>
<email>rbranco@suse.de</email>
</author>
<published>2025-07-14T20:10:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8768b60de16a3d72a8783ec1241a711a782a36a9'/>
<id>8768b60de16a3d72a8783ec1241a711a782a36a9</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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: mkostemp(3) should support O_CLOFORK</title>
<updated>2025-07-08T15:43:39+00:00</updated>
<author>
<name>Ricardo Branco</name>
<email>rbranco@suse.de</email>
</author>
<published>2025-07-07T16:05:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9911028f53d5c7504256289d3e56f6592a5a1247'/>
<id>9911028f53d5c7504256289d3e56f6592a5a1247</id>
<content type='text'>
Reviewed by:	kib, markj
MFC after:	1 month
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1758
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	kib, markj
MFC after:	1 month
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1758
</pre>
</div>
</content>
</entry>
<entry>
<title>fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__</title>
<updated>2024-12-06T18:20:19+00:00</updated>
<author>
<name>Graham Percival</name>
<email>gperciva@tarsnap.com</email>
</author>
<published>2024-10-06T22:57:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d0a3fd34a05794bc5cbf48709001a78e9f85169a'/>
<id>d0a3fd34a05794bc5cbf48709001a78e9f85169a</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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c</title>
<updated>2024-11-29T21:38:36+00:00</updated>
<author>
<name>Ahmad Khalifa</name>
<email>ahmadkhalifa570@gmail.com</email>
</author>
<published>2024-08-31T03:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d4f9e326393e3298062a58338e2c94ef6baff8b5'/>
<id>d4f9e326393e3298062a58338e2c94ef6baff8b5</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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>fileno(3): set errno when returning -1</title>
<updated>2024-11-29T15:25:32+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-11-28T22:12:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7cd756ff4fe7e65a9a3f588904998bf6f4b37623'/>
<id>7cd756ff4fe7e65a9a3f588904998bf6f4b37623</id>
<content type='text'>
as required by IEEE Std 1003.1™-2024.

PR:	283014
Reported by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47834
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as required by IEEE Std 1003.1™-2024.

PR:	283014
Reported by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47834
</pre>
</div>
</content>
</entry>
<entry>
<title>stdio(3): correct summary information for fileno(3)</title>
<updated>2024-11-29T15:25:31+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-11-28T22:11:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=35ac34a23bc0e54eb2a2314b906c6e7769dee7f0'/>
<id>35ac34a23bc0e54eb2a2314b906c6e7769dee7f0</id>
<content type='text'>
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47834
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47834
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: indicate existing functions that are POSIX 2024</title>
<updated>2024-11-15T02:32:20+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-11-14T19:30:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16'/>
<id>dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16</id>
<content type='text'>
Reviewed by:	brooks, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47581
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	brooks, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47581
</pre>
</div>
</content>
</entry>
</feed>
