<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/string, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-22T22:58:54Z</updated>
<entry>
<title>libc/fls*.c: use *_WIDTH macros over CHAR_BIT * sizeof(type)</title>
<updated>2026-04-22T22:58:54Z</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2026-04-22T22:47:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc537e970d7e52d278952915b0b1842dfbb03afc'/>
<id>urn:sha1:bc537e970d7e52d278952915b0b1842dfbb03afc</id>
<content type='text'>
Makes the code easier to understand.

MFC after:	1 week
</content>
</entry>
<entry>
<title>bcmp(3): update manpage to following the Posix Standard</title>
<updated>2026-02-02T06:58:26Z</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-02-02T06:51:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d37c3db62ba32a1e95f390e8570722bfa8ff8a5'/>
<id>urn:sha1:6d37c3db62ba32a1e95f390e8570722bfa8ff8a5</id>
<content type='text'>
Reviewed by: glebius
Approved by: glebius (mentor)
Differential Revision: https://reviews.freebsd.org/D52980
</content>
</entry>
<entry>
<title>swab: Correctly treat the data as misaligned</title>
<updated>2026-01-14T17:10:33Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-01-14T17:10:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2a5c5b8f7cddf14537707895fceb454cabc1b3bd'/>
<id>urn:sha1:2a5c5b8f7cddf14537707895fceb454cabc1b3bd</id>
<content type='text'>
The __aligned attribute in the previous version applied to the location
of the pointers, not the data the pointers pointed to.  While this
could be fixed by applying the attribute to a local typedef of uint16_t,
just using memcpy() for the unaligned access is simpler and ISO C.

This fixes the build on CHERI architectures which do not support
misaligned pointers and were thus failing with:

lib/libc/string/swab.c:12:18: error: alignment (1) of 'const uint16_t *' (aka 'const unsigned short *') is less than the required capability alignment (16) [-Werror,-Wcheri-capability-misuse]
   12 |         const uint16_t *f __aligned(1) = from;
      |

Co-authored by:	Jessica Clarke &lt;jrtc27@FreeBSD.org&gt;
Fixes:		02ebbc781f08 ("swab: Fix implementation to support overlapping copies")
Sponsored by:	AFRL, DARPA

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D54399
</content>
</entry>
<entry>
<title>libc/string: add strdupa(3) and strndupa(3)</title>
<updated>2025-12-08T22:34:57Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-12-03T23:56:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a98e5d78500193dc7aa352e1f60ac2c6529e2c38'/>
<id>urn:sha1:a98e5d78500193dc7aa352e1f60ac2c6529e2c38</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54066
</content>
</entry>
<entry>
<title>libc/string: put source files list one item per line</title>
<updated>2025-12-08T22:34:57Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-12-03T23:51:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98b7cca0186dddfc775582a32b39052d05840858'/>
<id>urn:sha1:98b7cca0186dddfc775582a32b39052d05840858</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54066
</content>
</entry>
<entry>
<title>man/man3: add cross references to stdbit(3)</title>
<updated>2025-11-30T19:21:52Z</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2025-11-10T09:43:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5bfdb66ad985774b123ecd0cadee65c071b7ded0'/>
<id>urn:sha1:5bfdb66ad985774b123ecd0cadee65c071b7ded0</id>
<content type='text'>
Add cross references to relevant stdbit man pages

Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision: https://reviews.freebsd.org/D53661
</content>
</entry>
<entry>
<title>ffs.3: Add a STANDARDS section to the manual page</title>
<updated>2025-10-25T21:37:22Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-10-25T21:37:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f1cb4e9962d715ec85ba26d7019ab83adea1ffb7'/>
<id>urn:sha1:f1cb4e9962d715ec85ba26d7019ab83adea1ffb7</id>
<content type='text'>
The ffs() function conforms to IEEE Std 1003.1-2008 ("POSIX.1").
The ffsl() and ffsll() functions conform to IEEE Std 1003.1-2024 ("POSIX.1").

Reviewed by:	ziaee
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D53352
</content>
</entry>
<entry>
<title>memchr.3: Operates on objects, not strings</title>
<updated>2025-07-25T13:48:42Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2025-07-25T13:34:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6924e4211b8781c630acf7e9a2e08e87804dd01c'/>
<id>urn:sha1:6924e4211b8781c630acf7e9a2e08e87804dd01c</id>
<content type='text'>
Suggested by:	avg
Reviewed by:	avg
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51523
</content>
</entry>
<entry>
<title>memchr.3: mention the len argument in the functions description</title>
<updated>2025-07-22T15:11:40Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-07-19T12:15:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=441995e161a2564d37947d054a2f1219754deb5f'/>
<id>urn:sha1:441995e161a2564d37947d054a2f1219754deb5f</id>
<content type='text'>
Otherwise, its use is only specified in the error case, which is
somewhat obscure.  Also properly typeset NULL.

Reviewed by:	pauamma_gundo.com
Discussed with:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D51424
</content>
</entry>
<entry>
<title>manuals: Align our tree with upstream C23 macro</title>
<updated>2025-06-12T21:24:10Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2025-05-05T18:52:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b6936e125382523509901a4fc5b2932ed0e742d'/>
<id>urn:sha1:1b6936e125382523509901a4fc5b2932ed0e742d</id>
<content type='text'>
Switch all instances of the -isoC-2024 macro to -isoC-2023 selected by
upstream. Keep -isoC-2024 defined, but deprecated, for backwards compat.

MFC after:      3 days (I will resolve merge conflicts with cdefs)
</content>
</entry>
</feed>
