Skip to content

Commit 7fa4f23

Browse files
bors[bot]alesharik
andcommitted
Merge #928
928: Wrap libc::statfs r=asomers a=alesharik Fix for [#926](#926) Co-authored-by: alesharik <[email protected]>
2 parents f926043 + e6d810d commit 7fa4f23

File tree

3 files changed

+548
-11
lines changed

3 files changed

+548
-11
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1919
([#1077](https://github.com/nix-rust/nix/pull/1077))
2020
- Minimum supported Rust version is now 1.25.0
2121
([#1035](https://github.com/nix-rust/nix/pull/1035))
22+
- Now functions `statfs()` and `fstatfs()` return result with `Statfs` wrapper
23+
([#928](https://github.com/nix-rust/nix/pull/928))
2224

2325
### Fixed
2426
### Removed

src/sys/mod.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ pub mod socket;
7171

7272
pub mod stat;
7373

74-
#[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))]
74+
#[cfg(any(target_os = "android",
75+
target_os = "dragonfly",
76+
target_os = "freebsd",
77+
target_os = "ios",
78+
target_os = "linux",
79+
target_os = "macos",
80+
target_os = "openbsd"
81+
))]
7582
pub mod statfs;
7683

7784
pub mod statvfs;

0 commit comments

Comments
 (0)