xref: /drstd/src/std/os/openbsd/raw.rs (revision 0fe3ff0054d3aec7fbf9bddecfecb10bc7d23a51)
1 //! OpenBSD-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_mode: u32,
30     pub st_dev: i32,
31     pub st_ino: u64,
32     pub st_nlink: u32,
33     pub st_uid: u32,
34     pub st_gid: u32,
35     pub st_rdev: i32,
36     pub st_atime: i64,
37     pub st_atime_nsec: c_long,
38     pub st_mtime: i64,
39     pub st_mtime_nsec: c_long,
40     pub st_ctime: i64,
41     pub st_ctime_nsec: c_long,
42     pub st_size: i64,
43     pub st_blocks: i64,
44     pub st_blksize: i32,
45     pub st_flags: u32,
46     pub st_gen: u32,
47     pub st_birthtime: i64,
48     pub st_birthtime_nsec: c_long,
49 }
50