std/os/darwin/
raw.rs
1use crate::os::raw::c_long;
3
4#[stable(feature = "raw_ext", since = "1.1.0")]
5pub type blkcnt_t = u64;
6#[stable(feature = "raw_ext", since = "1.1.0")]
7pub type blksize_t = u64;
8#[stable(feature = "raw_ext", since = "1.1.0")]
9pub type dev_t = u64;
10#[stable(feature = "raw_ext", since = "1.1.0")]
11pub type ino_t = u64;
12#[stable(feature = "raw_ext", since = "1.1.0")]
13pub type mode_t = u32;
14#[stable(feature = "raw_ext", since = "1.1.0")]
15pub type nlink_t = u64;
16#[stable(feature = "raw_ext", since = "1.1.0")]
17pub type off_t = u64;
18#[stable(feature = "raw_ext", since = "1.1.0")]
19pub type time_t = i64;
20
21#[stable(feature = "pthread_t", since = "1.8.0")]
22pub type pthread_t = usize;
23
24#[repr(C)]
25#[derive(Clone)]
26#[stable(feature = "raw_ext", since = "1.1.0")]
27#[allow(dead_code)]
28pub struct stat {
29 #[stable(feature = "raw_ext", since = "1.1.0")]
30 pub st_dev: i32,
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub st_mode: u16,
33 #[stable(feature = "raw_ext", since = "1.1.0")]
34 pub st_nlink: u16,
35 #[stable(feature = "raw_ext", since = "1.1.0")]
36 pub st_ino: u64,
37 #[stable(feature = "raw_ext", since = "1.1.0")]
38 pub st_uid: u32,
39 #[stable(feature = "raw_ext", since = "1.1.0")]
40 pub st_gid: u32,
41 #[stable(feature = "raw_ext", since = "1.1.0")]
42 pub st_rdev: i32,
43 #[stable(feature = "raw_ext", since = "1.1.0")]
44 pub st_atime: c_long,
45 #[stable(feature = "raw_ext", since = "1.1.0")]
46 pub st_atime_nsec: c_long,
47 #[stable(feature = "raw_ext", since = "1.1.0")]
48 pub st_mtime: c_long,
49 #[stable(feature = "raw_ext", since = "1.1.0")]
50 pub st_mtime_nsec: c_long,
51 #[stable(feature = "raw_ext", since = "1.1.0")]
52 pub st_ctime: c_long,
53 #[stable(feature = "raw_ext", since = "1.1.0")]
54 pub st_ctime_nsec: c_long,
55 #[stable(feature = "raw_ext", since = "1.1.0")]
56 pub st_birthtime: c_long,
57 #[stable(feature = "raw_ext", since = "1.1.0")]
58 pub st_birthtime_nsec: c_long,
59 #[stable(feature = "raw_ext", since = "1.1.0")]
60 pub st_size: i64,
61 #[stable(feature = "raw_ext", since = "1.1.0")]
62 pub st_blocks: i64,
63 #[stable(feature = "raw_ext", since = "1.1.0")]
64 pub st_blksize: i32,
65 #[stable(feature = "raw_ext", since = "1.1.0")]
66 pub st_flags: u32,
67 #[stable(feature = "raw_ext", since = "1.1.0")]
68 pub st_gen: u32,
69 #[stable(feature = "raw_ext", since = "1.1.0")]
70 pub st_lspare: i32,
71 #[stable(feature = "raw_ext", since = "1.1.0")]
72 pub st_qspare: [i64; 2],
73}