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