Skip to content

Commit

Permalink
Merge #928
Browse files Browse the repository at this point in the history
928: Wrap libc::statfs r=asomers a=alesharik

Fix for [#926](#926)

Co-authored-by: alesharik <[email protected]>
  • Loading branch information
bors[bot] and alesharik committed Jun 20, 2019
2 parents f926043 + e6d810d commit 7fa4f23
Show file tree
Hide file tree
Showing 3 changed files with 548 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
([#1077](https://github.com/nix-rust/nix/pull/1077))
- Minimum supported Rust version is now 1.25.0
([#1035](https://github.com/nix-rust/nix/pull/1035))
- Now functions `statfs()` and `fstatfs()` return result with `Statfs` wrapper
([#928](https://github.com/nix-rust/nix/pull/928))

### Fixed
### Removed
Expand Down
9 changes: 8 additions & 1 deletion src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@ pub mod socket;

pub mod stat;

#[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))]
#[cfg(any(target_os = "android",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "openbsd"
))]
pub mod statfs;

pub mod statvfs;
Expand Down
Loading

0 comments on commit 7fa4f23

Please sign in to comment.