Skip to content

Commit 5fca7a7

Browse files
committed
Auto merge of #2487 - rtzoeller:dfly_stat_deprecation, r=JohnTitor
Document stat.st_blksize changes on DragonFly BSD The tests are currently failing on DragonFly BSD, due to [changes to `stat.st_blksize`](DragonFlyBSD/DragonFlyBSD@34c6728) among other reasons. `st_blksize` is now an `i64`, and has moved to take up a previously reserved struct member. Deprecate the struct, to indicate it will be modified in a subsequent release.
2 parents fc22d2c + 1c126a2 commit 5fca7a7

File tree

1 file changed

+5
-0
lines changed
  • src/unix/bsd/freebsdlike/dragonfly

1 file changed

+5
-0
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ s! {
106106
pub f_uid_uuid: ::uuid_t,
107107
}
108108

109+
#[deprecated(
110+
since = "0.2.107",
111+
note = "stat.st_blksize is an i64 and stat.st_qspare1 is replaced with \
112+
stat.st_blksize in DragonFly 5.8"
113+
)]
109114
pub struct stat {
110115
pub st_ino: ::ino_t,
111116
pub st_nlink: ::nlink_t,

0 commit comments

Comments
 (0)