Skip to main content

libc/new/glibc/io/sys/
statvfs.rs

1//! Header: `io/sys/statvfs.h`
2
3pub use crate::new::glibc::bits::statvfs::*;
4use crate::prelude::*;
5
6extern "C" {
7    #[cfg_attr(gnu_file_offset_bits64, link_name = "statvfs64")]
8    pub fn statvfs(path: *const c_char, buf: *mut statvfs) -> c_int;
9    #[cfg_attr(gnu_file_offset_bits64, link_name = "fstatvfs64")]
10    pub fn fstatvfs(fd: c_int, buf: *mut statvfs) -> c_int;
11    // FIXME(1.0,deprecate): lfs binding to be removed
12    pub fn statvfs64(path: *const c_char, buf: *mut statvfs64) -> c_int;
13    // FIXME(1.0,deprecate): lfs binding to be removed
14    pub fn fstatvfs64(fd: c_int, buf: *mut statvfs64) -> c_int;
15}