nix 0.31.2

Rust friendly bindings to *nix APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use nix::sys::statvfs::*;
use std::fs::File;

#[test]
fn statvfs_call() {
    statvfs(&b"/"[..]).unwrap();
}

#[test]
fn fstatvfs_call() {
    let root = File::open("/").unwrap();
    fstatvfs(&root).unwrap();
}