Skip to main content

bnd_linux/libc/struct_stat/
mod.rs

1#[cfg(all(feature = "struct_timespec", feature = "types"))]
2windows_link::link!("c" "C" fn stat(__file : *const i8, __buf : *mut stat) -> i32);
3#[repr(C)]
4#[cfg(all(feature = "struct_timespec", feature = "types"))]
5#[derive(Clone, Copy)]
6pub struct stat {
7    pub st_dev: super::types::__dev_t,
8    pub st_ino: super::types::__ino_t,
9    pub st_nlink: super::types::__nlink_t,
10    pub st_mode: super::types::__mode_t,
11    pub st_uid: super::types::__uid_t,
12    pub st_gid: super::types::__gid_t,
13    pub __pad0: i32,
14    pub st_rdev: super::types::__dev_t,
15    pub st_size: super::types::__off_t,
16    pub st_blksize: super::types::__blksize_t,
17    pub st_blocks: super::types::__blkcnt_t,
18    pub st_atim: super::struct_timespec::timespec,
19    pub st_mtim: super::struct_timespec::timespec,
20    pub st_ctim: super::struct_timespec::timespec,
21    pub __glibc_reserved: [super::types::__syscall_slong_t; 3],
22}
23#[cfg(all(feature = "struct_timespec", feature = "types"))]
24impl Default for stat {
25    fn default() -> Self {
26        unsafe { core::mem::zeroed() }
27    }
28}