| 1 |
//! Header: `sys/statvfs.h` |
| 2 |
//! |
| 3 |
//! <https://github.com/NetBSD/src/blob/trunk/sys/sys/statvfs.h> |
| 4 |
|
| 5 |
use crate::prelude::*; |
| 6 |
|
| 7 |
const _VFS_NAMELEN: usize = 32; |
| 8 |
const _VFS_MNAMELEN: usize = 1024; |
| 9 |
|
| 10 |
s! { |
| 11 |
pub struct statvfs { |
| 12 |
pub f_flag: c_ulong, |
| 13 |
pub f_bsize: c_ulong, |
| 14 |
pub f_frsize: c_ulong, |
| 15 |
pub f_iosize: c_ulong, |
| 16 |
|
| 17 |
pub f_blocks: crate::fsblkcnt_t, |
| 18 |
pub f_bfree: crate::fsblkcnt_t, |
| 19 |
pub f_bavail: crate::fsblkcnt_t, |
| 20 |
pub f_bresvd: crate::fsblkcnt_t, |
| 21 |
|
| 22 |
pub f_files: crate::fsfilcnt_t, |
| 23 |
pub f_ffree: crate::fsfilcnt_t, |
| 24 |
pub f_favail: crate::fsfilcnt_t, |
| 25 |
pub f_fresvd: crate::fsfilcnt_t, |
| 26 |
|
| 27 |
pub f_syncreads: u64, |
| 28 |
pub f_syncwrites: u64, |
| 29 |
|
| 30 |
pub f_asyncreads: u64, |
| 31 |
pub f_asyncwrites: u64, |
| 32 |
|
| 33 |
pub f_fsidx: crate::fsid_t, |
| 34 |
pub f_fsid: c_ulong, |
| 35 |
pub f_namemax: c_ulong, |
| 36 |
pub f_owner: crate::uid_t, |
| 37 |
|
| 38 |
// This type is updated in a future version |
| 39 |
f_spare: [u32; 4], |
| 40 |
|
| 41 |
pub f_fstypename: [c_char; _VFS_NAMELEN], |
| 42 |
pub f_mntonname: [c_char; _VFS_MNAMELEN], |
| 43 |
pub f_mntfromname: [c_char; _VFS_MNAMELEN], |
| 44 |
// Added in NetBSD10 |
| 45 |
// pub f_mntfromlabel: [c_char; _VFS_MNAMELEN], |
| 46 |
} |
| 47 |
} |