Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177733200
D58592.1795154526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
741 B
Referenced Files
None
Subscribers
None
D58592.1795154526.diff
View Options
diff --git a/lib/libsys/stat.2 b/lib/libsys/stat.2
--- a/lib/libsys/stat.2
+++ b/lib/libsys/stat.2
@@ -263,9 +263,19 @@
.It Va st_blksize
Optimal I/O block size for the file.
.It Va st_blocks
-Actual number of blocks allocated for the file in 512-byte units.
+Actual number of blocks allocated for the file.
+.Pp
+For files located on non-synthetic filesystems, the block size is 512 bytes.
As short symbolic links are stored in the inode, this number may
be zero.
+.Pp
+For file descriptors referencing specific non-file objects,
+the field is type-specific.
+For POSIX shared memory segments
+.Pq see Xr shm_open 2 ,
+the block size is equal to
+the platform page size
+.Pq Xr getpagesize 2 .
.El
.Pp
The access-related fields of
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 20, 6:02 AM (3 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41861465
Default Alt Text
D58592.1795154526.diff (741 B)
Attached To
Mode
D58592: stat.2: enhance the description of st_blocks
Attached
Detach File
Event Timeline