diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-08-19 02:27:46 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-08-19 14:46:34 +0000 |
| commit | 3a1bf59d195ced99c0f69774969d7090d21f6097 (patch) | |
| tree | 2eaa399e496facbd8231fe1cae00dc4608946821 /lib | |
| parent | 805c5004fa86e26486175cd3a0bb253dcb8ec7e0 (diff) | |
shmfd: consistently return size in 512 byte blocks for fstat(2) st_blocks
This is ABI-breaking change that could be considered as the bug fix.
Requested by: David Timber <dxdt@dev.snart.me>
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
Relnotes: yes
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58942
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libsys/stat.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libsys/stat.2 b/lib/libsys/stat.2 index c16af32a340d..bbec876da1fd 100644 --- a/lib/libsys/stat.2 +++ b/lib/libsys/stat.2 @@ -271,10 +271,14 @@ be zero. .Pp For file descriptors referencing specific non-file objects, the field is type-specific. +.Pp For POSIX shared memory segments .Pq see Xr shm_open 2 , -the block size is equal to -the platform page size +the block size is 512 bytes. +For older versions of +.Fx +.Pq before 15.2 and 16.0 +the block size was equal to the platform page size .Pq Xr getpagesize 2 . .El .Pp |
