Page MenuHomeFreeBSD

stat.2: enhance the description of st_blocks
ClosedPublic

Authored by kib on Aug 2 2026, 2:59 PM.
Tags
None
Referenced Files
F169542504: D58592.diff
Tue, Sep 1, 9:09 PM
Unknown Object (File)
Sun, Aug 30, 12:02 AM
Unknown Object (File)
Sat, Aug 29, 2:03 AM
Unknown Object (File)
Sat, Aug 29, 2:01 AM
Unknown Object (File)
Fri, Aug 28, 7:06 PM
Unknown Object (File)
Thu, Aug 27, 6:13 PM
Unknown Object (File)
Sat, Aug 22, 7:04 PM
Unknown Object (File)
Wed, Aug 19, 11:20 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Aug 2 2026, 2:59 PM
markmi_dsl-only.net added inline comments.
lib/libsys/stat.2
268

For [no "e"]?

kib marked an inline comment as done.Aug 2 2026, 4:47 PM

Does:
. . .
STANDARDS

The stat() and fstat() system calls are expected to conform to IEEE Std
1003.1-1990 (“POSIX.1”).  The fstatat() system call follows The Open
Group Extended API Set 2 specification.

. . .

need any related wording about extensions or aspects not covered by POSIX for the likes of fstat?

Does:
. . .
STANDARDS

The stat() and fstat() system calls are expected to conform to IEEE Std
1003.1-1990 (“POSIX.1”).  The fstatat() system call follows The Open
Group Extended API Set 2 specification.

. . .

need any related wording about extensions or aspects not covered by POSIX for the likes of fstat?

Why would it need it? Extensions are common and expected, why there would we need to talk specially about them?
Repeating the terms of the standard, we would need to update that with each new revision (and nobody would remember to do that).

mckusick added a subscriber: mckusick.

This update looks good. It preserves expected behavior for filesystem-based objects and allows and explains how to interpret block size units for memory-based objects.

This revision is now accepted and ready to land.Aug 2 2026, 9:36 PM
lib/libsys/stat.2
268
274
kib marked 2 inline comments as done.

Fore
segments
mention 'non-synthetic' for filesystems

This revision now requires review to proceed.Aug 2 2026, 10:05 PM
This revision is now accepted and ready to land.Aug 2 2026, 10:10 PM
This revision was automatically updated to reflect the committed changes.