xref: /drstd/src/std/os/ios/raw.rs (revision 86982c5e9b2eaa583327251616ee822c36288824)
1 //! iOS-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 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 = usize;
24 
25 #[repr(C)]
26 #[derive(Clone)]
27 pub struct stat {
28     pub st_dev: i32,
29     pub st_mode: u16,
30     pub st_nlink: u16,
31     pub st_ino: u64,
32     pub st_uid: u32,
33     pub st_gid: u32,
34     pub st_rdev: i32,
35     pub st_atime: c_long,
36     pub st_atime_nsec: c_long,
37     pub st_mtime: c_long,
38     pub st_mtime_nsec: c_long,
39     pub st_ctime: c_long,
40     pub st_ctime_nsec: c_long,
41     pub st_birthtime: c_long,
42     pub st_birthtime_nsec: c_long,
43     pub st_size: i64,
44     pub st_blocks: i64,
45     pub st_blksize: i32,
46     pub st_flags: u32,
47     pub st_gen: u32,
48     pub st_lspare: i32,
49     pub st_qspare: [i64; 2],
50 }
51