<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/stat, 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-02-03T00:26:12Z</updated>
<entry>
<title>stat(1): Do not pass S_IFBLK to devname unconditionally</title>
<updated>2023-02-03T00:26:12Z</updated>
<author>
<name>Alexander Naumochkin</name>
<email>alexander.naumochkin@gmail.com</email>
</author>
<published>2023-01-28T13:31:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=75aa61400cba6a67ff0ad392d8a5cc2d3855bd3b'/>
<id>urn:sha1:75aa61400cba6a67ff0ad392d8a5cc2d3855bd3b</id>
<content type='text'>
PR:	269190

(cherry picked from commit 050e4bca94e907c046e9ed63f90b5dd0e49fb405)
</content>
</entry>
<entry>
<title>usr.bin/stat: Fix error message formatting.</title>
<updated>2023-02-01T07:24:52Z</updated>
<author>
<name>Jamie Landeg-Jones</name>
<email>jamie@catflap.org</email>
</author>
<published>2023-01-29T22:37:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9eea81e59641df1a5a45dbe06628081bc4bb7bad'/>
<id>urn:sha1:9eea81e59641df1a5a45dbe06628081bc4bb7bad</id>
<content type='text'>
PR:		bin/261657

(cherry picked from commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9)
</content>
</entry>
<entry>
<title>tests: readlink: fix atf_test_case call [NFC]</title>
<updated>2022-03-09T21:22:05Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-03-04T03:48:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35de1e66c55c2c412fc7319f1857a15dc00edb8f'/>
<id>urn:sha1:35de1e66c55c2c412fc7319f1857a15dc00edb8f</id>
<content type='text'>
This was meant to read `basic`, rather than a duplicate of `f_flag`.  It
is largely irrelevant, though, as atf_test_case mostly just makes
sure that the proper functions are defined.

(cherry picked from commit 0e73b834f32224e3652f61e598c19f572a20cca3)
</content>
</entry>
<entry>
<title>usr.bin/stat: honour locale for "-t %+"</title>
<updated>2022-03-04T19:43:01Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2021-10-30T07:00:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98d3422e5ecd96ea3ee83985a57a9399c0071663'/>
<id>urn:sha1:98d3422e5ecd96ea3ee83985a57a9399c0071663</id>
<content type='text'>
The man page states that "-t %+" prints time information in the same
format as date with no format specifier.

This was not the case, the format used was always that of date for the
POSIX locale.

The fix suggested by the reporter leads to output that matches the
documentation.

(cherry picked from commit 20f8331aca892ff812510609b3bc4e747b201197)
</content>
</entry>
<entry>
<title>Unbreak the tests after r347002.</title>
<updated>2019-05-01T19:35:45Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2019-05-01T19:35:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98ce554a3d65fbc513d20a1d78ffa6c9d67881d1'/>
<id>urn:sha1:98ce554a3d65fbc513d20a1d78ffa6c9d67881d1</id>
<content type='text'>
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Add 'Birth' to 'stat -x' output. Current Linux stat(1)</title>
<updated>2019-05-01T18:56:22Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2019-05-01T18:56:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f35f34b153b5606e3dc54277273d6dcc2c16074c'/>
<id>urn:sha1:f35f34b153b5606e3dc54277273d6dcc2c16074c</id>
<content type='text'>
also includes that.

Reviewed by:	cem
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20130
</content>
</entry>
<entry>
<title>stat(1): cache id-&gt;name resolution</title>
<updated>2018-08-11T02:56:43Z</updated>
<author>
<name>Conrad Meyer</name>
<email>cem@FreeBSD.org</email>
</author>
<published>2018-08-11T02:56:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a04ed7615ed26cc2c22286b2f4c624dce23a758f'/>
<id>urn:sha1:a04ed7615ed26cc2c22286b2f4c624dce23a758f</id>
<content type='text'>
When invoked on a large list of files, it is most common for a small number of
uids/gids to own most of the results.

Like ls(1), use pwcache(3) to avoid repeatedly looking up the same IDs.

Example microbenchmark and non-scientific results:

$ time (find /usr/src -type f -print0 | xargs -0 stat &gt;/dev/null)

BEFORE:
3.62s user 5.23s system 102% cpu 8.655 total
3.47s user 5.38s system 102% cpu 8.647 total

AFTER:
1.23s user 1.81s system 108% cpu 2.810 total
1.43s user 1.54s system 107% cpu 2.754 total

Does this microbenchmark have any real-world significance?  Until a use case
is demonstrated otherwise, I doubt it.  Ordinarily I would be resistant to
optimizing pointless microbenchmarks in base utilities (e.g., recent totally
gratuitous changes to yes(1)).  However, the pwcache(3) APIs actually
simplify stat(1) logic ever so slightly compared to the raw APIs they wrap,
so I think this is at worst harmless.

PR:		230491
Reported by:	Thomas Hurst &lt;tom AT hur.st&gt;
Discussed with:	gad@
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Update dependencies.</title>
<updated>2017-10-31T00:07:04Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:07:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea825d02749f382c3f7e17f28247f20a48733eab'/>
<id>urn:sha1:ea825d02749f382c3f7e17f28247f20a48733eab</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Connect new directories.</title>
<updated>2017-10-31T00:04:07Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:04:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3806950135d2c8633ec0764e8807eacc87cf3e10'/>
<id>urn:sha1:3806950135d2c8633ec0764e8807eacc87cf3e10</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
</feed>
