1 //! FreeBSD-specific raw type definitions 2 3 #![deprecated( 4 since = "1.8.0", 5 note = "these type aliases are no longer supported by \ 6 the standard library, the `libc` crate on \ 7 crates.io should be used instead for the correct \ 8 definitions" 9 )] 10 #![allow(deprecated)] 11 12 use crate::std::os::raw::c_long; 13 14 pub type blkcnt_t = u64; 15 pub type blksize_t = u64; 16 pub type dev_t = u64; 17 pub type fflags_t = u32; 18 pub type ino_t = u64; 19 pub type mode_t = u32; 20 pub type nlink_t = u64; 21 pub type off_t = u64; 22 pub type time_t = i64; 23 24 pub type pthread_t = usize; 25 26 #[repr(C)] 27 #[derive(Clone)] 28 pub struct stat { 29 pub st_dev: u32, 30 pub st_ino: u32, 31 pub st_mode: u16, 32 pub st_nlink: u16, 33 pub st_uid: u32, 34 pub st_gid: u32, 35 pub st_rdev: u32, 36 pub st_atime: c_long, 37 pub st_atime_nsec: c_long, 38 pub st_mtime: c_long, 39 pub st_mtime_nsec: c_long, 40 pub st_ctime: c_long, 41 pub st_ctime_nsec: c_long, 42 pub st_size: i64, 43 pub st_blocks: i64, 44 pub st_blksize: u32, 45 pub st_flags: u32, 46 pub st_gen: u32, 47 pub st_lspare: i32, 48 pub st_birthtime: c_long, 49 pub st_birthtime_nsec: c_long, 50 #[cfg(target_arch = "x86")] 51 pub __unused: [u8; 8], 52 } 53