1 /* automatically generated by rust-bindgen 0.69.4 */
2
3 pub const __WORDSIZE: u32 = 64;
4 pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
5 pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
6 pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
7 pub const __DARWIN_UNIX03: u32 = 1;
8 pub const __DARWIN_64_BIT_INO_T: u32 = 1;
9 pub const __DARWIN_VERS_1050: u32 = 1;
10 pub const __DARWIN_NON_CANCELABLE: u32 = 0;
11 pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
12 pub const __DARWIN_C_ANSI: u32 = 4096;
13 pub const __DARWIN_C_FULL: u32 = 900000;
14 pub const __DARWIN_C_LEVEL: u32 = 900000;
15 pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
16 pub const __DARWIN_NO_LONG_LONG: u32 = 0;
17 pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
18 pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
19 pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
20 pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
21 pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
22 pub const __has_ptrcheck: u32 = 0;
23 pub const __PTHREAD_SIZE__: u32 = 8176;
24 pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
25 pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
26 pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
27 pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
28 pub const __PTHREAD_COND_SIZE__: u32 = 40;
29 pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
30 pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
31 pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
32 pub const INT8_MAX: u32 = 127;
33 pub const INT16_MAX: u32 = 32767;
34 pub const INT32_MAX: u32 = 2147483647;
35 pub const INT64_MAX: u64 = 9223372036854775807;
36 pub const INT8_MIN: i32 = -128;
37 pub const INT16_MIN: i32 = -32768;
38 pub const INT32_MIN: i32 = -2147483648;
39 pub const INT64_MIN: i64 = -9223372036854775808;
40 pub const UINT8_MAX: u32 = 255;
41 pub const UINT16_MAX: u32 = 65535;
42 pub const UINT32_MAX: u32 = 4294967295;
43 pub const UINT64_MAX: i32 = -1;
44 pub const INT_LEAST8_MIN: i32 = -128;
45 pub const INT_LEAST16_MIN: i32 = -32768;
46 pub const INT_LEAST32_MIN: i32 = -2147483648;
47 pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
48 pub const INT_LEAST8_MAX: u32 = 127;
49 pub const INT_LEAST16_MAX: u32 = 32767;
50 pub const INT_LEAST32_MAX: u32 = 2147483647;
51 pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
52 pub const UINT_LEAST8_MAX: u32 = 255;
53 pub const UINT_LEAST16_MAX: u32 = 65535;
54 pub const UINT_LEAST32_MAX: u32 = 4294967295;
55 pub const UINT_LEAST64_MAX: i32 = -1;
56 pub const INT_FAST8_MIN: i32 = -128;
57 pub const INT_FAST16_MIN: i32 = -32768;
58 pub const INT_FAST32_MIN: i32 = -2147483648;
59 pub const INT_FAST64_MIN: i64 = -9223372036854775808;
60 pub const INT_FAST8_MAX: u32 = 127;
61 pub const INT_FAST16_MAX: u32 = 32767;
62 pub const INT_FAST32_MAX: u32 = 2147483647;
63 pub const INT_FAST64_MAX: u64 = 9223372036854775807;
64 pub const UINT_FAST8_MAX: u32 = 255;
65 pub const UINT_FAST16_MAX: u32 = 65535;
66 pub const UINT_FAST32_MAX: u32 = 4294967295;
67 pub const UINT_FAST64_MAX: i32 = -1;
68 pub const INTPTR_MAX: u64 = 9223372036854775807;
69 pub const INTPTR_MIN: i64 = -9223372036854775808;
70 pub const UINTPTR_MAX: i32 = -1;
71 pub const SIZE_MAX: i32 = -1;
72 pub const RSIZE_MAX: i32 = -1;
73 pub const WINT_MIN: i32 = -2147483648;
74 pub const WINT_MAX: u32 = 2147483647;
75 pub const SIG_ATOMIC_MIN: i32 = -2147483648;
76 pub const SIG_ATOMIC_MAX: u32 = 2147483647;
77 pub const MAX_KEY_MATERIAL_LEN: u32 = 32;
78 pub const VIRTIO_WIFI_CTRL_CMD_TERMINATE: &[u8; 19] = b"CTRL_CMD_TERMINATE\0";
79 pub const VIRTIO_WIFI_CTRL_CMD_RELOAD_CONFIG: &[u8; 23] = b"CTRL_CMD_RELOAD_CONFIG\0";
80 pub type int_least8_t = i8;
81 pub type int_least16_t = i16;
82 pub type int_least32_t = i32;
83 pub type int_least64_t = i64;
84 pub type uint_least8_t = u8;
85 pub type uint_least16_t = u16;
86 pub type uint_least32_t = u32;
87 pub type uint_least64_t = u64;
88 pub type int_fast8_t = i8;
89 pub type int_fast16_t = i16;
90 pub type int_fast32_t = i32;
91 pub type int_fast64_t = i64;
92 pub type uint_fast8_t = u8;
93 pub type uint_fast16_t = u16;
94 pub type uint_fast32_t = u32;
95 pub type uint_fast64_t = u64;
96 pub type __int8_t = ::std::os::raw::c_schar;
97 pub type __uint8_t = ::std::os::raw::c_uchar;
98 pub type __int16_t = ::std::os::raw::c_short;
99 pub type __uint16_t = ::std::os::raw::c_ushort;
100 pub type __int32_t = ::std::os::raw::c_int;
101 pub type __uint32_t = ::std::os::raw::c_uint;
102 pub type __int64_t = ::std::os::raw::c_longlong;
103 pub type __uint64_t = ::std::os::raw::c_ulonglong;
104 pub type __darwin_intptr_t = ::std::os::raw::c_long;
105 pub type __darwin_natural_t = ::std::os::raw::c_uint;
106 pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
107 #[repr(C)]
108 #[derive(Copy, Clone)]
109 pub union __mbstate_t {
110 pub __mbstate8: [::std::os::raw::c_char; 128usize],
111 pub _mbstateL: ::std::os::raw::c_longlong,
112 }
113 #[test]
bindgen_test_layout___mbstate_t()114 fn bindgen_test_layout___mbstate_t() {
115 const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
116 let ptr = UNINIT.as_ptr();
117 assert_eq!(
118 ::std::mem::size_of::<__mbstate_t>(),
119 128usize,
120 concat!("Size of: ", stringify!(__mbstate_t))
121 );
122 assert_eq!(
123 ::std::mem::align_of::<__mbstate_t>(),
124 8usize,
125 concat!("Alignment of ", stringify!(__mbstate_t))
126 );
127 assert_eq!(
128 unsafe { ::std::ptr::addr_of!((*ptr).__mbstate8) as usize - ptr as usize },
129 0usize,
130 concat!("Offset of field: ", stringify!(__mbstate_t), "::", stringify!(__mbstate8))
131 );
132 assert_eq!(
133 unsafe { ::std::ptr::addr_of!((*ptr)._mbstateL) as usize - ptr as usize },
134 0usize,
135 concat!("Offset of field: ", stringify!(__mbstate_t), "::", stringify!(_mbstateL))
136 );
137 }
138 pub type __darwin_mbstate_t = __mbstate_t;
139 pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
140 pub type __darwin_size_t = ::std::os::raw::c_ulong;
141 pub type __darwin_va_list = __builtin_va_list;
142 pub type __darwin_wchar_t = ::std::os::raw::c_int;
143 pub type __darwin_rune_t = __darwin_wchar_t;
144 pub type __darwin_wint_t = ::std::os::raw::c_int;
145 pub type __darwin_clock_t = ::std::os::raw::c_ulong;
146 pub type __darwin_socklen_t = __uint32_t;
147 pub type __darwin_ssize_t = ::std::os::raw::c_long;
148 pub type __darwin_time_t = ::std::os::raw::c_long;
149 pub type __darwin_blkcnt_t = __int64_t;
150 pub type __darwin_blksize_t = __int32_t;
151 pub type __darwin_dev_t = __int32_t;
152 pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
153 pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
154 pub type __darwin_gid_t = __uint32_t;
155 pub type __darwin_id_t = __uint32_t;
156 pub type __darwin_ino64_t = __uint64_t;
157 pub type __darwin_ino_t = __darwin_ino64_t;
158 pub type __darwin_mach_port_name_t = __darwin_natural_t;
159 pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
160 pub type __darwin_mode_t = __uint16_t;
161 pub type __darwin_off_t = __int64_t;
162 pub type __darwin_pid_t = __int32_t;
163 pub type __darwin_sigset_t = __uint32_t;
164 pub type __darwin_suseconds_t = __int32_t;
165 pub type __darwin_uid_t = __uint32_t;
166 pub type __darwin_useconds_t = __uint32_t;
167 pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
168 pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
169 #[repr(C)]
170 #[derive(Debug, Copy, Clone)]
171 pub struct __darwin_pthread_handler_rec {
172 pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
173 pub __arg: *mut ::std::os::raw::c_void,
174 pub __next: *mut __darwin_pthread_handler_rec,
175 }
176 #[test]
bindgen_test_layout___darwin_pthread_handler_rec()177 fn bindgen_test_layout___darwin_pthread_handler_rec() {
178 const UNINIT: ::std::mem::MaybeUninit<__darwin_pthread_handler_rec> =
179 ::std::mem::MaybeUninit::uninit();
180 let ptr = UNINIT.as_ptr();
181 assert_eq!(
182 ::std::mem::size_of::<__darwin_pthread_handler_rec>(),
183 24usize,
184 concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
185 );
186 assert_eq!(
187 ::std::mem::align_of::<__darwin_pthread_handler_rec>(),
188 8usize,
189 concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
190 );
191 assert_eq!(
192 unsafe { ::std::ptr::addr_of!((*ptr).__routine) as usize - ptr as usize },
193 0usize,
194 concat!(
195 "Offset of field: ",
196 stringify!(__darwin_pthread_handler_rec),
197 "::",
198 stringify!(__routine)
199 )
200 );
201 assert_eq!(
202 unsafe { ::std::ptr::addr_of!((*ptr).__arg) as usize - ptr as usize },
203 8usize,
204 concat!(
205 "Offset of field: ",
206 stringify!(__darwin_pthread_handler_rec),
207 "::",
208 stringify!(__arg)
209 )
210 );
211 assert_eq!(
212 unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
213 16usize,
214 concat!(
215 "Offset of field: ",
216 stringify!(__darwin_pthread_handler_rec),
217 "::",
218 stringify!(__next)
219 )
220 );
221 }
222 #[repr(C)]
223 #[derive(Debug, Copy, Clone)]
224 pub struct _opaque_pthread_attr_t {
225 pub __sig: ::std::os::raw::c_long,
226 pub __opaque: [::std::os::raw::c_char; 56usize],
227 }
228 #[test]
bindgen_test_layout__opaque_pthread_attr_t()229 fn bindgen_test_layout__opaque_pthread_attr_t() {
230 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_attr_t> =
231 ::std::mem::MaybeUninit::uninit();
232 let ptr = UNINIT.as_ptr();
233 assert_eq!(
234 ::std::mem::size_of::<_opaque_pthread_attr_t>(),
235 64usize,
236 concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
237 );
238 assert_eq!(
239 ::std::mem::align_of::<_opaque_pthread_attr_t>(),
240 8usize,
241 concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
242 );
243 assert_eq!(
244 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
245 0usize,
246 concat!("Offset of field: ", stringify!(_opaque_pthread_attr_t), "::", stringify!(__sig))
247 );
248 assert_eq!(
249 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
250 8usize,
251 concat!(
252 "Offset of field: ",
253 stringify!(_opaque_pthread_attr_t),
254 "::",
255 stringify!(__opaque)
256 )
257 );
258 }
259 #[repr(C)]
260 #[derive(Debug, Copy, Clone)]
261 pub struct _opaque_pthread_cond_t {
262 pub __sig: ::std::os::raw::c_long,
263 pub __opaque: [::std::os::raw::c_char; 40usize],
264 }
265 #[test]
bindgen_test_layout__opaque_pthread_cond_t()266 fn bindgen_test_layout__opaque_pthread_cond_t() {
267 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_cond_t> =
268 ::std::mem::MaybeUninit::uninit();
269 let ptr = UNINIT.as_ptr();
270 assert_eq!(
271 ::std::mem::size_of::<_opaque_pthread_cond_t>(),
272 48usize,
273 concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
274 );
275 assert_eq!(
276 ::std::mem::align_of::<_opaque_pthread_cond_t>(),
277 8usize,
278 concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
279 );
280 assert_eq!(
281 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
282 0usize,
283 concat!("Offset of field: ", stringify!(_opaque_pthread_cond_t), "::", stringify!(__sig))
284 );
285 assert_eq!(
286 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
287 8usize,
288 concat!(
289 "Offset of field: ",
290 stringify!(_opaque_pthread_cond_t),
291 "::",
292 stringify!(__opaque)
293 )
294 );
295 }
296 #[repr(C)]
297 #[derive(Debug, Copy, Clone)]
298 pub struct _opaque_pthread_condattr_t {
299 pub __sig: ::std::os::raw::c_long,
300 pub __opaque: [::std::os::raw::c_char; 8usize],
301 }
302 #[test]
bindgen_test_layout__opaque_pthread_condattr_t()303 fn bindgen_test_layout__opaque_pthread_condattr_t() {
304 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_condattr_t> =
305 ::std::mem::MaybeUninit::uninit();
306 let ptr = UNINIT.as_ptr();
307 assert_eq!(
308 ::std::mem::size_of::<_opaque_pthread_condattr_t>(),
309 16usize,
310 concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
311 );
312 assert_eq!(
313 ::std::mem::align_of::<_opaque_pthread_condattr_t>(),
314 8usize,
315 concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
316 );
317 assert_eq!(
318 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
319 0usize,
320 concat!(
321 "Offset of field: ",
322 stringify!(_opaque_pthread_condattr_t),
323 "::",
324 stringify!(__sig)
325 )
326 );
327 assert_eq!(
328 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
329 8usize,
330 concat!(
331 "Offset of field: ",
332 stringify!(_opaque_pthread_condattr_t),
333 "::",
334 stringify!(__opaque)
335 )
336 );
337 }
338 #[repr(C)]
339 #[derive(Debug, Copy, Clone)]
340 pub struct _opaque_pthread_mutex_t {
341 pub __sig: ::std::os::raw::c_long,
342 pub __opaque: [::std::os::raw::c_char; 56usize],
343 }
344 #[test]
bindgen_test_layout__opaque_pthread_mutex_t()345 fn bindgen_test_layout__opaque_pthread_mutex_t() {
346 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_mutex_t> =
347 ::std::mem::MaybeUninit::uninit();
348 let ptr = UNINIT.as_ptr();
349 assert_eq!(
350 ::std::mem::size_of::<_opaque_pthread_mutex_t>(),
351 64usize,
352 concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
353 );
354 assert_eq!(
355 ::std::mem::align_of::<_opaque_pthread_mutex_t>(),
356 8usize,
357 concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
358 );
359 assert_eq!(
360 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
361 0usize,
362 concat!("Offset of field: ", stringify!(_opaque_pthread_mutex_t), "::", stringify!(__sig))
363 );
364 assert_eq!(
365 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
366 8usize,
367 concat!(
368 "Offset of field: ",
369 stringify!(_opaque_pthread_mutex_t),
370 "::",
371 stringify!(__opaque)
372 )
373 );
374 }
375 #[repr(C)]
376 #[derive(Debug, Copy, Clone)]
377 pub struct _opaque_pthread_mutexattr_t {
378 pub __sig: ::std::os::raw::c_long,
379 pub __opaque: [::std::os::raw::c_char; 8usize],
380 }
381 #[test]
bindgen_test_layout__opaque_pthread_mutexattr_t()382 fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
383 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_mutexattr_t> =
384 ::std::mem::MaybeUninit::uninit();
385 let ptr = UNINIT.as_ptr();
386 assert_eq!(
387 ::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
388 16usize,
389 concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
390 );
391 assert_eq!(
392 ::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
393 8usize,
394 concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
395 );
396 assert_eq!(
397 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
398 0usize,
399 concat!(
400 "Offset of field: ",
401 stringify!(_opaque_pthread_mutexattr_t),
402 "::",
403 stringify!(__sig)
404 )
405 );
406 assert_eq!(
407 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
408 8usize,
409 concat!(
410 "Offset of field: ",
411 stringify!(_opaque_pthread_mutexattr_t),
412 "::",
413 stringify!(__opaque)
414 )
415 );
416 }
417 #[repr(C)]
418 #[derive(Debug, Copy, Clone)]
419 pub struct _opaque_pthread_once_t {
420 pub __sig: ::std::os::raw::c_long,
421 pub __opaque: [::std::os::raw::c_char; 8usize],
422 }
423 #[test]
bindgen_test_layout__opaque_pthread_once_t()424 fn bindgen_test_layout__opaque_pthread_once_t() {
425 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_once_t> =
426 ::std::mem::MaybeUninit::uninit();
427 let ptr = UNINIT.as_ptr();
428 assert_eq!(
429 ::std::mem::size_of::<_opaque_pthread_once_t>(),
430 16usize,
431 concat!("Size of: ", stringify!(_opaque_pthread_once_t))
432 );
433 assert_eq!(
434 ::std::mem::align_of::<_opaque_pthread_once_t>(),
435 8usize,
436 concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
437 );
438 assert_eq!(
439 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
440 0usize,
441 concat!("Offset of field: ", stringify!(_opaque_pthread_once_t), "::", stringify!(__sig))
442 );
443 assert_eq!(
444 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
445 8usize,
446 concat!(
447 "Offset of field: ",
448 stringify!(_opaque_pthread_once_t),
449 "::",
450 stringify!(__opaque)
451 )
452 );
453 }
454 #[repr(C)]
455 #[derive(Debug, Copy, Clone)]
456 pub struct _opaque_pthread_rwlock_t {
457 pub __sig: ::std::os::raw::c_long,
458 pub __opaque: [::std::os::raw::c_char; 192usize],
459 }
460 #[test]
bindgen_test_layout__opaque_pthread_rwlock_t()461 fn bindgen_test_layout__opaque_pthread_rwlock_t() {
462 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_rwlock_t> =
463 ::std::mem::MaybeUninit::uninit();
464 let ptr = UNINIT.as_ptr();
465 assert_eq!(
466 ::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
467 200usize,
468 concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
469 );
470 assert_eq!(
471 ::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
472 8usize,
473 concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
474 );
475 assert_eq!(
476 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
477 0usize,
478 concat!("Offset of field: ", stringify!(_opaque_pthread_rwlock_t), "::", stringify!(__sig))
479 );
480 assert_eq!(
481 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
482 8usize,
483 concat!(
484 "Offset of field: ",
485 stringify!(_opaque_pthread_rwlock_t),
486 "::",
487 stringify!(__opaque)
488 )
489 );
490 }
491 #[repr(C)]
492 #[derive(Debug, Copy, Clone)]
493 pub struct _opaque_pthread_rwlockattr_t {
494 pub __sig: ::std::os::raw::c_long,
495 pub __opaque: [::std::os::raw::c_char; 16usize],
496 }
497 #[test]
bindgen_test_layout__opaque_pthread_rwlockattr_t()498 fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
499 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_rwlockattr_t> =
500 ::std::mem::MaybeUninit::uninit();
501 let ptr = UNINIT.as_ptr();
502 assert_eq!(
503 ::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
504 24usize,
505 concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
506 );
507 assert_eq!(
508 ::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
509 8usize,
510 concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
511 );
512 assert_eq!(
513 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
514 0usize,
515 concat!(
516 "Offset of field: ",
517 stringify!(_opaque_pthread_rwlockattr_t),
518 "::",
519 stringify!(__sig)
520 )
521 );
522 assert_eq!(
523 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
524 8usize,
525 concat!(
526 "Offset of field: ",
527 stringify!(_opaque_pthread_rwlockattr_t),
528 "::",
529 stringify!(__opaque)
530 )
531 );
532 }
533 #[repr(C)]
534 #[derive(Debug, Copy, Clone)]
535 pub struct _opaque_pthread_t {
536 pub __sig: ::std::os::raw::c_long,
537 pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
538 pub __opaque: [::std::os::raw::c_char; 8176usize],
539 }
540 #[test]
bindgen_test_layout__opaque_pthread_t()541 fn bindgen_test_layout__opaque_pthread_t() {
542 const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_t> = ::std::mem::MaybeUninit::uninit();
543 let ptr = UNINIT.as_ptr();
544 assert_eq!(
545 ::std::mem::size_of::<_opaque_pthread_t>(),
546 8192usize,
547 concat!("Size of: ", stringify!(_opaque_pthread_t))
548 );
549 assert_eq!(
550 ::std::mem::align_of::<_opaque_pthread_t>(),
551 8usize,
552 concat!("Alignment of ", stringify!(_opaque_pthread_t))
553 );
554 assert_eq!(
555 unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
556 0usize,
557 concat!("Offset of field: ", stringify!(_opaque_pthread_t), "::", stringify!(__sig))
558 );
559 assert_eq!(
560 unsafe { ::std::ptr::addr_of!((*ptr).__cleanup_stack) as usize - ptr as usize },
561 8usize,
562 concat!(
563 "Offset of field: ",
564 stringify!(_opaque_pthread_t),
565 "::",
566 stringify!(__cleanup_stack)
567 )
568 );
569 assert_eq!(
570 unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
571 16usize,
572 concat!("Offset of field: ", stringify!(_opaque_pthread_t), "::", stringify!(__opaque))
573 );
574 }
575 pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
576 pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
577 pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
578 pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
579 pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
580 pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
581 pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
582 pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
583 pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
584 pub type __darwin_pthread_t = *mut _opaque_pthread_t;
585 pub type u_int8_t = ::std::os::raw::c_uchar;
586 pub type u_int16_t = ::std::os::raw::c_ushort;
587 pub type u_int32_t = ::std::os::raw::c_uint;
588 pub type u_int64_t = ::std::os::raw::c_ulonglong;
589 pub type register_t = i64;
590 pub type user_addr_t = u_int64_t;
591 pub type user_size_t = u_int64_t;
592 pub type user_ssize_t = i64;
593 pub type user_long_t = i64;
594 pub type user_ulong_t = u_int64_t;
595 pub type user_time_t = i64;
596 pub type user_off_t = i64;
597 pub type syscall_arg_t = u_int64_t;
598 pub type intmax_t = ::std::os::raw::c_long;
599 pub type uintmax_t = ::std::os::raw::c_ulong;
600 extern "C" {
set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int601 pub fn set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
602 }
603 extern "C" {
set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int604 pub fn set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
605 }
606 #[repr(C)]
607 #[derive(Debug, Copy, Clone)]
608 pub struct virtio_wifi_key_data {
609 pub key_material: [u8; 32usize],
610 pub key_len: ::std::os::raw::c_int,
611 pub key_idx: ::std::os::raw::c_int,
612 }
613 #[test]
bindgen_test_layout_virtio_wifi_key_data()614 fn bindgen_test_layout_virtio_wifi_key_data() {
615 const UNINIT: ::std::mem::MaybeUninit<virtio_wifi_key_data> = ::std::mem::MaybeUninit::uninit();
616 let ptr = UNINIT.as_ptr();
617 assert_eq!(
618 ::std::mem::size_of::<virtio_wifi_key_data>(),
619 40usize,
620 concat!("Size of: ", stringify!(virtio_wifi_key_data))
621 );
622 assert_eq!(
623 ::std::mem::align_of::<virtio_wifi_key_data>(),
624 4usize,
625 concat!("Alignment of ", stringify!(virtio_wifi_key_data))
626 );
627 assert_eq!(
628 unsafe { ::std::ptr::addr_of!((*ptr).key_material) as usize - ptr as usize },
629 0usize,
630 concat!(
631 "Offset of field: ",
632 stringify!(virtio_wifi_key_data),
633 "::",
634 stringify!(key_material)
635 )
636 );
637 assert_eq!(
638 unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize },
639 32usize,
640 concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_len))
641 );
642 assert_eq!(
643 unsafe { ::std::ptr::addr_of!((*ptr).key_idx) as usize - ptr as usize },
644 36usize,
645 concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_idx))
646 );
647 }
648 extern "C" {
get_active_ptk() -> virtio_wifi_key_data649 pub fn get_active_ptk() -> virtio_wifi_key_data;
650 }
651 extern "C" {
get_active_gtk() -> virtio_wifi_key_data652 pub fn get_active_gtk() -> virtio_wifi_key_data;
653 }
654 pub type __builtin_va_list = *mut ::std::os::raw::c_char;
655