<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libutil/tests, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-17T13:48:42Z</updated>
<entry>
<title>forkpty: Avoid fd leak if fork() fails.</title>
<updated>2023-08-17T13:48:42Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-08-17T13:48:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4aaee2120ce0a121f86e39e214c2fabe82f2762'/>
<id>urn:sha1:a4aaee2120ce0a121f86e39e214c2fabe82f2762</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D41491
</content>
</entry>
<entry>
<title>Remove my middle name.</title>
<updated>2023-08-17T13:08:30Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-08-17T13:08:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e738085b94631f90e21a49852538ac95974baf44'/>
<id>urn:sha1:e738085b94631f90e21a49852538ac95974baf44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3e7694832e81d7a904a10f525f8797b753bf0d3'/>
<id>urn:sha1:b3e7694832e81d7a904a10f525f8797b753bf0d3</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>Fix build with gcc12.</title>
<updated>2023-06-14T03:24:07Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2023-06-14T03:24:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6cc4a1c3205a7624846c2c84a7d829aeb208a138'/>
<id>urn:sha1:6cc4a1c3205a7624846c2c84a7d829aeb208a138</id>
<content type='text'>
</content>
</entry>
<entry>
<title>expand_number: Tighten check of unit.</title>
<updated>2023-06-13T04:08:32Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2023-06-13T04:08:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08300d849485bd6231d3a18cb430cab4279edef3'/>
<id>urn:sha1:08300d849485bd6231d3a18cb430cab4279edef3</id>
<content type='text'>
The current code silently ignores characters after the unit as long
the unit themselves were recognized. This commit makes expand_number(3)
to fail with EINVAL if buf did not terminate after the unit character.

Historically, the function accepts and ignores "B" as a SI unit, this
behavior is preserved and e.g. KB, MB are still accepted as aliases of
K and M, document this behavior in the manual page.

While I am there, also write a few test cases to validate the behavior.

Reviewed-by:	emaste
MFC-after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D40482
</content>
</entry>
<entry>
<title>cpuset(3): Add unit tests</title>
<updated>2023-06-01T21:27:45Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2023-06-01T21:26:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8093646b0be9731f24eddbcee7dc34e1fd2365b5'/>
<id>urn:sha1:8093646b0be9731f24eddbcee7dc34e1fd2365b5</id>
<content type='text'>
Differential Revision:	https://reviews.freebsd.org/D13046
</content>
</entry>
<entry>
<title>pidfile test: guarantee nul termination of the read pid string</title>
<updated>2021-09-24T16:52:41Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2021-09-24T03:12:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=364790beafec707ca3e334683e4030684d829be2'/>
<id>urn:sha1:364790beafec707ca3e334683e4030684d829be2</id>
<content type='text'>
PR:	258701
Based on the submission by:	sigsys@gmail.com
MFC after:	1 week
</content>
</entry>
<entry>
<title>Fix pidfile_open(3) to handle relative paths with multiple components.</title>
<updated>2019-03-27T19:40:18Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-03-27T19:40:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a273e09cb25590c3968ff924a516c99b90c33a5b'/>
<id>urn:sha1:a273e09cb25590c3968ff924a516c99b90c33a5b</id>
<content type='text'>
r322369's use of basename(3) was incorrect and worked by accident so
long as the pidfile path was absolute or consisted of a single
component.  Fix the basename() usage and add a regression test.

Reported by:	0mp
Reviewed by:	cem
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D19728
</content>
</entry>
</feed>
