| 1 |
#[repr(C)] |
| 2 |
#[cfg_attr(feature = "extra_traits", derive(Debug, Eq, Hash, PartialEq))] |
| 3 |
pub struct stat { |
| 4 |
pub st_dev: ::dev_t, |
| 5 |
pub st_ino: ::ino_t, |
| 6 |
pub st_nlink: ::nlink_t, |
| 7 |
pub st_mode: ::mode_t, |
| 8 |
st_padding0: i16, |
| 9 |
pub st_uid: ::uid_t, |
| 10 |
pub st_gid: ::gid_t, |
| 11 |
st_padding1: i32, |
| 12 |
pub st_rdev: ::dev_t, |
| 13 |
pub st_atime: ::time_t, |
| 14 |
pub st_atime_nsec: ::c_long, |
| 15 |
pub st_mtime: ::time_t, |
| 16 |
pub st_mtime_nsec: ::c_long, |
| 17 |
pub st_ctime: ::time_t, |
| 18 |
pub st_ctime_nsec: ::c_long, |
| 19 |
pub st_birthtime: ::time_t, |
| 20 |
pub st_birthtime_nsec: ::c_long, |
| 21 |
pub st_size: ::off_t, |
| 22 |
pub st_blocks: ::blkcnt_t, |
| 23 |
pub st_blksize: ::blksize_t, |
| 24 |
pub st_flags: ::fflags_t, |
| 25 |
pub st_gen: u64, |
| 26 |
pub st_spare: [u64; 10], |
| 27 |
} |
| 28 |
|
| 29 |
impl ::Copy for ::stat {} |
| 30 |
impl ::Clone for ::stat { |
| 31 |
fn clone(&self) -> ::stat { |
| 32 |
*self |
| 33 |
} |
| 34 |
} |