]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/openbsd/raw.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / library / std / src / os / openbsd / raw.rs
1 //! OpenBSD-specific raw type definitions
2
3 #![stable(feature = "raw_ext", since = "1.1.0")]
4 #![deprecated(
5     since = "1.8.0",
6     note = "these type aliases are no longer supported by \
7             the standard library, the `libc` crate on \
8             crates.io should be used instead for the correct \
9             definitions"
10 )]
11 #![allow(deprecated)]
12
13 use crate::os::raw::c_long;
14
15 #[stable(feature = "raw_ext", since = "1.1.0")]
16 pub type blkcnt_t = u64;
17 #[stable(feature = "raw_ext", since = "1.1.0")]
18 pub type blksize_t = u64;
19 #[stable(feature = "raw_ext", since = "1.1.0")]
20 pub type dev_t = u64;
21 #[stable(feature = "raw_ext", since = "1.1.0")]
22 pub type fflags_t = u32;
23 #[stable(feature = "raw_ext", since = "1.1.0")]
24 pub type ino_t = u64;
25 #[stable(feature = "raw_ext", since = "1.1.0")]
26 pub type mode_t = u32;
27 #[stable(feature = "raw_ext", since = "1.1.0")]
28 pub type nlink_t = u64;
29 #[stable(feature = "raw_ext", since = "1.1.0")]
30 pub type off_t = u64;
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub type time_t = i64;
33
34 #[stable(feature = "pthread_t", since = "1.8.0")]
35 pub type pthread_t = usize;
36
37 #[repr(C)]
38 #[derive(Clone)]
39 #[stable(feature = "raw_ext", since = "1.1.0")]
40 pub struct stat {
41     #[stable(feature = "raw_ext", since = "1.1.0")]
42     pub st_mode: u32,
43     #[stable(feature = "raw_ext", since = "1.1.0")]
44     pub st_dev: i32,
45     #[stable(feature = "raw_ext", since = "1.1.0")]
46     pub st_ino: u64,
47     #[stable(feature = "raw_ext", since = "1.1.0")]
48     pub st_nlink: u32,
49     #[stable(feature = "raw_ext", since = "1.1.0")]
50     pub st_uid: u32,
51     #[stable(feature = "raw_ext", since = "1.1.0")]
52     pub st_gid: u32,
53     #[stable(feature = "raw_ext", since = "1.1.0")]
54     pub st_rdev: i32,
55     #[stable(feature = "raw_ext", since = "1.1.0")]
56     pub st_atime: i64,
57     #[stable(feature = "raw_ext", since = "1.1.0")]
58     pub st_atime_nsec: c_long,
59     #[stable(feature = "raw_ext", since = "1.1.0")]
60     pub st_mtime: i64,
61     #[stable(feature = "raw_ext", since = "1.1.0")]
62     pub st_mtime_nsec: c_long,
63     #[stable(feature = "raw_ext", since = "1.1.0")]
64     pub st_ctime: i64,
65     #[stable(feature = "raw_ext", since = "1.1.0")]
66     pub st_ctime_nsec: c_long,
67     #[stable(feature = "raw_ext", since = "1.1.0")]
68     pub st_size: i64,
69     #[stable(feature = "raw_ext", since = "1.1.0")]
70     pub st_blocks: i64,
71     #[stable(feature = "raw_ext", since = "1.1.0")]
72     pub st_blksize: i32,
73     #[stable(feature = "raw_ext", since = "1.1.0")]
74     pub st_flags: u32,
75     #[stable(feature = "raw_ext", since = "1.1.0")]
76     pub st_gen: u32,
77     #[stable(feature = "raw_ext", since = "1.1.0")]
78     pub st_birthtime: i64,
79     #[stable(feature = "raw_ext", since = "1.1.0")]
80     pub st_birthtime_nsec: c_long,
81 }