<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-03-06T21:18:00Z</updated>
<entry>
<title>uuidgen: add -c for compact uuid</title>
<updated>2023-03-06T21:18:00Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2023-02-28T10:29:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c4f59f056c1e9adc64bcea3f5db56a2c33f39dcf'/>
<id>urn:sha1:c4f59f056c1e9adc64bcea3f5db56a2c33f39dcf</id>
<content type='text'>
It generates the uuid string but without the hyphen

Approved by:		re (cperciva)
MFC After:		3 days
Reviews by:		tcberner
Differential Revision:	https://reviews.freebsd.org/D38820

(cherry picked from commit b2b294f27cf4618d6f7510007b41882860a080b9)
(cherry picked from commit 0ba66872bea87abdf13660d5a7946769fd7b118f)
(cherry picked from commit 4cd30c640db978355cf2da666e2749189babda5e)
</content>
</entry>
<entry>
<title>nproc: denote an incompatiblity with Linux</title>
<updated>2023-02-23T17:51:28Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2023-02-15T20:17:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0ea305c636857d806c351b50a7368ab67c9bfb9f'/>
<id>urn:sha1:0ea305c636857d806c351b50a7368ab67c9bfb9f</id>
<content type='text'>
On Linux _NPROCESSORS_CONF reports CPU threads disabled by the kernel,
while it does not on FreeBSD.

Flip _NPROCESSORS_ONLN to _NPROCESSORS_CONF. While it keeps reporting
the same value, it will automagically unbreak should someone change the
above.

Approved by:	re (cperciva)
(cherry picked from commit 059320b8c8de73a90514879cd1e2da397584cfde)
(cherry picked from commit 117d4cafdcb806407e38266de44aebe0b4e62b6f)
</content>
</entry>
<entry>
<title>Add nproc(1)</title>
<updated>2023-02-23T17:51:07Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2023-02-04T23:33:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eb9e9f1c2533a8b01446e14a46f45eb7b0cd71e2'/>
<id>urn:sha1:eb9e9f1c2533a8b01446e14a46f45eb7b0cd71e2</id>
<content type='text'>
This program prints the number of CPU threads it can run on, while
respecting cpusets (or not, depending on switches).

It aims to be compatible with nproc as found in GNU coreutils.

Approved by:	re (cperciva)
Reviewed by:	des
Reviewed by:	pstef
Differential Revision:	https://reviews.freebsd.org/D38386

(cherry picked from commit 48bfd3597654490cdc43bf0f591a539d3a28b590)
(cherry picked from commit 31f9db72a35bb20ad01d792eaaa1d6048252ab38)
</content>
</entry>
<entry>
<title>cp: Add tests involving sparse files.</title>
<updated>2023-02-09T20:32:56Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-02-01T20:06:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d6d22a4530f9c55fc7a48deaf19d2ba7047bff1a'/>
<id>urn:sha1:d6d22a4530f9c55fc7a48deaf19d2ba7047bff1a</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D38290

(cherry picked from commit 822fa7ae1e3e7ed277e47e6de355387e524c6ee4)

cp: Simplify the common case.

* The allocated buffer is only used in the fallback case, so move it
  there.  The argument for passing it in from the caller was that if
  malloc(3) were to fail, we'd want it to fail before we started
  copying anything, but firstly, it was already not in the right place
  to ensure that, and secondly, malloc(3) never fails (except in very
  contrived circumstances, such as an unreasonable RLIMIT_AS or
  RLIMIT_DATA).

* Remove the mmap(2) option.  It is almost never beneficial,
  especially when the alternative is copy_file_range(2), and it adds
  needless complexity and indentation.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	rmacklem, mav
Differential Revision:	https://reviews.freebsd.org/D38291

(cherry picked from commit 6c85042afcbbf4cd0fb7e7c03226c7249081e690)

cp: Minor code cleanup.

* Fix includes in utils.c, cf. style(9).
* Fix type mismatch: readlink(2) returns ssize_t, not int.
* It is not necessary to set errno to 0 as fts_read(3) already does it.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D38369

(cherry picked from commit cb96a0ef0040fa7968245ab203ab70a7ed2d275d)

cp: Adjust the sparse file tests.

* The sparsity check was ineffective: it compared the apparent size in bytes to the actual size in blocks.  Instead, write a tool that reliably detects sparseness.
* Some of the seq commands were missing an argument.
* Based on empirical evidence, 1 MB holes are not necessarily large enough to be preserved by the underlying filesystem.  Increase the hole size to 16 MB.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	cracauer
Differential Revision:	https://reviews.freebsd.org/D38414

(cherry picked from commit 8b418c83d175fde3b1f65210509ddcf2ac248d9f)
</content>
</entry>
<entry>
<title>df: Return non-zero status on write failure.</title>
<updated>2023-02-09T20:32:56Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-01-17T13:40:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b11dd2108ca90a707c7f8976f409bf249509c94'/>
<id>urn:sha1:1b11dd2108ca90a707c7f8976f409bf249509c94</id>
<content type='text'>
While here, complete the libxo conversion and switch return value to standard constants.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential revision: https://reviews.freebsd.org/D38097

(cherry picked from commit c968598479917f52022b86d0089a9835ddcf2799)
</content>
</entry>
<entry>
<title>timeout: Move from /usr/bin to /bin</title>
<updated>2023-02-07T17:37:53Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2023-02-01T15:24:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a4f7dbd9e9450cea25af944d47dce578960a1b8'/>
<id>urn:sha1:0a4f7dbd9e9450cea25af944d47dce578960a1b8</id>
<content type='text'>
timeout(1) is used by /etc/rc.d/zfskeys. Unfortunately, having
timeout(1) installed in /usr/bin causes problems when /usr is an
encrypted ZFS partition.

Implementing timeout(1) in sh(1) is not trivial. A more elegant solution
is to move timeout(1) to /bin so that it is available to early services
in the boot process.

PR:		265221
Reviewed by:	allanjude, des, imp
Approved by:	allanjude, des, imp
Reported by:	Ivan &lt;r4@sovserv.ru&gt;
Fixes:	33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys
Relnotes:	yes
Sponsored by:	Modirum MDPay
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D38344

(cherry picked from commit e7ab133648a168c4bf7c11da840663c5581771d8)
</content>
</entry>
<entry>
<title>bin/uuidgen: add support for v4 uuids</title>
<updated>2023-01-10T07:48:55Z</updated>
<author>
<name>Tobias C. Berner</name>
<email>tcberner@FreeBSD.org</email>
</author>
<published>2022-12-14T05:59:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8fd1953b7eb2416e29b6b784f03082725e96f685'/>
<id>urn:sha1:8fd1953b7eb2416e29b6b784f03082725e96f685</id>
<content type='text'>
The version 4 UUID is meant for generating UUIDs from truly-random or
pseudo-random numbers. [1]

bin/uuidgen gained the new flag '-r' to create version 4 UUID.

[1] RFC 4122, https://www.rfc-editor.org/rfc/rfc4122#section-4.4

Reviewed by:		pstef
Approved by:		bapt
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D37695

(cherry picked from commit f176fe8e7f638e585afcd2f4dd52a522c4648f63)
</content>
</entry>
<entry>
<title>ls(1): add a -v flag to sort naturally</title>
<updated>2022-12-24T06:47:21Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@gmail.com</email>
</author>
<published>2022-10-23T07:46:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36802990d64c7b00cfa2298f8bf3689677414c05'/>
<id>urn:sha1:36802990d64c7b00cfa2298f8bf3689677414c05</id>
<content type='text'>
Differential Revision:	https://reviews.freebsd.org/D36407

(cherry picked from commit e2662256cdbc6ca9be49a66837f9725081cfa9d3)
</content>
</entry>
<entry>
<title>sh: Fix mismatch in array bounds for vforkexecshell().</title>
<updated>2022-11-11T18:18:53Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2022-09-28T21:04:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4'/>
<id>urn:sha1:e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4</id>
<content type='text'>
Reviewed by:	imp, jilles, emaste
Reported by:	GCC -Warray-parameter
Differential Revision:	https://reviews.freebsd.org/D36760

(cherry picked from commit 10297a9ed488a9fff159ae495b61185e6f50e22a)
</content>
</entry>
<entry>
<title>pax: remove 4.4BSD compatibility</title>
<updated>2022-11-02T09:39:18Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2022-09-13T14:26:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e3a2943249446df9449c3a9cbf30ce0fb68a29c9'/>
<id>urn:sha1:e3a2943249446df9449c3a9cbf30ce0fb68a29c9</id>
<content type='text'>
Sponsored by:	Klara, Inc.

(cherry picked from commit 30c30e220af30fbe8896a2bc4769b9ffd7fb43fb)

pax: comment typo fixes from NetBSD / OpenBSD.

Sponsored by:	Klara, Inc.

(cherry picked from commit 0266a5d610be4fb546475934125a037ca5748184)

pax: name all supported formats.

Sponsored by:	Klara, Inc.

(cherry picked from commit a8e8a914456878a67dfc5ef6f917a04be2e6a0c7)

pax: update date parsing code (from OpenBSD)

Sponsored by:	Klara, Inc.
MFC after:	1 week

(cherry picked from commit d05e43bc0d5705919d057793aaa3e6d3df65f815)
</content>
</entry>
</feed>
