<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/tests/string/stpncpy_test.c, branch stable/15</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libc/tests/string: improve stpncpy() "bounds" unit test</title>
<updated>2026-01-01T20:57:33+00:00</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2025-12-04T16:34:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=54849107681dadaf0aa7bc88d55b7defe3f7826d'/>
<id>54849107681dadaf0aa7bc88d55b7defe3f7826d</id>
<content type='text'>
The test is extended the same way I previously extended the memccpy()
test to fix what is probably the same kind of bug.

PR:		291359
Reported by:	Collin Funk &lt;collin.funk1@gmail.com&gt;
Reviewed by:	ngie
Approved by:	markj (mentor)
Fixes:		6fa9e7d8737548ef93c573387ce62402c368d486 (D42519)
See also:	61ed5748e4e9c7397fcb2638b442f46ac5c9e7c5 (D46051)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54169

(cherry picked from commit 123c086200491819595abc271d360e605288fd18)
(cherry picked from commit 8be8642826099368208efb2c1222f2a102cc5b08)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test is extended the same way I previously extended the memccpy()
test to fix what is probably the same kind of bug.

PR:		291359
Reported by:	Collin Funk &lt;collin.funk1@gmail.com&gt;
Reviewed by:	ngie
Approved by:	markj (mentor)
Fixes:		6fa9e7d8737548ef93c573387ce62402c368d486 (D42519)
See also:	61ed5748e4e9c7397fcb2638b442f46ac5c9e7c5 (D46051)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54169

(cherry picked from commit 123c086200491819595abc271d360e605288fd18)
(cherry picked from commit 8be8642826099368208efb2c1222f2a102cc5b08)
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/libc/tests/string/stpncpy_test.c: extend for upcoming SSE implementation</title>
<updated>2023-12-25T13:55:37+00:00</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2023-11-05T04:02:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6fa9e7d8737548ef93c573387ce62402c368d486'/>
<id>6fa9e7d8737548ef93c573387ce62402c368d486</id>
<content type='text'>
This adds additional unit tests validating the function for
All possible alignment offsets of source and destination.

Also extend the test to allow testing of an external stpncpy
implementation, which greatly simplifies the development of
custom implementations.

Sponsored by:	The FreeBSD Foundation
Tested by:	developers@, exp-run
Approved by:	mjg
MFC after:	1 month
MFC to:		stable/14
PR:		275785
Differential Revision:	https://reviews.freebsd.org/D42519
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds additional unit tests validating the function for
All possible alignment offsets of source and destination.

Also extend the test to allow testing of an external stpncpy
implementation, which greatly simplifies the development of
custom implementations.

Sponsored by:	The FreeBSD Foundation
Tested by:	developers@, exp-run
Approved by:	mjg
MFC after:	1 month
MFC to:		stable/14
PR:		275785
Differential Revision:	https://reviews.freebsd.org/D42519
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: Purge unneeded cdefs.h</title>
<updated>2023-11-01T22:44:30+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-01T22:43:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=559a218c9b257775fb249b67945fe4a05b7a6b9f'/>
<id>559a218c9b257775fb249b67945fe4a05b7a6b9f</id>
<content type='text'>
These sys/cdefs.h are not needed. Purge them. They are mostly left-over
from the $FreeBSD$ removal. A few in libc are still required for macros
that cdefs.h defines. Keep those.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D42385
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These sys/cdefs.h are not needed. Purge them. They are mostly left-over
from the $FreeBSD$ removal. A few in libc are still required for macros
that cdefs.h defines. Keep those.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D42385
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>Have stpncpy tests ask the kernel for the page size</title>
<updated>2022-04-07T15:08:37+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-04-07T15:05:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=748f7c8db756361f3ba43623612fcfd13cece268'/>
<id>748f7c8db756361f3ba43623612fcfd13cece268</id>
<content type='text'>
It may be dynamic so we can't rely on PAGE_SIZE being present or
correct.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It may be dynamic so we can't rely on PAGE_SIZE being present or
correct.
</pre>
</div>
</content>
</entry>
<entry>
<title>Integrate tools/regression/lib/libc/string into the FreeBSD test suite</title>
<updated>2015-11-08T07:53:31+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2015-11-08T07:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=347267dcf85acdae941b776400c19195a5d6e15d'/>
<id>347267dcf85acdae941b776400c19195a5d6e15d</id>
<content type='text'>
as lib/libc/tests/string

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as lib/libc/tests/string

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
</pre>
</div>
</content>
</entry>
</feed>
