1 //! Fuchsia-specific raw type definitions
3 #![stable(feature = "raw_ext", since = "1.1.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 \
13 use crate::os::raw::c_ulong;
15 #[stable(feature = "raw_ext", since = "1.1.0")]
17 #[stable(feature = "raw_ext", since = "1.1.0")]
18 pub type mode_t = u32;
20 #[stable(feature = "pthread_t", since = "1.8.0")]
21 pub type pthread_t = c_ulong;
24 #[stable(feature = "raw_ext", since = "1.1.0")]
25 pub use self::arch::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t};
27 #[cfg(any(target_arch = "x86", target_arch = "powerpc", target_arch = "arm"))]
29 use crate::os::raw::{c_long, c_short, c_uint};
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub type blkcnt_t = u64;
33 #[stable(feature = "raw_ext", since = "1.1.0")]
34 pub type blksize_t = u64;
35 #[stable(feature = "raw_ext", since = "1.1.0")]
37 #[stable(feature = "raw_ext", since = "1.1.0")]
38 pub type nlink_t = u64;
39 #[stable(feature = "raw_ext", since = "1.1.0")]
41 #[stable(feature = "raw_ext", since = "1.1.0")]
42 pub type time_t = i64;
46 #[stable(feature = "raw_ext", since = "1.1.0")]
48 #[stable(feature = "raw_ext", since = "1.1.0")]
50 #[stable(feature = "raw_ext", since = "1.1.0")]
52 #[stable(feature = "raw_ext", since = "1.1.0")]
54 #[stable(feature = "raw_ext", since = "1.1.0")]
56 #[stable(feature = "raw_ext", since = "1.1.0")]
58 #[stable(feature = "raw_ext", since = "1.1.0")]
60 #[stable(feature = "raw_ext", since = "1.1.0")]
62 #[stable(feature = "raw_ext", since = "1.1.0")]
64 #[stable(feature = "raw_ext", since = "1.1.0")]
66 #[stable(feature = "raw_ext", since = "1.1.0")]
68 #[stable(feature = "raw_ext", since = "1.1.0")]
70 #[stable(feature = "raw_ext", since = "1.1.0")]
72 #[stable(feature = "raw_ext", since = "1.1.0")]
74 #[stable(feature = "raw_ext", since = "1.1.0")]
75 pub st_atime_nsec: c_long,
76 #[stable(feature = "raw_ext", since = "1.1.0")]
78 #[stable(feature = "raw_ext", since = "1.1.0")]
79 pub st_mtime_nsec: c_long,
80 #[stable(feature = "raw_ext", since = "1.1.0")]
82 #[stable(feature = "raw_ext", since = "1.1.0")]
83 pub st_ctime_nsec: c_long,
84 #[stable(feature = "raw_ext", since = "1.1.0")]
89 #[cfg(target_arch = "mips")]
91 use crate::os::raw::{c_long, c_ulong};
93 #[cfg(target_env = "musl")]
94 #[stable(feature = "raw_ext", since = "1.1.0")]
95 pub type blkcnt_t = i64;
96 #[cfg(not(target_env = "musl"))]
97 #[stable(feature = "raw_ext", since = "1.1.0")]
98 pub type blkcnt_t = u64;
99 #[stable(feature = "raw_ext", since = "1.1.0")]
100 pub type blksize_t = u64;
101 #[cfg(target_env = "musl")]
102 #[stable(feature = "raw_ext", since = "1.1.0")]
103 pub type ino_t = u64;
104 #[cfg(not(target_env = "musl"))]
105 #[stable(feature = "raw_ext", since = "1.1.0")]
106 pub type ino_t = u64;
107 #[stable(feature = "raw_ext", since = "1.1.0")]
108 pub type nlink_t = u64;
109 #[cfg(target_env = "musl")]
110 #[stable(feature = "raw_ext", since = "1.1.0")]
111 pub type off_t = u64;
112 #[cfg(not(target_env = "musl"))]
113 #[stable(feature = "raw_ext", since = "1.1.0")]
114 pub type off_t = u64;
115 #[stable(feature = "raw_ext", since = "1.1.0")]
116 pub type time_t = i64;
120 #[stable(feature = "raw_ext", since = "1.1.0")]
122 #[stable(feature = "raw_ext", since = "1.1.0")]
124 #[stable(feature = "raw_ext", since = "1.1.0")]
125 pub st_pad1: [c_long; 3],
126 #[stable(feature = "raw_ext", since = "1.1.0")]
128 #[stable(feature = "raw_ext", since = "1.1.0")]
130 #[stable(feature = "raw_ext", since = "1.1.0")]
132 #[stable(feature = "raw_ext", since = "1.1.0")]
134 #[stable(feature = "raw_ext", since = "1.1.0")]
136 #[stable(feature = "raw_ext", since = "1.1.0")]
137 pub st_rdev: c_ulong,
138 #[stable(feature = "raw_ext", since = "1.1.0")]
139 pub st_pad2: [c_long; 2],
140 #[stable(feature = "raw_ext", since = "1.1.0")]
142 #[stable(feature = "raw_ext", since = "1.1.0")]
144 #[stable(feature = "raw_ext", since = "1.1.0")]
145 pub st_atime_nsec: c_long,
146 #[stable(feature = "raw_ext", since = "1.1.0")]
148 #[stable(feature = "raw_ext", since = "1.1.0")]
149 pub st_mtime_nsec: c_long,
150 #[stable(feature = "raw_ext", since = "1.1.0")]
152 #[stable(feature = "raw_ext", since = "1.1.0")]
153 pub st_ctime_nsec: c_long,
154 #[stable(feature = "raw_ext", since = "1.1.0")]
156 #[stable(feature = "raw_ext", since = "1.1.0")]
158 #[stable(feature = "raw_ext", since = "1.1.0")]
159 pub st_pad5: [c_long; 14],
163 #[cfg(target_arch = "mips64")]
165 pub use libc::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t};
168 #[cfg(target_arch = "aarch64")]
170 use crate::os::raw::{c_int, c_long};
172 #[stable(feature = "raw_ext", since = "1.1.0")]
173 pub type blkcnt_t = u64;
174 #[stable(feature = "raw_ext", since = "1.1.0")]
175 pub type blksize_t = u64;
176 #[stable(feature = "raw_ext", since = "1.1.0")]
177 pub type ino_t = u64;
178 #[stable(feature = "raw_ext", since = "1.1.0")]
179 pub type nlink_t = u64;
180 #[stable(feature = "raw_ext", since = "1.1.0")]
181 pub type off_t = u64;
182 #[stable(feature = "raw_ext", since = "1.1.0")]
183 pub type time_t = i64;
187 #[stable(feature = "raw_ext", since = "1.1.0")]
189 #[stable(feature = "raw_ext", since = "1.1.0")]
191 #[stable(feature = "raw_ext", since = "1.1.0")]
193 #[stable(feature = "raw_ext", since = "1.1.0")]
195 #[stable(feature = "raw_ext", since = "1.1.0")]
197 #[stable(feature = "raw_ext", since = "1.1.0")]
199 #[stable(feature = "raw_ext", since = "1.1.0")]
201 #[stable(feature = "raw_ext", since = "1.1.0")]
203 #[stable(feature = "raw_ext", since = "1.1.0")]
205 #[stable(feature = "raw_ext", since = "1.1.0")]
207 #[stable(feature = "raw_ext", since = "1.1.0")]
209 #[stable(feature = "raw_ext", since = "1.1.0")]
211 #[stable(feature = "raw_ext", since = "1.1.0")]
213 #[stable(feature = "raw_ext", since = "1.1.0")]
215 #[stable(feature = "raw_ext", since = "1.1.0")]
216 pub st_atime_nsec: c_long,
217 #[stable(feature = "raw_ext", since = "1.1.0")]
219 #[stable(feature = "raw_ext", since = "1.1.0")]
220 pub st_mtime_nsec: c_long,
221 #[stable(feature = "raw_ext", since = "1.1.0")]
223 #[stable(feature = "raw_ext", since = "1.1.0")]
224 pub st_ctime_nsec: c_long,
225 #[stable(feature = "raw_ext", since = "1.1.0")]
226 pub __unused: [c_int; 2],
230 #[cfg(target_arch = "x86_64")]
232 use crate::os::raw::{c_int, c_long};
234 #[stable(feature = "raw_ext", since = "1.1.0")]
235 pub type blkcnt_t = u64;
236 #[stable(feature = "raw_ext", since = "1.1.0")]
237 pub type blksize_t = u64;
238 #[stable(feature = "raw_ext", since = "1.1.0")]
239 pub type ino_t = u64;
240 #[stable(feature = "raw_ext", since = "1.1.0")]
241 pub type nlink_t = u64;
242 #[stable(feature = "raw_ext", since = "1.1.0")]
243 pub type off_t = u64;
244 #[stable(feature = "raw_ext", since = "1.1.0")]
245 pub type time_t = i64;
249 #[stable(feature = "raw_ext", since = "1.1.0")]
251 #[stable(feature = "raw_ext", since = "1.1.0")]
253 #[stable(feature = "raw_ext", since = "1.1.0")]
255 #[stable(feature = "raw_ext", since = "1.1.0")]
257 #[stable(feature = "raw_ext", since = "1.1.0")]
259 #[stable(feature = "raw_ext", since = "1.1.0")]
261 #[stable(feature = "raw_ext", since = "1.1.0")]
263 #[stable(feature = "raw_ext", since = "1.1.0")]
265 #[stable(feature = "raw_ext", since = "1.1.0")]
267 #[stable(feature = "raw_ext", since = "1.1.0")]
269 #[stable(feature = "raw_ext", since = "1.1.0")]
271 #[stable(feature = "raw_ext", since = "1.1.0")]
273 #[stable(feature = "raw_ext", since = "1.1.0")]
275 #[stable(feature = "raw_ext", since = "1.1.0")]
276 pub st_atime_nsec: c_long,
277 #[stable(feature = "raw_ext", since = "1.1.0")]
279 #[stable(feature = "raw_ext", since = "1.1.0")]
280 pub st_mtime_nsec: c_long,
281 #[stable(feature = "raw_ext", since = "1.1.0")]
283 #[stable(feature = "raw_ext", since = "1.1.0")]
284 pub st_ctime_nsec: c_long,
285 #[stable(feature = "raw_ext", since = "1.1.0")]
286 pub __unused: [c_long; 3],