xref: /drstd/src/std/os/solaris/raw.rs (revision 9670759b785600bf6315e4173e46a602f16add7a)
1 //! Solaris-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 use crate::std::os::unix::raw::{gid_t, uid_t};
14 
15 pub type blkcnt_t = u64;
16 pub type blksize_t = u64;
17 pub type dev_t = u64;
18 pub type fflags_t = u32;
19 pub type ino_t = u64;
20 pub type mode_t = u32;
21 pub type nlink_t = u64;
22 pub type off_t = u64;
23 pub type time_t = i64;
24 
25 pub type pthread_t = u32;
26 
27 #[repr(C)]
28 #[derive(Clone)]
29 pub struct stat {
30     pub st_dev: dev_t,
31     pub st_ino: ino_t,
32     pub st_mode: mode_t,
33     pub st_nlink: nlink_t,
34     pub st_uid: uid_t,
35     pub st_gid: gid_t,
36     pub st_rdev: dev_t,
37     pub st_size: off_t,
38     pub st_atime: time_t,
39     pub st_atime_nsec: c_long,
40     pub st_mtime: time_t,
41     pub st_mtime_nsec: c_long,
42     pub st_ctime: time_t,
43     pub st_ctime_nsec: c_long,
44     pub st_blksize: blksize_t,
45     pub st_blocks: blkcnt_t,
46     pub __unused: [u8; 16],
47 }
48