summaryrefslogtreecommitdiff
path: root/src/unix/bsd/freebsdlike/dragonfly/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-06 09:17:47 +0000
committerbors <bors@rust-lang.org>2021-11-06 09:17:47 +0000
commitb916b48d6823187b20ef0b2ee4cdb8c256adfb73 (patch)
tree34836b1ff5fef5a1081e8728257f56a82b0d11dc /src/unix/bsd/freebsdlike/dragonfly/mod.rs
parent2638ea20cadda71b066adb764f319dd214d67a74 (diff)
parent9d11d8de1a1f18048cb8eea80a3a02902e43c5c6 (diff)
downloadrust-libc-b916b48d6823187b20ef0b2ee4cdb8c256adfb73.tar.gz
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`](https://github.com/DragonFlyBSD/DragonFlyBSD/commit/34c6728ee290889398ff2f1305a91f08aa6b0b35) 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.
Diffstat (limited to 'src/unix/bsd/freebsdlike/dragonfly/mod.rs')
-rw-r--r--src/unix/bsd/freebsdlike/dragonfly/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
index a68f7306b2..e9dfc8a68f 100644
--- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs
+++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
@@ -106,6 +106,11 @@ s! {
pub f_uid_uuid: ::uuid_t,
}
+ #[deprecated(
+ since = "0.2.107",
+ note = "stat.st_blksize is an i64 and stat.st_qspare1 is replaced with \
+ stat.st_blksize in DragonFly 5.8"
+ )]
pub struct stat {
pub st_ino: ::ino_t,
pub st_nlink: ::nlink_t,