1 //! L4Re-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};
30 target_arch = "powerpc",
31 target_arch = "sparc",
33 target_arch = "asmjs",
34 target_arch = "wasm32"
37 use crate::os::raw::{c_long, c_short, c_uint};
39 #[stable(feature = "raw_ext", since = "1.1.0")]
40 pub type blkcnt_t = u64;
41 #[stable(feature = "raw_ext", since = "1.1.0")]
42 pub type blksize_t = u64;
43 #[stable(feature = "raw_ext", since = "1.1.0")]
45 #[stable(feature = "raw_ext", since = "1.1.0")]
46 pub type nlink_t = u64;
47 #[stable(feature = "raw_ext", since = "1.1.0")]
49 #[stable(feature = "raw_ext", since = "1.1.0")]
50 pub type time_t = i64;
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")]
76 #[stable(feature = "raw_ext", since = "1.1.0")]
78 #[stable(feature = "raw_ext", since = "1.1.0")]
80 #[stable(feature = "raw_ext", since = "1.1.0")]
82 #[stable(feature = "raw_ext", since = "1.1.0")]
83 pub st_atime_nsec: c_long,
84 #[stable(feature = "raw_ext", since = "1.1.0")]
86 #[stable(feature = "raw_ext", since = "1.1.0")]
87 pub st_mtime_nsec: c_long,
88 #[stable(feature = "raw_ext", since = "1.1.0")]
90 #[stable(feature = "raw_ext", since = "1.1.0")]
91 pub st_ctime_nsec: c_long,
92 #[stable(feature = "raw_ext", since = "1.1.0")]
97 #[cfg(target_arch = "mips")]
99 use crate::os::raw::{c_long, c_ulong};
101 #[cfg(target_env = "musl")]
102 #[stable(feature = "raw_ext", since = "1.1.0")]
103 pub type blkcnt_t = i64;
104 #[cfg(not(target_env = "musl"))]
105 #[stable(feature = "raw_ext", since = "1.1.0")]
106 pub type blkcnt_t = u64;
107 #[stable(feature = "raw_ext", since = "1.1.0")]
108 pub type blksize_t = u64;
109 #[cfg(target_env = "musl")]
110 #[stable(feature = "raw_ext", since = "1.1.0")]
111 pub type ino_t = u64;
112 #[cfg(not(target_env = "musl"))]
113 #[stable(feature = "raw_ext", since = "1.1.0")]
114 pub type ino_t = u64;
115 #[stable(feature = "raw_ext", since = "1.1.0")]
116 pub type nlink_t = u64;
117 #[cfg(target_env = "musl")]
118 #[stable(feature = "raw_ext", since = "1.1.0")]
119 pub type off_t = u64;
120 #[cfg(not(target_env = "musl"))]
121 #[stable(feature = "raw_ext", since = "1.1.0")]
122 pub type off_t = u64;
123 #[stable(feature = "raw_ext", since = "1.1.0")]
124 pub type time_t = i64;
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")]
133 pub st_pad1: [c_long; 3],
134 #[stable(feature = "raw_ext", since = "1.1.0")]
136 #[stable(feature = "raw_ext", since = "1.1.0")]
138 #[stable(feature = "raw_ext", since = "1.1.0")]
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_rdev: c_ulong,
146 #[stable(feature = "raw_ext", since = "1.1.0")]
147 pub st_pad2: [c_long; 2],
148 #[stable(feature = "raw_ext", since = "1.1.0")]
150 #[stable(feature = "raw_ext", since = "1.1.0")]
152 #[stable(feature = "raw_ext", since = "1.1.0")]
153 pub st_atime_nsec: c_long,
154 #[stable(feature = "raw_ext", since = "1.1.0")]
156 #[stable(feature = "raw_ext", since = "1.1.0")]
157 pub st_mtime_nsec: c_long,
158 #[stable(feature = "raw_ext", since = "1.1.0")]
160 #[stable(feature = "raw_ext", since = "1.1.0")]
161 pub st_ctime_nsec: c_long,
162 #[stable(feature = "raw_ext", since = "1.1.0")]
164 #[stable(feature = "raw_ext", since = "1.1.0")]
166 #[stable(feature = "raw_ext", since = "1.1.0")]
167 pub st_pad5: [c_long; 14],
171 #[cfg(target_arch = "hexagon")]
173 use crate::os::raw::{c_int, c_long, c_uint};
175 #[stable(feature = "raw_ext", since = "1.1.0")]
176 pub type blkcnt_t = i64;
177 #[stable(feature = "raw_ext", since = "1.1.0")]
178 pub type blksize_t = c_long;
179 #[stable(feature = "raw_ext", since = "1.1.0")]
180 pub type ino_t = u64;
181 #[stable(feature = "raw_ext", since = "1.1.0")]
182 pub type nlink_t = c_uint;
183 #[stable(feature = "raw_ext", since = "1.1.0")]
184 pub type off_t = i64;
185 #[stable(feature = "raw_ext", since = "1.1.0")]
186 pub type time_t = i64;
190 #[stable(feature = "raw_ext", since = "1.1.0")]
192 #[stable(feature = "raw_ext", since = "1.1.0")]
194 #[stable(feature = "raw_ext", since = "1.1.0")]
196 #[stable(feature = "raw_ext", since = "1.1.0")]
198 #[stable(feature = "raw_ext", since = "1.1.0")]
200 #[stable(feature = "raw_ext", since = "1.1.0")]
202 #[stable(feature = "raw_ext", since = "1.1.0")]
204 #[stable(feature = "raw_ext", since = "1.1.0")]
206 #[stable(feature = "raw_ext", since = "1.1.0")]
208 #[stable(feature = "raw_ext", since = "1.1.0")]
210 #[stable(feature = "raw_ext", since = "1.1.0")]
212 #[stable(feature = "raw_ext", since = "1.1.0")]
214 #[stable(feature = "raw_ext", since = "1.1.0")]
216 #[stable(feature = "raw_ext", since = "1.1.0")]
218 #[stable(feature = "raw_ext", since = "1.1.0")]
219 pub st_atime_nsec: c_long,
220 #[stable(feature = "raw_ext", since = "1.1.0")]
222 #[stable(feature = "raw_ext", since = "1.1.0")]
223 pub st_mtime_nsec: c_long,
224 #[stable(feature = "raw_ext", since = "1.1.0")]
226 #[stable(feature = "raw_ext", since = "1.1.0")]
227 pub st_ctime_nsec: c_long,
228 #[stable(feature = "raw_ext", since = "1.1.0")]
229 pub __pad3: [c_int; 2],
234 target_arch = "mips64",
235 target_arch = "s390x",
236 target_arch = "sparc64",
237 target_arch = "riscv64",
238 target_arch = "riscv32"
241 pub use libc::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t};
244 #[cfg(target_arch = "aarch64")]
246 use crate::os::raw::{c_int, c_long};
248 #[stable(feature = "raw_ext", since = "1.1.0")]
249 pub type blkcnt_t = i64;
250 #[stable(feature = "raw_ext", since = "1.1.0")]
251 pub type blksize_t = i32;
252 #[stable(feature = "raw_ext", since = "1.1.0")]
253 pub type ino_t = u64;
254 #[stable(feature = "raw_ext", since = "1.1.0")]
255 pub type nlink_t = u32;
256 #[stable(feature = "raw_ext", since = "1.1.0")]
257 pub type off_t = i64;
258 #[stable(feature = "raw_ext", since = "1.1.0")]
259 pub type time_t = c_long;
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")]
277 #[stable(feature = "raw_ext", since = "1.1.0")]
279 #[stable(feature = "raw_ext", since = "1.1.0")]
281 #[stable(feature = "raw_ext", since = "1.1.0")]
283 #[stable(feature = "raw_ext", since = "1.1.0")]
285 #[stable(feature = "raw_ext", since = "1.1.0")]
287 #[stable(feature = "raw_ext", since = "1.1.0")]
289 #[stable(feature = "raw_ext", since = "1.1.0")]
290 pub st_atime: time_t,
291 #[stable(feature = "raw_ext", since = "1.1.0")]
292 pub st_atime_nsec: c_long,
293 #[stable(feature = "raw_ext", since = "1.1.0")]
294 pub st_mtime: time_t,
295 #[stable(feature = "raw_ext", since = "1.1.0")]
296 pub st_mtime_nsec: c_long,
297 #[stable(feature = "raw_ext", since = "1.1.0")]
298 pub st_ctime: time_t,
299 #[stable(feature = "raw_ext", since = "1.1.0")]
300 pub st_ctime_nsec: c_long,
301 #[stable(feature = "raw_ext", since = "1.1.0")]
302 pub __unused: [c_int; 2],
306 #[cfg(any(target_arch = "x86_64", target_arch = "powerpc64"))]
308 use crate::os::raw::{c_int, c_long};
310 #[stable(feature = "raw_ext", since = "1.1.0")]
311 pub type blkcnt_t = u64;
312 #[stable(feature = "raw_ext", since = "1.1.0")]
313 pub type blksize_t = u64;
314 #[stable(feature = "raw_ext", since = "1.1.0")]
315 pub type ino_t = u64;
316 #[stable(feature = "raw_ext", since = "1.1.0")]
317 pub type nlink_t = u64;
318 #[stable(feature = "raw_ext", since = "1.1.0")]
319 pub type off_t = u64;
320 #[stable(feature = "raw_ext", since = "1.1.0")]
321 pub type time_t = i64;
325 #[stable(feature = "raw_ext", since = "1.1.0")]
327 #[stable(feature = "raw_ext", since = "1.1.0")]
329 #[stable(feature = "raw_ext", since = "1.1.0")]
331 #[stable(feature = "raw_ext", since = "1.1.0")]
333 #[stable(feature = "raw_ext", since = "1.1.0")]
335 #[stable(feature = "raw_ext", since = "1.1.0")]
337 #[stable(feature = "raw_ext", since = "1.1.0")]
339 #[stable(feature = "raw_ext", since = "1.1.0")]
341 #[stable(feature = "raw_ext", since = "1.1.0")]
343 #[stable(feature = "raw_ext", since = "1.1.0")]
345 #[stable(feature = "raw_ext", since = "1.1.0")]
347 #[stable(feature = "raw_ext", since = "1.1.0")]
349 #[stable(feature = "raw_ext", since = "1.1.0")]
351 #[stable(feature = "raw_ext", since = "1.1.0")]
352 pub st_atime_nsec: c_long,
353 #[stable(feature = "raw_ext", since = "1.1.0")]
355 #[stable(feature = "raw_ext", since = "1.1.0")]
356 pub st_mtime_nsec: c_long,
357 #[stable(feature = "raw_ext", since = "1.1.0")]
359 #[stable(feature = "raw_ext", since = "1.1.0")]
360 pub st_ctime_nsec: c_long,
361 #[stable(feature = "raw_ext", since = "1.1.0")]
362 pub __unused: [c_long; 3],