<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/glibc.git/manual, branch master</title>
<subtitle>GNU C Library
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/'/>
<updated>2026-02-26T16:43:30Z</updated>
<entry>
<title>manual: Document that EOPNOTSUPP and ENOTSUP are equal, not distinct (BZ 2363)</title>
<updated>2026-02-26T16:43:30Z</updated>
<author>
<name>Nicolas Boulenguez</name>
<email>nicolas@debian.org</email>
</author>
<published>2026-02-26T02:20:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=da5fc86c578353d91eed06ad4755eb7a822d554b'/>
<id>urn:sha1:da5fc86c578353d91eed06ad4755eb7a822d554b</id>
<content type='text'>
The section 2.1 of the glibc manual says that EWOULDBLOCK == EAGAIN,
but forgets to mention that ENOTSUP == EOPNOTSUPP.

https://sourceware.org/legacy-ml/libc-alpha/2019-08/msg00629.html
https://sourceware.org/bugzilla/show_bug.cgi?id=2363
https://bugs.debian.org/337013

Signed-off-by: Nicolas Boulenguez &lt;nicolas@debian.org&gt;
Reviewed-by: Adhemerval Zanella &lt;adhemerval.zanella@linaro.org&gt;
</content>
</entry>
<entry>
<title>malloc: alignment might change in future versions</title>
<updated>2026-02-26T16:35:05Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2026-02-26T16:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=64d851cef39a9cb743ca79ca4f00208b2a340f84'/>
<id>urn:sha1:64d851cef39a9cb743ca79ca4f00208b2a340f84</id>
<content type='text'>
This follows up on a comment by Wilco Dijkstra; see:
https://sourceware.org/pipermail/libc-alpha/2026-February/174934.html
* NEWS: Mention this.
* manual/memory.texi (Malloc Examples):
Say that alignment guarantee might change for small allocations.

Reviewed-by: Wilco Dijkstra  &lt;Wilco.Dijkstra@arm.com&gt;
Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Say malloc (0) != NULL is now common; resection</title>
<updated>2026-02-26T16:35:05Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2026-02-26T16:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=feda85454de3da5c353265adc6e31e1d8b8c9904'/>
<id>urn:sha1:feda85454de3da5c353265adc6e31e1d8b8c9904</id>
<content type='text'>
* manual/memory.texi (Portable Allocation):
New section, split off from Malloc Examples.
Say that almost every system follows glibc's example
in having successful malloc (0) return non-null;
AIX is the only exception nowadays.
Document fundamental alignment portability.
Have examples match the new text, and use NULL rather than 0.

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Document malloc alignment</title>
<updated>2026-02-26T16:35:05Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2026-02-26T16:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=b4b5c64c03abdb7498e4ab3a8fc4bafdc8d09eda'/>
<id>urn:sha1:b4b5c64c03abdb7498e4ab3a8fc4bafdc8d09eda</id>
<content type='text'>
* manual/memory.texi (Malloc Examples, Changing Block Size)
(Allocating Cleared Space):
Document the alignment of the returned value.

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Document max_align_t</title>
<updated>2026-02-26T16:35:05Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2026-02-26T16:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=d0348243f9317ed3647b6b14c4093065f67022d9'/>
<id>urn:sha1:d0348243f9317ed3647b6b14c4093065f67022d9</id>
<content type='text'>
* manual/lang.texi (Important Data Types): Mention max_align_t.

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>manual: Fix typo in documentation of iconv character set options</title>
<updated>2026-02-26T15:44:23Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2026-02-26T15:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=e1a036b1a2d315c8189295cc5500b6136c54885a'/>
<id>urn:sha1:e1a036b1a2d315c8189295cc5500b6136c54885a</id>
<content type='text'>
Reported-by: Andreas Schwab &lt;schwab@suse.de&gt;
</content>
</entry>
<entry>
<title>aarch64: Lock GCS status at startup</title>
<updated>2026-02-17T15:22:47Z</updated>
<author>
<name>Yury Khrustalev</name>
<email>yury.khrustalev@arm.com</email>
</author>
<published>2026-02-02T18:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=5061f524a2976daf3062dd34beae1d7d15502770'/>
<id>urn:sha1:5061f524a2976daf3062dd34beae1d7d15502770</id>
<content type='text'>
If GCS is enabled (see tunable glibc.cpu.aarch64_gcs), we lock all GCS
operations (including status, write on shadow stack, and push to shadow
stack) unless OPTIONAL policy is used.

Reviewed-by: Adhemerval Zanella  &lt;adhemerval.zanella@linaro.org&gt;
</content>
</entry>
<entry>
<title>malloc: Remove unused tcache code from unsorted bin scan</title>
<updated>2026-02-06T18:20:17Z</updated>
<author>
<name>Wilco Dijkstra</name>
<email>wilco.dijkstra@arm.com</email>
</author>
<published>2025-12-17T16:16:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=ea4c36c36bc1fcdc4683127edd2312cbdf540a45'/>
<id>urn:sha1:ea4c36c36bc1fcdc4683127edd2312cbdf540a45</id>
<content type='text'>
Now that fastbins have been removed, there is no need to add chunks
to tcache during an unsorted scan.  Small blocks can only be added
to unsorted as a result of a remainder chunk split off a larger block,
so there is no point in checking for additional chunks to place in
tcache.  The last remainder is checked first, and will be used if it
is large enough or an exact fit.  The unsorted bin scan becomes simpler
as a result.  Remove the tcache_unsorted_limit tunable and manual entries.

Reviewed-by: Adhemerval Zanella  &lt;adhemerval.zanella@linaro.org&gt;
</content>
</entry>
<entry>
<title>math: Order signed zeros in f{max,min}mag{f,l,f128}</title>
<updated>2026-02-02T17:35:44Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2026-01-23T13:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=822bb1127851fe2b3817481085220cd73a8998ad'/>
<id>urn:sha1:822bb1127851fe2b3817481085220cd73a8998ad</id>
<content type='text'>
The functions are documented to behave like fmax/fmin when the
arguments have the same absolute value.

Checked on x86_64-linux-gnu, aarch64-linux-gnu, i686-linux-gnu,
arm-linux-gnueabihf, powerpc64le-linux-gnu,
riscv64-linux-gnu-rv64imafdc-lp64d, and loongarch64-linux-gnuf64.

Reviewed-by: Wilco Dijkstra  &lt;Wilco.Dijkstra@arm.com&gt;
</content>
</entry>
<entry>
<title>math: Order signed zeros in f{max,min}{f,l,f128}</title>
<updated>2026-02-02T17:35:19Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2026-01-23T13:02:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=bdb07a03fb2f7601ecba7264adb452d9355a93ef'/>
<id>urn:sha1:bdb07a03fb2f7601ecba7264adb452d9355a93ef</id>
<content type='text'>
The C standard (at least from C99 until C23) does not require
fmin/fmax to order zeros by their sign, so glibc's previous behavior
was entirely standards-conforming.  However, the standard does
recommend that zeros be ordered in a footnote, saying:

"If possible, fmax is sensitive to the sign of zero, for example
fmax(−0.0, +0.0) ideally returns +0."

As this is indeed possible (and not too complicated), implement it as
a quality-of-implementation improvement.  It also remove possible
deviations between architectures, where for some architectures that
has direct mapping instruction (USE_FMA*_BUILTIN) they already do
the ordering.

Checked on x86_64-linux-gnu, aarch64-linux-gnu, i686-linux-gnu,
arm-linux-gnueabihf, powerpc64le-linux-gnu,
riscv64-linux-gnu-rv64imafdc-lp64d, and loongarch64-linux-gnuf64.

Co-authored-by: James Y Knight &lt;jyknight@google.com&gt;
Reviewed-by: Wilco Dijkstra  &lt;Wilco.Dijkstra@arm.com&gt;
</content>
</entry>
</feed>
