1 //! Fuchsia-specific raw type definitions
3 #![stable(feature = "raw_ext", since = "1.1.0")]
6 reason
= "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",
34 use crate::os
::raw
::{c_long, c_short, c_uint}
;
36 #[stable(feature = "raw_ext", since = "1.1.0")]
37 pub type blkcnt_t
= u64;
38 #[stable(feature = "raw_ext", since = "1.1.0")]
39 pub type blksize_t
= u64;
40 #[stable(feature = "raw_ext", since = "1.1.0")]
42 #[stable(feature = "raw_ext", since = "1.1.0")]
43 pub type nlink_t
= u64;
44 #[stable(feature = "raw_ext", since = "1.1.0")]
46 #[stable(feature = "raw_ext", since = "1.1.0")]
47 pub type time_t
= i64;
51 #[stable(feature = "raw_ext", since = "1.1.0")]
53 #[stable(feature = "raw_ext", since = "1.1.0")]
55 #[stable(feature = "raw_ext", since = "1.1.0")]
57 #[stable(feature = "raw_ext", since = "1.1.0")]
59 #[stable(feature = "raw_ext", since = "1.1.0")]
61 #[stable(feature = "raw_ext", since = "1.1.0")]
63 #[stable(feature = "raw_ext", since = "1.1.0")]
65 #[stable(feature = "raw_ext", since = "1.1.0")]
67 #[stable(feature = "raw_ext", since = "1.1.0")]
69 #[stable(feature = "raw_ext", since = "1.1.0")]
71 #[stable(feature = "raw_ext", since = "1.1.0")]
73 #[stable(feature = "raw_ext", since = "1.1.0")]
75 #[stable(feature = "raw_ext", since = "1.1.0")]
77 #[stable(feature = "raw_ext", since = "1.1.0")]
79 #[stable(feature = "raw_ext", since = "1.1.0")]
80 pub st_atime_nsec
: c_long
,
81 #[stable(feature = "raw_ext", since = "1.1.0")]
83 #[stable(feature = "raw_ext", since = "1.1.0")]
84 pub st_mtime_nsec
: c_long
,
85 #[stable(feature = "raw_ext", since = "1.1.0")]
87 #[stable(feature = "raw_ext", since = "1.1.0")]
88 pub st_ctime_nsec
: c_long
,
89 #[stable(feature = "raw_ext", since = "1.1.0")]
94 #[cfg(target_arch = "mips")]
96 use crate::os
::raw
::{c_long, c_ulong}
;
98 #[cfg(target_env = "musl")]
99 #[stable(feature = "raw_ext", since = "1.1.0")]
100 pub type blkcnt_t
= i64;
101 #[cfg(not(target_env = "musl"))]
102 #[stable(feature = "raw_ext", since = "1.1.0")]
103 pub type blkcnt_t
= u64;
104 #[stable(feature = "raw_ext", since = "1.1.0")]
105 pub type blksize_t
= u64;
106 #[cfg(target_env = "musl")]
107 #[stable(feature = "raw_ext", since = "1.1.0")]
108 pub type ino_t
= u64;
109 #[cfg(not(target_env = "musl"))]
110 #[stable(feature = "raw_ext", since = "1.1.0")]
111 pub type ino_t
= u64;
112 #[stable(feature = "raw_ext", since = "1.1.0")]
113 pub type nlink_t
= u64;
114 #[cfg(target_env = "musl")]
115 #[stable(feature = "raw_ext", since = "1.1.0")]
116 pub type off_t
= u64;
117 #[cfg(not(target_env = "musl"))]
118 #[stable(feature = "raw_ext", since = "1.1.0")]
119 pub type off_t
= u64;
120 #[stable(feature = "raw_ext", since = "1.1.0")]
121 pub type time_t
= i64;
125 #[stable(feature = "raw_ext", since = "1.1.0")]
127 #[stable(feature = "raw_ext", since = "1.1.0")]
129 #[stable(feature = "raw_ext", since = "1.1.0")]
130 pub st_pad1
: [c_long
; 3],
131 #[stable(feature = "raw_ext", since = "1.1.0")]
133 #[stable(feature = "raw_ext", since = "1.1.0")]
135 #[stable(feature = "raw_ext", since = "1.1.0")]
137 #[stable(feature = "raw_ext", since = "1.1.0")]
139 #[stable(feature = "raw_ext", since = "1.1.0")]
141 #[stable(feature = "raw_ext", since = "1.1.0")]
142 pub st_rdev
: c_ulong
,
143 #[stable(feature = "raw_ext", since = "1.1.0")]
144 pub st_pad2
: [c_long
; 2],
145 #[stable(feature = "raw_ext", since = "1.1.0")]
147 #[stable(feature = "raw_ext", since = "1.1.0")]
149 #[stable(feature = "raw_ext", since = "1.1.0")]
150 pub st_atime_nsec
: c_long
,
151 #[stable(feature = "raw_ext", since = "1.1.0")]
153 #[stable(feature = "raw_ext", since = "1.1.0")]
154 pub st_mtime_nsec
: c_long
,
155 #[stable(feature = "raw_ext", since = "1.1.0")]
157 #[stable(feature = "raw_ext", since = "1.1.0")]
158 pub st_ctime_nsec
: c_long
,
159 #[stable(feature = "raw_ext", since = "1.1.0")]
161 #[stable(feature = "raw_ext", since = "1.1.0")]
163 #[stable(feature = "raw_ext", since = "1.1.0")]
164 pub st_pad5
: [c_long
; 14],
168 #[cfg(target_arch = "mips64")]
170 pub use libc
::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t}
;
173 #[cfg(target_arch = "aarch64")]
175 use crate::os
::raw
::{c_int, c_long}
;
177 #[stable(feature = "raw_ext", since = "1.1.0")]
178 pub type blkcnt_t
= u64;
179 #[stable(feature = "raw_ext", since = "1.1.0")]
180 pub type blksize_t
= u64;
181 #[stable(feature = "raw_ext", since = "1.1.0")]
182 pub type ino_t
= u64;
183 #[stable(feature = "raw_ext", since = "1.1.0")]
184 pub type nlink_t
= u64;
185 #[stable(feature = "raw_ext", since = "1.1.0")]
186 pub type off_t
= u64;
187 #[stable(feature = "raw_ext", since = "1.1.0")]
188 pub type time_t
= i64;
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")]
220 #[stable(feature = "raw_ext", since = "1.1.0")]
221 pub st_atime_nsec
: c_long
,
222 #[stable(feature = "raw_ext", since = "1.1.0")]
224 #[stable(feature = "raw_ext", since = "1.1.0")]
225 pub st_mtime_nsec
: c_long
,
226 #[stable(feature = "raw_ext", since = "1.1.0")]
228 #[stable(feature = "raw_ext", since = "1.1.0")]
229 pub st_ctime_nsec
: c_long
,
230 #[stable(feature = "raw_ext", since = "1.1.0")]
231 pub __unused
: [c_int
; 2],
235 #[cfg(target_arch = "x86_64")]
237 use crate::os
::raw
::{c_int, c_long}
;
239 #[stable(feature = "raw_ext", since = "1.1.0")]
240 pub type blkcnt_t
= u64;
241 #[stable(feature = "raw_ext", since = "1.1.0")]
242 pub type blksize_t
= u64;
243 #[stable(feature = "raw_ext", since = "1.1.0")]
244 pub type ino_t
= u64;
245 #[stable(feature = "raw_ext", since = "1.1.0")]
246 pub type nlink_t
= u64;
247 #[stable(feature = "raw_ext", since = "1.1.0")]
248 pub type off_t
= u64;
249 #[stable(feature = "raw_ext", since = "1.1.0")]
250 pub type time_t
= i64;
254 #[stable(feature = "raw_ext", since = "1.1.0")]
256 #[stable(feature = "raw_ext", since = "1.1.0")]
258 #[stable(feature = "raw_ext", since = "1.1.0")]
260 #[stable(feature = "raw_ext", since = "1.1.0")]
262 #[stable(feature = "raw_ext", since = "1.1.0")]
264 #[stable(feature = "raw_ext", since = "1.1.0")]
266 #[stable(feature = "raw_ext", since = "1.1.0")]
268 #[stable(feature = "raw_ext", since = "1.1.0")]
270 #[stable(feature = "raw_ext", since = "1.1.0")]
272 #[stable(feature = "raw_ext", since = "1.1.0")]
274 #[stable(feature = "raw_ext", since = "1.1.0")]
276 #[stable(feature = "raw_ext", since = "1.1.0")]
278 #[stable(feature = "raw_ext", since = "1.1.0")]
280 #[stable(feature = "raw_ext", since = "1.1.0")]
281 pub st_atime_nsec
: c_long
,
282 #[stable(feature = "raw_ext", since = "1.1.0")]
284 #[stable(feature = "raw_ext", since = "1.1.0")]
285 pub st_mtime_nsec
: c_long
,
286 #[stable(feature = "raw_ext", since = "1.1.0")]
288 #[stable(feature = "raw_ext", since = "1.1.0")]
289 pub st_ctime_nsec
: c_long
,
290 #[stable(feature = "raw_ext", since = "1.1.0")]
291 pub __unused
: [c_long
; 3],