<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/stat, 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-05-07T18:45:14Z</updated>
<entry>
<title>stat: Expand devname test case</title>
<updated>2026-05-07T18:45:14Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-05-07T18:45:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c88636e0e7a0316d5e6d146874bdb2751f75c40'/>
<id>urn:sha1:2c88636e0e7a0316d5e6d146874bdb2751f75c40</id>
<content type='text'>
Test what happens when we ask for the rdev of a non-device.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D56838
</content>
</entry>
<entry>
<title>stat: Set the timezone before testing -t flag</title>
<updated>2026-05-05T17:59:36Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-05-05T17:59:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49e496d2776870fb36ed8ea4c8139b5eb9f7f747'/>
<id>urn:sha1:49e496d2776870fb36ed8ea4c8139b5eb9f7f747</id>
<content type='text'>
The test assumes UTC, which is what I use on my development systems and
clearly what is used on our CI runners.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D56836
</content>
</entry>
<entry>
<title>stat: Drop unused code and conditionals</title>
<updated>2026-05-03T15:35:06Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-05-03T15:35:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0095c1425633cb6a40fd86fc870ac5945363df2f'/>
<id>urn:sha1:0095c1425633cb6a40fd86fc870ac5945363df2f</id>
<content type='text'>
We haven't pulled from upstream in over 15 years, and the codebases
have diverged so far it is unlikely that we ever will.

* Drop NetBSD and OpenBSD version control information.

* Drop support for building on non-BSD / non-POSIX platforms.

* Fix a few minor style issues.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D56771
</content>
</entry>
<entry>
<title>stat: The devname test case requires root</title>
<updated>2026-05-02T17:29:42Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-05-02T17:28:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72b1aae09bf0bcc01c76df757699e27ad7cf7ecc'/>
<id>urn:sha1:72b1aae09bf0bcc01c76df757699e27ad7cf7ecc</id>
<content type='text'>
Fixes:		4d4acdbfc22c ("stat: fix use of devname(3)")
</content>
</entry>
<entry>
<title>stat: fix use of devname(3)</title>
<updated>2026-05-01T03:00:37Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-05-01T03:00:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d4acdbfc22c84081037f31cff4fb03d18373036'/>
<id>urn:sha1:4d4acdbfc22c84081037f31cff4fb03d18373036</id>
<content type='text'>
Besides being a little hard to parse through visually, this had its own
bug of inspecting st-&gt;st_mode to determine what to pass to devname(3),
which is only correct for st_rdev.

For st_dev, you're likely to be looking at files or directories and
attempting to assess what device they're located on, so the mode is
meaningless- we just have to assume that our filesystems are on
character devices and attempt to resolve st_dev as such.

Reviewed by:	des, kib (previous version)
Differential Revision:	https://reviews.freebsd.org/D56565
</content>
</entry>
<entry>
<title>stat: Nits in stat tests</title>
<updated>2026-04-08T15:35:35Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-04-08T15:35:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8cbd3949297d56e3960dcde73bd7e2277ac4bee8'/>
<id>urn:sha1:8cbd3949297d56e3960dcde73bd7e2277ac4bee8</id>
<content type='text'>
* Use ourselves as test file instead of /COPYRIGHT, which may or may not
  be present in the test environment.

* atf-check understands \n in strings, use it.

* Some file systems don't like creating small holes, so create large ones
  instead.  This means we need two variables: ps (page size) is the
  minimum size of a data region and the alignment for a hole, while hs
  (hole size) is the minimum size of the holes we create.  This makes no
  difference on FreeBSD but makes it easier to port the test to other
  platforms.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D56304
</content>
</entry>
<entry>
<title>stat: Nits in readlink tests</title>
<updated>2026-04-08T11:26:23Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-04-08T11:26:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1c793e7cbe2ecded388fd51fb20274891620a6f4'/>
<id>urn:sha1:1c793e7cbe2ecded388fd51fb20274891620a6f4</id>
<content type='text'>
* The f_flag test may fail if a component of the full path to the
  temporary directory is a symbolic link.

* The n_flag test had an empty head; give it a description.

* Use consistent quoting.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D56293
</content>
</entry>
<entry>
<title>stat: Add option to list holes</title>
<updated>2025-09-16T13:38:25Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-09-16T13:37:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a7a067da456f8962ef87bfdf75c94cd12988615'/>
<id>urn:sha1:1a7a067da456f8962ef87bfdf75c94cd12988615</id>
<content type='text'>
Add a new -h option that causes stat to print a list of holes for each
file argument.

Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52481
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>stat(1): Fix grammar error in stat.c</title>
<updated>2024-02-13T07:33:16Z</updated>
<author>
<name>LO WEN-CHIEN</name>
<email>s111062113@m111.nthu.edu.tw</email>
</author>
<published>2024-01-07T13:14:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49eeca743b70d13883ed1db73b6e04fbab791681'/>
<id>urn:sha1:49eeca743b70d13883ed1db73b6e04fbab791681</id>
<content type='text'>
Event:		Advanced UNIX Programming Course (Fall’23) at NTHU
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1014
</content>
</entry>
</feed>
