1#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage, Align> {
6 storage: Storage,
7 align: [Align; 0],
8}
9impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
10 #[inline]
11 pub const fn new(storage: Storage) -> Self {
12 Self { storage, align: [] }
13 }
14}
15impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
16where
17 Storage: AsRef<[u8]> + AsMut<[u8]>,
18{
19 #[inline]
20 pub fn get_bit(&self, index: usize) -> bool {
21 debug_assert!(index / 8 < self.storage.as_ref().len());
22 let byte_index = index / 8;
23 let byte = self.storage.as_ref()[byte_index];
24 let bit_index = if cfg!(target_endian = "big") {
25 7 - (index % 8)
26 } else {
27 index % 8
28 };
29 let mask = 1 << bit_index;
30 byte & mask == mask
31 }
32 #[inline]
33 pub fn set_bit(&mut self, index: usize, val: bool) {
34 debug_assert!(index / 8 < self.storage.as_ref().len());
35 let byte_index = index / 8;
36 let byte = &mut self.storage.as_mut()[byte_index];
37 let bit_index = if cfg!(target_endian = "big") {
38 7 - (index % 8)
39 } else {
40 index % 8
41 };
42 let mask = 1 << bit_index;
43 if val {
44 *byte |= mask;
45 } else {
46 *byte &= !mask;
47 }
48 }
49 #[inline]
50 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
51 debug_assert!(bit_width <= 64);
52 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
53 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
54 let mut val = 0;
55 for i in 0..(bit_width as usize) {
56 if self.get_bit(i + bit_offset) {
57 let index = if cfg!(target_endian = "big") {
58 bit_width as usize - 1 - i
59 } else {
60 i
61 };
62 val |= 1 << index;
63 }
64 }
65 val
66 }
67 #[inline]
68 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
69 debug_assert!(bit_width <= 64);
70 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
71 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
72 for i in 0..(bit_width as usize) {
73 let mask = 1 << i;
74 let val_bit_is_set = val & mask == mask;
75 let index = if cfg!(target_endian = "big") {
76 bit_width as usize - 1 - i
77 } else {
78 i
79 };
80 self.set_bit(index + bit_offset, val_bit_is_set);
81 }
82 }
83}
84#[repr(C)]
85#[derive(Default)]
86pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
87impl<T> __IncompleteArrayField<T> {
88 #[inline]
89 pub const fn new() -> Self {
90 __IncompleteArrayField(::std::marker::PhantomData, [])
91 }
92 #[inline]
93 pub fn as_ptr(&self) -> *const T {
94 self as *const _ as *const T
95 }
96 #[inline]
97 pub fn as_mut_ptr(&mut self) -> *mut T {
98 self as *mut _ as *mut T
99 }
100 #[inline]
101 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
102 ::std::slice::from_raw_parts(self.as_ptr(), len)
103 }
104 #[inline]
105 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
106 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
107 }
108}
109impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
110 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
111 fmt.write_str("__IncompleteArrayField")
112 }
113}
114pub const __ENDPOINT_SECURITY_INDIRECT__: u32 = 1;
115pub const __WORDSIZE: u32 = 64;
116pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0;
117pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
118pub const __DARWIN_ONLY_VERS_1050: u32 = 0;
119pub const __DARWIN_UNIX03: u32 = 1;
120pub const __DARWIN_64_BIT_INO_T: u32 = 1;
121pub const __DARWIN_VERS_1050: u32 = 1;
122pub const __DARWIN_NON_CANCELABLE: u32 = 0;
123pub const __DARWIN_SUF_64_BIT_INO_T: &'static [u8; 9usize] = b"$INODE64\0";
124pub const __DARWIN_SUF_1050: &'static [u8; 6usize] = b"$1050\0";
125pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0";
126pub const __DARWIN_C_ANSI: u32 = 4096;
127pub const __DARWIN_C_FULL: u32 = 900000;
128pub const __DARWIN_C_LEVEL: u32 = 900000;
129pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
130pub const __DARWIN_NO_LONG_LONG: u32 = 0;
131pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
132pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
133pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
134pub const __PTHREAD_SIZE__: u32 = 8176;
135pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
136pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
137pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
138pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
139pub const __PTHREAD_COND_SIZE__: u32 = 40;
140pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
141pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
142pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
143pub const INT8_MAX: u32 = 127;
144pub const INT16_MAX: u32 = 32767;
145pub const INT32_MAX: u32 = 2147483647;
146pub const INT64_MAX: u64 = 9223372036854775807;
147pub const INT8_MIN: i32 = -128;
148pub const INT16_MIN: i32 = -32768;
149pub const INT32_MIN: i32 = -2147483648;
150pub const INT64_MIN: i64 = -9223372036854775808;
151pub const UINT8_MAX: u32 = 255;
152pub const UINT16_MAX: u32 = 65535;
153pub const UINT32_MAX: u32 = 4294967295;
154pub const UINT64_MAX: i32 = -1;
155pub const INT_LEAST8_MIN: i32 = -128;
156pub const INT_LEAST16_MIN: i32 = -32768;
157pub const INT_LEAST32_MIN: i32 = -2147483648;
158pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
159pub const INT_LEAST8_MAX: u32 = 127;
160pub const INT_LEAST16_MAX: u32 = 32767;
161pub const INT_LEAST32_MAX: u32 = 2147483647;
162pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
163pub const UINT_LEAST8_MAX: u32 = 255;
164pub const UINT_LEAST16_MAX: u32 = 65535;
165pub const UINT_LEAST32_MAX: u32 = 4294967295;
166pub const UINT_LEAST64_MAX: i32 = -1;
167pub const INT_FAST8_MIN: i32 = -128;
168pub const INT_FAST16_MIN: i32 = -32768;
169pub const INT_FAST32_MIN: i32 = -2147483648;
170pub const INT_FAST64_MIN: i64 = -9223372036854775808;
171pub const INT_FAST8_MAX: u32 = 127;
172pub const INT_FAST16_MAX: u32 = 32767;
173pub const INT_FAST32_MAX: u32 = 2147483647;
174pub const INT_FAST64_MAX: u64 = 9223372036854775807;
175pub const UINT_FAST8_MAX: u32 = 255;
176pub const UINT_FAST16_MAX: u32 = 65535;
177pub const UINT_FAST32_MAX: u32 = 4294967295;
178pub const UINT_FAST64_MAX: i32 = -1;
179pub const INTPTR_MAX: u64 = 9223372036854775807;
180pub const INTPTR_MIN: i64 = -9223372036854775808;
181pub const UINTPTR_MAX: i32 = -1;
182pub const SIZE_MAX: i32 = -1;
183pub const RSIZE_MAX: i32 = -1;
184pub const WINT_MIN: i32 = -2147483648;
185pub const WINT_MAX: u32 = 2147483647;
186pub const SIG_ATOMIC_MIN: i32 = -2147483648;
187pub const SIG_ATOMIC_MAX: u32 = 2147483647;
188pub const CS_VALID: u32 = 1;
189pub const CS_ADHOC: u32 = 2;
190pub const CS_GET_TASK_ALLOW: u32 = 4;
191pub const CS_INSTALLER: u32 = 8;
192pub const CS_FORCED_LV: u32 = 16;
193pub const CS_INVALID_ALLOWED: u32 = 32;
194pub const CS_HARD: u32 = 256;
195pub const CS_KILL: u32 = 512;
196pub const CS_CHECK_EXPIRATION: u32 = 1024;
197pub const CS_RESTRICT: u32 = 2048;
198pub const CS_ENFORCEMENT: u32 = 4096;
199pub const CS_REQUIRE_LV: u32 = 8192;
200pub const CS_ENTITLEMENTS_VALIDATED: u32 = 16384;
201pub const CS_NVRAM_UNRESTRICTED: u32 = 32768;
202pub const CS_RUNTIME: u32 = 65536;
203pub const CS_LINKER_SIGNED: u32 = 131072;
204pub const CS_ALLOWED_MACHO: u32 = 212738;
205pub const CS_EXEC_SET_HARD: u32 = 1048576;
206pub const CS_EXEC_SET_KILL: u32 = 2097152;
207pub const CS_EXEC_SET_ENFORCEMENT: u32 = 4194304;
208pub const CS_EXEC_INHERIT_SIP: u32 = 8388608;
209pub const CS_KILLED: u32 = 16777216;
210pub const CS_DYLD_PLATFORM: u32 = 33554432;
211pub const CS_PLATFORM_BINARY: u32 = 67108864;
212pub const CS_PLATFORM_PATH: u32 = 134217728;
213pub const CS_DEBUGGED: u32 = 268435456;
214pub const CS_SIGNED: u32 = 536870912;
215pub const CS_DEV_CODE: u32 = 1073741824;
216pub const CS_DATAVAULT_CONTROLLER: u32 = 2147483648;
217pub const CS_ENTITLEMENT_FLAGS: u32 = 2147516428;
218pub const CS_EXECSEG_MAIN_BINARY: u32 = 1;
219pub const CS_EXECSEG_ALLOW_UNSIGNED: u32 = 16;
220pub const CS_EXECSEG_DEBUGGER: u32 = 32;
221pub const CS_EXECSEG_JIT: u32 = 64;
222pub const CS_EXECSEG_SKIP_LV: u32 = 128;
223pub const CS_EXECSEG_CAN_LOAD_CDHASH: u32 = 256;
224pub const CS_EXECSEG_CAN_EXEC_CDHASH: u32 = 512;
225pub const KERNEL_HAVE_CS_CODEDIRECTORY: u32 = 1;
226pub const KERNEL_CS_CODEDIRECTORY_HAVE_PLATFORM: u32 = 1;
227pub const KERNEL_HAVE_CS_GENERICBLOB: u32 = 1;
228pub const _QUAD_HIGHWORD: u32 = 1;
229pub const _QUAD_LOWWORD: u32 = 0;
230pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
231pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
232pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
233pub const __DARWIN_BYTE_ORDER: u32 = 1234;
234pub const LITTLE_ENDIAN: u32 = 1234;
235pub const BIG_ENDIAN: u32 = 4321;
236pub const PDP_ENDIAN: u32 = 3412;
237pub const BYTE_ORDER: u32 = 1234;
238pub const __API_TO_BE_DEPRECATED: u32 = 100000;
239pub const __MAC_10_0: u32 = 1000;
240pub const __MAC_10_1: u32 = 1010;
241pub const __MAC_10_2: u32 = 1020;
242pub const __MAC_10_3: u32 = 1030;
243pub const __MAC_10_4: u32 = 1040;
244pub const __MAC_10_5: u32 = 1050;
245pub const __MAC_10_6: u32 = 1060;
246pub const __MAC_10_7: u32 = 1070;
247pub const __MAC_10_8: u32 = 1080;
248pub const __MAC_10_9: u32 = 1090;
249pub const __MAC_10_10: u32 = 101000;
250pub const __MAC_10_10_2: u32 = 101002;
251pub const __MAC_10_10_3: u32 = 101003;
252pub const __MAC_10_11: u32 = 101100;
253pub const __MAC_10_11_2: u32 = 101102;
254pub const __MAC_10_11_3: u32 = 101103;
255pub const __MAC_10_11_4: u32 = 101104;
256pub const __MAC_10_12: u32 = 101200;
257pub const __MAC_10_12_1: u32 = 101201;
258pub const __MAC_10_12_2: u32 = 101202;
259pub const __MAC_10_12_4: u32 = 101204;
260pub const __MAC_10_13: u32 = 101300;
261pub const __MAC_10_13_1: u32 = 101301;
262pub const __MAC_10_13_2: u32 = 101302;
263pub const __MAC_10_13_4: u32 = 101304;
264pub const __MAC_10_14: u32 = 101400;
265pub const __MAC_10_14_1: u32 = 101401;
266pub const __MAC_10_14_4: u32 = 101404;
267pub const __MAC_10_14_6: u32 = 101406;
268pub const __MAC_10_15: u32 = 101500;
269pub const __MAC_10_15_1: u32 = 101501;
270pub const __MAC_10_15_4: u32 = 101504;
271pub const __MAC_10_16: u32 = 101600;
272pub const __MAC_11_0: u32 = 110000;
273pub const __IPHONE_2_0: u32 = 20000;
274pub const __IPHONE_2_1: u32 = 20100;
275pub const __IPHONE_2_2: u32 = 20200;
276pub const __IPHONE_3_0: u32 = 30000;
277pub const __IPHONE_3_1: u32 = 30100;
278pub const __IPHONE_3_2: u32 = 30200;
279pub const __IPHONE_4_0: u32 = 40000;
280pub const __IPHONE_4_1: u32 = 40100;
281pub const __IPHONE_4_2: u32 = 40200;
282pub const __IPHONE_4_3: u32 = 40300;
283pub const __IPHONE_5_0: u32 = 50000;
284pub const __IPHONE_5_1: u32 = 50100;
285pub const __IPHONE_6_0: u32 = 60000;
286pub const __IPHONE_6_1: u32 = 60100;
287pub const __IPHONE_7_0: u32 = 70000;
288pub const __IPHONE_7_1: u32 = 70100;
289pub const __IPHONE_8_0: u32 = 80000;
290pub const __IPHONE_8_1: u32 = 80100;
291pub const __IPHONE_8_2: u32 = 80200;
292pub const __IPHONE_8_3: u32 = 80300;
293pub const __IPHONE_8_4: u32 = 80400;
294pub const __IPHONE_9_0: u32 = 90000;
295pub const __IPHONE_9_1: u32 = 90100;
296pub const __IPHONE_9_2: u32 = 90200;
297pub const __IPHONE_9_3: u32 = 90300;
298pub const __IPHONE_10_0: u32 = 100000;
299pub const __IPHONE_10_1: u32 = 100100;
300pub const __IPHONE_10_2: u32 = 100200;
301pub const __IPHONE_10_3: u32 = 100300;
302pub const __IPHONE_11_0: u32 = 110000;
303pub const __IPHONE_11_1: u32 = 110100;
304pub const __IPHONE_11_2: u32 = 110200;
305pub const __IPHONE_11_3: u32 = 110300;
306pub const __IPHONE_11_4: u32 = 110400;
307pub const __IPHONE_12_0: u32 = 120000;
308pub const __IPHONE_12_1: u32 = 120100;
309pub const __IPHONE_12_2: u32 = 120200;
310pub const __IPHONE_12_3: u32 = 120300;
311pub const __IPHONE_12_4: u32 = 120400;
312pub const __IPHONE_13_0: u32 = 130000;
313pub const __IPHONE_13_1: u32 = 130100;
314pub const __IPHONE_13_2: u32 = 130200;
315pub const __IPHONE_13_3: u32 = 130300;
316pub const __IPHONE_13_4: u32 = 130400;
317pub const __IPHONE_13_5: u32 = 130500;
318pub const __IPHONE_13_6: u32 = 130600;
319pub const __IPHONE_14_0: u32 = 140000;
320pub const __TVOS_9_0: u32 = 90000;
321pub const __TVOS_9_1: u32 = 90100;
322pub const __TVOS_9_2: u32 = 90200;
323pub const __TVOS_10_0: u32 = 100000;
324pub const __TVOS_10_0_1: u32 = 100001;
325pub const __TVOS_10_1: u32 = 100100;
326pub const __TVOS_10_2: u32 = 100200;
327pub const __TVOS_11_0: u32 = 110000;
328pub const __TVOS_11_1: u32 = 110100;
329pub const __TVOS_11_2: u32 = 110200;
330pub const __TVOS_11_3: u32 = 110300;
331pub const __TVOS_11_4: u32 = 110400;
332pub const __TVOS_12_0: u32 = 120000;
333pub const __TVOS_12_1: u32 = 120100;
334pub const __TVOS_12_2: u32 = 120200;
335pub const __TVOS_12_3: u32 = 120300;
336pub const __TVOS_12_4: u32 = 120400;
337pub const __TVOS_13_0: u32 = 130000;
338pub const __TVOS_13_2: u32 = 130200;
339pub const __TVOS_13_3: u32 = 130300;
340pub const __TVOS_13_4: u32 = 130400;
341pub const __TVOS_14_0: u32 = 140000;
342pub const __WATCHOS_1_0: u32 = 10000;
343pub const __WATCHOS_2_0: u32 = 20000;
344pub const __WATCHOS_2_1: u32 = 20100;
345pub const __WATCHOS_2_2: u32 = 20200;
346pub const __WATCHOS_3_0: u32 = 30000;
347pub const __WATCHOS_3_1: u32 = 30100;
348pub const __WATCHOS_3_1_1: u32 = 30101;
349pub const __WATCHOS_3_2: u32 = 30200;
350pub const __WATCHOS_4_0: u32 = 40000;
351pub const __WATCHOS_4_1: u32 = 40100;
352pub const __WATCHOS_4_2: u32 = 40200;
353pub const __WATCHOS_4_3: u32 = 40300;
354pub const __WATCHOS_5_0: u32 = 50000;
355pub const __WATCHOS_5_1: u32 = 50100;
356pub const __WATCHOS_5_2: u32 = 50200;
357pub const __WATCHOS_5_3: u32 = 50300;
358pub const __WATCHOS_6_0: u32 = 60000;
359pub const __WATCHOS_6_1: u32 = 60100;
360pub const __WATCHOS_6_2: u32 = 60200;
361pub const __WATCHOS_7_0: u32 = 70000;
362pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
363pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
364pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
365pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
366pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
367pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
368pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
369pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
370pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
371pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
372pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
373pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
374pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
375pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
376pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
377pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
378pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
379pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
380pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
381pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
382pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
383pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
384pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
385pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
386pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
387pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
388pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
389pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
390pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
391pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
392pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
393pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
394pub const MAC_OS_VERSION_11_0: u32 = 110000;
395pub const __DRIVERKIT_19_0: u32 = 190000;
396pub const __DRIVERKIT_20_0: u32 = 200000;
397pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 101600;
398pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
399pub const __DARWIN_FD_SETSIZE: u32 = 1024;
400pub const __DARWIN_NBBY: u32 = 8;
401pub const NBBY: u32 = 8;
402pub const FD_SETSIZE: u32 = 1024;
403pub const TRUE: u32 = 1;
404pub const FALSE: u32 = 0;
405pub const MACH_PORT_NULL: u32 = 0;
406pub const MACH_PORT_TYPE_DNREQUEST: u32 = 2147483648;
407pub const MACH_PORT_TYPE_SPREQUEST: u32 = 1073741824;
408pub const MACH_PORT_TYPE_SPREQUEST_DELAYED: u32 = 536870912;
409pub const MACH_PORT_SRIGHTS_NONE: u32 = 0;
410pub const MACH_PORT_SRIGHTS_PRESENT: u32 = 1;
411pub const MACH_PORT_QLIMIT_ZERO: u32 = 0;
412pub const MACH_PORT_QLIMIT_BASIC: u32 = 5;
413pub const MACH_PORT_QLIMIT_SMALL: u32 = 16;
414pub const MACH_PORT_QLIMIT_LARGE: u32 = 1024;
415pub const MACH_PORT_QLIMIT_KERNEL: u32 = 65534;
416pub const MACH_PORT_QLIMIT_MIN: u32 = 0;
417pub const MACH_PORT_QLIMIT_DEFAULT: u32 = 5;
418pub const MACH_PORT_QLIMIT_MAX: u32 = 1024;
419pub const MACH_PORT_STATUS_FLAG_TEMPOWNER: u32 = 1;
420pub const MACH_PORT_STATUS_FLAG_GUARDED: u32 = 2;
421pub const MACH_PORT_STATUS_FLAG_STRICT_GUARD: u32 = 4;
422pub const MACH_PORT_STATUS_FLAG_IMP_DONATION: u32 = 8;
423pub const MACH_PORT_STATUS_FLAG_REVIVE: u32 = 16;
424pub const MACH_PORT_STATUS_FLAG_TASKPTR: u32 = 32;
425pub const MACH_PORT_STATUS_FLAG_GUARD_IMMOVABLE_RECEIVE: u32 = 64;
426pub const MACH_PORT_STATUS_FLAG_NO_GRANT: u32 = 128;
427pub const MACH_PORT_LIMITS_INFO: u32 = 1;
428pub const MACH_PORT_RECEIVE_STATUS: u32 = 2;
429pub const MACH_PORT_DNREQUESTS_SIZE: u32 = 3;
430pub const MACH_PORT_TEMPOWNER: u32 = 4;
431pub const MACH_PORT_IMPORTANCE_RECEIVER: u32 = 5;
432pub const MACH_PORT_DENAP_RECEIVER: u32 = 6;
433pub const MACH_PORT_INFO_EXT: u32 = 7;
434pub const MACH_PORT_DNREQUESTS_SIZE_COUNT: u32 = 1;
435pub const MPO_CONTEXT_AS_GUARD: u32 = 1;
436pub const MPO_QLIMIT: u32 = 2;
437pub const MPO_TEMPOWNER: u32 = 4;
438pub const MPO_IMPORTANCE_RECEIVER: u32 = 8;
439pub const MPO_INSERT_SEND_RIGHT: u32 = 16;
440pub const MPO_STRICT: u32 = 32;
441pub const MPO_DENAP_RECEIVER: u32 = 64;
442pub const MPO_IMMOVABLE_RECEIVE: u32 = 128;
443pub const MPO_FILTER_MSG: u32 = 256;
444pub const MPO_TG_BLOCK_TRACKING: u32 = 512;
445pub const GUARD_TYPE_MACH_PORT: u32 = 1;
446pub const MAX_FATAL_kGUARD_EXC_CODE: u32 = 64;
447pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_DISP: u64 = 72057594037927936;
448pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_PORT: u64 = 144115188075855872;
449pub const MPG_FLAGS_STRICT_REPLY_INVALID_VOUCHER: u64 = 288230376151711744;
450pub const MPG_FLAGS_STRICT_REPLY_NO_BANK_ATTR: u64 = 576460752303423488;
451pub const MPG_FLAGS_STRICT_REPLY_MISMATCHED_PERSONA: u64 = 1152921504606846976;
452pub const MPG_FLAGS_STRICT_REPLY_MASK: i64 = -72057594037927936;
453pub const MPG_STRICT: u32 = 1;
454pub const MPG_IMMOVABLE_RECEIVE: u32 = 2;
455pub const KERN_SUCCESS: u32 = 0;
456pub const KERN_INVALID_ADDRESS: u32 = 1;
457pub const KERN_PROTECTION_FAILURE: u32 = 2;
458pub const KERN_NO_SPACE: u32 = 3;
459pub const KERN_INVALID_ARGUMENT: u32 = 4;
460pub const KERN_FAILURE: u32 = 5;
461pub const KERN_RESOURCE_SHORTAGE: u32 = 6;
462pub const KERN_NOT_RECEIVER: u32 = 7;
463pub const KERN_NO_ACCESS: u32 = 8;
464pub const KERN_MEMORY_FAILURE: u32 = 9;
465pub const KERN_MEMORY_ERROR: u32 = 10;
466pub const KERN_ALREADY_IN_SET: u32 = 11;
467pub const KERN_NOT_IN_SET: u32 = 12;
468pub const KERN_NAME_EXISTS: u32 = 13;
469pub const KERN_ABORTED: u32 = 14;
470pub const KERN_INVALID_NAME: u32 = 15;
471pub const KERN_INVALID_TASK: u32 = 16;
472pub const KERN_INVALID_RIGHT: u32 = 17;
473pub const KERN_INVALID_VALUE: u32 = 18;
474pub const KERN_UREFS_OVERFLOW: u32 = 19;
475pub const KERN_INVALID_CAPABILITY: u32 = 20;
476pub const KERN_RIGHT_EXISTS: u32 = 21;
477pub const KERN_INVALID_HOST: u32 = 22;
478pub const KERN_MEMORY_PRESENT: u32 = 23;
479pub const KERN_MEMORY_DATA_MOVED: u32 = 24;
480pub const KERN_MEMORY_RESTART_COPY: u32 = 25;
481pub const KERN_INVALID_PROCESSOR_SET: u32 = 26;
482pub const KERN_POLICY_LIMIT: u32 = 27;
483pub const KERN_INVALID_POLICY: u32 = 28;
484pub const KERN_INVALID_OBJECT: u32 = 29;
485pub const KERN_ALREADY_WAITING: u32 = 30;
486pub const KERN_DEFAULT_SET: u32 = 31;
487pub const KERN_EXCEPTION_PROTECTED: u32 = 32;
488pub const KERN_INVALID_LEDGER: u32 = 33;
489pub const KERN_INVALID_MEMORY_CONTROL: u32 = 34;
490pub const KERN_INVALID_SECURITY: u32 = 35;
491pub const KERN_NOT_DEPRESSED: u32 = 36;
492pub const KERN_TERMINATED: u32 = 37;
493pub const KERN_LOCK_SET_DESTROYED: u32 = 38;
494pub const KERN_LOCK_UNSTABLE: u32 = 39;
495pub const KERN_LOCK_OWNED: u32 = 40;
496pub const KERN_LOCK_OWNED_SELF: u32 = 41;
497pub const KERN_SEMAPHORE_DESTROYED: u32 = 42;
498pub const KERN_RPC_SERVER_TERMINATED: u32 = 43;
499pub const KERN_RPC_TERMINATE_ORPHAN: u32 = 44;
500pub const KERN_RPC_CONTINUE_ORPHAN: u32 = 45;
501pub const KERN_NOT_SUPPORTED: u32 = 46;
502pub const KERN_NODE_DOWN: u32 = 47;
503pub const KERN_NOT_WAITING: u32 = 48;
504pub const KERN_OPERATION_TIMED_OUT: u32 = 49;
505pub const KERN_CODESIGN_ERROR: u32 = 50;
506pub const KERN_POLICY_STATIC: u32 = 51;
507pub const KERN_INSUFFICIENT_BUFFER_SIZE: u32 = 52;
508pub const KERN_DENIED: u32 = 53;
509pub const KERN_RETURN_MAX: u32 = 256;
510pub const MACH_MSGH_BITS_ZERO: u32 = 0;
511pub const MACH_MSGH_BITS_REMOTE_MASK: u32 = 31;
512pub const MACH_MSGH_BITS_LOCAL_MASK: u32 = 7936;
513pub const MACH_MSGH_BITS_VOUCHER_MASK: u32 = 2031616;
514pub const MACH_MSGH_BITS_PORTS_MASK: u32 = 2039583;
515pub const MACH_MSGH_BITS_COMPLEX: u32 = 2147483648;
516pub const MACH_MSGH_BITS_USER: u32 = 2149523231;
517pub const MACH_MSGH_BITS_RAISEIMP: u32 = 536870912;
518pub const MACH_MSGH_BITS_DENAP: u32 = 536870912;
519pub const MACH_MSGH_BITS_IMPHOLDASRT: u32 = 268435456;
520pub const MACH_MSGH_BITS_DENAPHOLDASRT: u32 = 268435456;
521pub const MACH_MSGH_BITS_CIRCULAR: u32 = 268435456;
522pub const MACH_MSGH_BITS_USED: u32 = 2954829599;
523pub const MACH_MSG_TYPE_MOVE_RECEIVE: u32 = 16;
524pub const MACH_MSG_TYPE_MOVE_SEND: u32 = 17;
525pub const MACH_MSG_TYPE_MOVE_SEND_ONCE: u32 = 18;
526pub const MACH_MSG_TYPE_COPY_SEND: u32 = 19;
527pub const MACH_MSG_TYPE_MAKE_SEND: u32 = 20;
528pub const MACH_MSG_TYPE_MAKE_SEND_ONCE: u32 = 21;
529pub const MACH_MSG_TYPE_COPY_RECEIVE: u32 = 22;
530pub const MACH_MSG_TYPE_DISPOSE_RECEIVE: u32 = 24;
531pub const MACH_MSG_TYPE_DISPOSE_SEND: u32 = 25;
532pub const MACH_MSG_TYPE_DISPOSE_SEND_ONCE: u32 = 26;
533pub const MACH_MSG_PHYSICAL_COPY: u32 = 0;
534pub const MACH_MSG_VIRTUAL_COPY: u32 = 1;
535pub const MACH_MSG_ALLOCATE: u32 = 2;
536pub const MACH_MSG_OVERWRITE: u32 = 3;
537pub const MACH_MSG_GUARD_FLAGS_NONE: u32 = 0;
538pub const MACH_MSG_GUARD_FLAGS_IMMOVABLE_RECEIVE: u32 = 1;
539pub const MACH_MSG_GUARD_FLAGS_UNGUARDED_ON_SEND: u32 = 2;
540pub const MACH_MSG_GUARD_FLAGS_MASK: u32 = 3;
541pub const MACH_MSG_PORT_DESCRIPTOR: u32 = 0;
542pub const MACH_MSG_OOL_DESCRIPTOR: u32 = 1;
543pub const MACH_MSG_OOL_PORTS_DESCRIPTOR: u32 = 2;
544pub const MACH_MSG_OOL_VOLATILE_DESCRIPTOR: u32 = 3;
545pub const MACH_MSG_GUARDED_PORT_DESCRIPTOR: u32 = 4;
546pub const MACH_MSG_TRAILER_FORMAT_0: u32 = 0;
547pub const MACH_MSGH_KIND_NORMAL: u32 = 0;
548pub const MACH_MSGH_KIND_NOTIFICATION: u32 = 1;
549pub const MACH_MSG_TYPE_PORT_NONE: u32 = 0;
550pub const MACH_MSG_TYPE_PORT_NAME: u32 = 15;
551pub const MACH_MSG_TYPE_PORT_RECEIVE: u32 = 16;
552pub const MACH_MSG_TYPE_PORT_SEND: u32 = 17;
553pub const MACH_MSG_TYPE_PORT_SEND_ONCE: u32 = 18;
554pub const MACH_MSG_TYPE_LAST: u32 = 22;
555pub const MACH_MSG_OPTION_NONE: u32 = 0;
556pub const MACH_SEND_MSG: u32 = 1;
557pub const MACH_RCV_MSG: u32 = 2;
558pub const MACH_RCV_LARGE: u32 = 4;
559pub const MACH_RCV_LARGE_IDENTITY: u32 = 8;
560pub const MACH_SEND_TIMEOUT: u32 = 16;
561pub const MACH_SEND_OVERRIDE: u32 = 32;
562pub const MACH_SEND_INTERRUPT: u32 = 64;
563pub const MACH_SEND_NOTIFY: u32 = 128;
564pub const MACH_SEND_ALWAYS: u32 = 65536;
565pub const MACH_SEND_TRAILER: u32 = 131072;
566pub const MACH_SEND_NOIMPORTANCE: u32 = 262144;
567pub const MACH_SEND_NODENAP: u32 = 262144;
568pub const MACH_SEND_IMPORTANCE: u32 = 524288;
569pub const MACH_SEND_SYNC_OVERRIDE: u32 = 1048576;
570pub const MACH_SEND_PROPAGATE_QOS: u32 = 2097152;
571pub const MACH_SEND_SYNC_USE_THRPRI: u32 = 2097152;
572pub const MACH_SEND_KERNEL: u32 = 4194304;
573pub const MACH_SEND_SYNC_BOOTSTRAP_CHECKIN: u32 = 8388608;
574pub const MACH_RCV_TIMEOUT: u32 = 256;
575pub const MACH_RCV_NOTIFY: u32 = 0;
576pub const MACH_RCV_INTERRUPT: u32 = 1024;
577pub const MACH_RCV_VOUCHER: u32 = 2048;
578pub const MACH_RCV_OVERWRITE: u32 = 0;
579pub const MACH_RCV_GUARDED_DESC: u32 = 4096;
580pub const MACH_RCV_SYNC_WAIT: u32 = 16384;
581pub const MACH_RCV_SYNC_PEEK: u32 = 32768;
582pub const MACH_MSG_STRICT_REPLY: u32 = 512;
583pub const MACH_RCV_TRAILER_NULL: u32 = 0;
584pub const MACH_RCV_TRAILER_SEQNO: u32 = 1;
585pub const MACH_RCV_TRAILER_SENDER: u32 = 2;
586pub const MACH_RCV_TRAILER_AUDIT: u32 = 3;
587pub const MACH_RCV_TRAILER_CTX: u32 = 4;
588pub const MACH_RCV_TRAILER_AV: u32 = 7;
589pub const MACH_RCV_TRAILER_LABELS: u32 = 8;
590pub const MACH_RCV_TRAILER_MASK: u32 = 251658240;
591pub const MACH_MSG_SUCCESS: u32 = 0;
592pub const MACH_MSG_MASK: u32 = 15872;
593pub const MACH_MSG_IPC_SPACE: u32 = 8192;
594pub const MACH_MSG_VM_SPACE: u32 = 4096;
595pub const MACH_MSG_IPC_KERNEL: u32 = 2048;
596pub const MACH_MSG_VM_KERNEL: u32 = 1024;
597pub const MACH_SEND_IN_PROGRESS: u32 = 268435457;
598pub const MACH_SEND_INVALID_DATA: u32 = 268435458;
599pub const MACH_SEND_INVALID_DEST: u32 = 268435459;
600pub const MACH_SEND_TIMED_OUT: u32 = 268435460;
601pub const MACH_SEND_INVALID_VOUCHER: u32 = 268435461;
602pub const MACH_SEND_INTERRUPTED: u32 = 268435463;
603pub const MACH_SEND_MSG_TOO_SMALL: u32 = 268435464;
604pub const MACH_SEND_INVALID_REPLY: u32 = 268435465;
605pub const MACH_SEND_INVALID_RIGHT: u32 = 268435466;
606pub const MACH_SEND_INVALID_NOTIFY: u32 = 268435467;
607pub const MACH_SEND_INVALID_MEMORY: u32 = 268435468;
608pub const MACH_SEND_NO_BUFFER: u32 = 268435469;
609pub const MACH_SEND_TOO_LARGE: u32 = 268435470;
610pub const MACH_SEND_INVALID_TYPE: u32 = 268435471;
611pub const MACH_SEND_INVALID_HEADER: u32 = 268435472;
612pub const MACH_SEND_INVALID_TRAILER: u32 = 268435473;
613pub const MACH_SEND_INVALID_CONTEXT: u32 = 268435474;
614pub const MACH_SEND_INVALID_RT_OOL_SIZE: u32 = 268435477;
615pub const MACH_SEND_NO_GRANT_DEST: u32 = 268435478;
616pub const MACH_SEND_MSG_FILTERED: u32 = 268435479;
617pub const MACH_RCV_IN_PROGRESS: u32 = 268451841;
618pub const MACH_RCV_INVALID_NAME: u32 = 268451842;
619pub const MACH_RCV_TIMED_OUT: u32 = 268451843;
620pub const MACH_RCV_TOO_LARGE: u32 = 268451844;
621pub const MACH_RCV_INTERRUPTED: u32 = 268451845;
622pub const MACH_RCV_PORT_CHANGED: u32 = 268451846;
623pub const MACH_RCV_INVALID_NOTIFY: u32 = 268451847;
624pub const MACH_RCV_INVALID_DATA: u32 = 268451848;
625pub const MACH_RCV_PORT_DIED: u32 = 268451849;
626pub const MACH_RCV_IN_SET: u32 = 268451850;
627pub const MACH_RCV_HEADER_ERROR: u32 = 268451851;
628pub const MACH_RCV_BODY_ERROR: u32 = 268451852;
629pub const MACH_RCV_INVALID_TYPE: u32 = 268451853;
630pub const MACH_RCV_SCATTER_SMALL: u32 = 268451854;
631pub const MACH_RCV_INVALID_TRAILER: u32 = 268451855;
632pub const MACH_RCV_IN_PROGRESS_TIMED: u32 = 268451857;
633pub const MACH_RCV_INVALID_REPLY: u32 = 268451858;
634pub const true_: u32 = 1;
635pub const false_: u32 = 0;
636pub const __bool_true_false_are_defined: u32 = 1;
637pub const BSD: u32 = 199506;
638pub const BSD4_3: u32 = 1;
639pub const BSD4_4: u32 = 1;
640pub const NeXTBSD: u32 = 1995064;
641pub const NeXTBSD4_0: u32 = 0;
642pub const ARG_MAX: u32 = 1048576;
643pub const CHILD_MAX: u32 = 266;
644pub const GID_MAX: u32 = 2147483647;
645pub const LINK_MAX: u32 = 32767;
646pub const MAX_CANON: u32 = 1024;
647pub const MAX_INPUT: u32 = 1024;
648pub const NAME_MAX: u32 = 255;
649pub const NGROUPS_MAX: u32 = 16;
650pub const UID_MAX: u32 = 2147483647;
651pub const OPEN_MAX: u32 = 10240;
652pub const PATH_MAX: u32 = 1024;
653pub const PIPE_BUF: u32 = 512;
654pub const BC_BASE_MAX: u32 = 99;
655pub const BC_DIM_MAX: u32 = 2048;
656pub const BC_SCALE_MAX: u32 = 99;
657pub const BC_STRING_MAX: u32 = 1000;
658pub const CHARCLASS_NAME_MAX: u32 = 14;
659pub const COLL_WEIGHTS_MAX: u32 = 2;
660pub const EQUIV_CLASS_MAX: u32 = 2;
661pub const EXPR_NEST_MAX: u32 = 32;
662pub const LINE_MAX: u32 = 2048;
663pub const RE_DUP_MAX: u32 = 255;
664pub const NZERO: u32 = 20;
665pub const MAXCOMLEN: u32 = 16;
666pub const MAXINTERP: u32 = 64;
667pub const MAXLOGNAME: u32 = 255;
668pub const MAXUPRC: u32 = 266;
669pub const NCARGS: u32 = 1048576;
670pub const NGROUPS: u32 = 16;
671pub const NOFILE: u32 = 256;
672pub const NOGROUP: u32 = 65535;
673pub const MAXHOSTNAMELEN: u32 = 256;
674pub const MAXDOMNAMELEN: u32 = 256;
675pub const NBPG: u32 = 4096;
676pub const PGOFSET: u32 = 4095;
677pub const PGSHIFT: u32 = 12;
678pub const DEV_BSIZE: u32 = 512;
679pub const DEV_BSHIFT: u32 = 9;
680pub const BLKDEV_IOSIZE: u32 = 2048;
681pub const MAXPHYS: u32 = 131072;
682pub const CLSIZE: u32 = 1;
683pub const CLSIZELOG2: u32 = 0;
684pub const MSIZESHIFT: u32 = 8;
685pub const MSIZE: u32 = 256;
686pub const MCLSHIFT: u32 = 11;
687pub const MCLBYTES: u32 = 2048;
688pub const MBIGCLSHIFT: u32 = 12;
689pub const MBIGCLBYTES: u32 = 4096;
690pub const M16KCLSHIFT: u32 = 14;
691pub const M16KCLBYTES: u32 = 16384;
692pub const MCLOFSET: u32 = 2047;
693pub const NMBCLUSTERS: u32 = 512;
694pub const __DARWIN_CLK_TCK: u32 = 100;
695pub const CHAR_BIT: u32 = 8;
696pub const MB_LEN_MAX: u32 = 6;
697pub const CLK_TCK: u32 = 100;
698pub const SCHAR_MAX: u32 = 127;
699pub const SCHAR_MIN: i32 = -128;
700pub const UCHAR_MAX: u32 = 255;
701pub const CHAR_MAX: u32 = 127;
702pub const CHAR_MIN: i32 = -128;
703pub const USHRT_MAX: u32 = 65535;
704pub const SHRT_MAX: u32 = 32767;
705pub const SHRT_MIN: i32 = -32768;
706pub const UINT_MAX: u32 = 4294967295;
707pub const INT_MAX: u32 = 2147483647;
708pub const INT_MIN: i32 = -2147483648;
709pub const ULONG_MAX: i32 = -1;
710pub const LONG_MAX: u64 = 9223372036854775807;
711pub const LONG_MIN: i64 = -9223372036854775808;
712pub const ULLONG_MAX: i32 = -1;
713pub const LLONG_MAX: u64 = 9223372036854775807;
714pub const LLONG_MIN: i64 = -9223372036854775808;
715pub const LONG_BIT: u32 = 64;
716pub const SSIZE_MAX: u64 = 9223372036854775807;
717pub const WORD_BIT: u32 = 32;
718pub const SIZE_T_MAX: i32 = -1;
719pub const UQUAD_MAX: i32 = -1;
720pub const QUAD_MAX: u64 = 9223372036854775807;
721pub const QUAD_MIN: i64 = -9223372036854775808;
722pub const _POSIX_ARG_MAX: u32 = 4096;
723pub const _POSIX_CHILD_MAX: u32 = 25;
724pub const _POSIX_LINK_MAX: u32 = 8;
725pub const _POSIX_MAX_CANON: u32 = 255;
726pub const _POSIX_MAX_INPUT: u32 = 255;
727pub const _POSIX_NAME_MAX: u32 = 14;
728pub const _POSIX_NGROUPS_MAX: u32 = 8;
729pub const _POSIX_OPEN_MAX: u32 = 20;
730pub const _POSIX_PATH_MAX: u32 = 256;
731pub const _POSIX_PIPE_BUF: u32 = 512;
732pub const _POSIX_SSIZE_MAX: u32 = 32767;
733pub const _POSIX_STREAM_MAX: u32 = 8;
734pub const _POSIX_TZNAME_MAX: u32 = 6;
735pub const _POSIX2_BC_BASE_MAX: u32 = 99;
736pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
737pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
738pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
739pub const _POSIX2_EQUIV_CLASS_MAX: u32 = 2;
740pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
741pub const _POSIX2_LINE_MAX: u32 = 2048;
742pub const _POSIX2_RE_DUP_MAX: u32 = 255;
743pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
744pub const _POSIX_AIO_MAX: u32 = 1;
745pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
746pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
747pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
748pub const _POSIX_RTSIG_MAX: u32 = 8;
749pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
750pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
751pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
752pub const _POSIX_TIMER_MAX: u32 = 32;
753pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
754pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
755pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
756pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
757pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
758pub const PTHREAD_KEYS_MAX: u32 = 512;
759pub const PTHREAD_STACK_MIN: u32 = 8192;
760pub const _POSIX_HOST_NAME_MAX: u32 = 255;
761pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
762pub const _POSIX_SS_REPL_MAX: u32 = 4;
763pub const _POSIX_SYMLINK_MAX: u32 = 255;
764pub const _POSIX_SYMLOOP_MAX: u32 = 8;
765pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30;
766pub const _POSIX_TRACE_NAME_MAX: u32 = 8;
767pub const _POSIX_TRACE_SYS_MAX: u32 = 8;
768pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32;
769pub const _POSIX_TTY_NAME_MAX: u32 = 9;
770pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
771pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
772pub const _POSIX_RE_DUP_MAX: u32 = 255;
773pub const OFF_MIN: i64 = -9223372036854775808;
774pub const OFF_MAX: u64 = 9223372036854775807;
775pub const PASS_MAX: u32 = 128;
776pub const NL_ARGMAX: u32 = 9;
777pub const NL_LANGMAX: u32 = 14;
778pub const NL_MSGMAX: u32 = 32767;
779pub const NL_NMAX: u32 = 1;
780pub const NL_SETMAX: u32 = 255;
781pub const NL_TEXTMAX: u32 = 2048;
782pub const _XOPEN_IOV_MAX: u32 = 16;
783pub const IOV_MAX: u32 = 1024;
784pub const _XOPEN_NAME_MAX: u32 = 255;
785pub const _XOPEN_PATH_MAX: u32 = 1024;
786pub const __DARWIN_NSIG: u32 = 32;
787pub const NSIG: u32 = 32;
788pub const _I386_SIGNAL_H_: u32 = 1;
789pub const SIGHUP: u32 = 1;
790pub const SIGINT: u32 = 2;
791pub const SIGQUIT: u32 = 3;
792pub const SIGILL: u32 = 4;
793pub const SIGTRAP: u32 = 5;
794pub const SIGABRT: u32 = 6;
795pub const SIGIOT: u32 = 6;
796pub const SIGEMT: u32 = 7;
797pub const SIGFPE: u32 = 8;
798pub const SIGKILL: u32 = 9;
799pub const SIGBUS: u32 = 10;
800pub const SIGSEGV: u32 = 11;
801pub const SIGSYS: u32 = 12;
802pub const SIGPIPE: u32 = 13;
803pub const SIGALRM: u32 = 14;
804pub const SIGTERM: u32 = 15;
805pub const SIGURG: u32 = 16;
806pub const SIGSTOP: u32 = 17;
807pub const SIGTSTP: u32 = 18;
808pub const SIGCONT: u32 = 19;
809pub const SIGCHLD: u32 = 20;
810pub const SIGTTIN: u32 = 21;
811pub const SIGTTOU: u32 = 22;
812pub const SIGIO: u32 = 23;
813pub const SIGXCPU: u32 = 24;
814pub const SIGXFSZ: u32 = 25;
815pub const SIGVTALRM: u32 = 26;
816pub const SIGPROF: u32 = 27;
817pub const SIGWINCH: u32 = 28;
818pub const SIGINFO: u32 = 29;
819pub const SIGUSR1: u32 = 30;
820pub const SIGUSR2: u32 = 31;
821pub const FP_PREC_24B: u32 = 0;
822pub const FP_PREC_53B: u32 = 2;
823pub const FP_PREC_64B: u32 = 3;
824pub const FP_RND_NEAR: u32 = 0;
825pub const FP_RND_DOWN: u32 = 1;
826pub const FP_RND_UP: u32 = 2;
827pub const FP_CHOP: u32 = 3;
828pub const FP_STATE_BYTES: u32 = 512;
829pub const SIGEV_NONE: u32 = 0;
830pub const SIGEV_SIGNAL: u32 = 1;
831pub const SIGEV_THREAD: u32 = 3;
832pub const ILL_NOOP: u32 = 0;
833pub const ILL_ILLOPC: u32 = 1;
834pub const ILL_ILLTRP: u32 = 2;
835pub const ILL_PRVOPC: u32 = 3;
836pub const ILL_ILLOPN: u32 = 4;
837pub const ILL_ILLADR: u32 = 5;
838pub const ILL_PRVREG: u32 = 6;
839pub const ILL_COPROC: u32 = 7;
840pub const ILL_BADSTK: u32 = 8;
841pub const FPE_NOOP: u32 = 0;
842pub const FPE_FLTDIV: u32 = 1;
843pub const FPE_FLTOVF: u32 = 2;
844pub const FPE_FLTUND: u32 = 3;
845pub const FPE_FLTRES: u32 = 4;
846pub const FPE_FLTINV: u32 = 5;
847pub const FPE_FLTSUB: u32 = 6;
848pub const FPE_INTDIV: u32 = 7;
849pub const FPE_INTOVF: u32 = 8;
850pub const SEGV_NOOP: u32 = 0;
851pub const SEGV_MAPERR: u32 = 1;
852pub const SEGV_ACCERR: u32 = 2;
853pub const BUS_NOOP: u32 = 0;
854pub const BUS_ADRALN: u32 = 1;
855pub const BUS_ADRERR: u32 = 2;
856pub const BUS_OBJERR: u32 = 3;
857pub const TRAP_BRKPT: u32 = 1;
858pub const TRAP_TRACE: u32 = 2;
859pub const CLD_NOOP: u32 = 0;
860pub const CLD_EXITED: u32 = 1;
861pub const CLD_KILLED: u32 = 2;
862pub const CLD_DUMPED: u32 = 3;
863pub const CLD_TRAPPED: u32 = 4;
864pub const CLD_STOPPED: u32 = 5;
865pub const CLD_CONTINUED: u32 = 6;
866pub const POLL_IN: u32 = 1;
867pub const POLL_OUT: u32 = 2;
868pub const POLL_MSG: u32 = 3;
869pub const POLL_ERR: u32 = 4;
870pub const POLL_PRI: u32 = 5;
871pub const POLL_HUP: u32 = 6;
872pub const SA_ONSTACK: u32 = 1;
873pub const SA_RESTART: u32 = 2;
874pub const SA_RESETHAND: u32 = 4;
875pub const SA_NOCLDSTOP: u32 = 8;
876pub const SA_NODEFER: u32 = 16;
877pub const SA_NOCLDWAIT: u32 = 32;
878pub const SA_SIGINFO: u32 = 64;
879pub const SA_USERTRAMP: u32 = 256;
880pub const SA_64REGSET: u32 = 512;
881pub const SA_USERSPACE_MASK: u32 = 127;
882pub const SIG_BLOCK: u32 = 1;
883pub const SIG_UNBLOCK: u32 = 2;
884pub const SIG_SETMASK: u32 = 3;
885pub const SI_USER: u32 = 65537;
886pub const SI_QUEUE: u32 = 65538;
887pub const SI_TIMER: u32 = 65539;
888pub const SI_ASYNCIO: u32 = 65540;
889pub const SI_MESGQ: u32 = 65541;
890pub const SS_ONSTACK: u32 = 1;
891pub const SS_DISABLE: u32 = 4;
892pub const MINSIGSTKSZ: u32 = 32768;
893pub const SIGSTKSZ: u32 = 131072;
894pub const SV_ONSTACK: u32 = 1;
895pub const SV_INTERRUPT: u32 = 2;
896pub const SV_RESETHAND: u32 = 4;
897pub const SV_NODEFER: u32 = 16;
898pub const SV_NOCLDSTOP: u32 = 8;
899pub const SV_SIGINFO: u32 = 64;
900pub const PSWP: u32 = 0;
901pub const PVM: u32 = 4;
902pub const PINOD: u32 = 8;
903pub const PRIBIO: u32 = 16;
904pub const PVFS: u32 = 20;
905pub const PZERO: u32 = 22;
906pub const PSOCK: u32 = 24;
907pub const PWAIT: u32 = 32;
908pub const PLOCK: u32 = 36;
909pub const PPAUSE: u32 = 40;
910pub const PUSER: u32 = 50;
911pub const MAXPRI: u32 = 127;
912pub const PRIMASK: u32 = 255;
913pub const PCATCH: u32 = 256;
914pub const PTTYBLOCK: u32 = 512;
915pub const PDROP: u32 = 1024;
916pub const PSPIN: u32 = 2048;
917pub const CMASK: u32 = 18;
918pub const CLBYTES: u32 = 4096;
919pub const CLOFSET: u32 = 4095;
920pub const CLOFF: u32 = 4095;
921pub const CLSHIFT: u32 = 12;
922pub const CBLOCK: u32 = 64;
923pub const CBQSIZE: u32 = 8;
924pub const CROUND: u32 = 63;
925pub const MAXBSIZE: u32 = 1048576;
926pub const MAXPHYSIO: u32 = 131072;
927pub const MAXFRAG: u32 = 8;
928pub const MAXPHYSIO_WIRED: u32 = 16777216;
929pub const MAXPATHLEN: u32 = 1024;
930pub const MAXSYMLINKS: u32 = 32;
931pub const FSHIFT: u32 = 11;
932pub const FSCALE: u32 = 2048;
933pub const AUDIT_RECORD_MAGIC: u32 = 2190085915;
934pub const MAX_AUDIT_RECORDS: u32 = 20;
935pub const MAXAUDITDATA: u32 = 32767;
936pub const MAX_AUDIT_RECORD_SIZE: u32 = 32767;
937pub const MIN_AUDIT_FILE_SIZE: u32 = 524288;
938pub const AUDIT_HARD_LIMIT_FREE_BLOCKS: u32 = 4;
939pub const AUDIT_TRIGGER_MIN: u32 = 1;
940pub const AUDIT_TRIGGER_LOW_SPACE: u32 = 1;
941pub const AUDIT_TRIGGER_ROTATE_KERNEL: u32 = 2;
942pub const AUDIT_TRIGGER_READ_FILE: u32 = 3;
943pub const AUDIT_TRIGGER_CLOSE_AND_DIE: u32 = 4;
944pub const AUDIT_TRIGGER_NO_SPACE: u32 = 5;
945pub const AUDIT_TRIGGER_ROTATE_USER: u32 = 6;
946pub const AUDIT_TRIGGER_INITIALIZE: u32 = 7;
947pub const AUDIT_TRIGGER_EXPIRE_TRAILS: u32 = 8;
948pub const AUDIT_TRIGGER_MAX: u32 = 8;
949pub const AUDITDEV_FILENAME: &'static [u8; 6usize] = b"audit\0";
950pub const AUDIT_TRIGGER_FILE: &'static [u8; 11usize] = b"/dev/audit\0";
951pub const AU_DEFAUDITSID: u32 = 0;
952pub const AU_ASSIGN_ASID: i32 = -1;
953pub const AUC_UNSET: u32 = 0;
954pub const AUC_AUDITING: u32 = 1;
955pub const AUC_NOAUDIT: u32 = 2;
956pub const AUC_DISABLED: i32 = -1;
957pub const A_OLDGETPOLICY: u32 = 2;
958pub const A_OLDSETPOLICY: u32 = 3;
959pub const A_GETKMASK: u32 = 4;
960pub const A_SETKMASK: u32 = 5;
961pub const A_OLDGETQCTRL: u32 = 6;
962pub const A_OLDSETQCTRL: u32 = 7;
963pub const A_GETCWD: u32 = 8;
964pub const A_GETCAR: u32 = 9;
965pub const A_GETSTAT: u32 = 12;
966pub const A_SETSTAT: u32 = 13;
967pub const A_SETUMASK: u32 = 14;
968pub const A_SETSMASK: u32 = 15;
969pub const A_OLDGETCOND: u32 = 20;
970pub const A_OLDSETCOND: u32 = 21;
971pub const A_GETCLASS: u32 = 22;
972pub const A_SETCLASS: u32 = 23;
973pub const A_GETPINFO: u32 = 24;
974pub const A_SETPMASK: u32 = 25;
975pub const A_SETFSIZE: u32 = 26;
976pub const A_GETFSIZE: u32 = 27;
977pub const A_GETPINFO_ADDR: u32 = 28;
978pub const A_GETKAUDIT: u32 = 29;
979pub const A_SETKAUDIT: u32 = 30;
980pub const A_SENDTRIGGER: u32 = 31;
981pub const A_GETSINFO_ADDR: u32 = 32;
982pub const A_GETPOLICY: u32 = 33;
983pub const A_SETPOLICY: u32 = 34;
984pub const A_GETQCTRL: u32 = 35;
985pub const A_SETQCTRL: u32 = 36;
986pub const A_GETCOND: u32 = 37;
987pub const A_SETCOND: u32 = 38;
988pub const A_GETSFLAGS: u32 = 39;
989pub const A_SETSFLAGS: u32 = 40;
990pub const A_GETCTLMODE: u32 = 41;
991pub const A_SETCTLMODE: u32 = 42;
992pub const A_GETEXPAFTER: u32 = 43;
993pub const A_SETEXPAFTER: u32 = 44;
994pub const AUDIT_CNT: u32 = 1;
995pub const AUDIT_AHLT: u32 = 2;
996pub const AUDIT_ARGV: u32 = 4;
997pub const AUDIT_ARGE: u32 = 8;
998pub const AUDIT_SEQ: u32 = 16;
999pub const AUDIT_WINDATA: u32 = 32;
1000pub const AUDIT_USER: u32 = 64;
1001pub const AUDIT_GROUP: u32 = 128;
1002pub const AUDIT_TRAIL: u32 = 256;
1003pub const AUDIT_PATH: u32 = 512;
1004pub const AUDIT_SCNT: u32 = 1024;
1005pub const AUDIT_PUBLIC: u32 = 2048;
1006pub const AUDIT_ZONENAME: u32 = 4096;
1007pub const AUDIT_PERZONE: u32 = 8192;
1008pub const AQ_HIWATER: u32 = 100;
1009pub const AQ_MAXHIGH: u32 = 10000;
1010pub const AQ_LOWATER: u32 = 10;
1011pub const AQ_BUFSZ: u32 = 32767;
1012pub const AQ_MAXBUFSZ: u32 = 1048576;
1013pub const AU_FS_MINFREE: u32 = 20;
1014pub const AU_IPv4: u32 = 4;
1015pub const AU_IPv6: u32 = 16;
1016pub const AU_CLASS_MASK_RESERVED: u32 = 268435456;
1017pub const CRF_NOMEMBERD: u32 = 1;
1018pub const CRF_MAC_ENFORCE: u32 = 2;
1019pub const XUCRED_VERSION: u32 = 0;
1020pub const ITIMER_REAL: u32 = 0;
1021pub const ITIMER_VIRTUAL: u32 = 1;
1022pub const ITIMER_PROF: u32 = 2;
1023pub const DST_NONE: u32 = 0;
1024pub const DST_USA: u32 = 1;
1025pub const DST_AUST: u32 = 2;
1026pub const DST_WET: u32 = 3;
1027pub const DST_MET: u32 = 4;
1028pub const DST_EET: u32 = 5;
1029pub const DST_CAN: u32 = 6;
1030pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
1031pub const _FORTIFY_SOURCE: u32 = 2;
1032pub const CLOCKS_PER_SEC: u32 = 1000000;
1033pub const TIME_UTC: u32 = 1;
1034pub const FSOPT_NOFOLLOW: u32 = 1;
1035pub const FSOPT_NOINMEMUPDATE: u32 = 2;
1036pub const FSOPT_REPORT_FULLSIZE: u32 = 4;
1037pub const FSOPT_PACK_INVAL_ATTRS: u32 = 8;
1038pub const FSOPT_ATTR_CMN_EXTENDED: u32 = 32;
1039pub const FSOPT_RETURN_REALDEV: u32 = 512;
1040pub const SEARCHFS_MAX_SEARCHPARMS: u32 = 4096;
1041pub const ATTR_BIT_MAP_COUNT: u32 = 5;
1042pub const VOL_CAPABILITIES_FORMAT: u32 = 0;
1043pub const VOL_CAPABILITIES_INTERFACES: u32 = 1;
1044pub const VOL_CAPABILITIES_RESERVED1: u32 = 2;
1045pub const VOL_CAPABILITIES_RESERVED2: u32 = 3;
1046pub const ATTR_MAX_BUFFER: u32 = 8192;
1047pub const VOL_CAP_FMT_PERSISTENTOBJECTIDS: u32 = 1;
1048pub const VOL_CAP_FMT_SYMBOLICLINKS: u32 = 2;
1049pub const VOL_CAP_FMT_HARDLINKS: u32 = 4;
1050pub const VOL_CAP_FMT_JOURNAL: u32 = 8;
1051pub const VOL_CAP_FMT_JOURNAL_ACTIVE: u32 = 16;
1052pub const VOL_CAP_FMT_NO_ROOT_TIMES: u32 = 32;
1053pub const VOL_CAP_FMT_SPARSE_FILES: u32 = 64;
1054pub const VOL_CAP_FMT_ZERO_RUNS: u32 = 128;
1055pub const VOL_CAP_FMT_CASE_SENSITIVE: u32 = 256;
1056pub const VOL_CAP_FMT_CASE_PRESERVING: u32 = 512;
1057pub const VOL_CAP_FMT_FAST_STATFS: u32 = 1024;
1058pub const VOL_CAP_FMT_2TB_FILESIZE: u32 = 2048;
1059pub const VOL_CAP_FMT_OPENDENYMODES: u32 = 4096;
1060pub const VOL_CAP_FMT_HIDDEN_FILES: u32 = 8192;
1061pub const VOL_CAP_FMT_PATH_FROM_ID: u32 = 16384;
1062pub const VOL_CAP_FMT_NO_VOLUME_SIZES: u32 = 32768;
1063pub const VOL_CAP_FMT_DECMPFS_COMPRESSION: u32 = 65536;
1064pub const VOL_CAP_FMT_64BIT_OBJECT_IDS: u32 = 131072;
1065pub const VOL_CAP_FMT_DIR_HARDLINKS: u32 = 262144;
1066pub const VOL_CAP_FMT_DOCUMENT_ID: u32 = 524288;
1067pub const VOL_CAP_FMT_WRITE_GENERATION_COUNT: u32 = 1048576;
1068pub const VOL_CAP_FMT_NO_IMMUTABLE_FILES: u32 = 2097152;
1069pub const VOL_CAP_FMT_NO_PERMISSIONS: u32 = 4194304;
1070pub const VOL_CAP_FMT_SHARED_SPACE: u32 = 8388608;
1071pub const VOL_CAP_FMT_VOL_GROUPS: u32 = 16777216;
1072pub const VOL_CAP_FMT_SEALED: u32 = 33554432;
1073pub const VOL_CAP_INT_SEARCHFS: u32 = 1;
1074pub const VOL_CAP_INT_ATTRLIST: u32 = 2;
1075pub const VOL_CAP_INT_NFSEXPORT: u32 = 4;
1076pub const VOL_CAP_INT_READDIRATTR: u32 = 8;
1077pub const VOL_CAP_INT_EXCHANGEDATA: u32 = 16;
1078pub const VOL_CAP_INT_COPYFILE: u32 = 32;
1079pub const VOL_CAP_INT_ALLOCATE: u32 = 64;
1080pub const VOL_CAP_INT_VOL_RENAME: u32 = 128;
1081pub const VOL_CAP_INT_ADVLOCK: u32 = 256;
1082pub const VOL_CAP_INT_FLOCK: u32 = 512;
1083pub const VOL_CAP_INT_EXTENDED_SECURITY: u32 = 1024;
1084pub const VOL_CAP_INT_USERACCESS: u32 = 2048;
1085pub const VOL_CAP_INT_MANLOCK: u32 = 4096;
1086pub const VOL_CAP_INT_NAMEDSTREAMS: u32 = 8192;
1087pub const VOL_CAP_INT_EXTENDED_ATTR: u32 = 16384;
1088pub const VOL_CAP_INT_CLONE: u32 = 65536;
1089pub const VOL_CAP_INT_SNAPSHOT: u32 = 131072;
1090pub const VOL_CAP_INT_RENAME_SWAP: u32 = 262144;
1091pub const VOL_CAP_INT_RENAME_EXCL: u32 = 524288;
1092pub const VOL_CAP_INT_RENAME_OPENFAIL: u32 = 1048576;
1093pub const ATTR_CMN_NAME: u32 = 1;
1094pub const ATTR_CMN_DEVID: u32 = 2;
1095pub const ATTR_CMN_FSID: u32 = 4;
1096pub const ATTR_CMN_OBJTYPE: u32 = 8;
1097pub const ATTR_CMN_OBJTAG: u32 = 16;
1098pub const ATTR_CMN_OBJID: u32 = 32;
1099pub const ATTR_CMN_OBJPERMANENTID: u32 = 64;
1100pub const ATTR_CMN_PAROBJID: u32 = 128;
1101pub const ATTR_CMN_SCRIPT: u32 = 256;
1102pub const ATTR_CMN_CRTIME: u32 = 512;
1103pub const ATTR_CMN_MODTIME: u32 = 1024;
1104pub const ATTR_CMN_CHGTIME: u32 = 2048;
1105pub const ATTR_CMN_ACCTIME: u32 = 4096;
1106pub const ATTR_CMN_BKUPTIME: u32 = 8192;
1107pub const ATTR_CMN_FNDRINFO: u32 = 16384;
1108pub const ATTR_CMN_OWNERID: u32 = 32768;
1109pub const ATTR_CMN_GRPID: u32 = 65536;
1110pub const ATTR_CMN_ACCESSMASK: u32 = 131072;
1111pub const ATTR_CMN_FLAGS: u32 = 262144;
1112pub const ATTR_CMN_GEN_COUNT: u32 = 524288;
1113pub const ATTR_CMN_DOCUMENT_ID: u32 = 1048576;
1114pub const ATTR_CMN_USERACCESS: u32 = 2097152;
1115pub const ATTR_CMN_EXTENDED_SECURITY: u32 = 4194304;
1116pub const ATTR_CMN_UUID: u32 = 8388608;
1117pub const ATTR_CMN_GRPUUID: u32 = 16777216;
1118pub const ATTR_CMN_FILEID: u32 = 33554432;
1119pub const ATTR_CMN_PARENTID: u32 = 67108864;
1120pub const ATTR_CMN_FULLPATH: u32 = 134217728;
1121pub const ATTR_CMN_ADDEDTIME: u32 = 268435456;
1122pub const ATTR_CMN_ERROR: u32 = 536870912;
1123pub const ATTR_CMN_DATA_PROTECT_FLAGS: u32 = 1073741824;
1124pub const ATTR_CMN_RETURNED_ATTRS: u32 = 2147483648;
1125pub const ATTR_CMN_VALIDMASK: u32 = 4294967295;
1126pub const ATTR_CMN_SETMASK: u32 = 1372061440;
1127pub const ATTR_CMN_VOLSETMASK: u32 = 26368;
1128pub const ATTR_VOL_FSTYPE: u32 = 1;
1129pub const ATTR_VOL_SIGNATURE: u32 = 2;
1130pub const ATTR_VOL_SIZE: u32 = 4;
1131pub const ATTR_VOL_SPACEFREE: u32 = 8;
1132pub const ATTR_VOL_SPACEAVAIL: u32 = 16;
1133pub const ATTR_VOL_MINALLOCATION: u32 = 32;
1134pub const ATTR_VOL_ALLOCATIONCLUMP: u32 = 64;
1135pub const ATTR_VOL_IOBLOCKSIZE: u32 = 128;
1136pub const ATTR_VOL_OBJCOUNT: u32 = 256;
1137pub const ATTR_VOL_FILECOUNT: u32 = 512;
1138pub const ATTR_VOL_DIRCOUNT: u32 = 1024;
1139pub const ATTR_VOL_MAXOBJCOUNT: u32 = 2048;
1140pub const ATTR_VOL_MOUNTPOINT: u32 = 4096;
1141pub const ATTR_VOL_NAME: u32 = 8192;
1142pub const ATTR_VOL_MOUNTFLAGS: u32 = 16384;
1143pub const ATTR_VOL_MOUNTEDDEVICE: u32 = 32768;
1144pub const ATTR_VOL_ENCODINGSUSED: u32 = 65536;
1145pub const ATTR_VOL_CAPABILITIES: u32 = 131072;
1146pub const ATTR_VOL_UUID: u32 = 262144;
1147pub const ATTR_VOL_QUOTA_SIZE: u32 = 268435456;
1148pub const ATTR_VOL_RESERVED_SIZE: u32 = 536870912;
1149pub const ATTR_VOL_ATTRIBUTES: u32 = 1073741824;
1150pub const ATTR_VOL_INFO: u32 = 2147483648;
1151pub const ATTR_VOL_VALIDMASK: u32 = 4027056127;
1152pub const ATTR_VOL_SETMASK: u32 = 2147491840;
1153pub const ATTR_DIR_LINKCOUNT: u32 = 1;
1154pub const ATTR_DIR_ENTRYCOUNT: u32 = 2;
1155pub const ATTR_DIR_MOUNTSTATUS: u32 = 4;
1156pub const ATTR_DIR_ALLOCSIZE: u32 = 8;
1157pub const ATTR_DIR_IOBLOCKSIZE: u32 = 16;
1158pub const ATTR_DIR_DATALENGTH: u32 = 32;
1159pub const DIR_MNTSTATUS_MNTPOINT: u32 = 1;
1160pub const DIR_MNTSTATUS_TRIGGER: u32 = 2;
1161pub const ATTR_DIR_VALIDMASK: u32 = 63;
1162pub const ATTR_DIR_SETMASK: u32 = 0;
1163pub const ATTR_FILE_LINKCOUNT: u32 = 1;
1164pub const ATTR_FILE_TOTALSIZE: u32 = 2;
1165pub const ATTR_FILE_ALLOCSIZE: u32 = 4;
1166pub const ATTR_FILE_IOBLOCKSIZE: u32 = 8;
1167pub const ATTR_FILE_DEVTYPE: u32 = 32;
1168pub const ATTR_FILE_FORKCOUNT: u32 = 128;
1169pub const ATTR_FILE_FORKLIST: u32 = 256;
1170pub const ATTR_FILE_DATALENGTH: u32 = 512;
1171pub const ATTR_FILE_DATAALLOCSIZE: u32 = 1024;
1172pub const ATTR_FILE_RSRCLENGTH: u32 = 4096;
1173pub const ATTR_FILE_RSRCALLOCSIZE: u32 = 8192;
1174pub const ATTR_FILE_VALIDMASK: u32 = 14335;
1175pub const ATTR_FILE_SETMASK: u32 = 32;
1176pub const ATTR_CMNEXT_RELPATH: u32 = 4;
1177pub const ATTR_CMNEXT_PRIVATESIZE: u32 = 8;
1178pub const ATTR_CMNEXT_LINKID: u32 = 16;
1179pub const ATTR_CMNEXT_NOFIRMLINKPATH: u32 = 32;
1180pub const ATTR_CMNEXT_REALDEVID: u32 = 64;
1181pub const ATTR_CMNEXT_REALFSID: u32 = 128;
1182pub const ATTR_CMNEXT_CLONEID: u32 = 256;
1183pub const ATTR_CMNEXT_EXT_FLAGS: u32 = 512;
1184pub const ATTR_CMNEXT_RECURSIVE_GENCOUNT: u32 = 1024;
1185pub const ATTR_CMNEXT_VALIDMASK: u32 = 2044;
1186pub const ATTR_CMNEXT_SETMASK: u32 = 0;
1187pub const ATTR_FORK_TOTALSIZE: u32 = 1;
1188pub const ATTR_FORK_ALLOCSIZE: u32 = 2;
1189pub const ATTR_FORK_RESERVED: u32 = 4294967295;
1190pub const ATTR_FORK_VALIDMASK: u32 = 3;
1191pub const ATTR_FORK_SETMASK: u32 = 0;
1192pub const ATTR_CMN_NAMEDATTRCOUNT: u32 = 524288;
1193pub const ATTR_CMN_NAMEDATTRLIST: u32 = 1048576;
1194pub const ATTR_FILE_CLUMPSIZE: u32 = 16;
1195pub const ATTR_FILE_FILETYPE: u32 = 64;
1196pub const ATTR_FILE_DATAEXTENTS: u32 = 2048;
1197pub const ATTR_FILE_RSRCEXTENTS: u32 = 16384;
1198pub const ATTR_BULK_REQUIRED: u32 = 2147483649;
1199pub const SRCHFS_START: u32 = 1;
1200pub const SRCHFS_MATCHPARTIALNAMES: u32 = 2;
1201pub const SRCHFS_MATCHDIRS: u32 = 4;
1202pub const SRCHFS_MATCHFILES: u32 = 8;
1203pub const SRCHFS_SKIPLINKS: u32 = 16;
1204pub const SRCHFS_SKIPINVISIBLE: u32 = 32;
1205pub const SRCHFS_SKIPPACKAGES: u32 = 64;
1206pub const SRCHFS_SKIPINAPPROPRIATE: u32 = 128;
1207pub const SRCHFS_NEGATEPARAMS: u32 = 2147483648;
1208pub const SRCHFS_VALIDOPTIONSMASK: u32 = 2147483903;
1209pub const FST_EOF: i32 = -1;
1210pub const MFSNAMELEN: u32 = 15;
1211pub const MFSTYPENAMELEN: u32 = 16;
1212pub const MNAMELEN: u32 = 1024;
1213pub const MNT_EXT_ROOT_DATA_VOL: u32 = 1;
1214pub const MNT_RDONLY: u32 = 1;
1215pub const MNT_SYNCHRONOUS: u32 = 2;
1216pub const MNT_NOEXEC: u32 = 4;
1217pub const MNT_NOSUID: u32 = 8;
1218pub const MNT_NODEV: u32 = 16;
1219pub const MNT_UNION: u32 = 32;
1220pub const MNT_ASYNC: u32 = 64;
1221pub const MNT_CPROTECT: u32 = 128;
1222pub const MNT_EXPORTED: u32 = 256;
1223pub const MNT_REMOVABLE: u32 = 512;
1224pub const MNT_QUARANTINE: u32 = 1024;
1225pub const MNT_LOCAL: u32 = 4096;
1226pub const MNT_QUOTA: u32 = 8192;
1227pub const MNT_ROOTFS: u32 = 16384;
1228pub const MNT_DOVOLFS: u32 = 32768;
1229pub const MNT_DONTBROWSE: u32 = 1048576;
1230pub const MNT_IGNORE_OWNERSHIP: u32 = 2097152;
1231pub const MNT_AUTOMOUNTED: u32 = 4194304;
1232pub const MNT_JOURNALED: u32 = 8388608;
1233pub const MNT_NOUSERXATTR: u32 = 16777216;
1234pub const MNT_DEFWRITE: u32 = 33554432;
1235pub const MNT_MULTILABEL: u32 = 67108864;
1236pub const MNT_NOATIME: u32 = 268435456;
1237pub const MNT_SNAPSHOT: u32 = 1073741824;
1238pub const MNT_STRICTATIME: u32 = 2147483648;
1239pub const MNT_UNKNOWNPERMISSIONS: u32 = 2097152;
1240pub const MNT_VISFLAGMASK: u32 = 3622893567;
1241pub const MNT_UPDATE: u32 = 65536;
1242pub const MNT_NOBLOCK: u32 = 131072;
1243pub const MNT_RELOAD: u32 = 262144;
1244pub const MNT_FORCE: u32 = 524288;
1245pub const MNT_CMDFLAGS: u32 = 983040;
1246pub const VFS_GENERIC: u32 = 0;
1247pub const VFS_NUMMNTOPS: u32 = 1;
1248pub const VFS_MAXTYPENUM: u32 = 1;
1249pub const VFS_CONF: u32 = 2;
1250pub const MNT_WAIT: u32 = 1;
1251pub const MNT_NOWAIT: u32 = 2;
1252pub const MNT_DWAIT: u32 = 4;
1253pub const VFS_CTL_VERS1: u32 = 1;
1254pub const VFS_CTL_OSTATFS: u32 = 65537;
1255pub const VFS_CTL_UMOUNT: u32 = 65538;
1256pub const VFS_CTL_QUERY: u32 = 65539;
1257pub const VFS_CTL_NEWADDR: u32 = 65540;
1258pub const VFS_CTL_TIMEO: u32 = 65541;
1259pub const VFS_CTL_NOLOCKS: u32 = 65542;
1260pub const VFS_CTL_SADDR: u32 = 65543;
1261pub const VFS_CTL_DISC: u32 = 65544;
1262pub const VFS_CTL_SERVERINFO: u32 = 65545;
1263pub const VFS_CTL_NSTATUS: u32 = 65546;
1264pub const VFS_CTL_STATFS64: u32 = 65547;
1265pub const VFS_CTL_STATFS: u32 = 65547;
1266pub const VQ_NOTRESP: u32 = 1;
1267pub const VQ_NEEDAUTH: u32 = 2;
1268pub const VQ_LOWDISK: u32 = 4;
1269pub const VQ_MOUNT: u32 = 8;
1270pub const VQ_UNMOUNT: u32 = 16;
1271pub const VQ_DEAD: u32 = 32;
1272pub const VQ_ASSIST: u32 = 64;
1273pub const VQ_NOTRESPLOCK: u32 = 128;
1274pub const VQ_UPDATE: u32 = 256;
1275pub const VQ_VERYLOWDISK: u32 = 512;
1276pub const VQ_SYNCEVENT: u32 = 1024;
1277pub const VQ_SERVEREVENT: u32 = 2048;
1278pub const VQ_QUOTA: u32 = 4096;
1279pub const VQ_NEARLOWDISK: u32 = 8192;
1280pub const VQ_DESIRED_DISK: u32 = 16384;
1281pub const VQ_FREE_SPACE_CHANGE: u32 = 32768;
1282pub const VQ_FLAG10000: u32 = 65536;
1283pub const NFSV4_MAX_FH_SIZE: u32 = 128;
1284pub const NFSV3_MAX_FH_SIZE: u32 = 64;
1285pub const NFSV2_MAX_FH_SIZE: u32 = 32;
1286pub const S_IFMT: u32 = 61440;
1287pub const S_IFIFO: u32 = 4096;
1288pub const S_IFCHR: u32 = 8192;
1289pub const S_IFDIR: u32 = 16384;
1290pub const S_IFBLK: u32 = 24576;
1291pub const S_IFREG: u32 = 32768;
1292pub const S_IFLNK: u32 = 40960;
1293pub const S_IFSOCK: u32 = 49152;
1294pub const S_IFWHT: u32 = 57344;
1295pub const S_IRWXU: u32 = 448;
1296pub const S_IRUSR: u32 = 256;
1297pub const S_IWUSR: u32 = 128;
1298pub const S_IXUSR: u32 = 64;
1299pub const S_IRWXG: u32 = 56;
1300pub const S_IRGRP: u32 = 32;
1301pub const S_IWGRP: u32 = 16;
1302pub const S_IXGRP: u32 = 8;
1303pub const S_IRWXO: u32 = 7;
1304pub const S_IROTH: u32 = 4;
1305pub const S_IWOTH: u32 = 2;
1306pub const S_IXOTH: u32 = 1;
1307pub const S_ISUID: u32 = 2048;
1308pub const S_ISGID: u32 = 1024;
1309pub const S_ISVTX: u32 = 512;
1310pub const S_ISTXT: u32 = 512;
1311pub const S_IREAD: u32 = 256;
1312pub const S_IWRITE: u32 = 128;
1313pub const S_IEXEC: u32 = 64;
1314pub const ACCESSPERMS: u32 = 511;
1315pub const ALLPERMS: u32 = 4095;
1316pub const DEFFILEMODE: u32 = 438;
1317pub const S_BLKSIZE: u32 = 512;
1318pub const UF_SETTABLE: u32 = 65535;
1319pub const UF_NODUMP: u32 = 1;
1320pub const UF_IMMUTABLE: u32 = 2;
1321pub const UF_APPEND: u32 = 4;
1322pub const UF_OPAQUE: u32 = 8;
1323pub const UF_COMPRESSED: u32 = 32;
1324pub const UF_TRACKED: u32 = 64;
1325pub const UF_DATAVAULT: u32 = 128;
1326pub const UF_HIDDEN: u32 = 32768;
1327pub const SF_SUPPORTED: u32 = 10420224;
1328pub const SF_SETTABLE: u32 = 1073676288;
1329pub const SF_SYNTHETIC: u32 = 3221225472;
1330pub const SF_ARCHIVED: u32 = 65536;
1331pub const SF_IMMUTABLE: u32 = 131072;
1332pub const SF_APPEND: u32 = 262144;
1333pub const SF_RESTRICTED: u32 = 524288;
1334pub const SF_NOUNLINK: u32 = 1048576;
1335pub const SF_FIRMLINK: u32 = 8388608;
1336pub const SF_DATALESS: u32 = 1073741824;
1337pub const EF_MAY_SHARE_BLOCKS: u32 = 1;
1338pub const EF_NO_XATTRS: u32 = 2;
1339pub const EF_IS_SYNC_ROOT: u32 = 4;
1340pub const EF_IS_PURGEABLE: u32 = 8;
1341pub const EF_IS_SPARSE: u32 = 16;
1342pub const UTIME_NOW: i32 = -1;
1343pub const UTIME_OMIT: i32 = -2;
1344pub const XATTR_NOFOLLOW: u32 = 1;
1345pub const XATTR_CREATE: u32 = 2;
1346pub const XATTR_REPLACE: u32 = 4;
1347pub const XATTR_NOSECURITY: u32 = 8;
1348pub const XATTR_NODEFAULT: u32 = 16;
1349pub const XATTR_SHOWCOMPRESSION: u32 = 32;
1350pub const XATTR_MAXNAMELEN: u32 = 127;
1351pub const XATTR_FINDERINFO_NAME: &'static [u8; 21usize] = b"com.apple.FinderInfo\0";
1352pub const XATTR_RESOURCEFORK_NAME: &'static [u8; 23usize] = b"com.apple.ResourceFork\0";
1353pub const API_TO_BE_DEPRECATED: u32 = 100000;
1354pub const KAUTH_GUID_SIZE: u32 = 16;
1355pub const KAUTH_NTSID_MAX_AUTHORITIES: u32 = 16;
1356pub const KAUTH_NTSID_HDRSIZE: u32 = 8;
1357pub const KAUTH_EXTLOOKUP_SUCCESS: u32 = 0;
1358pub const KAUTH_EXTLOOKUP_BADRQ: u32 = 1;
1359pub const KAUTH_EXTLOOKUP_FAILURE: u32 = 2;
1360pub const KAUTH_EXTLOOKUP_FATAL: u32 = 3;
1361pub const KAUTH_EXTLOOKUP_INPROG: u32 = 100;
1362pub const KAUTH_EXTLOOKUP_VALID_UID: u32 = 1;
1363pub const KAUTH_EXTLOOKUP_VALID_UGUID: u32 = 2;
1364pub const KAUTH_EXTLOOKUP_VALID_USID: u32 = 4;
1365pub const KAUTH_EXTLOOKUP_VALID_GID: u32 = 8;
1366pub const KAUTH_EXTLOOKUP_VALID_GGUID: u32 = 16;
1367pub const KAUTH_EXTLOOKUP_VALID_GSID: u32 = 32;
1368pub const KAUTH_EXTLOOKUP_WANT_UID: u32 = 64;
1369pub const KAUTH_EXTLOOKUP_WANT_UGUID: u32 = 128;
1370pub const KAUTH_EXTLOOKUP_WANT_USID: u32 = 256;
1371pub const KAUTH_EXTLOOKUP_WANT_GID: u32 = 512;
1372pub const KAUTH_EXTLOOKUP_WANT_GGUID: u32 = 1024;
1373pub const KAUTH_EXTLOOKUP_WANT_GSID: u32 = 2048;
1374pub const KAUTH_EXTLOOKUP_WANT_MEMBERSHIP: u32 = 4096;
1375pub const KAUTH_EXTLOOKUP_VALID_MEMBERSHIP: u32 = 8192;
1376pub const KAUTH_EXTLOOKUP_ISMEMBER: u32 = 16384;
1377pub const KAUTH_EXTLOOKUP_VALID_PWNAM: u32 = 32768;
1378pub const KAUTH_EXTLOOKUP_WANT_PWNAM: u32 = 65536;
1379pub const KAUTH_EXTLOOKUP_VALID_GRNAM: u32 = 131072;
1380pub const KAUTH_EXTLOOKUP_WANT_GRNAM: u32 = 262144;
1381pub const KAUTH_EXTLOOKUP_VALID_SUPGRPS: u32 = 524288;
1382pub const KAUTH_EXTLOOKUP_WANT_SUPGRPS: u32 = 1048576;
1383pub const KAUTH_EXTLOOKUP_REGISTER: u32 = 0;
1384pub const KAUTH_EXTLOOKUP_RESULT: u32 = 1;
1385pub const KAUTH_EXTLOOKUP_WORKER: u32 = 2;
1386pub const KAUTH_EXTLOOKUP_DEREGISTER: u32 = 4;
1387pub const KAUTH_GET_CACHE_SIZES: u32 = 8;
1388pub const KAUTH_SET_CACHE_SIZES: u32 = 16;
1389pub const KAUTH_CLEAR_CACHES: u32 = 32;
1390pub const IDENTITYSVC_ENTITLEMENT: &'static [u8; 30usize] = b"com.apple.private.identitysvc\0";
1391pub const KAUTH_ACE_KINDMASK: u32 = 15;
1392pub const KAUTH_ACE_PERMIT: u32 = 1;
1393pub const KAUTH_ACE_DENY: u32 = 2;
1394pub const KAUTH_ACE_AUDIT: u32 = 3;
1395pub const KAUTH_ACE_ALARM: u32 = 4;
1396pub const KAUTH_ACE_INHERITED: u32 = 16;
1397pub const KAUTH_ACE_FILE_INHERIT: u32 = 32;
1398pub const KAUTH_ACE_DIRECTORY_INHERIT: u32 = 64;
1399pub const KAUTH_ACE_LIMIT_INHERIT: u32 = 128;
1400pub const KAUTH_ACE_ONLY_INHERIT: u32 = 256;
1401pub const KAUTH_ACE_SUCCESS: u32 = 512;
1402pub const KAUTH_ACE_FAILURE: u32 = 1024;
1403pub const KAUTH_ACE_INHERIT_CONTROL_FLAGS: u32 = 480;
1404pub const KAUTH_ACE_GENERIC_ALL: u32 = 2097152;
1405pub const KAUTH_ACE_GENERIC_EXECUTE: u32 = 4194304;
1406pub const KAUTH_ACE_GENERIC_WRITE: u32 = 8388608;
1407pub const KAUTH_ACE_GENERIC_READ: u32 = 16777216;
1408pub const KAUTH_ACL_MAX_ENTRIES: u32 = 128;
1409pub const KAUTH_ACL_FLAGS_PRIVATE: u32 = 65535;
1410pub const KAUTH_ACL_DEFER_INHERIT: u32 = 65536;
1411pub const KAUTH_ACL_NO_INHERIT: u32 = 131072;
1412pub const KAUTH_FILESEC_MAGIC: u32 = 19710317;
1413pub const KAUTH_FILESEC_FLAGS_PRIVATE: u32 = 65535;
1414pub const KAUTH_FILESEC_DEFER_INHERIT: u32 = 65536;
1415pub const KAUTH_FILESEC_NO_INHERIT: u32 = 131072;
1416pub const KAUTH_FILESEC_XATTR: &'static [u8; 26usize] = b"com.apple.system.Security\0";
1417pub const KAUTH_ENDIAN_HOST: u32 = 1;
1418pub const KAUTH_ENDIAN_DISK: u32 = 2;
1419pub const KAUTH_VNODE_READ_DATA: u32 = 2;
1420pub const KAUTH_VNODE_LIST_DIRECTORY: u32 = 2;
1421pub const KAUTH_VNODE_WRITE_DATA: u32 = 4;
1422pub const KAUTH_VNODE_ADD_FILE: u32 = 4;
1423pub const KAUTH_VNODE_EXECUTE: u32 = 8;
1424pub const KAUTH_VNODE_SEARCH: u32 = 8;
1425pub const KAUTH_VNODE_DELETE: u32 = 16;
1426pub const KAUTH_VNODE_APPEND_DATA: u32 = 32;
1427pub const KAUTH_VNODE_ADD_SUBDIRECTORY: u32 = 32;
1428pub const KAUTH_VNODE_DELETE_CHILD: u32 = 64;
1429pub const KAUTH_VNODE_READ_ATTRIBUTES: u32 = 128;
1430pub const KAUTH_VNODE_WRITE_ATTRIBUTES: u32 = 256;
1431pub const KAUTH_VNODE_READ_EXTATTRIBUTES: u32 = 512;
1432pub const KAUTH_VNODE_WRITE_EXTATTRIBUTES: u32 = 1024;
1433pub const KAUTH_VNODE_READ_SECURITY: u32 = 2048;
1434pub const KAUTH_VNODE_WRITE_SECURITY: u32 = 4096;
1435pub const KAUTH_VNODE_TAKE_OWNERSHIP: u32 = 8192;
1436pub const KAUTH_VNODE_CHANGE_OWNER: u32 = 8192;
1437pub const KAUTH_VNODE_SYNCHRONIZE: u32 = 1048576;
1438pub const KAUTH_VNODE_LINKTARGET: u32 = 33554432;
1439pub const KAUTH_VNODE_CHECKIMMUTABLE: u32 = 67108864;
1440pub const KAUTH_VNODE_ACCESS: u32 = 2147483648;
1441pub const KAUTH_VNODE_NOIMMUTABLE: u32 = 1073741824;
1442pub const KAUTH_VNODE_SEARCHBYANYONE: u32 = 536870912;
1443pub const KAUTH_VNODE_GENERIC_READ_BITS: u32 = 2690;
1444pub const KAUTH_VNODE_GENERIC_WRITE_BITS: u32 = 5492;
1445pub const KAUTH_VNODE_GENERIC_EXECUTE_BITS: u32 = 8;
1446pub const KAUTH_VNODE_GENERIC_ALL_BITS: u32 = 8190;
1447pub const KAUTH_VNODE_WRITE_RIGHTS: u32 = 100676980;
1448pub const __DARWIN_ACL_READ_DATA: u32 = 2;
1449pub const __DARWIN_ACL_LIST_DIRECTORY: u32 = 2;
1450pub const __DARWIN_ACL_WRITE_DATA: u32 = 4;
1451pub const __DARWIN_ACL_ADD_FILE: u32 = 4;
1452pub const __DARWIN_ACL_EXECUTE: u32 = 8;
1453pub const __DARWIN_ACL_SEARCH: u32 = 8;
1454pub const __DARWIN_ACL_DELETE: u32 = 16;
1455pub const __DARWIN_ACL_APPEND_DATA: u32 = 32;
1456pub const __DARWIN_ACL_ADD_SUBDIRECTORY: u32 = 32;
1457pub const __DARWIN_ACL_DELETE_CHILD: u32 = 64;
1458pub const __DARWIN_ACL_READ_ATTRIBUTES: u32 = 128;
1459pub const __DARWIN_ACL_WRITE_ATTRIBUTES: u32 = 256;
1460pub const __DARWIN_ACL_READ_EXTATTRIBUTES: u32 = 512;
1461pub const __DARWIN_ACL_WRITE_EXTATTRIBUTES: u32 = 1024;
1462pub const __DARWIN_ACL_READ_SECURITY: u32 = 2048;
1463pub const __DARWIN_ACL_WRITE_SECURITY: u32 = 4096;
1464pub const __DARWIN_ACL_CHANGE_OWNER: u32 = 8192;
1465pub const __DARWIN_ACL_SYNCHRONIZE: u32 = 1048576;
1466pub const __DARWIN_ACL_EXTENDED_ALLOW: u32 = 1;
1467pub const __DARWIN_ACL_EXTENDED_DENY: u32 = 2;
1468pub const __DARWIN_ACL_ENTRY_INHERITED: u32 = 16;
1469pub const __DARWIN_ACL_ENTRY_FILE_INHERIT: u32 = 32;
1470pub const __DARWIN_ACL_ENTRY_DIRECTORY_INHERIT: u32 = 64;
1471pub const __DARWIN_ACL_ENTRY_LIMIT_INHERIT: u32 = 128;
1472pub const __DARWIN_ACL_ENTRY_ONLY_INHERIT: u32 = 256;
1473pub const __DARWIN_ACL_FLAG_NO_INHERIT: u32 = 131072;
1474pub const ACL_MAX_ENTRIES: u32 = 128;
1475pub type int_least8_t = i8;
1476pub type int_least16_t = i16;
1477pub type int_least32_t = i32;
1478pub type int_least64_t = i64;
1479pub type uint_least8_t = u8;
1480pub type uint_least16_t = u16;
1481pub type uint_least32_t = u32;
1482pub type uint_least64_t = u64;
1483pub type int_fast8_t = i8;
1484pub type int_fast16_t = i16;
1485pub type int_fast32_t = i32;
1486pub type int_fast64_t = i64;
1487pub type uint_fast8_t = u8;
1488pub type uint_fast16_t = u16;
1489pub type uint_fast32_t = u32;
1490pub type uint_fast64_t = u64;
1491pub type __int8_t = ::std::os::raw::c_schar;
1492pub type __uint8_t = ::std::os::raw::c_uchar;
1493pub type __int16_t = ::std::os::raw::c_short;
1494pub type __uint16_t = ::std::os::raw::c_ushort;
1495pub type __int32_t = ::std::os::raw::c_int;
1496pub type __uint32_t = ::std::os::raw::c_uint;
1497pub type __int64_t = ::std::os::raw::c_longlong;
1498pub type __uint64_t = ::std::os::raw::c_ulonglong;
1499pub type __darwin_intptr_t = ::std::os::raw::c_long;
1500pub type __darwin_natural_t = ::std::os::raw::c_uint;
1501pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
1502#[repr(C)]
1503#[derive(Copy, Clone)]
1504pub union __mbstate_t {
1505 pub __mbstate8: [::std::os::raw::c_char; 128usize],
1506 pub _mbstateL: ::std::os::raw::c_longlong,
1507 _bindgen_union_align: [u64; 16usize],
1508}
1509#[test]
1510fn bindgen_test_layout___mbstate_t() {
1511 assert_eq!(
1512 ::std::mem::size_of::<__mbstate_t>(),
1513 128usize,
1514 concat!("Size of: ", stringify!(__mbstate_t))
1515 );
1516 assert_eq!(
1517 ::std::mem::align_of::<__mbstate_t>(),
1518 8usize,
1519 concat!("Alignment of ", stringify!(__mbstate_t))
1520 );
1521 assert_eq!(
1522 unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize },
1523 0usize,
1524 concat!(
1525 "Offset of field: ",
1526 stringify!(__mbstate_t),
1527 "::",
1528 stringify!(__mbstate8)
1529 )
1530 );
1531 assert_eq!(
1532 unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize },
1533 0usize,
1534 concat!(
1535 "Offset of field: ",
1536 stringify!(__mbstate_t),
1537 "::",
1538 stringify!(_mbstateL)
1539 )
1540 );
1541}
1542pub type __darwin_mbstate_t = __mbstate_t;
1543pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
1544pub type __darwin_size_t = ::std::os::raw::c_ulong;
1545pub type __darwin_va_list = __builtin_va_list;
1546pub type __darwin_wchar_t = ::std::os::raw::c_int;
1547pub type __darwin_rune_t = __darwin_wchar_t;
1548pub type __darwin_wint_t = ::std::os::raw::c_int;
1549pub type __darwin_clock_t = ::std::os::raw::c_ulong;
1550pub type __darwin_socklen_t = __uint32_t;
1551pub type __darwin_ssize_t = ::std::os::raw::c_long;
1552pub type __darwin_time_t = ::std::os::raw::c_long;
1553pub type __darwin_blkcnt_t = __int64_t;
1554pub type __darwin_blksize_t = __int32_t;
1555pub type __darwin_dev_t = __int32_t;
1556pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
1557pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
1558pub type __darwin_gid_t = __uint32_t;
1559pub type __darwin_id_t = __uint32_t;
1560pub type __darwin_ino64_t = __uint64_t;
1561pub type __darwin_ino_t = __darwin_ino64_t;
1562pub type __darwin_mach_port_name_t = __darwin_natural_t;
1563pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
1564pub type __darwin_mode_t = __uint16_t;
1565pub type __darwin_off_t = __int64_t;
1566pub type __darwin_pid_t = __int32_t;
1567pub type __darwin_sigset_t = __uint32_t;
1568pub type __darwin_suseconds_t = __int32_t;
1569pub type __darwin_uid_t = __uint32_t;
1570pub type __darwin_useconds_t = __uint32_t;
1571pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
1572pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
1573#[repr(C)]
1574#[derive(Debug, Copy, Clone)]
1575pub struct __darwin_pthread_handler_rec {
1576 pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1577 pub __arg: *mut ::std::os::raw::c_void,
1578 pub __next: *mut __darwin_pthread_handler_rec,
1579}
1580#[test]
1581fn bindgen_test_layout___darwin_pthread_handler_rec() {
1582 assert_eq!(
1583 ::std::mem::size_of::<__darwin_pthread_handler_rec>(),
1584 24usize,
1585 concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
1586 );
1587 assert_eq!(
1588 ::std::mem::align_of::<__darwin_pthread_handler_rec>(),
1589 8usize,
1590 concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
1591 );
1592 assert_eq!(
1593 unsafe {
1594 &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize
1595 },
1596 0usize,
1597 concat!(
1598 "Offset of field: ",
1599 stringify!(__darwin_pthread_handler_rec),
1600 "::",
1601 stringify!(__routine)
1602 )
1603 );
1604 assert_eq!(
1605 unsafe {
1606 &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize
1607 },
1608 8usize,
1609 concat!(
1610 "Offset of field: ",
1611 stringify!(__darwin_pthread_handler_rec),
1612 "::",
1613 stringify!(__arg)
1614 )
1615 );
1616 assert_eq!(
1617 unsafe {
1618 &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize
1619 },
1620 16usize,
1621 concat!(
1622 "Offset of field: ",
1623 stringify!(__darwin_pthread_handler_rec),
1624 "::",
1625 stringify!(__next)
1626 )
1627 );
1628}
1629#[repr(C)]
1630#[derive(Copy, Clone)]
1631pub struct _opaque_pthread_attr_t {
1632 pub __sig: ::std::os::raw::c_long,
1633 pub __opaque: [::std::os::raw::c_char; 56usize],
1634}
1635#[test]
1636fn bindgen_test_layout__opaque_pthread_attr_t() {
1637 assert_eq!(
1638 ::std::mem::size_of::<_opaque_pthread_attr_t>(),
1639 64usize,
1640 concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
1641 );
1642 assert_eq!(
1643 ::std::mem::align_of::<_opaque_pthread_attr_t>(),
1644 8usize,
1645 concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
1646 );
1647 assert_eq!(
1648 unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize },
1649 0usize,
1650 concat!(
1651 "Offset of field: ",
1652 stringify!(_opaque_pthread_attr_t),
1653 "::",
1654 stringify!(__sig)
1655 )
1656 );
1657 assert_eq!(
1658 unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize },
1659 8usize,
1660 concat!(
1661 "Offset of field: ",
1662 stringify!(_opaque_pthread_attr_t),
1663 "::",
1664 stringify!(__opaque)
1665 )
1666 );
1667}
1668#[repr(C)]
1669#[derive(Copy, Clone)]
1670pub struct _opaque_pthread_cond_t {
1671 pub __sig: ::std::os::raw::c_long,
1672 pub __opaque: [::std::os::raw::c_char; 40usize],
1673}
1674#[test]
1675fn bindgen_test_layout__opaque_pthread_cond_t() {
1676 assert_eq!(
1677 ::std::mem::size_of::<_opaque_pthread_cond_t>(),
1678 48usize,
1679 concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
1680 );
1681 assert_eq!(
1682 ::std::mem::align_of::<_opaque_pthread_cond_t>(),
1683 8usize,
1684 concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
1685 );
1686 assert_eq!(
1687 unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize },
1688 0usize,
1689 concat!(
1690 "Offset of field: ",
1691 stringify!(_opaque_pthread_cond_t),
1692 "::",
1693 stringify!(__sig)
1694 )
1695 );
1696 assert_eq!(
1697 unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize },
1698 8usize,
1699 concat!(
1700 "Offset of field: ",
1701 stringify!(_opaque_pthread_cond_t),
1702 "::",
1703 stringify!(__opaque)
1704 )
1705 );
1706}
1707#[repr(C)]
1708#[derive(Debug, Copy, Clone)]
1709pub struct _opaque_pthread_condattr_t {
1710 pub __sig: ::std::os::raw::c_long,
1711 pub __opaque: [::std::os::raw::c_char; 8usize],
1712}
1713#[test]
1714fn bindgen_test_layout__opaque_pthread_condattr_t() {
1715 assert_eq!(
1716 ::std::mem::size_of::<_opaque_pthread_condattr_t>(),
1717 16usize,
1718 concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
1719 );
1720 assert_eq!(
1721 ::std::mem::align_of::<_opaque_pthread_condattr_t>(),
1722 8usize,
1723 concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
1724 );
1725 assert_eq!(
1726 unsafe {
1727 &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize
1728 },
1729 0usize,
1730 concat!(
1731 "Offset of field: ",
1732 stringify!(_opaque_pthread_condattr_t),
1733 "::",
1734 stringify!(__sig)
1735 )
1736 );
1737 assert_eq!(
1738 unsafe {
1739 &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize
1740 },
1741 8usize,
1742 concat!(
1743 "Offset of field: ",
1744 stringify!(_opaque_pthread_condattr_t),
1745 "::",
1746 stringify!(__opaque)
1747 )
1748 );
1749}
1750#[repr(C)]
1751#[derive(Copy, Clone)]
1752pub struct _opaque_pthread_mutex_t {
1753 pub __sig: ::std::os::raw::c_long,
1754 pub __opaque: [::std::os::raw::c_char; 56usize],
1755}
1756#[test]
1757fn bindgen_test_layout__opaque_pthread_mutex_t() {
1758 assert_eq!(
1759 ::std::mem::size_of::<_opaque_pthread_mutex_t>(),
1760 64usize,
1761 concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
1762 );
1763 assert_eq!(
1764 ::std::mem::align_of::<_opaque_pthread_mutex_t>(),
1765 8usize,
1766 concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
1767 );
1768 assert_eq!(
1769 unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize },
1770 0usize,
1771 concat!(
1772 "Offset of field: ",
1773 stringify!(_opaque_pthread_mutex_t),
1774 "::",
1775 stringify!(__sig)
1776 )
1777 );
1778 assert_eq!(
1779 unsafe {
1780 &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize
1781 },
1782 8usize,
1783 concat!(
1784 "Offset of field: ",
1785 stringify!(_opaque_pthread_mutex_t),
1786 "::",
1787 stringify!(__opaque)
1788 )
1789 );
1790}
1791#[repr(C)]
1792#[derive(Debug, Copy, Clone)]
1793pub struct _opaque_pthread_mutexattr_t {
1794 pub __sig: ::std::os::raw::c_long,
1795 pub __opaque: [::std::os::raw::c_char; 8usize],
1796}
1797#[test]
1798fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
1799 assert_eq!(
1800 ::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
1801 16usize,
1802 concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
1803 );
1804 assert_eq!(
1805 ::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
1806 8usize,
1807 concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
1808 );
1809 assert_eq!(
1810 unsafe {
1811 &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize
1812 },
1813 0usize,
1814 concat!(
1815 "Offset of field: ",
1816 stringify!(_opaque_pthread_mutexattr_t),
1817 "::",
1818 stringify!(__sig)
1819 )
1820 );
1821 assert_eq!(
1822 unsafe {
1823 &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize
1824 },
1825 8usize,
1826 concat!(
1827 "Offset of field: ",
1828 stringify!(_opaque_pthread_mutexattr_t),
1829 "::",
1830 stringify!(__opaque)
1831 )
1832 );
1833}
1834#[repr(C)]
1835#[derive(Debug, Copy, Clone)]
1836pub struct _opaque_pthread_once_t {
1837 pub __sig: ::std::os::raw::c_long,
1838 pub __opaque: [::std::os::raw::c_char; 8usize],
1839}
1840#[test]
1841fn bindgen_test_layout__opaque_pthread_once_t() {
1842 assert_eq!(
1843 ::std::mem::size_of::<_opaque_pthread_once_t>(),
1844 16usize,
1845 concat!("Size of: ", stringify!(_opaque_pthread_once_t))
1846 );
1847 assert_eq!(
1848 ::std::mem::align_of::<_opaque_pthread_once_t>(),
1849 8usize,
1850 concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
1851 );
1852 assert_eq!(
1853 unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize },
1854 0usize,
1855 concat!(
1856 "Offset of field: ",
1857 stringify!(_opaque_pthread_once_t),
1858 "::",
1859 stringify!(__sig)
1860 )
1861 );
1862 assert_eq!(
1863 unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize },
1864 8usize,
1865 concat!(
1866 "Offset of field: ",
1867 stringify!(_opaque_pthread_once_t),
1868 "::",
1869 stringify!(__opaque)
1870 )
1871 );
1872}
1873#[repr(C)]
1874#[derive(Copy, Clone)]
1875pub struct _opaque_pthread_rwlock_t {
1876 pub __sig: ::std::os::raw::c_long,
1877 pub __opaque: [::std::os::raw::c_char; 192usize],
1878}
1879#[test]
1880fn bindgen_test_layout__opaque_pthread_rwlock_t() {
1881 assert_eq!(
1882 ::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
1883 200usize,
1884 concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
1885 );
1886 assert_eq!(
1887 ::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
1888 8usize,
1889 concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
1890 );
1891 assert_eq!(
1892 unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize },
1893 0usize,
1894 concat!(
1895 "Offset of field: ",
1896 stringify!(_opaque_pthread_rwlock_t),
1897 "::",
1898 stringify!(__sig)
1899 )
1900 );
1901 assert_eq!(
1902 unsafe {
1903 &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize
1904 },
1905 8usize,
1906 concat!(
1907 "Offset of field: ",
1908 stringify!(_opaque_pthread_rwlock_t),
1909 "::",
1910 stringify!(__opaque)
1911 )
1912 );
1913}
1914#[repr(C)]
1915#[derive(Debug, Copy, Clone)]
1916pub struct _opaque_pthread_rwlockattr_t {
1917 pub __sig: ::std::os::raw::c_long,
1918 pub __opaque: [::std::os::raw::c_char; 16usize],
1919}
1920#[test]
1921fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
1922 assert_eq!(
1923 ::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
1924 24usize,
1925 concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
1926 );
1927 assert_eq!(
1928 ::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
1929 8usize,
1930 concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
1931 );
1932 assert_eq!(
1933 unsafe {
1934 &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize
1935 },
1936 0usize,
1937 concat!(
1938 "Offset of field: ",
1939 stringify!(_opaque_pthread_rwlockattr_t),
1940 "::",
1941 stringify!(__sig)
1942 )
1943 );
1944 assert_eq!(
1945 unsafe {
1946 &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize
1947 },
1948 8usize,
1949 concat!(
1950 "Offset of field: ",
1951 stringify!(_opaque_pthread_rwlockattr_t),
1952 "::",
1953 stringify!(__opaque)
1954 )
1955 );
1956}
1957#[repr(C)]
1958#[derive(Copy, Clone)]
1959pub struct _opaque_pthread_t {
1960 pub __sig: ::std::os::raw::c_long,
1961 pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
1962 pub __opaque: [::std::os::raw::c_char; 8176usize],
1963}
1964#[test]
1965fn bindgen_test_layout__opaque_pthread_t() {
1966 assert_eq!(
1967 ::std::mem::size_of::<_opaque_pthread_t>(),
1968 8192usize,
1969 concat!("Size of: ", stringify!(_opaque_pthread_t))
1970 );
1971 assert_eq!(
1972 ::std::mem::align_of::<_opaque_pthread_t>(),
1973 8usize,
1974 concat!("Alignment of ", stringify!(_opaque_pthread_t))
1975 );
1976 assert_eq!(
1977 unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize },
1978 0usize,
1979 concat!(
1980 "Offset of field: ",
1981 stringify!(_opaque_pthread_t),
1982 "::",
1983 stringify!(__sig)
1984 )
1985 );
1986 assert_eq!(
1987 unsafe {
1988 &(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize
1989 },
1990 8usize,
1991 concat!(
1992 "Offset of field: ",
1993 stringify!(_opaque_pthread_t),
1994 "::",
1995 stringify!(__cleanup_stack)
1996 )
1997 );
1998 assert_eq!(
1999 unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize },
2000 16usize,
2001 concat!(
2002 "Offset of field: ",
2003 stringify!(_opaque_pthread_t),
2004 "::",
2005 stringify!(__opaque)
2006 )
2007 );
2008}
2009pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
2010pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
2011pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
2012pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
2013pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
2014pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
2015pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
2016pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
2017pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
2018pub type __darwin_pthread_t = *mut _opaque_pthread_t;
2019pub type u_int8_t = ::std::os::raw::c_uchar;
2020pub type u_int16_t = ::std::os::raw::c_ushort;
2021pub type u_int32_t = ::std::os::raw::c_uint;
2022pub type u_int64_t = ::std::os::raw::c_ulonglong;
2023pub type register_t = i64;
2024pub type user_addr_t = u_int64_t;
2025pub type user_size_t = u_int64_t;
2026pub type user_ssize_t = i64;
2027pub type user_long_t = i64;
2028pub type user_ulong_t = u_int64_t;
2029pub type user_time_t = i64;
2030pub type user_off_t = i64;
2031pub type syscall_arg_t = u_int64_t;
2032pub type intmax_t = ::std::os::raw::c_long;
2033pub type uintmax_t = ::std::os::raw::c_ulong;
2034pub const CSMAGIC_REQUIREMENT: ::std::os::raw::c_uint = 4208856064;
2035pub const CSMAGIC_REQUIREMENTS: ::std::os::raw::c_uint = 4208856065;
2036pub const CSMAGIC_CODEDIRECTORY: ::std::os::raw::c_uint = 4208856066;
2037pub const CSMAGIC_EMBEDDED_SIGNATURE: ::std::os::raw::c_uint = 4208856256;
2038pub const CSMAGIC_EMBEDDED_SIGNATURE_OLD: ::std::os::raw::c_uint = 4208855810;
2039pub const CSMAGIC_EMBEDDED_ENTITLEMENTS: ::std::os::raw::c_uint = 4208882033;
2040pub const CSMAGIC_DETACHED_SIGNATURE: ::std::os::raw::c_uint = 4208856257;
2041pub const CSMAGIC_BLOBWRAPPER: ::std::os::raw::c_uint = 4208855809;
2042pub const CS_SUPPORTSSCATTER: ::std::os::raw::c_uint = 131328;
2043pub const CS_SUPPORTSTEAMID: ::std::os::raw::c_uint = 131584;
2044pub const CS_SUPPORTSCODELIMIT64: ::std::os::raw::c_uint = 131840;
2045pub const CS_SUPPORTSEXECSEG: ::std::os::raw::c_uint = 132096;
2046pub const CS_SUPPORTSRUNTIME: ::std::os::raw::c_uint = 132352;
2047pub const CS_SUPPORTSLINKAGE: ::std::os::raw::c_uint = 132608;
2048pub const CSSLOT_CODEDIRECTORY: ::std::os::raw::c_uint = 0;
2049pub const CSSLOT_INFOSLOT: ::std::os::raw::c_uint = 1;
2050pub const CSSLOT_REQUIREMENTS: ::std::os::raw::c_uint = 2;
2051pub const CSSLOT_RESOURCEDIR: ::std::os::raw::c_uint = 3;
2052pub const CSSLOT_APPLICATION: ::std::os::raw::c_uint = 4;
2053pub const CSSLOT_ENTITLEMENTS: ::std::os::raw::c_uint = 5;
2054pub const CSSLOT_ALTERNATE_CODEDIRECTORIES: ::std::os::raw::c_uint = 4096;
2055pub const CSSLOT_ALTERNATE_CODEDIRECTORY_MAX: ::std::os::raw::c_uint = 5;
2056pub const CSSLOT_ALTERNATE_CODEDIRECTORY_LIMIT: ::std::os::raw::c_uint = 4101;
2057pub const CSSLOT_SIGNATURESLOT: ::std::os::raw::c_uint = 65536;
2058pub const CSSLOT_IDENTIFICATIONSLOT: ::std::os::raw::c_uint = 65537;
2059pub const CSSLOT_TICKETSLOT: ::std::os::raw::c_uint = 65538;
2060pub const CSTYPE_INDEX_REQUIREMENTS: ::std::os::raw::c_uint = 2;
2061pub const CSTYPE_INDEX_ENTITLEMENTS: ::std::os::raw::c_uint = 5;
2062pub const CS_HASHTYPE_SHA1: ::std::os::raw::c_uint = 1;
2063pub const CS_HASHTYPE_SHA256: ::std::os::raw::c_uint = 2;
2064pub const CS_HASHTYPE_SHA256_TRUNCATED: ::std::os::raw::c_uint = 3;
2065pub const CS_HASHTYPE_SHA384: ::std::os::raw::c_uint = 4;
2066pub const CS_SHA1_LEN: ::std::os::raw::c_uint = 20;
2067pub const CS_SHA256_LEN: ::std::os::raw::c_uint = 32;
2068pub const CS_SHA256_TRUNCATED_LEN: ::std::os::raw::c_uint = 20;
2069pub const CS_CDHASH_LEN: ::std::os::raw::c_uint = 20;
2070pub const CS_HASH_MAX_SIZE: ::std::os::raw::c_uint = 48;
2071pub const CS_SIGNER_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0;
2072pub const CS_SIGNER_TYPE_LEGACYVPN: ::std::os::raw::c_uint = 5;
2073pub const CS_SIGNER_TYPE_MAC_APP_STORE: ::std::os::raw::c_uint = 6;
2074pub const CS_SUPPL_SIGNER_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0;
2075pub const CS_SUPPL_SIGNER_TYPE_TRUSTCACHE: ::std::os::raw::c_uint = 7;
2076pub const CS_SUPPL_SIGNER_TYPE_LOCAL: ::std::os::raw::c_uint = 8;
2077pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
2078#[repr(C)]
2079#[derive(Debug)]
2080pub struct __CodeDirectory {
2081 pub magic: u32,
2082 pub length: u32,
2083 pub version: u32,
2084 pub flags: u32,
2085 pub hashOffset: u32,
2086 pub identOffset: u32,
2087 pub nSpecialSlots: u32,
2088 pub nCodeSlots: u32,
2089 pub codeLimit: u32,
2090 pub hashSize: u8,
2091 pub hashType: u8,
2092 pub platform: u8,
2093 pub pageSize: u8,
2094 pub spare2: u32,
2095 pub end_earliest: __IncompleteArrayField<::std::os::raw::c_char>,
2096 pub scatterOffset: u32,
2097 pub end_withScatter: __IncompleteArrayField<::std::os::raw::c_char>,
2098 pub teamOffset: u32,
2099 pub end_withTeam: __IncompleteArrayField<::std::os::raw::c_char>,
2100 pub spare3: u32,
2101 pub codeLimit64: u64,
2102 pub end_withCodeLimit64: __IncompleteArrayField<::std::os::raw::c_char>,
2103 pub execSegBase: u64,
2104 pub execSegLimit: u64,
2105 pub execSegFlags: u64,
2106 pub end_withExecSeg: __IncompleteArrayField<::std::os::raw::c_char>,
2107 pub runtime: u32,
2108 pub preEncryptOffset: u32,
2109 pub end_withPreEncryptOffset: __IncompleteArrayField<::std::os::raw::c_char>,
2110 pub linkageHashType: u8,
2111 pub linkageTruncated: u8,
2112 pub spare4: u16,
2113 pub linkageOffset: u32,
2114 pub linkageSize: u32,
2115 pub end_withLinkage: __IncompleteArrayField<::std::os::raw::c_char>,
2116}
2117#[test]
2118fn bindgen_test_layout___CodeDirectory() {
2119 assert_eq!(
2120 ::std::mem::size_of::<__CodeDirectory>(),
2121 112usize,
2122 concat!("Size of: ", stringify!(__CodeDirectory))
2123 );
2124 assert_eq!(
2125 ::std::mem::align_of::<__CodeDirectory>(),
2126 8usize,
2127 concat!("Alignment of ", stringify!(__CodeDirectory))
2128 );
2129 assert_eq!(
2130 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).magic as *const _ as usize },
2131 0usize,
2132 concat!(
2133 "Offset of field: ",
2134 stringify!(__CodeDirectory),
2135 "::",
2136 stringify!(magic)
2137 )
2138 );
2139 assert_eq!(
2140 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).length as *const _ as usize },
2141 4usize,
2142 concat!(
2143 "Offset of field: ",
2144 stringify!(__CodeDirectory),
2145 "::",
2146 stringify!(length)
2147 )
2148 );
2149 assert_eq!(
2150 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).version as *const _ as usize },
2151 8usize,
2152 concat!(
2153 "Offset of field: ",
2154 stringify!(__CodeDirectory),
2155 "::",
2156 stringify!(version)
2157 )
2158 );
2159 assert_eq!(
2160 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).flags as *const _ as usize },
2161 12usize,
2162 concat!(
2163 "Offset of field: ",
2164 stringify!(__CodeDirectory),
2165 "::",
2166 stringify!(flags)
2167 )
2168 );
2169 assert_eq!(
2170 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).hashOffset as *const _ as usize },
2171 16usize,
2172 concat!(
2173 "Offset of field: ",
2174 stringify!(__CodeDirectory),
2175 "::",
2176 stringify!(hashOffset)
2177 )
2178 );
2179 assert_eq!(
2180 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).identOffset as *const _ as usize },
2181 20usize,
2182 concat!(
2183 "Offset of field: ",
2184 stringify!(__CodeDirectory),
2185 "::",
2186 stringify!(identOffset)
2187 )
2188 );
2189 assert_eq!(
2190 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).nSpecialSlots as *const _ as usize },
2191 24usize,
2192 concat!(
2193 "Offset of field: ",
2194 stringify!(__CodeDirectory),
2195 "::",
2196 stringify!(nSpecialSlots)
2197 )
2198 );
2199 assert_eq!(
2200 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).nCodeSlots as *const _ as usize },
2201 28usize,
2202 concat!(
2203 "Offset of field: ",
2204 stringify!(__CodeDirectory),
2205 "::",
2206 stringify!(nCodeSlots)
2207 )
2208 );
2209 assert_eq!(
2210 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).codeLimit as *const _ as usize },
2211 32usize,
2212 concat!(
2213 "Offset of field: ",
2214 stringify!(__CodeDirectory),
2215 "::",
2216 stringify!(codeLimit)
2217 )
2218 );
2219 assert_eq!(
2220 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).hashSize as *const _ as usize },
2221 36usize,
2222 concat!(
2223 "Offset of field: ",
2224 stringify!(__CodeDirectory),
2225 "::",
2226 stringify!(hashSize)
2227 )
2228 );
2229 assert_eq!(
2230 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).hashType as *const _ as usize },
2231 37usize,
2232 concat!(
2233 "Offset of field: ",
2234 stringify!(__CodeDirectory),
2235 "::",
2236 stringify!(hashType)
2237 )
2238 );
2239 assert_eq!(
2240 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).platform as *const _ as usize },
2241 38usize,
2242 concat!(
2243 "Offset of field: ",
2244 stringify!(__CodeDirectory),
2245 "::",
2246 stringify!(platform)
2247 )
2248 );
2249 assert_eq!(
2250 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).pageSize as *const _ as usize },
2251 39usize,
2252 concat!(
2253 "Offset of field: ",
2254 stringify!(__CodeDirectory),
2255 "::",
2256 stringify!(pageSize)
2257 )
2258 );
2259 assert_eq!(
2260 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).spare2 as *const _ as usize },
2261 40usize,
2262 concat!(
2263 "Offset of field: ",
2264 stringify!(__CodeDirectory),
2265 "::",
2266 stringify!(spare2)
2267 )
2268 );
2269 assert_eq!(
2270 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).end_earliest as *const _ as usize },
2271 44usize,
2272 concat!(
2273 "Offset of field: ",
2274 stringify!(__CodeDirectory),
2275 "::",
2276 stringify!(end_earliest)
2277 )
2278 );
2279 assert_eq!(
2280 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).scatterOffset as *const _ as usize },
2281 44usize,
2282 concat!(
2283 "Offset of field: ",
2284 stringify!(__CodeDirectory),
2285 "::",
2286 stringify!(scatterOffset)
2287 )
2288 );
2289 assert_eq!(
2290 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).end_withScatter as *const _ as usize },
2291 48usize,
2292 concat!(
2293 "Offset of field: ",
2294 stringify!(__CodeDirectory),
2295 "::",
2296 stringify!(end_withScatter)
2297 )
2298 );
2299 assert_eq!(
2300 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).teamOffset as *const _ as usize },
2301 48usize,
2302 concat!(
2303 "Offset of field: ",
2304 stringify!(__CodeDirectory),
2305 "::",
2306 stringify!(teamOffset)
2307 )
2308 );
2309 assert_eq!(
2310 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).end_withTeam as *const _ as usize },
2311 52usize,
2312 concat!(
2313 "Offset of field: ",
2314 stringify!(__CodeDirectory),
2315 "::",
2316 stringify!(end_withTeam)
2317 )
2318 );
2319 assert_eq!(
2320 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).spare3 as *const _ as usize },
2321 52usize,
2322 concat!(
2323 "Offset of field: ",
2324 stringify!(__CodeDirectory),
2325 "::",
2326 stringify!(spare3)
2327 )
2328 );
2329 assert_eq!(
2330 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).codeLimit64 as *const _ as usize },
2331 56usize,
2332 concat!(
2333 "Offset of field: ",
2334 stringify!(__CodeDirectory),
2335 "::",
2336 stringify!(codeLimit64)
2337 )
2338 );
2339 assert_eq!(
2340 unsafe {
2341 &(*(::std::ptr::null::<__CodeDirectory>())).end_withCodeLimit64 as *const _ as usize
2342 },
2343 64usize,
2344 concat!(
2345 "Offset of field: ",
2346 stringify!(__CodeDirectory),
2347 "::",
2348 stringify!(end_withCodeLimit64)
2349 )
2350 );
2351 assert_eq!(
2352 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).execSegBase as *const _ as usize },
2353 64usize,
2354 concat!(
2355 "Offset of field: ",
2356 stringify!(__CodeDirectory),
2357 "::",
2358 stringify!(execSegBase)
2359 )
2360 );
2361 assert_eq!(
2362 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).execSegLimit as *const _ as usize },
2363 72usize,
2364 concat!(
2365 "Offset of field: ",
2366 stringify!(__CodeDirectory),
2367 "::",
2368 stringify!(execSegLimit)
2369 )
2370 );
2371 assert_eq!(
2372 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).execSegFlags as *const _ as usize },
2373 80usize,
2374 concat!(
2375 "Offset of field: ",
2376 stringify!(__CodeDirectory),
2377 "::",
2378 stringify!(execSegFlags)
2379 )
2380 );
2381 assert_eq!(
2382 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).end_withExecSeg as *const _ as usize },
2383 88usize,
2384 concat!(
2385 "Offset of field: ",
2386 stringify!(__CodeDirectory),
2387 "::",
2388 stringify!(end_withExecSeg)
2389 )
2390 );
2391 assert_eq!(
2392 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).runtime as *const _ as usize },
2393 88usize,
2394 concat!(
2395 "Offset of field: ",
2396 stringify!(__CodeDirectory),
2397 "::",
2398 stringify!(runtime)
2399 )
2400 );
2401 assert_eq!(
2402 unsafe {
2403 &(*(::std::ptr::null::<__CodeDirectory>())).preEncryptOffset as *const _ as usize
2404 },
2405 92usize,
2406 concat!(
2407 "Offset of field: ",
2408 stringify!(__CodeDirectory),
2409 "::",
2410 stringify!(preEncryptOffset)
2411 )
2412 );
2413 assert_eq!(
2414 unsafe {
2415 &(*(::std::ptr::null::<__CodeDirectory>())).end_withPreEncryptOffset as *const _
2416 as usize
2417 },
2418 96usize,
2419 concat!(
2420 "Offset of field: ",
2421 stringify!(__CodeDirectory),
2422 "::",
2423 stringify!(end_withPreEncryptOffset)
2424 )
2425 );
2426 assert_eq!(
2427 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).linkageHashType as *const _ as usize },
2428 96usize,
2429 concat!(
2430 "Offset of field: ",
2431 stringify!(__CodeDirectory),
2432 "::",
2433 stringify!(linkageHashType)
2434 )
2435 );
2436 assert_eq!(
2437 unsafe {
2438 &(*(::std::ptr::null::<__CodeDirectory>())).linkageTruncated as *const _ as usize
2439 },
2440 97usize,
2441 concat!(
2442 "Offset of field: ",
2443 stringify!(__CodeDirectory),
2444 "::",
2445 stringify!(linkageTruncated)
2446 )
2447 );
2448 assert_eq!(
2449 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).spare4 as *const _ as usize },
2450 98usize,
2451 concat!(
2452 "Offset of field: ",
2453 stringify!(__CodeDirectory),
2454 "::",
2455 stringify!(spare4)
2456 )
2457 );
2458 assert_eq!(
2459 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).linkageOffset as *const _ as usize },
2460 100usize,
2461 concat!(
2462 "Offset of field: ",
2463 stringify!(__CodeDirectory),
2464 "::",
2465 stringify!(linkageOffset)
2466 )
2467 );
2468 assert_eq!(
2469 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).linkageSize as *const _ as usize },
2470 104usize,
2471 concat!(
2472 "Offset of field: ",
2473 stringify!(__CodeDirectory),
2474 "::",
2475 stringify!(linkageSize)
2476 )
2477 );
2478 assert_eq!(
2479 unsafe { &(*(::std::ptr::null::<__CodeDirectory>())).end_withLinkage as *const _ as usize },
2480 108usize,
2481 concat!(
2482 "Offset of field: ",
2483 stringify!(__CodeDirectory),
2484 "::",
2485 stringify!(end_withLinkage)
2486 )
2487 );
2488}
2489pub type CS_CodeDirectory = __CodeDirectory;
2490#[repr(C)]
2491#[derive(Debug, Copy, Clone)]
2492pub struct __BlobIndex {
2493 pub type_: u32,
2494 pub offset: u32,
2495}
2496#[test]
2497fn bindgen_test_layout___BlobIndex() {
2498 assert_eq!(
2499 ::std::mem::size_of::<__BlobIndex>(),
2500 8usize,
2501 concat!("Size of: ", stringify!(__BlobIndex))
2502 );
2503 assert_eq!(
2504 ::std::mem::align_of::<__BlobIndex>(),
2505 4usize,
2506 concat!("Alignment of ", stringify!(__BlobIndex))
2507 );
2508 assert_eq!(
2509 unsafe { &(*(::std::ptr::null::<__BlobIndex>())).type_ as *const _ as usize },
2510 0usize,
2511 concat!(
2512 "Offset of field: ",
2513 stringify!(__BlobIndex),
2514 "::",
2515 stringify!(type_)
2516 )
2517 );
2518 assert_eq!(
2519 unsafe { &(*(::std::ptr::null::<__BlobIndex>())).offset as *const _ as usize },
2520 4usize,
2521 concat!(
2522 "Offset of field: ",
2523 stringify!(__BlobIndex),
2524 "::",
2525 stringify!(offset)
2526 )
2527 );
2528}
2529pub type CS_BlobIndex = __BlobIndex;
2530#[repr(C)]
2531#[derive(Debug)]
2532pub struct __SC_SuperBlob {
2533 pub magic: u32,
2534 pub length: u32,
2535 pub count: u32,
2536 pub index: __IncompleteArrayField<CS_BlobIndex>,
2537}
2538#[test]
2539fn bindgen_test_layout___SC_SuperBlob() {
2540 assert_eq!(
2541 ::std::mem::size_of::<__SC_SuperBlob>(),
2542 12usize,
2543 concat!("Size of: ", stringify!(__SC_SuperBlob))
2544 );
2545 assert_eq!(
2546 ::std::mem::align_of::<__SC_SuperBlob>(),
2547 4usize,
2548 concat!("Alignment of ", stringify!(__SC_SuperBlob))
2549 );
2550 assert_eq!(
2551 unsafe { &(*(::std::ptr::null::<__SC_SuperBlob>())).magic as *const _ as usize },
2552 0usize,
2553 concat!(
2554 "Offset of field: ",
2555 stringify!(__SC_SuperBlob),
2556 "::",
2557 stringify!(magic)
2558 )
2559 );
2560 assert_eq!(
2561 unsafe { &(*(::std::ptr::null::<__SC_SuperBlob>())).length as *const _ as usize },
2562 4usize,
2563 concat!(
2564 "Offset of field: ",
2565 stringify!(__SC_SuperBlob),
2566 "::",
2567 stringify!(length)
2568 )
2569 );
2570 assert_eq!(
2571 unsafe { &(*(::std::ptr::null::<__SC_SuperBlob>())).count as *const _ as usize },
2572 8usize,
2573 concat!(
2574 "Offset of field: ",
2575 stringify!(__SC_SuperBlob),
2576 "::",
2577 stringify!(count)
2578 )
2579 );
2580 assert_eq!(
2581 unsafe { &(*(::std::ptr::null::<__SC_SuperBlob>())).index as *const _ as usize },
2582 12usize,
2583 concat!(
2584 "Offset of field: ",
2585 stringify!(__SC_SuperBlob),
2586 "::",
2587 stringify!(index)
2588 )
2589 );
2590}
2591pub type CS_SuperBlob = __SC_SuperBlob;
2592#[repr(C)]
2593#[derive(Debug)]
2594pub struct __SC_GenericBlob {
2595 pub magic: u32,
2596 pub length: u32,
2597 pub data: __IncompleteArrayField<::std::os::raw::c_char>,
2598}
2599#[test]
2600fn bindgen_test_layout___SC_GenericBlob() {
2601 assert_eq!(
2602 ::std::mem::size_of::<__SC_GenericBlob>(),
2603 8usize,
2604 concat!("Size of: ", stringify!(__SC_GenericBlob))
2605 );
2606 assert_eq!(
2607 ::std::mem::align_of::<__SC_GenericBlob>(),
2608 4usize,
2609 concat!("Alignment of ", stringify!(__SC_GenericBlob))
2610 );
2611 assert_eq!(
2612 unsafe { &(*(::std::ptr::null::<__SC_GenericBlob>())).magic as *const _ as usize },
2613 0usize,
2614 concat!(
2615 "Offset of field: ",
2616 stringify!(__SC_GenericBlob),
2617 "::",
2618 stringify!(magic)
2619 )
2620 );
2621 assert_eq!(
2622 unsafe { &(*(::std::ptr::null::<__SC_GenericBlob>())).length as *const _ as usize },
2623 4usize,
2624 concat!(
2625 "Offset of field: ",
2626 stringify!(__SC_GenericBlob),
2627 "::",
2628 stringify!(length)
2629 )
2630 );
2631 assert_eq!(
2632 unsafe { &(*(::std::ptr::null::<__SC_GenericBlob>())).data as *const _ as usize },
2633 8usize,
2634 concat!(
2635 "Offset of field: ",
2636 stringify!(__SC_GenericBlob),
2637 "::",
2638 stringify!(data)
2639 )
2640 );
2641}
2642pub type CS_GenericBlob = __SC_GenericBlob;
2643#[repr(C)]
2644#[derive(Debug, Copy, Clone)]
2645pub struct __SC_Scatter {
2646 pub count: u32,
2647 pub base: u32,
2648 pub targetOffset: u64,
2649 pub spare: u64,
2650}
2651#[test]
2652fn bindgen_test_layout___SC_Scatter() {
2653 assert_eq!(
2654 ::std::mem::size_of::<__SC_Scatter>(),
2655 24usize,
2656 concat!("Size of: ", stringify!(__SC_Scatter))
2657 );
2658 assert_eq!(
2659 ::std::mem::align_of::<__SC_Scatter>(),
2660 8usize,
2661 concat!("Alignment of ", stringify!(__SC_Scatter))
2662 );
2663 assert_eq!(
2664 unsafe { &(*(::std::ptr::null::<__SC_Scatter>())).count as *const _ as usize },
2665 0usize,
2666 concat!(
2667 "Offset of field: ",
2668 stringify!(__SC_Scatter),
2669 "::",
2670 stringify!(count)
2671 )
2672 );
2673 assert_eq!(
2674 unsafe { &(*(::std::ptr::null::<__SC_Scatter>())).base as *const _ as usize },
2675 4usize,
2676 concat!(
2677 "Offset of field: ",
2678 stringify!(__SC_Scatter),
2679 "::",
2680 stringify!(base)
2681 )
2682 );
2683 assert_eq!(
2684 unsafe { &(*(::std::ptr::null::<__SC_Scatter>())).targetOffset as *const _ as usize },
2685 8usize,
2686 concat!(
2687 "Offset of field: ",
2688 stringify!(__SC_Scatter),
2689 "::",
2690 stringify!(targetOffset)
2691 )
2692 );
2693 assert_eq!(
2694 unsafe { &(*(::std::ptr::null::<__SC_Scatter>())).spare as *const _ as usize },
2695 16usize,
2696 concat!(
2697 "Offset of field: ",
2698 stringify!(__SC_Scatter),
2699 "::",
2700 stringify!(spare)
2701 )
2702 );
2703}
2704pub type SC_Scatter = __SC_Scatter;
2705#[repr(C)]
2706#[derive(Debug, Copy, Clone)]
2707pub struct es_event_id_t {
2708 pub reserved: [u8; 32usize],
2709}
2710#[test]
2711fn bindgen_test_layout_es_event_id_t() {
2712 assert_eq!(
2713 ::std::mem::size_of::<es_event_id_t>(),
2714 32usize,
2715 concat!("Size of: ", stringify!(es_event_id_t))
2716 );
2717 assert_eq!(
2718 ::std::mem::align_of::<es_event_id_t>(),
2719 1usize,
2720 concat!("Alignment of ", stringify!(es_event_id_t))
2721 );
2722 assert_eq!(
2723 unsafe { &(*(::std::ptr::null::<es_event_id_t>())).reserved as *const _ as usize },
2724 0usize,
2725 concat!(
2726 "Offset of field: ",
2727 stringify!(es_event_id_t),
2728 "::",
2729 stringify!(reserved)
2730 )
2731 );
2732}
2733pub type u_char = ::std::os::raw::c_uchar;
2734pub type u_short = ::std::os::raw::c_ushort;
2735pub type u_int = ::std::os::raw::c_uint;
2736pub type u_long = ::std::os::raw::c_ulong;
2737pub type ushort = ::std::os::raw::c_ushort;
2738pub type uint = ::std::os::raw::c_uint;
2739pub type u_quad_t = u_int64_t;
2740pub type quad_t = i64;
2741pub type qaddr_t = *mut quad_t;
2742pub type caddr_t = *mut ::std::os::raw::c_char;
2743pub type daddr_t = i32;
2744pub type dev_t = __darwin_dev_t;
2745pub type fixpt_t = u_int32_t;
2746pub type blkcnt_t = __darwin_blkcnt_t;
2747pub type blksize_t = __darwin_blksize_t;
2748pub type gid_t = __darwin_gid_t;
2749pub type in_addr_t = __uint32_t;
2750pub type in_port_t = __uint16_t;
2751pub type ino_t = __darwin_ino_t;
2752pub type ino64_t = __darwin_ino64_t;
2753pub type key_t = __int32_t;
2754pub type mode_t = __darwin_mode_t;
2755pub type nlink_t = __uint16_t;
2756pub type id_t = __darwin_id_t;
2757pub type pid_t = __darwin_pid_t;
2758pub type off_t = __darwin_off_t;
2759pub type segsz_t = i32;
2760pub type swblk_t = i32;
2761pub type uid_t = __darwin_uid_t;
2762pub type clock_t = __darwin_clock_t;
2763pub type size_t = __darwin_size_t;
2764pub type ssize_t = __darwin_ssize_t;
2765pub type time_t = __darwin_time_t;
2766pub type useconds_t = __darwin_useconds_t;
2767pub type suseconds_t = __darwin_suseconds_t;
2768pub type rsize_t = __darwin_size_t;
2769pub type errno_t = ::std::os::raw::c_int;
2770#[repr(C)]
2771#[derive(Debug, Copy, Clone)]
2772pub struct fd_set {
2773 pub fds_bits: [__int32_t; 32usize],
2774}
2775#[test]
2776fn bindgen_test_layout_fd_set() {
2777 assert_eq!(
2778 ::std::mem::size_of::<fd_set>(),
2779 128usize,
2780 concat!("Size of: ", stringify!(fd_set))
2781 );
2782 assert_eq!(
2783 ::std::mem::align_of::<fd_set>(),
2784 4usize,
2785 concat!("Alignment of ", stringify!(fd_set))
2786 );
2787 assert_eq!(
2788 unsafe { &(*(::std::ptr::null::<fd_set>())).fds_bits as *const _ as usize },
2789 0usize,
2790 concat!(
2791 "Offset of field: ",
2792 stringify!(fd_set),
2793 "::",
2794 stringify!(fds_bits)
2795 )
2796 );
2797}
2798extern "C" {
2799 pub fn __darwin_check_fd_set_overflow(
2800 arg1: ::std::os::raw::c_int,
2801 arg2: *const ::std::os::raw::c_void,
2802 arg3: ::std::os::raw::c_int,
2803 ) -> ::std::os::raw::c_int;
2804}
2805pub type fd_mask = __int32_t;
2806pub type pthread_attr_t = __darwin_pthread_attr_t;
2807pub type pthread_cond_t = __darwin_pthread_cond_t;
2808pub type pthread_condattr_t = __darwin_pthread_condattr_t;
2809pub type pthread_mutex_t = __darwin_pthread_mutex_t;
2810pub type pthread_mutexattr_t = __darwin_pthread_mutexattr_t;
2811pub type pthread_once_t = __darwin_pthread_once_t;
2812pub type pthread_rwlock_t = __darwin_pthread_rwlock_t;
2813pub type pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t;
2814pub type pthread_t = __darwin_pthread_t;
2815pub type pthread_key_t = __darwin_pthread_key_t;
2816pub type fsblkcnt_t = __darwin_fsblkcnt_t;
2817pub type fsfilcnt_t = __darwin_fsfilcnt_t;
2818pub type os_function_t =
2819 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
2820pub type os_block_t = *mut ::std::os::raw::c_void;
2821pub const es_action_type_t_ES_ACTION_TYPE_AUTH: es_action_type_t = 0;
2822pub const es_action_type_t_ES_ACTION_TYPE_NOTIFY: es_action_type_t = 1;
2823pub type es_action_type_t = ::std::os::raw::c_uint;
2824pub const es_set_or_clear_t_ES_SET: es_set_or_clear_t = 0;
2825pub const es_set_or_clear_t_ES_CLEAR: es_set_or_clear_t = 1;
2826pub type es_set_or_clear_t = ::std::os::raw::c_uint;
2827pub const es_event_type_t_ES_EVENT_TYPE_AUTH_EXEC: es_event_type_t = 0;
2828pub const es_event_type_t_ES_EVENT_TYPE_AUTH_OPEN: es_event_type_t = 1;
2829pub const es_event_type_t_ES_EVENT_TYPE_AUTH_KEXTLOAD: es_event_type_t = 2;
2830pub const es_event_type_t_ES_EVENT_TYPE_AUTH_MMAP: es_event_type_t = 3;
2831pub const es_event_type_t_ES_EVENT_TYPE_AUTH_MPROTECT: es_event_type_t = 4;
2832pub const es_event_type_t_ES_EVENT_TYPE_AUTH_MOUNT: es_event_type_t = 5;
2833pub const es_event_type_t_ES_EVENT_TYPE_AUTH_RENAME: es_event_type_t = 6;
2834pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SIGNAL: es_event_type_t = 7;
2835pub const es_event_type_t_ES_EVENT_TYPE_AUTH_UNLINK: es_event_type_t = 8;
2836pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_EXEC: es_event_type_t = 9;
2837pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_OPEN: es_event_type_t = 10;
2838pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_FORK: es_event_type_t = 11;
2839pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CLOSE: es_event_type_t = 12;
2840pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CREATE: es_event_type_t = 13;
2841pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_EXCHANGEDATA: es_event_type_t = 14;
2842pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_EXIT: es_event_type_t = 15;
2843pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_GET_TASK: es_event_type_t = 16;
2844pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_KEXTLOAD: es_event_type_t = 17;
2845pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_KEXTUNLOAD: es_event_type_t = 18;
2846pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_LINK: es_event_type_t = 19;
2847pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_MMAP: es_event_type_t = 20;
2848pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_MPROTECT: es_event_type_t = 21;
2849pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_MOUNT: es_event_type_t = 22;
2850pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_UNMOUNT: es_event_type_t = 23;
2851pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_IOKIT_OPEN: es_event_type_t = 24;
2852pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_RENAME: es_event_type_t = 25;
2853pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETATTRLIST: es_event_type_t = 26;
2854pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETEXTATTR: es_event_type_t = 27;
2855pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETFLAGS: es_event_type_t = 28;
2856pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETMODE: es_event_type_t = 29;
2857pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETOWNER: es_event_type_t = 30;
2858pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SIGNAL: es_event_type_t = 31;
2859pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_UNLINK: es_event_type_t = 32;
2860pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_WRITE: es_event_type_t = 33;
2861pub const es_event_type_t_ES_EVENT_TYPE_AUTH_FILE_PROVIDER_MATERIALIZE: es_event_type_t = 34;
2862pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_FILE_PROVIDER_MATERIALIZE: es_event_type_t = 35;
2863pub const es_event_type_t_ES_EVENT_TYPE_AUTH_FILE_PROVIDER_UPDATE: es_event_type_t = 36;
2864pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_FILE_PROVIDER_UPDATE: es_event_type_t = 37;
2865pub const es_event_type_t_ES_EVENT_TYPE_AUTH_READLINK: es_event_type_t = 38;
2866pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_READLINK: es_event_type_t = 39;
2867pub const es_event_type_t_ES_EVENT_TYPE_AUTH_TRUNCATE: es_event_type_t = 40;
2868pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_TRUNCATE: es_event_type_t = 41;
2869pub const es_event_type_t_ES_EVENT_TYPE_AUTH_LINK: es_event_type_t = 42;
2870pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_LOOKUP: es_event_type_t = 43;
2871pub const es_event_type_t_ES_EVENT_TYPE_AUTH_CREATE: es_event_type_t = 44;
2872pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETATTRLIST: es_event_type_t = 45;
2873pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETEXTATTR: es_event_type_t = 46;
2874pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETFLAGS: es_event_type_t = 47;
2875pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETMODE: es_event_type_t = 48;
2876pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETOWNER: es_event_type_t = 49;
2877pub const es_event_type_t_ES_EVENT_TYPE_AUTH_CHDIR: es_event_type_t = 50;
2878pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CHDIR: es_event_type_t = 51;
2879pub const es_event_type_t_ES_EVENT_TYPE_AUTH_GETATTRLIST: es_event_type_t = 52;
2880pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_GETATTRLIST: es_event_type_t = 53;
2881pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_STAT: es_event_type_t = 54;
2882pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_ACCESS: es_event_type_t = 55;
2883pub const es_event_type_t_ES_EVENT_TYPE_AUTH_CHROOT: es_event_type_t = 56;
2884pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CHROOT: es_event_type_t = 57;
2885pub const es_event_type_t_ES_EVENT_TYPE_AUTH_UTIMES: es_event_type_t = 58;
2886pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_UTIMES: es_event_type_t = 59;
2887pub const es_event_type_t_ES_EVENT_TYPE_AUTH_CLONE: es_event_type_t = 60;
2888pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CLONE: es_event_type_t = 61;
2889pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_FCNTL: es_event_type_t = 62;
2890pub const es_event_type_t_ES_EVENT_TYPE_AUTH_GETEXTATTR: es_event_type_t = 63;
2891pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_GETEXTATTR: es_event_type_t = 64;
2892pub const es_event_type_t_ES_EVENT_TYPE_AUTH_LISTEXTATTR: es_event_type_t = 65;
2893pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_LISTEXTATTR: es_event_type_t = 66;
2894pub const es_event_type_t_ES_EVENT_TYPE_AUTH_READDIR: es_event_type_t = 67;
2895pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_READDIR: es_event_type_t = 68;
2896pub const es_event_type_t_ES_EVENT_TYPE_AUTH_DELETEEXTATTR: es_event_type_t = 69;
2897pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_DELETEEXTATTR: es_event_type_t = 70;
2898pub const es_event_type_t_ES_EVENT_TYPE_AUTH_FSGETPATH: es_event_type_t = 71;
2899pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_FSGETPATH: es_event_type_t = 72;
2900pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_DUP: es_event_type_t = 73;
2901pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETTIME: es_event_type_t = 74;
2902pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETTIME: es_event_type_t = 75;
2903pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_UIPC_BIND: es_event_type_t = 76;
2904pub const es_event_type_t_ES_EVENT_TYPE_AUTH_UIPC_BIND: es_event_type_t = 77;
2905pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_UIPC_CONNECT: es_event_type_t = 78;
2906pub const es_event_type_t_ES_EVENT_TYPE_AUTH_UIPC_CONNECT: es_event_type_t = 79;
2907pub const es_event_type_t_ES_EVENT_TYPE_AUTH_EXCHANGEDATA: es_event_type_t = 80;
2908pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SETACL: es_event_type_t = 81;
2909pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SETACL: es_event_type_t = 82;
2910pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_PTY_GRANT: es_event_type_t = 83;
2911pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_PTY_CLOSE: es_event_type_t = 84;
2912pub const es_event_type_t_ES_EVENT_TYPE_AUTH_PROC_CHECK: es_event_type_t = 85;
2913pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_PROC_CHECK: es_event_type_t = 86;
2914pub const es_event_type_t_ES_EVENT_TYPE_AUTH_GET_TASK: es_event_type_t = 87;
2915pub const es_event_type_t_ES_EVENT_TYPE_AUTH_SEARCHFS: es_event_type_t = 88;
2916pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_SEARCHFS: es_event_type_t = 89;
2917pub const es_event_type_t_ES_EVENT_TYPE_AUTH_FCNTL: es_event_type_t = 90;
2918pub const es_event_type_t_ES_EVENT_TYPE_AUTH_IOKIT_OPEN: es_event_type_t = 91;
2919pub const es_event_type_t_ES_EVENT_TYPE_AUTH_PROC_SUSPEND_RESUME: es_event_type_t = 92;
2920pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_PROC_SUSPEND_RESUME: es_event_type_t = 93;
2921pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_CS_INVALIDATED: es_event_type_t = 94;
2922pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_GET_TASK_NAME: es_event_type_t = 95;
2923pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_TRACE: es_event_type_t = 96;
2924pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_REMOTE_THREAD_CREATE: es_event_type_t = 97;
2925pub const es_event_type_t_ES_EVENT_TYPE_AUTH_REMOUNT: es_event_type_t = 98;
2926pub const es_event_type_t_ES_EVENT_TYPE_NOTIFY_REMOUNT: es_event_type_t = 99;
2927pub const es_event_type_t_ES_EVENT_TYPE_LAST: es_event_type_t = 100;
2928pub type es_event_type_t = ::std::os::raw::c_uint;
2929pub const es_auth_result_t_ES_AUTH_RESULT_ALLOW: es_auth_result_t = 0;
2930pub const es_auth_result_t_ES_AUTH_RESULT_DENY: es_auth_result_t = 1;
2931pub type es_auth_result_t = ::std::os::raw::c_uint;
2932pub const es_result_type_t_ES_RESULT_TYPE_AUTH: es_result_type_t = 0;
2933pub const es_result_type_t_ES_RESULT_TYPE_FLAGS: es_result_type_t = 1;
2934pub type es_result_type_t = ::std::os::raw::c_uint;
2935pub const es_return_t_ES_RETURN_SUCCESS: es_return_t = 0;
2936pub const es_return_t_ES_RETURN_ERROR: es_return_t = 1;
2937pub type es_return_t = ::std::os::raw::c_uint;
2938pub const es_respond_result_t_ES_RESPOND_RESULT_SUCCESS: es_respond_result_t = 0;
2939pub const es_respond_result_t_ES_RESPOND_RESULT_ERR_INVALID_ARGUMENT: es_respond_result_t = 1;
2940pub const es_respond_result_t_ES_RESPOND_RESULT_ERR_INTERNAL: es_respond_result_t = 2;
2941pub const es_respond_result_t_ES_RESPOND_RESULT_NOT_FOUND: es_respond_result_t = 3;
2942pub const es_respond_result_t_ES_RESPOND_RESULT_ERR_DUPLICATE_RESPONSE: es_respond_result_t = 4;
2943pub const es_respond_result_t_ES_RESPOND_RESULT_ERR_EVENT_TYPE: es_respond_result_t = 5;
2944pub type es_respond_result_t = ::std::os::raw::c_uint;
2945pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_SUCCESS: es_new_client_result_t = 0;
2946pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_INVALID_ARGUMENT: es_new_client_result_t =
2947 1;
2948pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_INTERNAL: es_new_client_result_t = 2;
2949pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_NOT_ENTITLED: es_new_client_result_t = 3;
2950pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED: es_new_client_result_t = 4;
2951pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_NOT_PRIVILEGED: es_new_client_result_t =
2952 5;
2953pub const es_new_client_result_t_ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS: es_new_client_result_t =
2954 6;
2955pub type es_new_client_result_t = ::std::os::raw::c_uint;
2956pub const es_clear_cache_result_t_ES_CLEAR_CACHE_RESULT_SUCCESS: es_clear_cache_result_t = 0;
2957pub const es_clear_cache_result_t_ES_CLEAR_CACHE_RESULT_ERR_INTERNAL: es_clear_cache_result_t = 1;
2958pub const es_clear_cache_result_t_ES_CLEAR_CACHE_RESULT_ERR_THROTTLE: es_clear_cache_result_t = 2;
2959pub type es_clear_cache_result_t = ::std::os::raw::c_uint;
2960#[repr(C)]
2961#[derive(Debug, Copy, Clone)]
2962pub struct es_token_t {
2963 pub size: size_t,
2964 pub data: *const u8,
2965}
2966#[test]
2967fn bindgen_test_layout_es_token_t() {
2968 assert_eq!(
2969 ::std::mem::size_of::<es_token_t>(),
2970 16usize,
2971 concat!("Size of: ", stringify!(es_token_t))
2972 );
2973 assert_eq!(
2974 ::std::mem::align_of::<es_token_t>(),
2975 8usize,
2976 concat!("Alignment of ", stringify!(es_token_t))
2977 );
2978 assert_eq!(
2979 unsafe { &(*(::std::ptr::null::<es_token_t>())).size as *const _ as usize },
2980 0usize,
2981 concat!(
2982 "Offset of field: ",
2983 stringify!(es_token_t),
2984 "::",
2985 stringify!(size)
2986 )
2987 );
2988 assert_eq!(
2989 unsafe { &(*(::std::ptr::null::<es_token_t>())).data as *const _ as usize },
2990 8usize,
2991 concat!(
2992 "Offset of field: ",
2993 stringify!(es_token_t),
2994 "::",
2995 stringify!(data)
2996 )
2997 );
2998}
2999#[repr(C)]
3000#[derive(Debug, Copy, Clone)]
3001pub struct es_string_token_t {
3002 pub length: size_t,
3003 pub data: *const ::std::os::raw::c_char,
3004}
3005#[test]
3006fn bindgen_test_layout_es_string_token_t() {
3007 assert_eq!(
3008 ::std::mem::size_of::<es_string_token_t>(),
3009 16usize,
3010 concat!("Size of: ", stringify!(es_string_token_t))
3011 );
3012 assert_eq!(
3013 ::std::mem::align_of::<es_string_token_t>(),
3014 8usize,
3015 concat!("Alignment of ", stringify!(es_string_token_t))
3016 );
3017 assert_eq!(
3018 unsafe { &(*(::std::ptr::null::<es_string_token_t>())).length as *const _ as usize },
3019 0usize,
3020 concat!(
3021 "Offset of field: ",
3022 stringify!(es_string_token_t),
3023 "::",
3024 stringify!(length)
3025 )
3026 );
3027 assert_eq!(
3028 unsafe { &(*(::std::ptr::null::<es_string_token_t>())).data as *const _ as usize },
3029 8usize,
3030 concat!(
3031 "Offset of field: ",
3032 stringify!(es_string_token_t),
3033 "::",
3034 stringify!(data)
3035 )
3036 );
3037}
3038pub type boolean_t = ::std::os::raw::c_uint;
3039pub type natural_t = __darwin_natural_t;
3040pub type integer_t = ::std::os::raw::c_int;
3041pub type vm_offset_t = usize;
3042pub type vm_size_t = usize;
3043pub type mach_vm_address_t = u64;
3044pub type mach_vm_offset_t = u64;
3045pub type mach_vm_size_t = u64;
3046pub type vm_map_offset_t = u64;
3047pub type vm_map_address_t = u64;
3048pub type vm_map_size_t = u64;
3049pub type mach_port_context_t = mach_vm_address_t;
3050pub type mach_port_name_t = natural_t;
3051pub type mach_port_name_array_t = *mut mach_port_name_t;
3052pub type mach_port_t = __darwin_mach_port_t;
3053pub type mach_port_array_t = *mut mach_port_t;
3054pub type mach_port_right_t = natural_t;
3055pub type mach_port_type_t = natural_t;
3056pub type mach_port_type_array_t = *mut mach_port_type_t;
3057pub type mach_port_urefs_t = natural_t;
3058pub type mach_port_delta_t = integer_t;
3059pub type mach_port_seqno_t = natural_t;
3060pub type mach_port_mscount_t = natural_t;
3061pub type mach_port_msgcount_t = natural_t;
3062pub type mach_port_rights_t = natural_t;
3063pub type mach_port_srights_t = ::std::os::raw::c_uint;
3064#[repr(C)]
3065#[derive(Debug, Copy, Clone)]
3066pub struct mach_port_status {
3067 pub mps_pset: mach_port_rights_t,
3068 pub mps_seqno: mach_port_seqno_t,
3069 pub mps_mscount: mach_port_mscount_t,
3070 pub mps_qlimit: mach_port_msgcount_t,
3071 pub mps_msgcount: mach_port_msgcount_t,
3072 pub mps_sorights: mach_port_rights_t,
3073 pub mps_srights: boolean_t,
3074 pub mps_pdrequest: boolean_t,
3075 pub mps_nsrequest: boolean_t,
3076 pub mps_flags: natural_t,
3077}
3078#[test]
3079fn bindgen_test_layout_mach_port_status() {
3080 assert_eq!(
3081 ::std::mem::size_of::<mach_port_status>(),
3082 40usize,
3083 concat!("Size of: ", stringify!(mach_port_status))
3084 );
3085 assert_eq!(
3086 ::std::mem::align_of::<mach_port_status>(),
3087 4usize,
3088 concat!("Alignment of ", stringify!(mach_port_status))
3089 );
3090 assert_eq!(
3091 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_pset as *const _ as usize },
3092 0usize,
3093 concat!(
3094 "Offset of field: ",
3095 stringify!(mach_port_status),
3096 "::",
3097 stringify!(mps_pset)
3098 )
3099 );
3100 assert_eq!(
3101 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_seqno as *const _ as usize },
3102 4usize,
3103 concat!(
3104 "Offset of field: ",
3105 stringify!(mach_port_status),
3106 "::",
3107 stringify!(mps_seqno)
3108 )
3109 );
3110 assert_eq!(
3111 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_mscount as *const _ as usize },
3112 8usize,
3113 concat!(
3114 "Offset of field: ",
3115 stringify!(mach_port_status),
3116 "::",
3117 stringify!(mps_mscount)
3118 )
3119 );
3120 assert_eq!(
3121 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_qlimit as *const _ as usize },
3122 12usize,
3123 concat!(
3124 "Offset of field: ",
3125 stringify!(mach_port_status),
3126 "::",
3127 stringify!(mps_qlimit)
3128 )
3129 );
3130 assert_eq!(
3131 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_msgcount as *const _ as usize },
3132 16usize,
3133 concat!(
3134 "Offset of field: ",
3135 stringify!(mach_port_status),
3136 "::",
3137 stringify!(mps_msgcount)
3138 )
3139 );
3140 assert_eq!(
3141 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_sorights as *const _ as usize },
3142 20usize,
3143 concat!(
3144 "Offset of field: ",
3145 stringify!(mach_port_status),
3146 "::",
3147 stringify!(mps_sorights)
3148 )
3149 );
3150 assert_eq!(
3151 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_srights as *const _ as usize },
3152 24usize,
3153 concat!(
3154 "Offset of field: ",
3155 stringify!(mach_port_status),
3156 "::",
3157 stringify!(mps_srights)
3158 )
3159 );
3160 assert_eq!(
3161 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_pdrequest as *const _ as usize },
3162 28usize,
3163 concat!(
3164 "Offset of field: ",
3165 stringify!(mach_port_status),
3166 "::",
3167 stringify!(mps_pdrequest)
3168 )
3169 );
3170 assert_eq!(
3171 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_nsrequest as *const _ as usize },
3172 32usize,
3173 concat!(
3174 "Offset of field: ",
3175 stringify!(mach_port_status),
3176 "::",
3177 stringify!(mps_nsrequest)
3178 )
3179 );
3180 assert_eq!(
3181 unsafe { &(*(::std::ptr::null::<mach_port_status>())).mps_flags as *const _ as usize },
3182 36usize,
3183 concat!(
3184 "Offset of field: ",
3185 stringify!(mach_port_status),
3186 "::",
3187 stringify!(mps_flags)
3188 )
3189 );
3190}
3191pub type mach_port_status_t = mach_port_status;
3192#[repr(C)]
3193#[derive(Debug, Copy, Clone)]
3194pub struct mach_port_limits {
3195 pub mpl_qlimit: mach_port_msgcount_t,
3196}
3197#[test]
3198fn bindgen_test_layout_mach_port_limits() {
3199 assert_eq!(
3200 ::std::mem::size_of::<mach_port_limits>(),
3201 4usize,
3202 concat!("Size of: ", stringify!(mach_port_limits))
3203 );
3204 assert_eq!(
3205 ::std::mem::align_of::<mach_port_limits>(),
3206 4usize,
3207 concat!("Alignment of ", stringify!(mach_port_limits))
3208 );
3209 assert_eq!(
3210 unsafe { &(*(::std::ptr::null::<mach_port_limits>())).mpl_qlimit as *const _ as usize },
3211 0usize,
3212 concat!(
3213 "Offset of field: ",
3214 stringify!(mach_port_limits),
3215 "::",
3216 stringify!(mpl_qlimit)
3217 )
3218 );
3219}
3220pub type mach_port_limits_t = mach_port_limits;
3221#[repr(C)]
3222#[derive(Debug, Copy, Clone)]
3223pub struct mach_port_info_ext {
3224 pub mpie_status: mach_port_status_t,
3225 pub mpie_boost_cnt: mach_port_msgcount_t,
3226 pub reserved: [u32; 6usize],
3227}
3228#[test]
3229fn bindgen_test_layout_mach_port_info_ext() {
3230 assert_eq!(
3231 ::std::mem::size_of::<mach_port_info_ext>(),
3232 68usize,
3233 concat!("Size of: ", stringify!(mach_port_info_ext))
3234 );
3235 assert_eq!(
3236 ::std::mem::align_of::<mach_port_info_ext>(),
3237 4usize,
3238 concat!("Alignment of ", stringify!(mach_port_info_ext))
3239 );
3240 assert_eq!(
3241 unsafe { &(*(::std::ptr::null::<mach_port_info_ext>())).mpie_status as *const _ as usize },
3242 0usize,
3243 concat!(
3244 "Offset of field: ",
3245 stringify!(mach_port_info_ext),
3246 "::",
3247 stringify!(mpie_status)
3248 )
3249 );
3250 assert_eq!(
3251 unsafe {
3252 &(*(::std::ptr::null::<mach_port_info_ext>())).mpie_boost_cnt as *const _ as usize
3253 },
3254 40usize,
3255 concat!(
3256 "Offset of field: ",
3257 stringify!(mach_port_info_ext),
3258 "::",
3259 stringify!(mpie_boost_cnt)
3260 )
3261 );
3262 assert_eq!(
3263 unsafe { &(*(::std::ptr::null::<mach_port_info_ext>())).reserved as *const _ as usize },
3264 44usize,
3265 concat!(
3266 "Offset of field: ",
3267 stringify!(mach_port_info_ext),
3268 "::",
3269 stringify!(reserved)
3270 )
3271 );
3272}
3273pub type mach_port_info_ext_t = mach_port_info_ext;
3274pub type mach_port_info_t = *mut integer_t;
3275pub type mach_port_flavor_t = ::std::os::raw::c_int;
3276#[repr(C)]
3277#[derive(Debug, Copy, Clone)]
3278pub struct mach_port_qos {
3279 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
3280 pub len: natural_t,
3281}
3282#[test]
3283fn bindgen_test_layout_mach_port_qos() {
3284 assert_eq!(
3285 ::std::mem::size_of::<mach_port_qos>(),
3286 8usize,
3287 concat!("Size of: ", stringify!(mach_port_qos))
3288 );
3289 assert_eq!(
3290 ::std::mem::align_of::<mach_port_qos>(),
3291 4usize,
3292 concat!("Alignment of ", stringify!(mach_port_qos))
3293 );
3294 assert_eq!(
3295 unsafe { &(*(::std::ptr::null::<mach_port_qos>())).len as *const _ as usize },
3296 4usize,
3297 concat!(
3298 "Offset of field: ",
3299 stringify!(mach_port_qos),
3300 "::",
3301 stringify!(len)
3302 )
3303 );
3304}
3305impl mach_port_qos {
3306 #[inline]
3307 pub fn name(&self) -> ::std::os::raw::c_uint {
3308 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3309 }
3310 #[inline]
3311 pub fn set_name(&mut self, val: ::std::os::raw::c_uint) {
3312 unsafe {
3313 let val: u32 = ::std::mem::transmute(val);
3314 self._bitfield_1.set(0usize, 1u8, val as u64)
3315 }
3316 }
3317 #[inline]
3318 pub fn prealloc(&self) -> ::std::os::raw::c_uint {
3319 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3320 }
3321 #[inline]
3322 pub fn set_prealloc(&mut self, val: ::std::os::raw::c_uint) {
3323 unsafe {
3324 let val: u32 = ::std::mem::transmute(val);
3325 self._bitfield_1.set(1usize, 1u8, val as u64)
3326 }
3327 }
3328 #[inline]
3329 pub fn pad1(&self) -> boolean_t {
3330 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
3331 }
3332 #[inline]
3333 pub fn set_pad1(&mut self, val: boolean_t) {
3334 unsafe {
3335 let val: u32 = ::std::mem::transmute(val);
3336 self._bitfield_1.set(2usize, 30u8, val as u64)
3337 }
3338 }
3339 #[inline]
3340 pub fn new_bitfield_1(
3341 name: ::std::os::raw::c_uint,
3342 prealloc: ::std::os::raw::c_uint,
3343 pad1: boolean_t,
3344 ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
3345 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
3346 Default::default();
3347 __bindgen_bitfield_unit.set(0usize, 1u8, {
3348 let name: u32 = unsafe { ::std::mem::transmute(name) };
3349 name as u64
3350 });
3351 __bindgen_bitfield_unit.set(1usize, 1u8, {
3352 let prealloc: u32 = unsafe { ::std::mem::transmute(prealloc) };
3353 prealloc as u64
3354 });
3355 __bindgen_bitfield_unit.set(2usize, 30u8, {
3356 let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
3357 pad1 as u64
3358 });
3359 __bindgen_bitfield_unit
3360 }
3361}
3362pub type mach_port_qos_t = mach_port_qos;
3363#[repr(C)]
3364#[derive(Copy, Clone)]
3365pub struct mach_port_options {
3366 pub flags: u32,
3367 pub mpl: mach_port_limits_t,
3368 pub __bindgen_anon_1: mach_port_options__bindgen_ty_1,
3369}
3370#[repr(C)]
3371#[derive(Copy, Clone)]
3372pub union mach_port_options__bindgen_ty_1 {
3373 pub reserved: [u64; 2usize],
3374 pub work_interval_port: mach_port_name_t,
3375 _bindgen_union_align: [u64; 2usize],
3376}
3377#[test]
3378fn bindgen_test_layout_mach_port_options__bindgen_ty_1() {
3379 assert_eq!(
3380 ::std::mem::size_of::<mach_port_options__bindgen_ty_1>(),
3381 16usize,
3382 concat!("Size of: ", stringify!(mach_port_options__bindgen_ty_1))
3383 );
3384 assert_eq!(
3385 ::std::mem::align_of::<mach_port_options__bindgen_ty_1>(),
3386 8usize,
3387 concat!("Alignment of ", stringify!(mach_port_options__bindgen_ty_1))
3388 );
3389 assert_eq!(
3390 unsafe {
3391 &(*(::std::ptr::null::<mach_port_options__bindgen_ty_1>())).reserved as *const _
3392 as usize
3393 },
3394 0usize,
3395 concat!(
3396 "Offset of field: ",
3397 stringify!(mach_port_options__bindgen_ty_1),
3398 "::",
3399 stringify!(reserved)
3400 )
3401 );
3402 assert_eq!(
3403 unsafe {
3404 &(*(::std::ptr::null::<mach_port_options__bindgen_ty_1>())).work_interval_port
3405 as *const _ as usize
3406 },
3407 0usize,
3408 concat!(
3409 "Offset of field: ",
3410 stringify!(mach_port_options__bindgen_ty_1),
3411 "::",
3412 stringify!(work_interval_port)
3413 )
3414 );
3415}
3416#[test]
3417fn bindgen_test_layout_mach_port_options() {
3418 assert_eq!(
3419 ::std::mem::size_of::<mach_port_options>(),
3420 24usize,
3421 concat!("Size of: ", stringify!(mach_port_options))
3422 );
3423 assert_eq!(
3424 ::std::mem::align_of::<mach_port_options>(),
3425 8usize,
3426 concat!("Alignment of ", stringify!(mach_port_options))
3427 );
3428 assert_eq!(
3429 unsafe { &(*(::std::ptr::null::<mach_port_options>())).flags as *const _ as usize },
3430 0usize,
3431 concat!(
3432 "Offset of field: ",
3433 stringify!(mach_port_options),
3434 "::",
3435 stringify!(flags)
3436 )
3437 );
3438 assert_eq!(
3439 unsafe { &(*(::std::ptr::null::<mach_port_options>())).mpl as *const _ as usize },
3440 4usize,
3441 concat!(
3442 "Offset of field: ",
3443 stringify!(mach_port_options),
3444 "::",
3445 stringify!(mpl)
3446 )
3447 );
3448}
3449pub type mach_port_options_t = mach_port_options;
3450pub type mach_port_options_ptr_t = *mut mach_port_options_t;
3451pub const mach_port_guard_exception_codes_kGUARD_EXC_DESTROY: mach_port_guard_exception_codes = 1;
3452pub const mach_port_guard_exception_codes_kGUARD_EXC_MOD_REFS: mach_port_guard_exception_codes = 2;
3453pub const mach_port_guard_exception_codes_kGUARD_EXC_SET_CONTEXT: mach_port_guard_exception_codes =
3454 4;
3455pub const mach_port_guard_exception_codes_kGUARD_EXC_UNGUARDED: mach_port_guard_exception_codes = 8;
3456pub const mach_port_guard_exception_codes_kGUARD_EXC_INCORRECT_GUARD:
3457 mach_port_guard_exception_codes = 16;
3458pub const mach_port_guard_exception_codes_kGUARD_EXC_IMMOVABLE: mach_port_guard_exception_codes =
3459 32;
3460pub const mach_port_guard_exception_codes_kGUARD_EXC_STRICT_REPLY: mach_port_guard_exception_codes =
3461 64;
3462pub const mach_port_guard_exception_codes_kGUARD_EXC_MSG_FILTERED: mach_port_guard_exception_codes =
3463 128;
3464pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_RIGHT:
3465 mach_port_guard_exception_codes = 256;
3466pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_NAME: mach_port_guard_exception_codes =
3467 512;
3468pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_VALUE:
3469 mach_port_guard_exception_codes = 1024;
3470pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_ARGUMENT:
3471 mach_port_guard_exception_codes = 2048;
3472pub const mach_port_guard_exception_codes_kGUARD_EXC_RIGHT_EXISTS: mach_port_guard_exception_codes =
3473 4096;
3474pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_NO_SPACE:
3475 mach_port_guard_exception_codes = 8192;
3476pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_FAILURE: mach_port_guard_exception_codes =
3477 16384;
3478pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_RESOURCE:
3479 mach_port_guard_exception_codes = 32768;
3480pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_REPLY:
3481 mach_port_guard_exception_codes = 65536;
3482pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_VOUCHER:
3483 mach_port_guard_exception_codes = 131072;
3484pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_RIGHT:
3485 mach_port_guard_exception_codes = 262144;
3486pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_INVALID_NAME:
3487 mach_port_guard_exception_codes = 524288;
3488pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_GUARDED_DESC:
3489 mach_port_guard_exception_codes = 1048576;
3490pub type mach_port_guard_exception_codes = ::std::os::raw::c_uint;
3491pub type kern_return_t = ::std::os::raw::c_int;
3492pub type mach_msg_timeout_t = natural_t;
3493pub type mach_msg_bits_t = ::std::os::raw::c_uint;
3494pub type mach_msg_size_t = natural_t;
3495pub type mach_msg_id_t = integer_t;
3496pub type mach_msg_priority_t = ::std::os::raw::c_uint;
3497pub type mach_msg_type_name_t = ::std::os::raw::c_uint;
3498pub type mach_msg_copy_options_t = ::std::os::raw::c_uint;
3499pub type mach_msg_guard_flags_t = ::std::os::raw::c_uint;
3500pub type mach_msg_descriptor_type_t = ::std::os::raw::c_uint;
3501#[repr(C)]
3502#[derive(Debug, Copy, Clone)]
3503pub struct mach_msg_type_descriptor_t {
3504 pub pad1: natural_t,
3505 pub pad2: mach_msg_size_t,
3506 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
3507}
3508#[test]
3509fn bindgen_test_layout_mach_msg_type_descriptor_t() {
3510 assert_eq!(
3511 ::std::mem::size_of::<mach_msg_type_descriptor_t>(),
3512 12usize,
3513 concat!("Size of: ", stringify!(mach_msg_type_descriptor_t))
3514 );
3515 assert_eq!(
3516 ::std::mem::align_of::<mach_msg_type_descriptor_t>(),
3517 4usize,
3518 concat!("Alignment of ", stringify!(mach_msg_type_descriptor_t))
3519 );
3520 assert_eq!(
3521 unsafe { &(*(::std::ptr::null::<mach_msg_type_descriptor_t>())).pad1 as *const _ as usize },
3522 0usize,
3523 concat!(
3524 "Offset of field: ",
3525 stringify!(mach_msg_type_descriptor_t),
3526 "::",
3527 stringify!(pad1)
3528 )
3529 );
3530 assert_eq!(
3531 unsafe { &(*(::std::ptr::null::<mach_msg_type_descriptor_t>())).pad2 as *const _ as usize },
3532 4usize,
3533 concat!(
3534 "Offset of field: ",
3535 stringify!(mach_msg_type_descriptor_t),
3536 "::",
3537 stringify!(pad2)
3538 )
3539 );
3540}
3541impl mach_msg_type_descriptor_t {
3542 #[inline]
3543 pub fn pad3(&self) -> ::std::os::raw::c_uint {
3544 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) }
3545 }
3546 #[inline]
3547 pub fn set_pad3(&mut self, val: ::std::os::raw::c_uint) {
3548 unsafe {
3549 let val: u32 = ::std::mem::transmute(val);
3550 self._bitfield_1.set(0usize, 24u8, val as u64)
3551 }
3552 }
3553 #[inline]
3554 pub fn type_(&self) -> mach_msg_descriptor_type_t {
3555 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
3556 }
3557 #[inline]
3558 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
3559 unsafe {
3560 let val: u32 = ::std::mem::transmute(val);
3561 self._bitfield_1.set(24usize, 8u8, val as u64)
3562 }
3563 }
3564 #[inline]
3565 pub fn new_bitfield_1(
3566 pad3: ::std::os::raw::c_uint,
3567 type_: mach_msg_descriptor_type_t,
3568 ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
3569 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
3570 Default::default();
3571 __bindgen_bitfield_unit.set(0usize, 24u8, {
3572 let pad3: u32 = unsafe { ::std::mem::transmute(pad3) };
3573 pad3 as u64
3574 });
3575 __bindgen_bitfield_unit.set(24usize, 8u8, {
3576 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
3577 type_ as u64
3578 });
3579 __bindgen_bitfield_unit
3580 }
3581}
3582#[repr(C)]
3583#[derive(Debug, Copy, Clone)]
3584pub struct mach_msg_port_descriptor_t {
3585 pub name: mach_port_t,
3586 pub pad1: mach_msg_size_t,
3587 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
3588}
3589#[test]
3590fn bindgen_test_layout_mach_msg_port_descriptor_t() {
3591 assert_eq!(
3592 ::std::mem::size_of::<mach_msg_port_descriptor_t>(),
3593 12usize,
3594 concat!("Size of: ", stringify!(mach_msg_port_descriptor_t))
3595 );
3596 assert_eq!(
3597 ::std::mem::align_of::<mach_msg_port_descriptor_t>(),
3598 4usize,
3599 concat!("Alignment of ", stringify!(mach_msg_port_descriptor_t))
3600 );
3601 assert_eq!(
3602 unsafe { &(*(::std::ptr::null::<mach_msg_port_descriptor_t>())).name as *const _ as usize },
3603 0usize,
3604 concat!(
3605 "Offset of field: ",
3606 stringify!(mach_msg_port_descriptor_t),
3607 "::",
3608 stringify!(name)
3609 )
3610 );
3611 assert_eq!(
3612 unsafe { &(*(::std::ptr::null::<mach_msg_port_descriptor_t>())).pad1 as *const _ as usize },
3613 4usize,
3614 concat!(
3615 "Offset of field: ",
3616 stringify!(mach_msg_port_descriptor_t),
3617 "::",
3618 stringify!(pad1)
3619 )
3620 );
3621}
3622impl mach_msg_port_descriptor_t {
3623 #[inline]
3624 pub fn pad2(&self) -> ::std::os::raw::c_uint {
3625 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
3626 }
3627 #[inline]
3628 pub fn set_pad2(&mut self, val: ::std::os::raw::c_uint) {
3629 unsafe {
3630 let val: u32 = ::std::mem::transmute(val);
3631 self._bitfield_1.set(0usize, 16u8, val as u64)
3632 }
3633 }
3634 #[inline]
3635 pub fn disposition(&self) -> mach_msg_type_name_t {
3636 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
3637 }
3638 #[inline]
3639 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
3640 unsafe {
3641 let val: u32 = ::std::mem::transmute(val);
3642 self._bitfield_1.set(16usize, 8u8, val as u64)
3643 }
3644 }
3645 #[inline]
3646 pub fn type_(&self) -> mach_msg_descriptor_type_t {
3647 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
3648 }
3649 #[inline]
3650 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
3651 unsafe {
3652 let val: u32 = ::std::mem::transmute(val);
3653 self._bitfield_1.set(24usize, 8u8, val as u64)
3654 }
3655 }
3656 #[inline]
3657 pub fn new_bitfield_1(
3658 pad2: ::std::os::raw::c_uint,
3659 disposition: mach_msg_type_name_t,
3660 type_: mach_msg_descriptor_type_t,
3661 ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
3662 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
3663 Default::default();
3664 __bindgen_bitfield_unit.set(0usize, 16u8, {
3665 let pad2: u32 = unsafe { ::std::mem::transmute(pad2) };
3666 pad2 as u64
3667 });
3668 __bindgen_bitfield_unit.set(16usize, 8u8, {
3669 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
3670 disposition as u64
3671 });
3672 __bindgen_bitfield_unit.set(24usize, 8u8, {
3673 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
3674 type_ as u64
3675 });
3676 __bindgen_bitfield_unit
3677 }
3678}
3679#[repr(C)]
3680#[derive(Debug, Copy, Clone)]
3681pub struct mach_msg_ool_descriptor32_t {
3682 pub address: u32,
3683 pub size: mach_msg_size_t,
3684 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
3685}
3686#[test]
3687fn bindgen_test_layout_mach_msg_ool_descriptor32_t() {
3688 assert_eq!(
3689 ::std::mem::size_of::<mach_msg_ool_descriptor32_t>(),
3690 12usize,
3691 concat!("Size of: ", stringify!(mach_msg_ool_descriptor32_t))
3692 );
3693 assert_eq!(
3694 ::std::mem::align_of::<mach_msg_ool_descriptor32_t>(),
3695 4usize,
3696 concat!("Alignment of ", stringify!(mach_msg_ool_descriptor32_t))
3697 );
3698 assert_eq!(
3699 unsafe {
3700 &(*(::std::ptr::null::<mach_msg_ool_descriptor32_t>())).address as *const _ as usize
3701 },
3702 0usize,
3703 concat!(
3704 "Offset of field: ",
3705 stringify!(mach_msg_ool_descriptor32_t),
3706 "::",
3707 stringify!(address)
3708 )
3709 );
3710 assert_eq!(
3711 unsafe {
3712 &(*(::std::ptr::null::<mach_msg_ool_descriptor32_t>())).size as *const _ as usize
3713 },
3714 4usize,
3715 concat!(
3716 "Offset of field: ",
3717 stringify!(mach_msg_ool_descriptor32_t),
3718 "::",
3719 stringify!(size)
3720 )
3721 );
3722}
3723impl mach_msg_ool_descriptor32_t {
3724 #[inline]
3725 pub fn deallocate(&self) -> boolean_t {
3726 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
3727 }
3728 #[inline]
3729 pub fn set_deallocate(&mut self, val: boolean_t) {
3730 unsafe {
3731 let val: u32 = ::std::mem::transmute(val);
3732 self._bitfield_1.set(0usize, 8u8, val as u64)
3733 }
3734 }
3735 #[inline]
3736 pub fn copy(&self) -> mach_msg_copy_options_t {
3737 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
3738 }
3739 #[inline]
3740 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
3741 unsafe {
3742 let val: u32 = ::std::mem::transmute(val);
3743 self._bitfield_1.set(8usize, 8u8, val as u64)
3744 }
3745 }
3746 #[inline]
3747 pub fn pad1(&self) -> ::std::os::raw::c_uint {
3748 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
3749 }
3750 #[inline]
3751 pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
3752 unsafe {
3753 let val: u32 = ::std::mem::transmute(val);
3754 self._bitfield_1.set(16usize, 8u8, val as u64)
3755 }
3756 }
3757 #[inline]
3758 pub fn type_(&self) -> mach_msg_descriptor_type_t {
3759 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
3760 }
3761 #[inline]
3762 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
3763 unsafe {
3764 let val: u32 = ::std::mem::transmute(val);
3765 self._bitfield_1.set(24usize, 8u8, val as u64)
3766 }
3767 }
3768 #[inline]
3769 pub fn new_bitfield_1(
3770 deallocate: boolean_t,
3771 copy: mach_msg_copy_options_t,
3772 pad1: ::std::os::raw::c_uint,
3773 type_: mach_msg_descriptor_type_t,
3774 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
3775 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
3776 Default::default();
3777 __bindgen_bitfield_unit.set(0usize, 8u8, {
3778 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
3779 deallocate as u64
3780 });
3781 __bindgen_bitfield_unit.set(8usize, 8u8, {
3782 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
3783 copy as u64
3784 });
3785 __bindgen_bitfield_unit.set(16usize, 8u8, {
3786 let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
3787 pad1 as u64
3788 });
3789 __bindgen_bitfield_unit.set(24usize, 8u8, {
3790 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
3791 type_ as u64
3792 });
3793 __bindgen_bitfield_unit
3794 }
3795}
3796#[repr(C, packed(4))]
3797#[derive(Debug, Copy, Clone)]
3798pub struct mach_msg_ool_descriptor64_t {
3799 pub address: u64,
3800 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
3801 pub size: mach_msg_size_t,
3802}
3803#[test]
3804fn bindgen_test_layout_mach_msg_ool_descriptor64_t() {
3805 assert_eq!(
3806 ::std::mem::size_of::<mach_msg_ool_descriptor64_t>(),
3807 16usize,
3808 concat!("Size of: ", stringify!(mach_msg_ool_descriptor64_t))
3809 );
3810 assert_eq!(
3811 ::std::mem::align_of::<mach_msg_ool_descriptor64_t>(),
3812 4usize,
3813 concat!("Alignment of ", stringify!(mach_msg_ool_descriptor64_t))
3814 );
3815 assert_eq!(
3816 unsafe {
3817 &(*(::std::ptr::null::<mach_msg_ool_descriptor64_t>())).address as *const _ as usize
3818 },
3819 0usize,
3820 concat!(
3821 "Offset of field: ",
3822 stringify!(mach_msg_ool_descriptor64_t),
3823 "::",
3824 stringify!(address)
3825 )
3826 );
3827 assert_eq!(
3828 unsafe {
3829 &(*(::std::ptr::null::<mach_msg_ool_descriptor64_t>())).size as *const _ as usize
3830 },
3831 12usize,
3832 concat!(
3833 "Offset of field: ",
3834 stringify!(mach_msg_ool_descriptor64_t),
3835 "::",
3836 stringify!(size)
3837 )
3838 );
3839}
3840impl mach_msg_ool_descriptor64_t {
3841 #[inline]
3842 pub fn deallocate(&self) -> boolean_t {
3843 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
3844 }
3845 #[inline]
3846 pub fn set_deallocate(&mut self, val: boolean_t) {
3847 unsafe {
3848 let val: u32 = ::std::mem::transmute(val);
3849 self._bitfield_1.set(0usize, 8u8, val as u64)
3850 }
3851 }
3852 #[inline]
3853 pub fn copy(&self) -> mach_msg_copy_options_t {
3854 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
3855 }
3856 #[inline]
3857 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
3858 unsafe {
3859 let val: u32 = ::std::mem::transmute(val);
3860 self._bitfield_1.set(8usize, 8u8, val as u64)
3861 }
3862 }
3863 #[inline]
3864 pub fn pad1(&self) -> ::std::os::raw::c_uint {
3865 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
3866 }
3867 #[inline]
3868 pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
3869 unsafe {
3870 let val: u32 = ::std::mem::transmute(val);
3871 self._bitfield_1.set(16usize, 8u8, val as u64)
3872 }
3873 }
3874 #[inline]
3875 pub fn type_(&self) -> mach_msg_descriptor_type_t {
3876 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
3877 }
3878 #[inline]
3879 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
3880 unsafe {
3881 let val: u32 = ::std::mem::transmute(val);
3882 self._bitfield_1.set(24usize, 8u8, val as u64)
3883 }
3884 }
3885 #[inline]
3886 pub fn new_bitfield_1(
3887 deallocate: boolean_t,
3888 copy: mach_msg_copy_options_t,
3889 pad1: ::std::os::raw::c_uint,
3890 type_: mach_msg_descriptor_type_t,
3891 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
3892 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
3893 Default::default();
3894 __bindgen_bitfield_unit.set(0usize, 8u8, {
3895 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
3896 deallocate as u64
3897 });
3898 __bindgen_bitfield_unit.set(8usize, 8u8, {
3899 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
3900 copy as u64
3901 });
3902 __bindgen_bitfield_unit.set(16usize, 8u8, {
3903 let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
3904 pad1 as u64
3905 });
3906 __bindgen_bitfield_unit.set(24usize, 8u8, {
3907 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
3908 type_ as u64
3909 });
3910 __bindgen_bitfield_unit
3911 }
3912}
3913#[repr(C, packed(4))]
3914#[derive(Debug, Copy, Clone)]
3915pub struct mach_msg_ool_descriptor_t {
3916 pub address: *mut ::std::os::raw::c_void,
3917 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
3918 pub size: mach_msg_size_t,
3919}
3920#[test]
3921fn bindgen_test_layout_mach_msg_ool_descriptor_t() {
3922 assert_eq!(
3923 ::std::mem::size_of::<mach_msg_ool_descriptor_t>(),
3924 16usize,
3925 concat!("Size of: ", stringify!(mach_msg_ool_descriptor_t))
3926 );
3927 assert_eq!(
3928 ::std::mem::align_of::<mach_msg_ool_descriptor_t>(),
3929 4usize,
3930 concat!("Alignment of ", stringify!(mach_msg_ool_descriptor_t))
3931 );
3932 assert_eq!(
3933 unsafe {
3934 &(*(::std::ptr::null::<mach_msg_ool_descriptor_t>())).address as *const _ as usize
3935 },
3936 0usize,
3937 concat!(
3938 "Offset of field: ",
3939 stringify!(mach_msg_ool_descriptor_t),
3940 "::",
3941 stringify!(address)
3942 )
3943 );
3944 assert_eq!(
3945 unsafe { &(*(::std::ptr::null::<mach_msg_ool_descriptor_t>())).size as *const _ as usize },
3946 12usize,
3947 concat!(
3948 "Offset of field: ",
3949 stringify!(mach_msg_ool_descriptor_t),
3950 "::",
3951 stringify!(size)
3952 )
3953 );
3954}
3955impl mach_msg_ool_descriptor_t {
3956 #[inline]
3957 pub fn deallocate(&self) -> boolean_t {
3958 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
3959 }
3960 #[inline]
3961 pub fn set_deallocate(&mut self, val: boolean_t) {
3962 unsafe {
3963 let val: u32 = ::std::mem::transmute(val);
3964 self._bitfield_1.set(0usize, 8u8, val as u64)
3965 }
3966 }
3967 #[inline]
3968 pub fn copy(&self) -> mach_msg_copy_options_t {
3969 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
3970 }
3971 #[inline]
3972 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
3973 unsafe {
3974 let val: u32 = ::std::mem::transmute(val);
3975 self._bitfield_1.set(8usize, 8u8, val as u64)
3976 }
3977 }
3978 #[inline]
3979 pub fn pad1(&self) -> ::std::os::raw::c_uint {
3980 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
3981 }
3982 #[inline]
3983 pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
3984 unsafe {
3985 let val: u32 = ::std::mem::transmute(val);
3986 self._bitfield_1.set(16usize, 8u8, val as u64)
3987 }
3988 }
3989 #[inline]
3990 pub fn type_(&self) -> mach_msg_descriptor_type_t {
3991 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
3992 }
3993 #[inline]
3994 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
3995 unsafe {
3996 let val: u32 = ::std::mem::transmute(val);
3997 self._bitfield_1.set(24usize, 8u8, val as u64)
3998 }
3999 }
4000 #[inline]
4001 pub fn new_bitfield_1(
4002 deallocate: boolean_t,
4003 copy: mach_msg_copy_options_t,
4004 pad1: ::std::os::raw::c_uint,
4005 type_: mach_msg_descriptor_type_t,
4006 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
4007 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
4008 Default::default();
4009 __bindgen_bitfield_unit.set(0usize, 8u8, {
4010 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
4011 deallocate as u64
4012 });
4013 __bindgen_bitfield_unit.set(8usize, 8u8, {
4014 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
4015 copy as u64
4016 });
4017 __bindgen_bitfield_unit.set(16usize, 8u8, {
4018 let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
4019 pad1 as u64
4020 });
4021 __bindgen_bitfield_unit.set(24usize, 8u8, {
4022 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4023 type_ as u64
4024 });
4025 __bindgen_bitfield_unit
4026 }
4027}
4028#[repr(C)]
4029#[derive(Debug, Copy, Clone)]
4030pub struct mach_msg_ool_ports_descriptor32_t {
4031 pub address: u32,
4032 pub count: mach_msg_size_t,
4033 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
4034}
4035#[test]
4036fn bindgen_test_layout_mach_msg_ool_ports_descriptor32_t() {
4037 assert_eq!(
4038 ::std::mem::size_of::<mach_msg_ool_ports_descriptor32_t>(),
4039 12usize,
4040 concat!("Size of: ", stringify!(mach_msg_ool_ports_descriptor32_t))
4041 );
4042 assert_eq!(
4043 ::std::mem::align_of::<mach_msg_ool_ports_descriptor32_t>(),
4044 4usize,
4045 concat!(
4046 "Alignment of ",
4047 stringify!(mach_msg_ool_ports_descriptor32_t)
4048 )
4049 );
4050 assert_eq!(
4051 unsafe {
4052 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor32_t>())).address as *const _
4053 as usize
4054 },
4055 0usize,
4056 concat!(
4057 "Offset of field: ",
4058 stringify!(mach_msg_ool_ports_descriptor32_t),
4059 "::",
4060 stringify!(address)
4061 )
4062 );
4063 assert_eq!(
4064 unsafe {
4065 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor32_t>())).count as *const _ as usize
4066 },
4067 4usize,
4068 concat!(
4069 "Offset of field: ",
4070 stringify!(mach_msg_ool_ports_descriptor32_t),
4071 "::",
4072 stringify!(count)
4073 )
4074 );
4075}
4076impl mach_msg_ool_ports_descriptor32_t {
4077 #[inline]
4078 pub fn deallocate(&self) -> boolean_t {
4079 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
4080 }
4081 #[inline]
4082 pub fn set_deallocate(&mut self, val: boolean_t) {
4083 unsafe {
4084 let val: u32 = ::std::mem::transmute(val);
4085 self._bitfield_1.set(0usize, 8u8, val as u64)
4086 }
4087 }
4088 #[inline]
4089 pub fn copy(&self) -> mach_msg_copy_options_t {
4090 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
4091 }
4092 #[inline]
4093 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
4094 unsafe {
4095 let val: u32 = ::std::mem::transmute(val);
4096 self._bitfield_1.set(8usize, 8u8, val as u64)
4097 }
4098 }
4099 #[inline]
4100 pub fn disposition(&self) -> mach_msg_type_name_t {
4101 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4102 }
4103 #[inline]
4104 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4105 unsafe {
4106 let val: u32 = ::std::mem::transmute(val);
4107 self._bitfield_1.set(16usize, 8u8, val as u64)
4108 }
4109 }
4110 #[inline]
4111 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4112 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4113 }
4114 #[inline]
4115 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4116 unsafe {
4117 let val: u32 = ::std::mem::transmute(val);
4118 self._bitfield_1.set(24usize, 8u8, val as u64)
4119 }
4120 }
4121 #[inline]
4122 pub fn new_bitfield_1(
4123 deallocate: boolean_t,
4124 copy: mach_msg_copy_options_t,
4125 disposition: mach_msg_type_name_t,
4126 type_: mach_msg_descriptor_type_t,
4127 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
4128 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
4129 Default::default();
4130 __bindgen_bitfield_unit.set(0usize, 8u8, {
4131 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
4132 deallocate as u64
4133 });
4134 __bindgen_bitfield_unit.set(8usize, 8u8, {
4135 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
4136 copy as u64
4137 });
4138 __bindgen_bitfield_unit.set(16usize, 8u8, {
4139 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4140 disposition as u64
4141 });
4142 __bindgen_bitfield_unit.set(24usize, 8u8, {
4143 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4144 type_ as u64
4145 });
4146 __bindgen_bitfield_unit
4147 }
4148}
4149#[repr(C, packed(4))]
4150#[derive(Debug, Copy, Clone)]
4151pub struct mach_msg_ool_ports_descriptor64_t {
4152 pub address: u64,
4153 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
4154 pub count: mach_msg_size_t,
4155}
4156#[test]
4157fn bindgen_test_layout_mach_msg_ool_ports_descriptor64_t() {
4158 assert_eq!(
4159 ::std::mem::size_of::<mach_msg_ool_ports_descriptor64_t>(),
4160 16usize,
4161 concat!("Size of: ", stringify!(mach_msg_ool_ports_descriptor64_t))
4162 );
4163 assert_eq!(
4164 ::std::mem::align_of::<mach_msg_ool_ports_descriptor64_t>(),
4165 4usize,
4166 concat!(
4167 "Alignment of ",
4168 stringify!(mach_msg_ool_ports_descriptor64_t)
4169 )
4170 );
4171 assert_eq!(
4172 unsafe {
4173 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor64_t>())).address as *const _
4174 as usize
4175 },
4176 0usize,
4177 concat!(
4178 "Offset of field: ",
4179 stringify!(mach_msg_ool_ports_descriptor64_t),
4180 "::",
4181 stringify!(address)
4182 )
4183 );
4184 assert_eq!(
4185 unsafe {
4186 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor64_t>())).count as *const _ as usize
4187 },
4188 12usize,
4189 concat!(
4190 "Offset of field: ",
4191 stringify!(mach_msg_ool_ports_descriptor64_t),
4192 "::",
4193 stringify!(count)
4194 )
4195 );
4196}
4197impl mach_msg_ool_ports_descriptor64_t {
4198 #[inline]
4199 pub fn deallocate(&self) -> boolean_t {
4200 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
4201 }
4202 #[inline]
4203 pub fn set_deallocate(&mut self, val: boolean_t) {
4204 unsafe {
4205 let val: u32 = ::std::mem::transmute(val);
4206 self._bitfield_1.set(0usize, 8u8, val as u64)
4207 }
4208 }
4209 #[inline]
4210 pub fn copy(&self) -> mach_msg_copy_options_t {
4211 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
4212 }
4213 #[inline]
4214 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
4215 unsafe {
4216 let val: u32 = ::std::mem::transmute(val);
4217 self._bitfield_1.set(8usize, 8u8, val as u64)
4218 }
4219 }
4220 #[inline]
4221 pub fn disposition(&self) -> mach_msg_type_name_t {
4222 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4223 }
4224 #[inline]
4225 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4226 unsafe {
4227 let val: u32 = ::std::mem::transmute(val);
4228 self._bitfield_1.set(16usize, 8u8, val as u64)
4229 }
4230 }
4231 #[inline]
4232 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4233 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4234 }
4235 #[inline]
4236 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4237 unsafe {
4238 let val: u32 = ::std::mem::transmute(val);
4239 self._bitfield_1.set(24usize, 8u8, val as u64)
4240 }
4241 }
4242 #[inline]
4243 pub fn new_bitfield_1(
4244 deallocate: boolean_t,
4245 copy: mach_msg_copy_options_t,
4246 disposition: mach_msg_type_name_t,
4247 type_: mach_msg_descriptor_type_t,
4248 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
4249 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
4250 Default::default();
4251 __bindgen_bitfield_unit.set(0usize, 8u8, {
4252 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
4253 deallocate as u64
4254 });
4255 __bindgen_bitfield_unit.set(8usize, 8u8, {
4256 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
4257 copy as u64
4258 });
4259 __bindgen_bitfield_unit.set(16usize, 8u8, {
4260 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4261 disposition as u64
4262 });
4263 __bindgen_bitfield_unit.set(24usize, 8u8, {
4264 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4265 type_ as u64
4266 });
4267 __bindgen_bitfield_unit
4268 }
4269}
4270#[repr(C, packed(4))]
4271#[derive(Debug, Copy, Clone)]
4272pub struct mach_msg_ool_ports_descriptor_t {
4273 pub address: *mut ::std::os::raw::c_void,
4274 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
4275 pub count: mach_msg_size_t,
4276}
4277#[test]
4278fn bindgen_test_layout_mach_msg_ool_ports_descriptor_t() {
4279 assert_eq!(
4280 ::std::mem::size_of::<mach_msg_ool_ports_descriptor_t>(),
4281 16usize,
4282 concat!("Size of: ", stringify!(mach_msg_ool_ports_descriptor_t))
4283 );
4284 assert_eq!(
4285 ::std::mem::align_of::<mach_msg_ool_ports_descriptor_t>(),
4286 4usize,
4287 concat!("Alignment of ", stringify!(mach_msg_ool_ports_descriptor_t))
4288 );
4289 assert_eq!(
4290 unsafe {
4291 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor_t>())).address as *const _ as usize
4292 },
4293 0usize,
4294 concat!(
4295 "Offset of field: ",
4296 stringify!(mach_msg_ool_ports_descriptor_t),
4297 "::",
4298 stringify!(address)
4299 )
4300 );
4301 assert_eq!(
4302 unsafe {
4303 &(*(::std::ptr::null::<mach_msg_ool_ports_descriptor_t>())).count as *const _ as usize
4304 },
4305 12usize,
4306 concat!(
4307 "Offset of field: ",
4308 stringify!(mach_msg_ool_ports_descriptor_t),
4309 "::",
4310 stringify!(count)
4311 )
4312 );
4313}
4314impl mach_msg_ool_ports_descriptor_t {
4315 #[inline]
4316 pub fn deallocate(&self) -> boolean_t {
4317 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
4318 }
4319 #[inline]
4320 pub fn set_deallocate(&mut self, val: boolean_t) {
4321 unsafe {
4322 let val: u32 = ::std::mem::transmute(val);
4323 self._bitfield_1.set(0usize, 8u8, val as u64)
4324 }
4325 }
4326 #[inline]
4327 pub fn copy(&self) -> mach_msg_copy_options_t {
4328 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
4329 }
4330 #[inline]
4331 pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
4332 unsafe {
4333 let val: u32 = ::std::mem::transmute(val);
4334 self._bitfield_1.set(8usize, 8u8, val as u64)
4335 }
4336 }
4337 #[inline]
4338 pub fn disposition(&self) -> mach_msg_type_name_t {
4339 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4340 }
4341 #[inline]
4342 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4343 unsafe {
4344 let val: u32 = ::std::mem::transmute(val);
4345 self._bitfield_1.set(16usize, 8u8, val as u64)
4346 }
4347 }
4348 #[inline]
4349 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4350 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4351 }
4352 #[inline]
4353 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4354 unsafe {
4355 let val: u32 = ::std::mem::transmute(val);
4356 self._bitfield_1.set(24usize, 8u8, val as u64)
4357 }
4358 }
4359 #[inline]
4360 pub fn new_bitfield_1(
4361 deallocate: boolean_t,
4362 copy: mach_msg_copy_options_t,
4363 disposition: mach_msg_type_name_t,
4364 type_: mach_msg_descriptor_type_t,
4365 ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
4366 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
4367 Default::default();
4368 __bindgen_bitfield_unit.set(0usize, 8u8, {
4369 let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
4370 deallocate as u64
4371 });
4372 __bindgen_bitfield_unit.set(8usize, 8u8, {
4373 let copy: u32 = unsafe { ::std::mem::transmute(copy) };
4374 copy as u64
4375 });
4376 __bindgen_bitfield_unit.set(16usize, 8u8, {
4377 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4378 disposition as u64
4379 });
4380 __bindgen_bitfield_unit.set(24usize, 8u8, {
4381 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4382 type_ as u64
4383 });
4384 __bindgen_bitfield_unit
4385 }
4386}
4387#[repr(C)]
4388#[derive(Debug, Copy, Clone)]
4389pub struct mach_msg_guarded_port_descriptor32_t {
4390 pub context: u32,
4391 pub name: mach_port_name_t,
4392 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
4393}
4394#[test]
4395fn bindgen_test_layout_mach_msg_guarded_port_descriptor32_t() {
4396 assert_eq!(
4397 ::std::mem::size_of::<mach_msg_guarded_port_descriptor32_t>(),
4398 12usize,
4399 concat!(
4400 "Size of: ",
4401 stringify!(mach_msg_guarded_port_descriptor32_t)
4402 )
4403 );
4404 assert_eq!(
4405 ::std::mem::align_of::<mach_msg_guarded_port_descriptor32_t>(),
4406 4usize,
4407 concat!(
4408 "Alignment of ",
4409 stringify!(mach_msg_guarded_port_descriptor32_t)
4410 )
4411 );
4412 assert_eq!(
4413 unsafe {
4414 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor32_t>())).context as *const _
4415 as usize
4416 },
4417 0usize,
4418 concat!(
4419 "Offset of field: ",
4420 stringify!(mach_msg_guarded_port_descriptor32_t),
4421 "::",
4422 stringify!(context)
4423 )
4424 );
4425 assert_eq!(
4426 unsafe {
4427 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor32_t>())).name as *const _
4428 as usize
4429 },
4430 4usize,
4431 concat!(
4432 "Offset of field: ",
4433 stringify!(mach_msg_guarded_port_descriptor32_t),
4434 "::",
4435 stringify!(name)
4436 )
4437 );
4438}
4439impl mach_msg_guarded_port_descriptor32_t {
4440 #[inline]
4441 pub fn flags(&self) -> mach_msg_guard_flags_t {
4442 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
4443 }
4444 #[inline]
4445 pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
4446 unsafe {
4447 let val: u32 = ::std::mem::transmute(val);
4448 self._bitfield_1.set(0usize, 16u8, val as u64)
4449 }
4450 }
4451 #[inline]
4452 pub fn disposition(&self) -> mach_msg_type_name_t {
4453 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4454 }
4455 #[inline]
4456 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4457 unsafe {
4458 let val: u32 = ::std::mem::transmute(val);
4459 self._bitfield_1.set(16usize, 8u8, val as u64)
4460 }
4461 }
4462 #[inline]
4463 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4464 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4465 }
4466 #[inline]
4467 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4468 unsafe {
4469 let val: u32 = ::std::mem::transmute(val);
4470 self._bitfield_1.set(24usize, 8u8, val as u64)
4471 }
4472 }
4473 #[inline]
4474 pub fn new_bitfield_1(
4475 flags: mach_msg_guard_flags_t,
4476 disposition: mach_msg_type_name_t,
4477 type_: mach_msg_descriptor_type_t,
4478 ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
4479 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
4480 Default::default();
4481 __bindgen_bitfield_unit.set(0usize, 16u8, {
4482 let flags: u32 = unsafe { ::std::mem::transmute(flags) };
4483 flags as u64
4484 });
4485 __bindgen_bitfield_unit.set(16usize, 8u8, {
4486 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4487 disposition as u64
4488 });
4489 __bindgen_bitfield_unit.set(24usize, 8u8, {
4490 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4491 type_ as u64
4492 });
4493 __bindgen_bitfield_unit
4494 }
4495}
4496#[repr(C, packed(4))]
4497#[derive(Debug, Copy, Clone)]
4498pub struct mach_msg_guarded_port_descriptor64_t {
4499 pub context: u64,
4500 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
4501 pub name: mach_port_name_t,
4502}
4503#[test]
4504fn bindgen_test_layout_mach_msg_guarded_port_descriptor64_t() {
4505 assert_eq!(
4506 ::std::mem::size_of::<mach_msg_guarded_port_descriptor64_t>(),
4507 16usize,
4508 concat!(
4509 "Size of: ",
4510 stringify!(mach_msg_guarded_port_descriptor64_t)
4511 )
4512 );
4513 assert_eq!(
4514 ::std::mem::align_of::<mach_msg_guarded_port_descriptor64_t>(),
4515 4usize,
4516 concat!(
4517 "Alignment of ",
4518 stringify!(mach_msg_guarded_port_descriptor64_t)
4519 )
4520 );
4521 assert_eq!(
4522 unsafe {
4523 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor64_t>())).context as *const _
4524 as usize
4525 },
4526 0usize,
4527 concat!(
4528 "Offset of field: ",
4529 stringify!(mach_msg_guarded_port_descriptor64_t),
4530 "::",
4531 stringify!(context)
4532 )
4533 );
4534 assert_eq!(
4535 unsafe {
4536 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor64_t>())).name as *const _
4537 as usize
4538 },
4539 12usize,
4540 concat!(
4541 "Offset of field: ",
4542 stringify!(mach_msg_guarded_port_descriptor64_t),
4543 "::",
4544 stringify!(name)
4545 )
4546 );
4547}
4548impl mach_msg_guarded_port_descriptor64_t {
4549 #[inline]
4550 pub fn flags(&self) -> mach_msg_guard_flags_t {
4551 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
4552 }
4553 #[inline]
4554 pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
4555 unsafe {
4556 let val: u32 = ::std::mem::transmute(val);
4557 self._bitfield_1.set(0usize, 16u8, val as u64)
4558 }
4559 }
4560 #[inline]
4561 pub fn disposition(&self) -> mach_msg_type_name_t {
4562 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4563 }
4564 #[inline]
4565 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4566 unsafe {
4567 let val: u32 = ::std::mem::transmute(val);
4568 self._bitfield_1.set(16usize, 8u8, val as u64)
4569 }
4570 }
4571 #[inline]
4572 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4573 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4574 }
4575 #[inline]
4576 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4577 unsafe {
4578 let val: u32 = ::std::mem::transmute(val);
4579 self._bitfield_1.set(24usize, 8u8, val as u64)
4580 }
4581 }
4582 #[inline]
4583 pub fn new_bitfield_1(
4584 flags: mach_msg_guard_flags_t,
4585 disposition: mach_msg_type_name_t,
4586 type_: mach_msg_descriptor_type_t,
4587 ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
4588 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
4589 Default::default();
4590 __bindgen_bitfield_unit.set(0usize, 16u8, {
4591 let flags: u32 = unsafe { ::std::mem::transmute(flags) };
4592 flags as u64
4593 });
4594 __bindgen_bitfield_unit.set(16usize, 8u8, {
4595 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4596 disposition as u64
4597 });
4598 __bindgen_bitfield_unit.set(24usize, 8u8, {
4599 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4600 type_ as u64
4601 });
4602 __bindgen_bitfield_unit
4603 }
4604}
4605#[repr(C, packed(4))]
4606#[derive(Debug, Copy, Clone)]
4607pub struct mach_msg_guarded_port_descriptor_t {
4608 pub context: mach_port_context_t,
4609 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
4610 pub name: mach_port_name_t,
4611}
4612#[test]
4613fn bindgen_test_layout_mach_msg_guarded_port_descriptor_t() {
4614 assert_eq!(
4615 ::std::mem::size_of::<mach_msg_guarded_port_descriptor_t>(),
4616 16usize,
4617 concat!("Size of: ", stringify!(mach_msg_guarded_port_descriptor_t))
4618 );
4619 assert_eq!(
4620 ::std::mem::align_of::<mach_msg_guarded_port_descriptor_t>(),
4621 4usize,
4622 concat!(
4623 "Alignment of ",
4624 stringify!(mach_msg_guarded_port_descriptor_t)
4625 )
4626 );
4627 assert_eq!(
4628 unsafe {
4629 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor_t>())).context as *const _
4630 as usize
4631 },
4632 0usize,
4633 concat!(
4634 "Offset of field: ",
4635 stringify!(mach_msg_guarded_port_descriptor_t),
4636 "::",
4637 stringify!(context)
4638 )
4639 );
4640 assert_eq!(
4641 unsafe {
4642 &(*(::std::ptr::null::<mach_msg_guarded_port_descriptor_t>())).name as *const _ as usize
4643 },
4644 12usize,
4645 concat!(
4646 "Offset of field: ",
4647 stringify!(mach_msg_guarded_port_descriptor_t),
4648 "::",
4649 stringify!(name)
4650 )
4651 );
4652}
4653impl mach_msg_guarded_port_descriptor_t {
4654 #[inline]
4655 pub fn flags(&self) -> mach_msg_guard_flags_t {
4656 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
4657 }
4658 #[inline]
4659 pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
4660 unsafe {
4661 let val: u32 = ::std::mem::transmute(val);
4662 self._bitfield_1.set(0usize, 16u8, val as u64)
4663 }
4664 }
4665 #[inline]
4666 pub fn disposition(&self) -> mach_msg_type_name_t {
4667 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
4668 }
4669 #[inline]
4670 pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
4671 unsafe {
4672 let val: u32 = ::std::mem::transmute(val);
4673 self._bitfield_1.set(16usize, 8u8, val as u64)
4674 }
4675 }
4676 #[inline]
4677 pub fn type_(&self) -> mach_msg_descriptor_type_t {
4678 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
4679 }
4680 #[inline]
4681 pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
4682 unsafe {
4683 let val: u32 = ::std::mem::transmute(val);
4684 self._bitfield_1.set(24usize, 8u8, val as u64)
4685 }
4686 }
4687 #[inline]
4688 pub fn new_bitfield_1(
4689 flags: mach_msg_guard_flags_t,
4690 disposition: mach_msg_type_name_t,
4691 type_: mach_msg_descriptor_type_t,
4692 ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
4693 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
4694 Default::default();
4695 __bindgen_bitfield_unit.set(0usize, 16u8, {
4696 let flags: u32 = unsafe { ::std::mem::transmute(flags) };
4697 flags as u64
4698 });
4699 __bindgen_bitfield_unit.set(16usize, 8u8, {
4700 let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
4701 disposition as u64
4702 });
4703 __bindgen_bitfield_unit.set(24usize, 8u8, {
4704 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4705 type_ as u64
4706 });
4707 __bindgen_bitfield_unit
4708 }
4709}
4710#[repr(C)]
4711#[derive(Copy, Clone)]
4712pub union mach_msg_descriptor_t {
4713 pub port: mach_msg_port_descriptor_t,
4714 pub out_of_line: mach_msg_ool_descriptor_t,
4715 pub ool_ports: mach_msg_ool_ports_descriptor_t,
4716 pub type_: mach_msg_type_descriptor_t,
4717 pub guarded_port: mach_msg_guarded_port_descriptor_t,
4718 _bindgen_union_align: [u32; 4usize],
4719}
4720#[test]
4721fn bindgen_test_layout_mach_msg_descriptor_t() {
4722 assert_eq!(
4723 ::std::mem::size_of::<mach_msg_descriptor_t>(),
4724 16usize,
4725 concat!("Size of: ", stringify!(mach_msg_descriptor_t))
4726 );
4727 assert_eq!(
4728 ::std::mem::align_of::<mach_msg_descriptor_t>(),
4729 4usize,
4730 concat!("Alignment of ", stringify!(mach_msg_descriptor_t))
4731 );
4732 assert_eq!(
4733 unsafe { &(*(::std::ptr::null::<mach_msg_descriptor_t>())).port as *const _ as usize },
4734 0usize,
4735 concat!(
4736 "Offset of field: ",
4737 stringify!(mach_msg_descriptor_t),
4738 "::",
4739 stringify!(port)
4740 )
4741 );
4742 assert_eq!(
4743 unsafe {
4744 &(*(::std::ptr::null::<mach_msg_descriptor_t>())).out_of_line as *const _ as usize
4745 },
4746 0usize,
4747 concat!(
4748 "Offset of field: ",
4749 stringify!(mach_msg_descriptor_t),
4750 "::",
4751 stringify!(out_of_line)
4752 )
4753 );
4754 assert_eq!(
4755 unsafe { &(*(::std::ptr::null::<mach_msg_descriptor_t>())).ool_ports as *const _ as usize },
4756 0usize,
4757 concat!(
4758 "Offset of field: ",
4759 stringify!(mach_msg_descriptor_t),
4760 "::",
4761 stringify!(ool_ports)
4762 )
4763 );
4764 assert_eq!(
4765 unsafe { &(*(::std::ptr::null::<mach_msg_descriptor_t>())).type_ as *const _ as usize },
4766 0usize,
4767 concat!(
4768 "Offset of field: ",
4769 stringify!(mach_msg_descriptor_t),
4770 "::",
4771 stringify!(type_)
4772 )
4773 );
4774 assert_eq!(
4775 unsafe {
4776 &(*(::std::ptr::null::<mach_msg_descriptor_t>())).guarded_port as *const _ as usize
4777 },
4778 0usize,
4779 concat!(
4780 "Offset of field: ",
4781 stringify!(mach_msg_descriptor_t),
4782 "::",
4783 stringify!(guarded_port)
4784 )
4785 );
4786}
4787#[repr(C)]
4788#[derive(Debug, Copy, Clone)]
4789pub struct mach_msg_body_t {
4790 pub msgh_descriptor_count: mach_msg_size_t,
4791}
4792#[test]
4793fn bindgen_test_layout_mach_msg_body_t() {
4794 assert_eq!(
4795 ::std::mem::size_of::<mach_msg_body_t>(),
4796 4usize,
4797 concat!("Size of: ", stringify!(mach_msg_body_t))
4798 );
4799 assert_eq!(
4800 ::std::mem::align_of::<mach_msg_body_t>(),
4801 4usize,
4802 concat!("Alignment of ", stringify!(mach_msg_body_t))
4803 );
4804 assert_eq!(
4805 unsafe {
4806 &(*(::std::ptr::null::<mach_msg_body_t>())).msgh_descriptor_count as *const _ as usize
4807 },
4808 0usize,
4809 concat!(
4810 "Offset of field: ",
4811 stringify!(mach_msg_body_t),
4812 "::",
4813 stringify!(msgh_descriptor_count)
4814 )
4815 );
4816}
4817#[repr(C)]
4818#[derive(Debug, Copy, Clone)]
4819pub struct mach_msg_header_t {
4820 pub msgh_bits: mach_msg_bits_t,
4821 pub msgh_size: mach_msg_size_t,
4822 pub msgh_remote_port: mach_port_t,
4823 pub msgh_local_port: mach_port_t,
4824 pub msgh_voucher_port: mach_port_name_t,
4825 pub msgh_id: mach_msg_id_t,
4826}
4827#[test]
4828fn bindgen_test_layout_mach_msg_header_t() {
4829 assert_eq!(
4830 ::std::mem::size_of::<mach_msg_header_t>(),
4831 24usize,
4832 concat!("Size of: ", stringify!(mach_msg_header_t))
4833 );
4834 assert_eq!(
4835 ::std::mem::align_of::<mach_msg_header_t>(),
4836 4usize,
4837 concat!("Alignment of ", stringify!(mach_msg_header_t))
4838 );
4839 assert_eq!(
4840 unsafe { &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_bits as *const _ as usize },
4841 0usize,
4842 concat!(
4843 "Offset of field: ",
4844 stringify!(mach_msg_header_t),
4845 "::",
4846 stringify!(msgh_bits)
4847 )
4848 );
4849 assert_eq!(
4850 unsafe { &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_size as *const _ as usize },
4851 4usize,
4852 concat!(
4853 "Offset of field: ",
4854 stringify!(mach_msg_header_t),
4855 "::",
4856 stringify!(msgh_size)
4857 )
4858 );
4859 assert_eq!(
4860 unsafe {
4861 &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_remote_port as *const _ as usize
4862 },
4863 8usize,
4864 concat!(
4865 "Offset of field: ",
4866 stringify!(mach_msg_header_t),
4867 "::",
4868 stringify!(msgh_remote_port)
4869 )
4870 );
4871 assert_eq!(
4872 unsafe {
4873 &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_local_port as *const _ as usize
4874 },
4875 12usize,
4876 concat!(
4877 "Offset of field: ",
4878 stringify!(mach_msg_header_t),
4879 "::",
4880 stringify!(msgh_local_port)
4881 )
4882 );
4883 assert_eq!(
4884 unsafe {
4885 &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_voucher_port as *const _ as usize
4886 },
4887 16usize,
4888 concat!(
4889 "Offset of field: ",
4890 stringify!(mach_msg_header_t),
4891 "::",
4892 stringify!(msgh_voucher_port)
4893 )
4894 );
4895 assert_eq!(
4896 unsafe { &(*(::std::ptr::null::<mach_msg_header_t>())).msgh_id as *const _ as usize },
4897 20usize,
4898 concat!(
4899 "Offset of field: ",
4900 stringify!(mach_msg_header_t),
4901 "::",
4902 stringify!(msgh_id)
4903 )
4904 );
4905}
4906#[repr(C)]
4907#[derive(Debug, Copy, Clone)]
4908pub struct mach_msg_base_t {
4909 pub header: mach_msg_header_t,
4910 pub body: mach_msg_body_t,
4911}
4912#[test]
4913fn bindgen_test_layout_mach_msg_base_t() {
4914 assert_eq!(
4915 ::std::mem::size_of::<mach_msg_base_t>(),
4916 28usize,
4917 concat!("Size of: ", stringify!(mach_msg_base_t))
4918 );
4919 assert_eq!(
4920 ::std::mem::align_of::<mach_msg_base_t>(),
4921 4usize,
4922 concat!("Alignment of ", stringify!(mach_msg_base_t))
4923 );
4924 assert_eq!(
4925 unsafe { &(*(::std::ptr::null::<mach_msg_base_t>())).header as *const _ as usize },
4926 0usize,
4927 concat!(
4928 "Offset of field: ",
4929 stringify!(mach_msg_base_t),
4930 "::",
4931 stringify!(header)
4932 )
4933 );
4934 assert_eq!(
4935 unsafe { &(*(::std::ptr::null::<mach_msg_base_t>())).body as *const _ as usize },
4936 24usize,
4937 concat!(
4938 "Offset of field: ",
4939 stringify!(mach_msg_base_t),
4940 "::",
4941 stringify!(body)
4942 )
4943 );
4944}
4945pub type mach_msg_trailer_type_t = ::std::os::raw::c_uint;
4946pub type mach_msg_trailer_size_t = ::std::os::raw::c_uint;
4947pub type mach_msg_trailer_info_t = *mut ::std::os::raw::c_char;
4948#[repr(C)]
4949#[derive(Debug, Copy, Clone)]
4950pub struct mach_msg_trailer_t {
4951 pub msgh_trailer_type: mach_msg_trailer_type_t,
4952 pub msgh_trailer_size: mach_msg_trailer_size_t,
4953}
4954#[test]
4955fn bindgen_test_layout_mach_msg_trailer_t() {
4956 assert_eq!(
4957 ::std::mem::size_of::<mach_msg_trailer_t>(),
4958 8usize,
4959 concat!("Size of: ", stringify!(mach_msg_trailer_t))
4960 );
4961 assert_eq!(
4962 ::std::mem::align_of::<mach_msg_trailer_t>(),
4963 4usize,
4964 concat!("Alignment of ", stringify!(mach_msg_trailer_t))
4965 );
4966 assert_eq!(
4967 unsafe {
4968 &(*(::std::ptr::null::<mach_msg_trailer_t>())).msgh_trailer_type as *const _ as usize
4969 },
4970 0usize,
4971 concat!(
4972 "Offset of field: ",
4973 stringify!(mach_msg_trailer_t),
4974 "::",
4975 stringify!(msgh_trailer_type)
4976 )
4977 );
4978 assert_eq!(
4979 unsafe {
4980 &(*(::std::ptr::null::<mach_msg_trailer_t>())).msgh_trailer_size as *const _ as usize
4981 },
4982 4usize,
4983 concat!(
4984 "Offset of field: ",
4985 stringify!(mach_msg_trailer_t),
4986 "::",
4987 stringify!(msgh_trailer_size)
4988 )
4989 );
4990}
4991#[repr(C)]
4992#[derive(Debug, Copy, Clone)]
4993pub struct mach_msg_seqno_trailer_t {
4994 pub msgh_trailer_type: mach_msg_trailer_type_t,
4995 pub msgh_trailer_size: mach_msg_trailer_size_t,
4996 pub msgh_seqno: mach_port_seqno_t,
4997}
4998#[test]
4999fn bindgen_test_layout_mach_msg_seqno_trailer_t() {
5000 assert_eq!(
5001 ::std::mem::size_of::<mach_msg_seqno_trailer_t>(),
5002 12usize,
5003 concat!("Size of: ", stringify!(mach_msg_seqno_trailer_t))
5004 );
5005 assert_eq!(
5006 ::std::mem::align_of::<mach_msg_seqno_trailer_t>(),
5007 4usize,
5008 concat!("Alignment of ", stringify!(mach_msg_seqno_trailer_t))
5009 );
5010 assert_eq!(
5011 unsafe {
5012 &(*(::std::ptr::null::<mach_msg_seqno_trailer_t>())).msgh_trailer_type as *const _
5013 as usize
5014 },
5015 0usize,
5016 concat!(
5017 "Offset of field: ",
5018 stringify!(mach_msg_seqno_trailer_t),
5019 "::",
5020 stringify!(msgh_trailer_type)
5021 )
5022 );
5023 assert_eq!(
5024 unsafe {
5025 &(*(::std::ptr::null::<mach_msg_seqno_trailer_t>())).msgh_trailer_size as *const _
5026 as usize
5027 },
5028 4usize,
5029 concat!(
5030 "Offset of field: ",
5031 stringify!(mach_msg_seqno_trailer_t),
5032 "::",
5033 stringify!(msgh_trailer_size)
5034 )
5035 );
5036 assert_eq!(
5037 unsafe {
5038 &(*(::std::ptr::null::<mach_msg_seqno_trailer_t>())).msgh_seqno as *const _ as usize
5039 },
5040 8usize,
5041 concat!(
5042 "Offset of field: ",
5043 stringify!(mach_msg_seqno_trailer_t),
5044 "::",
5045 stringify!(msgh_seqno)
5046 )
5047 );
5048}
5049#[repr(C)]
5050#[derive(Debug, Copy, Clone)]
5051pub struct security_token_t {
5052 pub val: [::std::os::raw::c_uint; 2usize],
5053}
5054#[test]
5055fn bindgen_test_layout_security_token_t() {
5056 assert_eq!(
5057 ::std::mem::size_of::<security_token_t>(),
5058 8usize,
5059 concat!("Size of: ", stringify!(security_token_t))
5060 );
5061 assert_eq!(
5062 ::std::mem::align_of::<security_token_t>(),
5063 4usize,
5064 concat!("Alignment of ", stringify!(security_token_t))
5065 );
5066 assert_eq!(
5067 unsafe { &(*(::std::ptr::null::<security_token_t>())).val as *const _ as usize },
5068 0usize,
5069 concat!(
5070 "Offset of field: ",
5071 stringify!(security_token_t),
5072 "::",
5073 stringify!(val)
5074 )
5075 );
5076}
5077#[repr(C)]
5078#[derive(Debug, Copy, Clone)]
5079pub struct mach_msg_security_trailer_t {
5080 pub msgh_trailer_type: mach_msg_trailer_type_t,
5081 pub msgh_trailer_size: mach_msg_trailer_size_t,
5082 pub msgh_seqno: mach_port_seqno_t,
5083 pub msgh_sender: security_token_t,
5084}
5085#[test]
5086fn bindgen_test_layout_mach_msg_security_trailer_t() {
5087 assert_eq!(
5088 ::std::mem::size_of::<mach_msg_security_trailer_t>(),
5089 20usize,
5090 concat!("Size of: ", stringify!(mach_msg_security_trailer_t))
5091 );
5092 assert_eq!(
5093 ::std::mem::align_of::<mach_msg_security_trailer_t>(),
5094 4usize,
5095 concat!("Alignment of ", stringify!(mach_msg_security_trailer_t))
5096 );
5097 assert_eq!(
5098 unsafe {
5099 &(*(::std::ptr::null::<mach_msg_security_trailer_t>())).msgh_trailer_type as *const _
5100 as usize
5101 },
5102 0usize,
5103 concat!(
5104 "Offset of field: ",
5105 stringify!(mach_msg_security_trailer_t),
5106 "::",
5107 stringify!(msgh_trailer_type)
5108 )
5109 );
5110 assert_eq!(
5111 unsafe {
5112 &(*(::std::ptr::null::<mach_msg_security_trailer_t>())).msgh_trailer_size as *const _
5113 as usize
5114 },
5115 4usize,
5116 concat!(
5117 "Offset of field: ",
5118 stringify!(mach_msg_security_trailer_t),
5119 "::",
5120 stringify!(msgh_trailer_size)
5121 )
5122 );
5123 assert_eq!(
5124 unsafe {
5125 &(*(::std::ptr::null::<mach_msg_security_trailer_t>())).msgh_seqno as *const _ as usize
5126 },
5127 8usize,
5128 concat!(
5129 "Offset of field: ",
5130 stringify!(mach_msg_security_trailer_t),
5131 "::",
5132 stringify!(msgh_seqno)
5133 )
5134 );
5135 assert_eq!(
5136 unsafe {
5137 &(*(::std::ptr::null::<mach_msg_security_trailer_t>())).msgh_sender as *const _ as usize
5138 },
5139 12usize,
5140 concat!(
5141 "Offset of field: ",
5142 stringify!(mach_msg_security_trailer_t),
5143 "::",
5144 stringify!(msgh_sender)
5145 )
5146 );
5147}
5148#[repr(C)]
5149#[derive(Debug, Copy, Clone)]
5150pub struct audit_token_t {
5151 pub val: [::std::os::raw::c_uint; 8usize],
5152}
5153#[test]
5154fn bindgen_test_layout_audit_token_t() {
5155 assert_eq!(
5156 ::std::mem::size_of::<audit_token_t>(),
5157 32usize,
5158 concat!("Size of: ", stringify!(audit_token_t))
5159 );
5160 assert_eq!(
5161 ::std::mem::align_of::<audit_token_t>(),
5162 4usize,
5163 concat!("Alignment of ", stringify!(audit_token_t))
5164 );
5165 assert_eq!(
5166 unsafe { &(*(::std::ptr::null::<audit_token_t>())).val as *const _ as usize },
5167 0usize,
5168 concat!(
5169 "Offset of field: ",
5170 stringify!(audit_token_t),
5171 "::",
5172 stringify!(val)
5173 )
5174 );
5175}
5176#[repr(C)]
5177#[derive(Debug, Copy, Clone)]
5178pub struct mach_msg_audit_trailer_t {
5179 pub msgh_trailer_type: mach_msg_trailer_type_t,
5180 pub msgh_trailer_size: mach_msg_trailer_size_t,
5181 pub msgh_seqno: mach_port_seqno_t,
5182 pub msgh_sender: security_token_t,
5183 pub msgh_audit: audit_token_t,
5184}
5185#[test]
5186fn bindgen_test_layout_mach_msg_audit_trailer_t() {
5187 assert_eq!(
5188 ::std::mem::size_of::<mach_msg_audit_trailer_t>(),
5189 52usize,
5190 concat!("Size of: ", stringify!(mach_msg_audit_trailer_t))
5191 );
5192 assert_eq!(
5193 ::std::mem::align_of::<mach_msg_audit_trailer_t>(),
5194 4usize,
5195 concat!("Alignment of ", stringify!(mach_msg_audit_trailer_t))
5196 );
5197 assert_eq!(
5198 unsafe {
5199 &(*(::std::ptr::null::<mach_msg_audit_trailer_t>())).msgh_trailer_type as *const _
5200 as usize
5201 },
5202 0usize,
5203 concat!(
5204 "Offset of field: ",
5205 stringify!(mach_msg_audit_trailer_t),
5206 "::",
5207 stringify!(msgh_trailer_type)
5208 )
5209 );
5210 assert_eq!(
5211 unsafe {
5212 &(*(::std::ptr::null::<mach_msg_audit_trailer_t>())).msgh_trailer_size as *const _
5213 as usize
5214 },
5215 4usize,
5216 concat!(
5217 "Offset of field: ",
5218 stringify!(mach_msg_audit_trailer_t),
5219 "::",
5220 stringify!(msgh_trailer_size)
5221 )
5222 );
5223 assert_eq!(
5224 unsafe {
5225 &(*(::std::ptr::null::<mach_msg_audit_trailer_t>())).msgh_seqno as *const _ as usize
5226 },
5227 8usize,
5228 concat!(
5229 "Offset of field: ",
5230 stringify!(mach_msg_audit_trailer_t),
5231 "::",
5232 stringify!(msgh_seqno)
5233 )
5234 );
5235 assert_eq!(
5236 unsafe {
5237 &(*(::std::ptr::null::<mach_msg_audit_trailer_t>())).msgh_sender as *const _ as usize
5238 },
5239 12usize,
5240 concat!(
5241 "Offset of field: ",
5242 stringify!(mach_msg_audit_trailer_t),
5243 "::",
5244 stringify!(msgh_sender)
5245 )
5246 );
5247 assert_eq!(
5248 unsafe {
5249 &(*(::std::ptr::null::<mach_msg_audit_trailer_t>())).msgh_audit as *const _ as usize
5250 },
5251 20usize,
5252 concat!(
5253 "Offset of field: ",
5254 stringify!(mach_msg_audit_trailer_t),
5255 "::",
5256 stringify!(msgh_audit)
5257 )
5258 );
5259}
5260#[repr(C, packed(4))]
5261#[derive(Debug, Copy, Clone)]
5262pub struct mach_msg_context_trailer_t {
5263 pub msgh_trailer_type: mach_msg_trailer_type_t,
5264 pub msgh_trailer_size: mach_msg_trailer_size_t,
5265 pub msgh_seqno: mach_port_seqno_t,
5266 pub msgh_sender: security_token_t,
5267 pub msgh_audit: audit_token_t,
5268 pub msgh_context: mach_port_context_t,
5269}
5270#[test]
5271fn bindgen_test_layout_mach_msg_context_trailer_t() {
5272 assert_eq!(
5273 ::std::mem::size_of::<mach_msg_context_trailer_t>(),
5274 60usize,
5275 concat!("Size of: ", stringify!(mach_msg_context_trailer_t))
5276 );
5277 assert_eq!(
5278 ::std::mem::align_of::<mach_msg_context_trailer_t>(),
5279 4usize,
5280 concat!("Alignment of ", stringify!(mach_msg_context_trailer_t))
5281 );
5282 assert_eq!(
5283 unsafe {
5284 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_trailer_type as *const _
5285 as usize
5286 },
5287 0usize,
5288 concat!(
5289 "Offset of field: ",
5290 stringify!(mach_msg_context_trailer_t),
5291 "::",
5292 stringify!(msgh_trailer_type)
5293 )
5294 );
5295 assert_eq!(
5296 unsafe {
5297 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_trailer_size as *const _
5298 as usize
5299 },
5300 4usize,
5301 concat!(
5302 "Offset of field: ",
5303 stringify!(mach_msg_context_trailer_t),
5304 "::",
5305 stringify!(msgh_trailer_size)
5306 )
5307 );
5308 assert_eq!(
5309 unsafe {
5310 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_seqno as *const _ as usize
5311 },
5312 8usize,
5313 concat!(
5314 "Offset of field: ",
5315 stringify!(mach_msg_context_trailer_t),
5316 "::",
5317 stringify!(msgh_seqno)
5318 )
5319 );
5320 assert_eq!(
5321 unsafe {
5322 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_sender as *const _ as usize
5323 },
5324 12usize,
5325 concat!(
5326 "Offset of field: ",
5327 stringify!(mach_msg_context_trailer_t),
5328 "::",
5329 stringify!(msgh_sender)
5330 )
5331 );
5332 assert_eq!(
5333 unsafe {
5334 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_audit as *const _ as usize
5335 },
5336 20usize,
5337 concat!(
5338 "Offset of field: ",
5339 stringify!(mach_msg_context_trailer_t),
5340 "::",
5341 stringify!(msgh_audit)
5342 )
5343 );
5344 assert_eq!(
5345 unsafe {
5346 &(*(::std::ptr::null::<mach_msg_context_trailer_t>())).msgh_context as *const _ as usize
5347 },
5348 52usize,
5349 concat!(
5350 "Offset of field: ",
5351 stringify!(mach_msg_context_trailer_t),
5352 "::",
5353 stringify!(msgh_context)
5354 )
5355 );
5356}
5357#[repr(C)]
5358#[derive(Debug, Copy, Clone)]
5359pub struct msg_labels_t {
5360 pub sender: mach_port_name_t,
5361}
5362#[test]
5363fn bindgen_test_layout_msg_labels_t() {
5364 assert_eq!(
5365 ::std::mem::size_of::<msg_labels_t>(),
5366 4usize,
5367 concat!("Size of: ", stringify!(msg_labels_t))
5368 );
5369 assert_eq!(
5370 ::std::mem::align_of::<msg_labels_t>(),
5371 4usize,
5372 concat!("Alignment of ", stringify!(msg_labels_t))
5373 );
5374 assert_eq!(
5375 unsafe { &(*(::std::ptr::null::<msg_labels_t>())).sender as *const _ as usize },
5376 0usize,
5377 concat!(
5378 "Offset of field: ",
5379 stringify!(msg_labels_t),
5380 "::",
5381 stringify!(sender)
5382 )
5383 );
5384}
5385pub type mach_msg_filter_id = ::std::os::raw::c_int;
5386#[repr(C, packed(4))]
5387#[derive(Debug, Copy, Clone)]
5388pub struct mach_msg_mac_trailer_t {
5389 pub msgh_trailer_type: mach_msg_trailer_type_t,
5390 pub msgh_trailer_size: mach_msg_trailer_size_t,
5391 pub msgh_seqno: mach_port_seqno_t,
5392 pub msgh_sender: security_token_t,
5393 pub msgh_audit: audit_token_t,
5394 pub msgh_context: mach_port_context_t,
5395 pub msgh_ad: mach_msg_filter_id,
5396 pub msgh_labels: msg_labels_t,
5397}
5398#[test]
5399fn bindgen_test_layout_mach_msg_mac_trailer_t() {
5400 assert_eq!(
5401 ::std::mem::size_of::<mach_msg_mac_trailer_t>(),
5402 68usize,
5403 concat!("Size of: ", stringify!(mach_msg_mac_trailer_t))
5404 );
5405 assert_eq!(
5406 ::std::mem::align_of::<mach_msg_mac_trailer_t>(),
5407 4usize,
5408 concat!("Alignment of ", stringify!(mach_msg_mac_trailer_t))
5409 );
5410 assert_eq!(
5411 unsafe {
5412 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_trailer_type as *const _
5413 as usize
5414 },
5415 0usize,
5416 concat!(
5417 "Offset of field: ",
5418 stringify!(mach_msg_mac_trailer_t),
5419 "::",
5420 stringify!(msgh_trailer_type)
5421 )
5422 );
5423 assert_eq!(
5424 unsafe {
5425 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_trailer_size as *const _
5426 as usize
5427 },
5428 4usize,
5429 concat!(
5430 "Offset of field: ",
5431 stringify!(mach_msg_mac_trailer_t),
5432 "::",
5433 stringify!(msgh_trailer_size)
5434 )
5435 );
5436 assert_eq!(
5437 unsafe {
5438 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_seqno as *const _ as usize
5439 },
5440 8usize,
5441 concat!(
5442 "Offset of field: ",
5443 stringify!(mach_msg_mac_trailer_t),
5444 "::",
5445 stringify!(msgh_seqno)
5446 )
5447 );
5448 assert_eq!(
5449 unsafe {
5450 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_sender as *const _ as usize
5451 },
5452 12usize,
5453 concat!(
5454 "Offset of field: ",
5455 stringify!(mach_msg_mac_trailer_t),
5456 "::",
5457 stringify!(msgh_sender)
5458 )
5459 );
5460 assert_eq!(
5461 unsafe {
5462 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_audit as *const _ as usize
5463 },
5464 20usize,
5465 concat!(
5466 "Offset of field: ",
5467 stringify!(mach_msg_mac_trailer_t),
5468 "::",
5469 stringify!(msgh_audit)
5470 )
5471 );
5472 assert_eq!(
5473 unsafe {
5474 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_context as *const _ as usize
5475 },
5476 52usize,
5477 concat!(
5478 "Offset of field: ",
5479 stringify!(mach_msg_mac_trailer_t),
5480 "::",
5481 stringify!(msgh_context)
5482 )
5483 );
5484 assert_eq!(
5485 unsafe { &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_ad as *const _ as usize },
5486 60usize,
5487 concat!(
5488 "Offset of field: ",
5489 stringify!(mach_msg_mac_trailer_t),
5490 "::",
5491 stringify!(msgh_ad)
5492 )
5493 );
5494 assert_eq!(
5495 unsafe {
5496 &(*(::std::ptr::null::<mach_msg_mac_trailer_t>())).msgh_labels as *const _ as usize
5497 },
5498 64usize,
5499 concat!(
5500 "Offset of field: ",
5501 stringify!(mach_msg_mac_trailer_t),
5502 "::",
5503 stringify!(msgh_labels)
5504 )
5505 );
5506}
5507pub type mach_msg_max_trailer_t = mach_msg_mac_trailer_t;
5508pub type mach_msg_format_0_trailer_t = mach_msg_security_trailer_t;
5509extern "C" {
5510 pub static KERNEL_SECURITY_TOKEN: security_token_t;
5511}
5512extern "C" {
5513 pub static KERNEL_AUDIT_TOKEN: audit_token_t;
5514}
5515pub type mach_msg_options_t = integer_t;
5516#[repr(C)]
5517#[derive(Debug, Copy, Clone)]
5518pub struct mach_msg_empty_send_t {
5519 pub header: mach_msg_header_t,
5520}
5521#[test]
5522fn bindgen_test_layout_mach_msg_empty_send_t() {
5523 assert_eq!(
5524 ::std::mem::size_of::<mach_msg_empty_send_t>(),
5525 24usize,
5526 concat!("Size of: ", stringify!(mach_msg_empty_send_t))
5527 );
5528 assert_eq!(
5529 ::std::mem::align_of::<mach_msg_empty_send_t>(),
5530 4usize,
5531 concat!("Alignment of ", stringify!(mach_msg_empty_send_t))
5532 );
5533 assert_eq!(
5534 unsafe { &(*(::std::ptr::null::<mach_msg_empty_send_t>())).header as *const _ as usize },
5535 0usize,
5536 concat!(
5537 "Offset of field: ",
5538 stringify!(mach_msg_empty_send_t),
5539 "::",
5540 stringify!(header)
5541 )
5542 );
5543}
5544#[repr(C)]
5545#[derive(Debug, Copy, Clone)]
5546pub struct mach_msg_empty_rcv_t {
5547 pub header: mach_msg_header_t,
5548 pub trailer: mach_msg_trailer_t,
5549}
5550#[test]
5551fn bindgen_test_layout_mach_msg_empty_rcv_t() {
5552 assert_eq!(
5553 ::std::mem::size_of::<mach_msg_empty_rcv_t>(),
5554 32usize,
5555 concat!("Size of: ", stringify!(mach_msg_empty_rcv_t))
5556 );
5557 assert_eq!(
5558 ::std::mem::align_of::<mach_msg_empty_rcv_t>(),
5559 4usize,
5560 concat!("Alignment of ", stringify!(mach_msg_empty_rcv_t))
5561 );
5562 assert_eq!(
5563 unsafe { &(*(::std::ptr::null::<mach_msg_empty_rcv_t>())).header as *const _ as usize },
5564 0usize,
5565 concat!(
5566 "Offset of field: ",
5567 stringify!(mach_msg_empty_rcv_t),
5568 "::",
5569 stringify!(header)
5570 )
5571 );
5572 assert_eq!(
5573 unsafe { &(*(::std::ptr::null::<mach_msg_empty_rcv_t>())).trailer as *const _ as usize },
5574 24usize,
5575 concat!(
5576 "Offset of field: ",
5577 stringify!(mach_msg_empty_rcv_t),
5578 "::",
5579 stringify!(trailer)
5580 )
5581 );
5582}
5583#[repr(C)]
5584#[derive(Copy, Clone)]
5585pub union mach_msg_empty_t {
5586 pub send: mach_msg_empty_send_t,
5587 pub rcv: mach_msg_empty_rcv_t,
5588 _bindgen_union_align: [u32; 8usize],
5589}
5590#[test]
5591fn bindgen_test_layout_mach_msg_empty_t() {
5592 assert_eq!(
5593 ::std::mem::size_of::<mach_msg_empty_t>(),
5594 32usize,
5595 concat!("Size of: ", stringify!(mach_msg_empty_t))
5596 );
5597 assert_eq!(
5598 ::std::mem::align_of::<mach_msg_empty_t>(),
5599 4usize,
5600 concat!("Alignment of ", stringify!(mach_msg_empty_t))
5601 );
5602 assert_eq!(
5603 unsafe { &(*(::std::ptr::null::<mach_msg_empty_t>())).send as *const _ as usize },
5604 0usize,
5605 concat!(
5606 "Offset of field: ",
5607 stringify!(mach_msg_empty_t),
5608 "::",
5609 stringify!(send)
5610 )
5611 );
5612 assert_eq!(
5613 unsafe { &(*(::std::ptr::null::<mach_msg_empty_t>())).rcv as *const _ as usize },
5614 0usize,
5615 concat!(
5616 "Offset of field: ",
5617 stringify!(mach_msg_empty_t),
5618 "::",
5619 stringify!(rcv)
5620 )
5621 );
5622}
5623pub type mach_msg_type_size_t = natural_t;
5624pub type mach_msg_type_number_t = natural_t;
5625pub type mach_msg_option_t = integer_t;
5626pub type mach_msg_return_t = kern_return_t;
5627extern "C" {
5628 pub fn mach_msg_overwrite(
5629 msg: *mut mach_msg_header_t,
5630 option: mach_msg_option_t,
5631 send_size: mach_msg_size_t,
5632 rcv_size: mach_msg_size_t,
5633 rcv_name: mach_port_name_t,
5634 timeout: mach_msg_timeout_t,
5635 notify: mach_port_name_t,
5636 rcv_msg: *mut mach_msg_header_t,
5637 rcv_limit: mach_msg_size_t,
5638 ) -> mach_msg_return_t;
5639}
5640extern "C" {
5641 pub fn mach_msg(
5642 msg: *mut mach_msg_header_t,
5643 option: mach_msg_option_t,
5644 send_size: mach_msg_size_t,
5645 rcv_size: mach_msg_size_t,
5646 rcv_name: mach_port_name_t,
5647 timeout: mach_msg_timeout_t,
5648 notify: mach_port_name_t,
5649 ) -> mach_msg_return_t;
5650}
5651extern "C" {
5652 pub fn mach_voucher_deallocate(voucher: mach_port_name_t) -> kern_return_t;
5653}
5654pub type sig_atomic_t = ::std::os::raw::c_int;
5655#[repr(C)]
5656#[derive(Debug, Copy, Clone)]
5657pub struct __darwin_i386_thread_state {
5658 pub __eax: ::std::os::raw::c_uint,
5659 pub __ebx: ::std::os::raw::c_uint,
5660 pub __ecx: ::std::os::raw::c_uint,
5661 pub __edx: ::std::os::raw::c_uint,
5662 pub __edi: ::std::os::raw::c_uint,
5663 pub __esi: ::std::os::raw::c_uint,
5664 pub __ebp: ::std::os::raw::c_uint,
5665 pub __esp: ::std::os::raw::c_uint,
5666 pub __ss: ::std::os::raw::c_uint,
5667 pub __eflags: ::std::os::raw::c_uint,
5668 pub __eip: ::std::os::raw::c_uint,
5669 pub __cs: ::std::os::raw::c_uint,
5670 pub __ds: ::std::os::raw::c_uint,
5671 pub __es: ::std::os::raw::c_uint,
5672 pub __fs: ::std::os::raw::c_uint,
5673 pub __gs: ::std::os::raw::c_uint,
5674}
5675#[test]
5676fn bindgen_test_layout___darwin_i386_thread_state() {
5677 assert_eq!(
5678 ::std::mem::size_of::<__darwin_i386_thread_state>(),
5679 64usize,
5680 concat!("Size of: ", stringify!(__darwin_i386_thread_state))
5681 );
5682 assert_eq!(
5683 ::std::mem::align_of::<__darwin_i386_thread_state>(),
5684 4usize,
5685 concat!("Alignment of ", stringify!(__darwin_i386_thread_state))
5686 );
5687 assert_eq!(
5688 unsafe {
5689 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eax as *const _ as usize
5690 },
5691 0usize,
5692 concat!(
5693 "Offset of field: ",
5694 stringify!(__darwin_i386_thread_state),
5695 "::",
5696 stringify!(__eax)
5697 )
5698 );
5699 assert_eq!(
5700 unsafe {
5701 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebx as *const _ as usize
5702 },
5703 4usize,
5704 concat!(
5705 "Offset of field: ",
5706 stringify!(__darwin_i386_thread_state),
5707 "::",
5708 stringify!(__ebx)
5709 )
5710 );
5711 assert_eq!(
5712 unsafe {
5713 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ecx as *const _ as usize
5714 },
5715 8usize,
5716 concat!(
5717 "Offset of field: ",
5718 stringify!(__darwin_i386_thread_state),
5719 "::",
5720 stringify!(__ecx)
5721 )
5722 );
5723 assert_eq!(
5724 unsafe {
5725 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edx as *const _ as usize
5726 },
5727 12usize,
5728 concat!(
5729 "Offset of field: ",
5730 stringify!(__darwin_i386_thread_state),
5731 "::",
5732 stringify!(__edx)
5733 )
5734 );
5735 assert_eq!(
5736 unsafe {
5737 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edi as *const _ as usize
5738 },
5739 16usize,
5740 concat!(
5741 "Offset of field: ",
5742 stringify!(__darwin_i386_thread_state),
5743 "::",
5744 stringify!(__edi)
5745 )
5746 );
5747 assert_eq!(
5748 unsafe {
5749 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esi as *const _ as usize
5750 },
5751 20usize,
5752 concat!(
5753 "Offset of field: ",
5754 stringify!(__darwin_i386_thread_state),
5755 "::",
5756 stringify!(__esi)
5757 )
5758 );
5759 assert_eq!(
5760 unsafe {
5761 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebp as *const _ as usize
5762 },
5763 24usize,
5764 concat!(
5765 "Offset of field: ",
5766 stringify!(__darwin_i386_thread_state),
5767 "::",
5768 stringify!(__ebp)
5769 )
5770 );
5771 assert_eq!(
5772 unsafe {
5773 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esp as *const _ as usize
5774 },
5775 28usize,
5776 concat!(
5777 "Offset of field: ",
5778 stringify!(__darwin_i386_thread_state),
5779 "::",
5780 stringify!(__esp)
5781 )
5782 );
5783 assert_eq!(
5784 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ss as *const _ as usize },
5785 32usize,
5786 concat!(
5787 "Offset of field: ",
5788 stringify!(__darwin_i386_thread_state),
5789 "::",
5790 stringify!(__ss)
5791 )
5792 );
5793 assert_eq!(
5794 unsafe {
5795 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eflags as *const _ as usize
5796 },
5797 36usize,
5798 concat!(
5799 "Offset of field: ",
5800 stringify!(__darwin_i386_thread_state),
5801 "::",
5802 stringify!(__eflags)
5803 )
5804 );
5805 assert_eq!(
5806 unsafe {
5807 &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eip as *const _ as usize
5808 },
5809 40usize,
5810 concat!(
5811 "Offset of field: ",
5812 stringify!(__darwin_i386_thread_state),
5813 "::",
5814 stringify!(__eip)
5815 )
5816 );
5817 assert_eq!(
5818 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__cs as *const _ as usize },
5819 44usize,
5820 concat!(
5821 "Offset of field: ",
5822 stringify!(__darwin_i386_thread_state),
5823 "::",
5824 stringify!(__cs)
5825 )
5826 );
5827 assert_eq!(
5828 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ds as *const _ as usize },
5829 48usize,
5830 concat!(
5831 "Offset of field: ",
5832 stringify!(__darwin_i386_thread_state),
5833 "::",
5834 stringify!(__ds)
5835 )
5836 );
5837 assert_eq!(
5838 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__es as *const _ as usize },
5839 52usize,
5840 concat!(
5841 "Offset of field: ",
5842 stringify!(__darwin_i386_thread_state),
5843 "::",
5844 stringify!(__es)
5845 )
5846 );
5847 assert_eq!(
5848 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__fs as *const _ as usize },
5849 56usize,
5850 concat!(
5851 "Offset of field: ",
5852 stringify!(__darwin_i386_thread_state),
5853 "::",
5854 stringify!(__fs)
5855 )
5856 );
5857 assert_eq!(
5858 unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__gs as *const _ as usize },
5859 60usize,
5860 concat!(
5861 "Offset of field: ",
5862 stringify!(__darwin_i386_thread_state),
5863 "::",
5864 stringify!(__gs)
5865 )
5866 );
5867}
5868#[repr(C)]
5869#[repr(align(2))]
5870#[derive(Debug, Copy, Clone)]
5871pub struct __darwin_fp_control {
5872 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
5873}
5874#[test]
5875fn bindgen_test_layout___darwin_fp_control() {
5876 assert_eq!(
5877 ::std::mem::size_of::<__darwin_fp_control>(),
5878 2usize,
5879 concat!("Size of: ", stringify!(__darwin_fp_control))
5880 );
5881 assert_eq!(
5882 ::std::mem::align_of::<__darwin_fp_control>(),
5883 2usize,
5884 concat!("Alignment of ", stringify!(__darwin_fp_control))
5885 );
5886}
5887impl __darwin_fp_control {
5888 #[inline]
5889 pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
5890 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
5891 }
5892 #[inline]
5893 pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
5894 unsafe {
5895 let val: u16 = ::std::mem::transmute(val);
5896 self._bitfield_1.set(0usize, 1u8, val as u64)
5897 }
5898 }
5899 #[inline]
5900 pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
5901 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
5902 }
5903 #[inline]
5904 pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
5905 unsafe {
5906 let val: u16 = ::std::mem::transmute(val);
5907 self._bitfield_1.set(1usize, 1u8, val as u64)
5908 }
5909 }
5910 #[inline]
5911 pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
5912 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
5913 }
5914 #[inline]
5915 pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
5916 unsafe {
5917 let val: u16 = ::std::mem::transmute(val);
5918 self._bitfield_1.set(2usize, 1u8, val as u64)
5919 }
5920 }
5921 #[inline]
5922 pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
5923 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
5924 }
5925 #[inline]
5926 pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
5927 unsafe {
5928 let val: u16 = ::std::mem::transmute(val);
5929 self._bitfield_1.set(3usize, 1u8, val as u64)
5930 }
5931 }
5932 #[inline]
5933 pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
5934 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
5935 }
5936 #[inline]
5937 pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
5938 unsafe {
5939 let val: u16 = ::std::mem::transmute(val);
5940 self._bitfield_1.set(4usize, 1u8, val as u64)
5941 }
5942 }
5943 #[inline]
5944 pub fn __precis(&self) -> ::std::os::raw::c_ushort {
5945 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
5946 }
5947 #[inline]
5948 pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
5949 unsafe {
5950 let val: u16 = ::std::mem::transmute(val);
5951 self._bitfield_1.set(5usize, 1u8, val as u64)
5952 }
5953 }
5954 #[inline]
5955 pub fn __pc(&self) -> ::std::os::raw::c_ushort {
5956 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) }
5957 }
5958 #[inline]
5959 pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) {
5960 unsafe {
5961 let val: u16 = ::std::mem::transmute(val);
5962 self._bitfield_1.set(8usize, 2u8, val as u64)
5963 }
5964 }
5965 #[inline]
5966 pub fn __rc(&self) -> ::std::os::raw::c_ushort {
5967 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) }
5968 }
5969 #[inline]
5970 pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) {
5971 unsafe {
5972 let val: u16 = ::std::mem::transmute(val);
5973 self._bitfield_1.set(10usize, 2u8, val as u64)
5974 }
5975 }
5976 #[inline]
5977 pub fn new_bitfield_1(
5978 __invalid: ::std::os::raw::c_ushort,
5979 __denorm: ::std::os::raw::c_ushort,
5980 __zdiv: ::std::os::raw::c_ushort,
5981 __ovrfl: ::std::os::raw::c_ushort,
5982 __undfl: ::std::os::raw::c_ushort,
5983 __precis: ::std::os::raw::c_ushort,
5984 __pc: ::std::os::raw::c_ushort,
5985 __rc: ::std::os::raw::c_ushort,
5986 ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> {
5987 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> =
5988 Default::default();
5989 __bindgen_bitfield_unit.set(0usize, 1u8, {
5990 let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
5991 __invalid as u64
5992 });
5993 __bindgen_bitfield_unit.set(1usize, 1u8, {
5994 let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
5995 __denorm as u64
5996 });
5997 __bindgen_bitfield_unit.set(2usize, 1u8, {
5998 let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
5999 __zdiv as u64
6000 });
6001 __bindgen_bitfield_unit.set(3usize, 1u8, {
6002 let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
6003 __ovrfl as u64
6004 });
6005 __bindgen_bitfield_unit.set(4usize, 1u8, {
6006 let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
6007 __undfl as u64
6008 });
6009 __bindgen_bitfield_unit.set(5usize, 1u8, {
6010 let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
6011 __precis as u64
6012 });
6013 __bindgen_bitfield_unit.set(8usize, 2u8, {
6014 let __pc: u16 = unsafe { ::std::mem::transmute(__pc) };
6015 __pc as u64
6016 });
6017 __bindgen_bitfield_unit.set(10usize, 2u8, {
6018 let __rc: u16 = unsafe { ::std::mem::transmute(__rc) };
6019 __rc as u64
6020 });
6021 __bindgen_bitfield_unit
6022 }
6023}
6024pub type __darwin_fp_control_t = __darwin_fp_control;
6025#[repr(C)]
6026#[repr(align(2))]
6027#[derive(Debug, Copy, Clone)]
6028pub struct __darwin_fp_status {
6029 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
6030}
6031#[test]
6032fn bindgen_test_layout___darwin_fp_status() {
6033 assert_eq!(
6034 ::std::mem::size_of::<__darwin_fp_status>(),
6035 2usize,
6036 concat!("Size of: ", stringify!(__darwin_fp_status))
6037 );
6038 assert_eq!(
6039 ::std::mem::align_of::<__darwin_fp_status>(),
6040 2usize,
6041 concat!("Alignment of ", stringify!(__darwin_fp_status))
6042 );
6043}
6044impl __darwin_fp_status {
6045 #[inline]
6046 pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
6047 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
6048 }
6049 #[inline]
6050 pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
6051 unsafe {
6052 let val: u16 = ::std::mem::transmute(val);
6053 self._bitfield_1.set(0usize, 1u8, val as u64)
6054 }
6055 }
6056 #[inline]
6057 pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
6058 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
6059 }
6060 #[inline]
6061 pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
6062 unsafe {
6063 let val: u16 = ::std::mem::transmute(val);
6064 self._bitfield_1.set(1usize, 1u8, val as u64)
6065 }
6066 }
6067 #[inline]
6068 pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
6069 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
6070 }
6071 #[inline]
6072 pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
6073 unsafe {
6074 let val: u16 = ::std::mem::transmute(val);
6075 self._bitfield_1.set(2usize, 1u8, val as u64)
6076 }
6077 }
6078 #[inline]
6079 pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
6080 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
6081 }
6082 #[inline]
6083 pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
6084 unsafe {
6085 let val: u16 = ::std::mem::transmute(val);
6086 self._bitfield_1.set(3usize, 1u8, val as u64)
6087 }
6088 }
6089 #[inline]
6090 pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
6091 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
6092 }
6093 #[inline]
6094 pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
6095 unsafe {
6096 let val: u16 = ::std::mem::transmute(val);
6097 self._bitfield_1.set(4usize, 1u8, val as u64)
6098 }
6099 }
6100 #[inline]
6101 pub fn __precis(&self) -> ::std::os::raw::c_ushort {
6102 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
6103 }
6104 #[inline]
6105 pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
6106 unsafe {
6107 let val: u16 = ::std::mem::transmute(val);
6108 self._bitfield_1.set(5usize, 1u8, val as u64)
6109 }
6110 }
6111 #[inline]
6112 pub fn __stkflt(&self) -> ::std::os::raw::c_ushort {
6113 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) }
6114 }
6115 #[inline]
6116 pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) {
6117 unsafe {
6118 let val: u16 = ::std::mem::transmute(val);
6119 self._bitfield_1.set(6usize, 1u8, val as u64)
6120 }
6121 }
6122 #[inline]
6123 pub fn __errsumm(&self) -> ::std::os::raw::c_ushort {
6124 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
6125 }
6126 #[inline]
6127 pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) {
6128 unsafe {
6129 let val: u16 = ::std::mem::transmute(val);
6130 self._bitfield_1.set(7usize, 1u8, val as u64)
6131 }
6132 }
6133 #[inline]
6134 pub fn __c0(&self) -> ::std::os::raw::c_ushort {
6135 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
6136 }
6137 #[inline]
6138 pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) {
6139 unsafe {
6140 let val: u16 = ::std::mem::transmute(val);
6141 self._bitfield_1.set(8usize, 1u8, val as u64)
6142 }
6143 }
6144 #[inline]
6145 pub fn __c1(&self) -> ::std::os::raw::c_ushort {
6146 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
6147 }
6148 #[inline]
6149 pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) {
6150 unsafe {
6151 let val: u16 = ::std::mem::transmute(val);
6152 self._bitfield_1.set(9usize, 1u8, val as u64)
6153 }
6154 }
6155 #[inline]
6156 pub fn __c2(&self) -> ::std::os::raw::c_ushort {
6157 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
6158 }
6159 #[inline]
6160 pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) {
6161 unsafe {
6162 let val: u16 = ::std::mem::transmute(val);
6163 self._bitfield_1.set(10usize, 1u8, val as u64)
6164 }
6165 }
6166 #[inline]
6167 pub fn __tos(&self) -> ::std::os::raw::c_ushort {
6168 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) }
6169 }
6170 #[inline]
6171 pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) {
6172 unsafe {
6173 let val: u16 = ::std::mem::transmute(val);
6174 self._bitfield_1.set(11usize, 3u8, val as u64)
6175 }
6176 }
6177 #[inline]
6178 pub fn __c3(&self) -> ::std::os::raw::c_ushort {
6179 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
6180 }
6181 #[inline]
6182 pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) {
6183 unsafe {
6184 let val: u16 = ::std::mem::transmute(val);
6185 self._bitfield_1.set(14usize, 1u8, val as u64)
6186 }
6187 }
6188 #[inline]
6189 pub fn __busy(&self) -> ::std::os::raw::c_ushort {
6190 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
6191 }
6192 #[inline]
6193 pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) {
6194 unsafe {
6195 let val: u16 = ::std::mem::transmute(val);
6196 self._bitfield_1.set(15usize, 1u8, val as u64)
6197 }
6198 }
6199 #[inline]
6200 pub fn new_bitfield_1(
6201 __invalid: ::std::os::raw::c_ushort,
6202 __denorm: ::std::os::raw::c_ushort,
6203 __zdiv: ::std::os::raw::c_ushort,
6204 __ovrfl: ::std::os::raw::c_ushort,
6205 __undfl: ::std::os::raw::c_ushort,
6206 __precis: ::std::os::raw::c_ushort,
6207 __stkflt: ::std::os::raw::c_ushort,
6208 __errsumm: ::std::os::raw::c_ushort,
6209 __c0: ::std::os::raw::c_ushort,
6210 __c1: ::std::os::raw::c_ushort,
6211 __c2: ::std::os::raw::c_ushort,
6212 __tos: ::std::os::raw::c_ushort,
6213 __c3: ::std::os::raw::c_ushort,
6214 __busy: ::std::os::raw::c_ushort,
6215 ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> {
6216 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> =
6217 Default::default();
6218 __bindgen_bitfield_unit.set(0usize, 1u8, {
6219 let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
6220 __invalid as u64
6221 });
6222 __bindgen_bitfield_unit.set(1usize, 1u8, {
6223 let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
6224 __denorm as u64
6225 });
6226 __bindgen_bitfield_unit.set(2usize, 1u8, {
6227 let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
6228 __zdiv as u64
6229 });
6230 __bindgen_bitfield_unit.set(3usize, 1u8, {
6231 let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
6232 __ovrfl as u64
6233 });
6234 __bindgen_bitfield_unit.set(4usize, 1u8, {
6235 let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
6236 __undfl as u64
6237 });
6238 __bindgen_bitfield_unit.set(5usize, 1u8, {
6239 let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
6240 __precis as u64
6241 });
6242 __bindgen_bitfield_unit.set(6usize, 1u8, {
6243 let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) };
6244 __stkflt as u64
6245 });
6246 __bindgen_bitfield_unit.set(7usize, 1u8, {
6247 let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) };
6248 __errsumm as u64
6249 });
6250 __bindgen_bitfield_unit.set(8usize, 1u8, {
6251 let __c0: u16 = unsafe { ::std::mem::transmute(__c0) };
6252 __c0 as u64
6253 });
6254 __bindgen_bitfield_unit.set(9usize, 1u8, {
6255 let __c1: u16 = unsafe { ::std::mem::transmute(__c1) };
6256 __c1 as u64
6257 });
6258 __bindgen_bitfield_unit.set(10usize, 1u8, {
6259 let __c2: u16 = unsafe { ::std::mem::transmute(__c2) };
6260 __c2 as u64
6261 });
6262 __bindgen_bitfield_unit.set(11usize, 3u8, {
6263 let __tos: u16 = unsafe { ::std::mem::transmute(__tos) };
6264 __tos as u64
6265 });
6266 __bindgen_bitfield_unit.set(14usize, 1u8, {
6267 let __c3: u16 = unsafe { ::std::mem::transmute(__c3) };
6268 __c3 as u64
6269 });
6270 __bindgen_bitfield_unit.set(15usize, 1u8, {
6271 let __busy: u16 = unsafe { ::std::mem::transmute(__busy) };
6272 __busy as u64
6273 });
6274 __bindgen_bitfield_unit
6275 }
6276}
6277pub type __darwin_fp_status_t = __darwin_fp_status;
6278#[repr(C)]
6279#[derive(Debug, Copy, Clone)]
6280pub struct __darwin_mmst_reg {
6281 pub __mmst_reg: [::std::os::raw::c_char; 10usize],
6282 pub __mmst_rsrv: [::std::os::raw::c_char; 6usize],
6283}
6284#[test]
6285fn bindgen_test_layout___darwin_mmst_reg() {
6286 assert_eq!(
6287 ::std::mem::size_of::<__darwin_mmst_reg>(),
6288 16usize,
6289 concat!("Size of: ", stringify!(__darwin_mmst_reg))
6290 );
6291 assert_eq!(
6292 ::std::mem::align_of::<__darwin_mmst_reg>(),
6293 1usize,
6294 concat!("Alignment of ", stringify!(__darwin_mmst_reg))
6295 );
6296 assert_eq!(
6297 unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_reg as *const _ as usize },
6298 0usize,
6299 concat!(
6300 "Offset of field: ",
6301 stringify!(__darwin_mmst_reg),
6302 "::",
6303 stringify!(__mmst_reg)
6304 )
6305 );
6306 assert_eq!(
6307 unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_rsrv as *const _ as usize },
6308 10usize,
6309 concat!(
6310 "Offset of field: ",
6311 stringify!(__darwin_mmst_reg),
6312 "::",
6313 stringify!(__mmst_rsrv)
6314 )
6315 );
6316}
6317#[repr(C)]
6318#[derive(Debug, Copy, Clone)]
6319pub struct __darwin_xmm_reg {
6320 pub __xmm_reg: [::std::os::raw::c_char; 16usize],
6321}
6322#[test]
6323fn bindgen_test_layout___darwin_xmm_reg() {
6324 assert_eq!(
6325 ::std::mem::size_of::<__darwin_xmm_reg>(),
6326 16usize,
6327 concat!("Size of: ", stringify!(__darwin_xmm_reg))
6328 );
6329 assert_eq!(
6330 ::std::mem::align_of::<__darwin_xmm_reg>(),
6331 1usize,
6332 concat!("Alignment of ", stringify!(__darwin_xmm_reg))
6333 );
6334 assert_eq!(
6335 unsafe { &(*(::std::ptr::null::<__darwin_xmm_reg>())).__xmm_reg as *const _ as usize },
6336 0usize,
6337 concat!(
6338 "Offset of field: ",
6339 stringify!(__darwin_xmm_reg),
6340 "::",
6341 stringify!(__xmm_reg)
6342 )
6343 );
6344}
6345#[repr(C)]
6346#[derive(Debug, Copy, Clone)]
6347pub struct __darwin_ymm_reg {
6348 pub __ymm_reg: [::std::os::raw::c_char; 32usize],
6349}
6350#[test]
6351fn bindgen_test_layout___darwin_ymm_reg() {
6352 assert_eq!(
6353 ::std::mem::size_of::<__darwin_ymm_reg>(),
6354 32usize,
6355 concat!("Size of: ", stringify!(__darwin_ymm_reg))
6356 );
6357 assert_eq!(
6358 ::std::mem::align_of::<__darwin_ymm_reg>(),
6359 1usize,
6360 concat!("Alignment of ", stringify!(__darwin_ymm_reg))
6361 );
6362 assert_eq!(
6363 unsafe { &(*(::std::ptr::null::<__darwin_ymm_reg>())).__ymm_reg as *const _ as usize },
6364 0usize,
6365 concat!(
6366 "Offset of field: ",
6367 stringify!(__darwin_ymm_reg),
6368 "::",
6369 stringify!(__ymm_reg)
6370 )
6371 );
6372}
6373#[repr(C)]
6374#[derive(Copy, Clone)]
6375pub struct __darwin_zmm_reg {
6376 pub __zmm_reg: [::std::os::raw::c_char; 64usize],
6377}
6378#[test]
6379fn bindgen_test_layout___darwin_zmm_reg() {
6380 assert_eq!(
6381 ::std::mem::size_of::<__darwin_zmm_reg>(),
6382 64usize,
6383 concat!("Size of: ", stringify!(__darwin_zmm_reg))
6384 );
6385 assert_eq!(
6386 ::std::mem::align_of::<__darwin_zmm_reg>(),
6387 1usize,
6388 concat!("Alignment of ", stringify!(__darwin_zmm_reg))
6389 );
6390 assert_eq!(
6391 unsafe { &(*(::std::ptr::null::<__darwin_zmm_reg>())).__zmm_reg as *const _ as usize },
6392 0usize,
6393 concat!(
6394 "Offset of field: ",
6395 stringify!(__darwin_zmm_reg),
6396 "::",
6397 stringify!(__zmm_reg)
6398 )
6399 );
6400}
6401#[repr(C)]
6402#[derive(Debug, Copy, Clone)]
6403pub struct __darwin_opmask_reg {
6404 pub __opmask_reg: [::std::os::raw::c_char; 8usize],
6405}
6406#[test]
6407fn bindgen_test_layout___darwin_opmask_reg() {
6408 assert_eq!(
6409 ::std::mem::size_of::<__darwin_opmask_reg>(),
6410 8usize,
6411 concat!("Size of: ", stringify!(__darwin_opmask_reg))
6412 );
6413 assert_eq!(
6414 ::std::mem::align_of::<__darwin_opmask_reg>(),
6415 1usize,
6416 concat!("Alignment of ", stringify!(__darwin_opmask_reg))
6417 );
6418 assert_eq!(
6419 unsafe {
6420 &(*(::std::ptr::null::<__darwin_opmask_reg>())).__opmask_reg as *const _ as usize
6421 },
6422 0usize,
6423 concat!(
6424 "Offset of field: ",
6425 stringify!(__darwin_opmask_reg),
6426 "::",
6427 stringify!(__opmask_reg)
6428 )
6429 );
6430}
6431#[repr(C)]
6432#[derive(Copy, Clone)]
6433pub struct __darwin_i386_float_state {
6434 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
6435 pub __fpu_fcw: __darwin_fp_control,
6436 pub __fpu_fsw: __darwin_fp_status,
6437 pub __fpu_ftw: __uint8_t,
6438 pub __fpu_rsrv1: __uint8_t,
6439 pub __fpu_fop: __uint16_t,
6440 pub __fpu_ip: __uint32_t,
6441 pub __fpu_cs: __uint16_t,
6442 pub __fpu_rsrv2: __uint16_t,
6443 pub __fpu_dp: __uint32_t,
6444 pub __fpu_ds: __uint16_t,
6445 pub __fpu_rsrv3: __uint16_t,
6446 pub __fpu_mxcsr: __uint32_t,
6447 pub __fpu_mxcsrmask: __uint32_t,
6448 pub __fpu_stmm0: __darwin_mmst_reg,
6449 pub __fpu_stmm1: __darwin_mmst_reg,
6450 pub __fpu_stmm2: __darwin_mmst_reg,
6451 pub __fpu_stmm3: __darwin_mmst_reg,
6452 pub __fpu_stmm4: __darwin_mmst_reg,
6453 pub __fpu_stmm5: __darwin_mmst_reg,
6454 pub __fpu_stmm6: __darwin_mmst_reg,
6455 pub __fpu_stmm7: __darwin_mmst_reg,
6456 pub __fpu_xmm0: __darwin_xmm_reg,
6457 pub __fpu_xmm1: __darwin_xmm_reg,
6458 pub __fpu_xmm2: __darwin_xmm_reg,
6459 pub __fpu_xmm3: __darwin_xmm_reg,
6460 pub __fpu_xmm4: __darwin_xmm_reg,
6461 pub __fpu_xmm5: __darwin_xmm_reg,
6462 pub __fpu_xmm6: __darwin_xmm_reg,
6463 pub __fpu_xmm7: __darwin_xmm_reg,
6464 pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
6465 pub __fpu_reserved1: ::std::os::raw::c_int,
6466}
6467#[test]
6468fn bindgen_test_layout___darwin_i386_float_state() {
6469 assert_eq!(
6470 ::std::mem::size_of::<__darwin_i386_float_state>(),
6471 524usize,
6472 concat!("Size of: ", stringify!(__darwin_i386_float_state))
6473 );
6474 assert_eq!(
6475 ::std::mem::align_of::<__darwin_i386_float_state>(),
6476 4usize,
6477 concat!("Alignment of ", stringify!(__darwin_i386_float_state))
6478 );
6479 assert_eq!(
6480 unsafe {
6481 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved as *const _
6482 as usize
6483 },
6484 0usize,
6485 concat!(
6486 "Offset of field: ",
6487 stringify!(__darwin_i386_float_state),
6488 "::",
6489 stringify!(__fpu_reserved)
6490 )
6491 );
6492 assert_eq!(
6493 unsafe {
6494 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fcw as *const _ as usize
6495 },
6496 8usize,
6497 concat!(
6498 "Offset of field: ",
6499 stringify!(__darwin_i386_float_state),
6500 "::",
6501 stringify!(__fpu_fcw)
6502 )
6503 );
6504 assert_eq!(
6505 unsafe {
6506 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fsw as *const _ as usize
6507 },
6508 10usize,
6509 concat!(
6510 "Offset of field: ",
6511 stringify!(__darwin_i386_float_state),
6512 "::",
6513 stringify!(__fpu_fsw)
6514 )
6515 );
6516 assert_eq!(
6517 unsafe {
6518 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ftw as *const _ as usize
6519 },
6520 12usize,
6521 concat!(
6522 "Offset of field: ",
6523 stringify!(__darwin_i386_float_state),
6524 "::",
6525 stringify!(__fpu_ftw)
6526 )
6527 );
6528 assert_eq!(
6529 unsafe {
6530 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv1 as *const _ as usize
6531 },
6532 13usize,
6533 concat!(
6534 "Offset of field: ",
6535 stringify!(__darwin_i386_float_state),
6536 "::",
6537 stringify!(__fpu_rsrv1)
6538 )
6539 );
6540 assert_eq!(
6541 unsafe {
6542 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fop as *const _ as usize
6543 },
6544 14usize,
6545 concat!(
6546 "Offset of field: ",
6547 stringify!(__darwin_i386_float_state),
6548 "::",
6549 stringify!(__fpu_fop)
6550 )
6551 );
6552 assert_eq!(
6553 unsafe {
6554 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ip as *const _ as usize
6555 },
6556 16usize,
6557 concat!(
6558 "Offset of field: ",
6559 stringify!(__darwin_i386_float_state),
6560 "::",
6561 stringify!(__fpu_ip)
6562 )
6563 );
6564 assert_eq!(
6565 unsafe {
6566 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_cs as *const _ as usize
6567 },
6568 20usize,
6569 concat!(
6570 "Offset of field: ",
6571 stringify!(__darwin_i386_float_state),
6572 "::",
6573 stringify!(__fpu_cs)
6574 )
6575 );
6576 assert_eq!(
6577 unsafe {
6578 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv2 as *const _ as usize
6579 },
6580 22usize,
6581 concat!(
6582 "Offset of field: ",
6583 stringify!(__darwin_i386_float_state),
6584 "::",
6585 stringify!(__fpu_rsrv2)
6586 )
6587 );
6588 assert_eq!(
6589 unsafe {
6590 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_dp as *const _ as usize
6591 },
6592 24usize,
6593 concat!(
6594 "Offset of field: ",
6595 stringify!(__darwin_i386_float_state),
6596 "::",
6597 stringify!(__fpu_dp)
6598 )
6599 );
6600 assert_eq!(
6601 unsafe {
6602 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ds as *const _ as usize
6603 },
6604 28usize,
6605 concat!(
6606 "Offset of field: ",
6607 stringify!(__darwin_i386_float_state),
6608 "::",
6609 stringify!(__fpu_ds)
6610 )
6611 );
6612 assert_eq!(
6613 unsafe {
6614 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv3 as *const _ as usize
6615 },
6616 30usize,
6617 concat!(
6618 "Offset of field: ",
6619 stringify!(__darwin_i386_float_state),
6620 "::",
6621 stringify!(__fpu_rsrv3)
6622 )
6623 );
6624 assert_eq!(
6625 unsafe {
6626 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsr as *const _ as usize
6627 },
6628 32usize,
6629 concat!(
6630 "Offset of field: ",
6631 stringify!(__darwin_i386_float_state),
6632 "::",
6633 stringify!(__fpu_mxcsr)
6634 )
6635 );
6636 assert_eq!(
6637 unsafe {
6638 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsrmask as *const _
6639 as usize
6640 },
6641 36usize,
6642 concat!(
6643 "Offset of field: ",
6644 stringify!(__darwin_i386_float_state),
6645 "::",
6646 stringify!(__fpu_mxcsrmask)
6647 )
6648 );
6649 assert_eq!(
6650 unsafe {
6651 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm0 as *const _ as usize
6652 },
6653 40usize,
6654 concat!(
6655 "Offset of field: ",
6656 stringify!(__darwin_i386_float_state),
6657 "::",
6658 stringify!(__fpu_stmm0)
6659 )
6660 );
6661 assert_eq!(
6662 unsafe {
6663 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm1 as *const _ as usize
6664 },
6665 56usize,
6666 concat!(
6667 "Offset of field: ",
6668 stringify!(__darwin_i386_float_state),
6669 "::",
6670 stringify!(__fpu_stmm1)
6671 )
6672 );
6673 assert_eq!(
6674 unsafe {
6675 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm2 as *const _ as usize
6676 },
6677 72usize,
6678 concat!(
6679 "Offset of field: ",
6680 stringify!(__darwin_i386_float_state),
6681 "::",
6682 stringify!(__fpu_stmm2)
6683 )
6684 );
6685 assert_eq!(
6686 unsafe {
6687 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm3 as *const _ as usize
6688 },
6689 88usize,
6690 concat!(
6691 "Offset of field: ",
6692 stringify!(__darwin_i386_float_state),
6693 "::",
6694 stringify!(__fpu_stmm3)
6695 )
6696 );
6697 assert_eq!(
6698 unsafe {
6699 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm4 as *const _ as usize
6700 },
6701 104usize,
6702 concat!(
6703 "Offset of field: ",
6704 stringify!(__darwin_i386_float_state),
6705 "::",
6706 stringify!(__fpu_stmm4)
6707 )
6708 );
6709 assert_eq!(
6710 unsafe {
6711 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm5 as *const _ as usize
6712 },
6713 120usize,
6714 concat!(
6715 "Offset of field: ",
6716 stringify!(__darwin_i386_float_state),
6717 "::",
6718 stringify!(__fpu_stmm5)
6719 )
6720 );
6721 assert_eq!(
6722 unsafe {
6723 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm6 as *const _ as usize
6724 },
6725 136usize,
6726 concat!(
6727 "Offset of field: ",
6728 stringify!(__darwin_i386_float_state),
6729 "::",
6730 stringify!(__fpu_stmm6)
6731 )
6732 );
6733 assert_eq!(
6734 unsafe {
6735 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm7 as *const _ as usize
6736 },
6737 152usize,
6738 concat!(
6739 "Offset of field: ",
6740 stringify!(__darwin_i386_float_state),
6741 "::",
6742 stringify!(__fpu_stmm7)
6743 )
6744 );
6745 assert_eq!(
6746 unsafe {
6747 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm0 as *const _ as usize
6748 },
6749 168usize,
6750 concat!(
6751 "Offset of field: ",
6752 stringify!(__darwin_i386_float_state),
6753 "::",
6754 stringify!(__fpu_xmm0)
6755 )
6756 );
6757 assert_eq!(
6758 unsafe {
6759 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm1 as *const _ as usize
6760 },
6761 184usize,
6762 concat!(
6763 "Offset of field: ",
6764 stringify!(__darwin_i386_float_state),
6765 "::",
6766 stringify!(__fpu_xmm1)
6767 )
6768 );
6769 assert_eq!(
6770 unsafe {
6771 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm2 as *const _ as usize
6772 },
6773 200usize,
6774 concat!(
6775 "Offset of field: ",
6776 stringify!(__darwin_i386_float_state),
6777 "::",
6778 stringify!(__fpu_xmm2)
6779 )
6780 );
6781 assert_eq!(
6782 unsafe {
6783 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm3 as *const _ as usize
6784 },
6785 216usize,
6786 concat!(
6787 "Offset of field: ",
6788 stringify!(__darwin_i386_float_state),
6789 "::",
6790 stringify!(__fpu_xmm3)
6791 )
6792 );
6793 assert_eq!(
6794 unsafe {
6795 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm4 as *const _ as usize
6796 },
6797 232usize,
6798 concat!(
6799 "Offset of field: ",
6800 stringify!(__darwin_i386_float_state),
6801 "::",
6802 stringify!(__fpu_xmm4)
6803 )
6804 );
6805 assert_eq!(
6806 unsafe {
6807 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm5 as *const _ as usize
6808 },
6809 248usize,
6810 concat!(
6811 "Offset of field: ",
6812 stringify!(__darwin_i386_float_state),
6813 "::",
6814 stringify!(__fpu_xmm5)
6815 )
6816 );
6817 assert_eq!(
6818 unsafe {
6819 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm6 as *const _ as usize
6820 },
6821 264usize,
6822 concat!(
6823 "Offset of field: ",
6824 stringify!(__darwin_i386_float_state),
6825 "::",
6826 stringify!(__fpu_xmm6)
6827 )
6828 );
6829 assert_eq!(
6830 unsafe {
6831 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm7 as *const _ as usize
6832 },
6833 280usize,
6834 concat!(
6835 "Offset of field: ",
6836 stringify!(__darwin_i386_float_state),
6837 "::",
6838 stringify!(__fpu_xmm7)
6839 )
6840 );
6841 assert_eq!(
6842 unsafe {
6843 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv4 as *const _ as usize
6844 },
6845 296usize,
6846 concat!(
6847 "Offset of field: ",
6848 stringify!(__darwin_i386_float_state),
6849 "::",
6850 stringify!(__fpu_rsrv4)
6851 )
6852 );
6853 assert_eq!(
6854 unsafe {
6855 &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved1 as *const _
6856 as usize
6857 },
6858 520usize,
6859 concat!(
6860 "Offset of field: ",
6861 stringify!(__darwin_i386_float_state),
6862 "::",
6863 stringify!(__fpu_reserved1)
6864 )
6865 );
6866}
6867#[repr(C)]
6868#[derive(Copy, Clone)]
6869pub struct __darwin_i386_avx_state {
6870 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
6871 pub __fpu_fcw: __darwin_fp_control,
6872 pub __fpu_fsw: __darwin_fp_status,
6873 pub __fpu_ftw: __uint8_t,
6874 pub __fpu_rsrv1: __uint8_t,
6875 pub __fpu_fop: __uint16_t,
6876 pub __fpu_ip: __uint32_t,
6877 pub __fpu_cs: __uint16_t,
6878 pub __fpu_rsrv2: __uint16_t,
6879 pub __fpu_dp: __uint32_t,
6880 pub __fpu_ds: __uint16_t,
6881 pub __fpu_rsrv3: __uint16_t,
6882 pub __fpu_mxcsr: __uint32_t,
6883 pub __fpu_mxcsrmask: __uint32_t,
6884 pub __fpu_stmm0: __darwin_mmst_reg,
6885 pub __fpu_stmm1: __darwin_mmst_reg,
6886 pub __fpu_stmm2: __darwin_mmst_reg,
6887 pub __fpu_stmm3: __darwin_mmst_reg,
6888 pub __fpu_stmm4: __darwin_mmst_reg,
6889 pub __fpu_stmm5: __darwin_mmst_reg,
6890 pub __fpu_stmm6: __darwin_mmst_reg,
6891 pub __fpu_stmm7: __darwin_mmst_reg,
6892 pub __fpu_xmm0: __darwin_xmm_reg,
6893 pub __fpu_xmm1: __darwin_xmm_reg,
6894 pub __fpu_xmm2: __darwin_xmm_reg,
6895 pub __fpu_xmm3: __darwin_xmm_reg,
6896 pub __fpu_xmm4: __darwin_xmm_reg,
6897 pub __fpu_xmm5: __darwin_xmm_reg,
6898 pub __fpu_xmm6: __darwin_xmm_reg,
6899 pub __fpu_xmm7: __darwin_xmm_reg,
6900 pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
6901 pub __fpu_reserved1: ::std::os::raw::c_int,
6902 pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
6903 pub __fpu_ymmh0: __darwin_xmm_reg,
6904 pub __fpu_ymmh1: __darwin_xmm_reg,
6905 pub __fpu_ymmh2: __darwin_xmm_reg,
6906 pub __fpu_ymmh3: __darwin_xmm_reg,
6907 pub __fpu_ymmh4: __darwin_xmm_reg,
6908 pub __fpu_ymmh5: __darwin_xmm_reg,
6909 pub __fpu_ymmh6: __darwin_xmm_reg,
6910 pub __fpu_ymmh7: __darwin_xmm_reg,
6911}
6912#[test]
6913fn bindgen_test_layout___darwin_i386_avx_state() {
6914 assert_eq!(
6915 ::std::mem::size_of::<__darwin_i386_avx_state>(),
6916 716usize,
6917 concat!("Size of: ", stringify!(__darwin_i386_avx_state))
6918 );
6919 assert_eq!(
6920 ::std::mem::align_of::<__darwin_i386_avx_state>(),
6921 4usize,
6922 concat!("Alignment of ", stringify!(__darwin_i386_avx_state))
6923 );
6924 assert_eq!(
6925 unsafe {
6926 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved as *const _ as usize
6927 },
6928 0usize,
6929 concat!(
6930 "Offset of field: ",
6931 stringify!(__darwin_i386_avx_state),
6932 "::",
6933 stringify!(__fpu_reserved)
6934 )
6935 );
6936 assert_eq!(
6937 unsafe {
6938 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fcw as *const _ as usize
6939 },
6940 8usize,
6941 concat!(
6942 "Offset of field: ",
6943 stringify!(__darwin_i386_avx_state),
6944 "::",
6945 stringify!(__fpu_fcw)
6946 )
6947 );
6948 assert_eq!(
6949 unsafe {
6950 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fsw as *const _ as usize
6951 },
6952 10usize,
6953 concat!(
6954 "Offset of field: ",
6955 stringify!(__darwin_i386_avx_state),
6956 "::",
6957 stringify!(__fpu_fsw)
6958 )
6959 );
6960 assert_eq!(
6961 unsafe {
6962 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ftw as *const _ as usize
6963 },
6964 12usize,
6965 concat!(
6966 "Offset of field: ",
6967 stringify!(__darwin_i386_avx_state),
6968 "::",
6969 stringify!(__fpu_ftw)
6970 )
6971 );
6972 assert_eq!(
6973 unsafe {
6974 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv1 as *const _ as usize
6975 },
6976 13usize,
6977 concat!(
6978 "Offset of field: ",
6979 stringify!(__darwin_i386_avx_state),
6980 "::",
6981 stringify!(__fpu_rsrv1)
6982 )
6983 );
6984 assert_eq!(
6985 unsafe {
6986 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fop as *const _ as usize
6987 },
6988 14usize,
6989 concat!(
6990 "Offset of field: ",
6991 stringify!(__darwin_i386_avx_state),
6992 "::",
6993 stringify!(__fpu_fop)
6994 )
6995 );
6996 assert_eq!(
6997 unsafe {
6998 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ip as *const _ as usize
6999 },
7000 16usize,
7001 concat!(
7002 "Offset of field: ",
7003 stringify!(__darwin_i386_avx_state),
7004 "::",
7005 stringify!(__fpu_ip)
7006 )
7007 );
7008 assert_eq!(
7009 unsafe {
7010 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_cs as *const _ as usize
7011 },
7012 20usize,
7013 concat!(
7014 "Offset of field: ",
7015 stringify!(__darwin_i386_avx_state),
7016 "::",
7017 stringify!(__fpu_cs)
7018 )
7019 );
7020 assert_eq!(
7021 unsafe {
7022 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv2 as *const _ as usize
7023 },
7024 22usize,
7025 concat!(
7026 "Offset of field: ",
7027 stringify!(__darwin_i386_avx_state),
7028 "::",
7029 stringify!(__fpu_rsrv2)
7030 )
7031 );
7032 assert_eq!(
7033 unsafe {
7034 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_dp as *const _ as usize
7035 },
7036 24usize,
7037 concat!(
7038 "Offset of field: ",
7039 stringify!(__darwin_i386_avx_state),
7040 "::",
7041 stringify!(__fpu_dp)
7042 )
7043 );
7044 assert_eq!(
7045 unsafe {
7046 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ds as *const _ as usize
7047 },
7048 28usize,
7049 concat!(
7050 "Offset of field: ",
7051 stringify!(__darwin_i386_avx_state),
7052 "::",
7053 stringify!(__fpu_ds)
7054 )
7055 );
7056 assert_eq!(
7057 unsafe {
7058 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv3 as *const _ as usize
7059 },
7060 30usize,
7061 concat!(
7062 "Offset of field: ",
7063 stringify!(__darwin_i386_avx_state),
7064 "::",
7065 stringify!(__fpu_rsrv3)
7066 )
7067 );
7068 assert_eq!(
7069 unsafe {
7070 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsr as *const _ as usize
7071 },
7072 32usize,
7073 concat!(
7074 "Offset of field: ",
7075 stringify!(__darwin_i386_avx_state),
7076 "::",
7077 stringify!(__fpu_mxcsr)
7078 )
7079 );
7080 assert_eq!(
7081 unsafe {
7082 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsrmask as *const _ as usize
7083 },
7084 36usize,
7085 concat!(
7086 "Offset of field: ",
7087 stringify!(__darwin_i386_avx_state),
7088 "::",
7089 stringify!(__fpu_mxcsrmask)
7090 )
7091 );
7092 assert_eq!(
7093 unsafe {
7094 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm0 as *const _ as usize
7095 },
7096 40usize,
7097 concat!(
7098 "Offset of field: ",
7099 stringify!(__darwin_i386_avx_state),
7100 "::",
7101 stringify!(__fpu_stmm0)
7102 )
7103 );
7104 assert_eq!(
7105 unsafe {
7106 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm1 as *const _ as usize
7107 },
7108 56usize,
7109 concat!(
7110 "Offset of field: ",
7111 stringify!(__darwin_i386_avx_state),
7112 "::",
7113 stringify!(__fpu_stmm1)
7114 )
7115 );
7116 assert_eq!(
7117 unsafe {
7118 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm2 as *const _ as usize
7119 },
7120 72usize,
7121 concat!(
7122 "Offset of field: ",
7123 stringify!(__darwin_i386_avx_state),
7124 "::",
7125 stringify!(__fpu_stmm2)
7126 )
7127 );
7128 assert_eq!(
7129 unsafe {
7130 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm3 as *const _ as usize
7131 },
7132 88usize,
7133 concat!(
7134 "Offset of field: ",
7135 stringify!(__darwin_i386_avx_state),
7136 "::",
7137 stringify!(__fpu_stmm3)
7138 )
7139 );
7140 assert_eq!(
7141 unsafe {
7142 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm4 as *const _ as usize
7143 },
7144 104usize,
7145 concat!(
7146 "Offset of field: ",
7147 stringify!(__darwin_i386_avx_state),
7148 "::",
7149 stringify!(__fpu_stmm4)
7150 )
7151 );
7152 assert_eq!(
7153 unsafe {
7154 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm5 as *const _ as usize
7155 },
7156 120usize,
7157 concat!(
7158 "Offset of field: ",
7159 stringify!(__darwin_i386_avx_state),
7160 "::",
7161 stringify!(__fpu_stmm5)
7162 )
7163 );
7164 assert_eq!(
7165 unsafe {
7166 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm6 as *const _ as usize
7167 },
7168 136usize,
7169 concat!(
7170 "Offset of field: ",
7171 stringify!(__darwin_i386_avx_state),
7172 "::",
7173 stringify!(__fpu_stmm6)
7174 )
7175 );
7176 assert_eq!(
7177 unsafe {
7178 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm7 as *const _ as usize
7179 },
7180 152usize,
7181 concat!(
7182 "Offset of field: ",
7183 stringify!(__darwin_i386_avx_state),
7184 "::",
7185 stringify!(__fpu_stmm7)
7186 )
7187 );
7188 assert_eq!(
7189 unsafe {
7190 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm0 as *const _ as usize
7191 },
7192 168usize,
7193 concat!(
7194 "Offset of field: ",
7195 stringify!(__darwin_i386_avx_state),
7196 "::",
7197 stringify!(__fpu_xmm0)
7198 )
7199 );
7200 assert_eq!(
7201 unsafe {
7202 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm1 as *const _ as usize
7203 },
7204 184usize,
7205 concat!(
7206 "Offset of field: ",
7207 stringify!(__darwin_i386_avx_state),
7208 "::",
7209 stringify!(__fpu_xmm1)
7210 )
7211 );
7212 assert_eq!(
7213 unsafe {
7214 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm2 as *const _ as usize
7215 },
7216 200usize,
7217 concat!(
7218 "Offset of field: ",
7219 stringify!(__darwin_i386_avx_state),
7220 "::",
7221 stringify!(__fpu_xmm2)
7222 )
7223 );
7224 assert_eq!(
7225 unsafe {
7226 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm3 as *const _ as usize
7227 },
7228 216usize,
7229 concat!(
7230 "Offset of field: ",
7231 stringify!(__darwin_i386_avx_state),
7232 "::",
7233 stringify!(__fpu_xmm3)
7234 )
7235 );
7236 assert_eq!(
7237 unsafe {
7238 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm4 as *const _ as usize
7239 },
7240 232usize,
7241 concat!(
7242 "Offset of field: ",
7243 stringify!(__darwin_i386_avx_state),
7244 "::",
7245 stringify!(__fpu_xmm4)
7246 )
7247 );
7248 assert_eq!(
7249 unsafe {
7250 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm5 as *const _ as usize
7251 },
7252 248usize,
7253 concat!(
7254 "Offset of field: ",
7255 stringify!(__darwin_i386_avx_state),
7256 "::",
7257 stringify!(__fpu_xmm5)
7258 )
7259 );
7260 assert_eq!(
7261 unsafe {
7262 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm6 as *const _ as usize
7263 },
7264 264usize,
7265 concat!(
7266 "Offset of field: ",
7267 stringify!(__darwin_i386_avx_state),
7268 "::",
7269 stringify!(__fpu_xmm6)
7270 )
7271 );
7272 assert_eq!(
7273 unsafe {
7274 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm7 as *const _ as usize
7275 },
7276 280usize,
7277 concat!(
7278 "Offset of field: ",
7279 stringify!(__darwin_i386_avx_state),
7280 "::",
7281 stringify!(__fpu_xmm7)
7282 )
7283 );
7284 assert_eq!(
7285 unsafe {
7286 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv4 as *const _ as usize
7287 },
7288 296usize,
7289 concat!(
7290 "Offset of field: ",
7291 stringify!(__darwin_i386_avx_state),
7292 "::",
7293 stringify!(__fpu_rsrv4)
7294 )
7295 );
7296 assert_eq!(
7297 unsafe {
7298 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved1 as *const _ as usize
7299 },
7300 520usize,
7301 concat!(
7302 "Offset of field: ",
7303 stringify!(__darwin_i386_avx_state),
7304 "::",
7305 stringify!(__fpu_reserved1)
7306 )
7307 );
7308 assert_eq!(
7309 unsafe {
7310 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__avx_reserved1 as *const _ as usize
7311 },
7312 524usize,
7313 concat!(
7314 "Offset of field: ",
7315 stringify!(__darwin_i386_avx_state),
7316 "::",
7317 stringify!(__avx_reserved1)
7318 )
7319 );
7320 assert_eq!(
7321 unsafe {
7322 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh0 as *const _ as usize
7323 },
7324 588usize,
7325 concat!(
7326 "Offset of field: ",
7327 stringify!(__darwin_i386_avx_state),
7328 "::",
7329 stringify!(__fpu_ymmh0)
7330 )
7331 );
7332 assert_eq!(
7333 unsafe {
7334 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh1 as *const _ as usize
7335 },
7336 604usize,
7337 concat!(
7338 "Offset of field: ",
7339 stringify!(__darwin_i386_avx_state),
7340 "::",
7341 stringify!(__fpu_ymmh1)
7342 )
7343 );
7344 assert_eq!(
7345 unsafe {
7346 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh2 as *const _ as usize
7347 },
7348 620usize,
7349 concat!(
7350 "Offset of field: ",
7351 stringify!(__darwin_i386_avx_state),
7352 "::",
7353 stringify!(__fpu_ymmh2)
7354 )
7355 );
7356 assert_eq!(
7357 unsafe {
7358 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh3 as *const _ as usize
7359 },
7360 636usize,
7361 concat!(
7362 "Offset of field: ",
7363 stringify!(__darwin_i386_avx_state),
7364 "::",
7365 stringify!(__fpu_ymmh3)
7366 )
7367 );
7368 assert_eq!(
7369 unsafe {
7370 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh4 as *const _ as usize
7371 },
7372 652usize,
7373 concat!(
7374 "Offset of field: ",
7375 stringify!(__darwin_i386_avx_state),
7376 "::",
7377 stringify!(__fpu_ymmh4)
7378 )
7379 );
7380 assert_eq!(
7381 unsafe {
7382 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh5 as *const _ as usize
7383 },
7384 668usize,
7385 concat!(
7386 "Offset of field: ",
7387 stringify!(__darwin_i386_avx_state),
7388 "::",
7389 stringify!(__fpu_ymmh5)
7390 )
7391 );
7392 assert_eq!(
7393 unsafe {
7394 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh6 as *const _ as usize
7395 },
7396 684usize,
7397 concat!(
7398 "Offset of field: ",
7399 stringify!(__darwin_i386_avx_state),
7400 "::",
7401 stringify!(__fpu_ymmh6)
7402 )
7403 );
7404 assert_eq!(
7405 unsafe {
7406 &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh7 as *const _ as usize
7407 },
7408 700usize,
7409 concat!(
7410 "Offset of field: ",
7411 stringify!(__darwin_i386_avx_state),
7412 "::",
7413 stringify!(__fpu_ymmh7)
7414 )
7415 );
7416}
7417#[repr(C)]
7418#[derive(Copy, Clone)]
7419pub struct __darwin_i386_avx512_state {
7420 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
7421 pub __fpu_fcw: __darwin_fp_control,
7422 pub __fpu_fsw: __darwin_fp_status,
7423 pub __fpu_ftw: __uint8_t,
7424 pub __fpu_rsrv1: __uint8_t,
7425 pub __fpu_fop: __uint16_t,
7426 pub __fpu_ip: __uint32_t,
7427 pub __fpu_cs: __uint16_t,
7428 pub __fpu_rsrv2: __uint16_t,
7429 pub __fpu_dp: __uint32_t,
7430 pub __fpu_ds: __uint16_t,
7431 pub __fpu_rsrv3: __uint16_t,
7432 pub __fpu_mxcsr: __uint32_t,
7433 pub __fpu_mxcsrmask: __uint32_t,
7434 pub __fpu_stmm0: __darwin_mmst_reg,
7435 pub __fpu_stmm1: __darwin_mmst_reg,
7436 pub __fpu_stmm2: __darwin_mmst_reg,
7437 pub __fpu_stmm3: __darwin_mmst_reg,
7438 pub __fpu_stmm4: __darwin_mmst_reg,
7439 pub __fpu_stmm5: __darwin_mmst_reg,
7440 pub __fpu_stmm6: __darwin_mmst_reg,
7441 pub __fpu_stmm7: __darwin_mmst_reg,
7442 pub __fpu_xmm0: __darwin_xmm_reg,
7443 pub __fpu_xmm1: __darwin_xmm_reg,
7444 pub __fpu_xmm2: __darwin_xmm_reg,
7445 pub __fpu_xmm3: __darwin_xmm_reg,
7446 pub __fpu_xmm4: __darwin_xmm_reg,
7447 pub __fpu_xmm5: __darwin_xmm_reg,
7448 pub __fpu_xmm6: __darwin_xmm_reg,
7449 pub __fpu_xmm7: __darwin_xmm_reg,
7450 pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
7451 pub __fpu_reserved1: ::std::os::raw::c_int,
7452 pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
7453 pub __fpu_ymmh0: __darwin_xmm_reg,
7454 pub __fpu_ymmh1: __darwin_xmm_reg,
7455 pub __fpu_ymmh2: __darwin_xmm_reg,
7456 pub __fpu_ymmh3: __darwin_xmm_reg,
7457 pub __fpu_ymmh4: __darwin_xmm_reg,
7458 pub __fpu_ymmh5: __darwin_xmm_reg,
7459 pub __fpu_ymmh6: __darwin_xmm_reg,
7460 pub __fpu_ymmh7: __darwin_xmm_reg,
7461 pub __fpu_k0: __darwin_opmask_reg,
7462 pub __fpu_k1: __darwin_opmask_reg,
7463 pub __fpu_k2: __darwin_opmask_reg,
7464 pub __fpu_k3: __darwin_opmask_reg,
7465 pub __fpu_k4: __darwin_opmask_reg,
7466 pub __fpu_k5: __darwin_opmask_reg,
7467 pub __fpu_k6: __darwin_opmask_reg,
7468 pub __fpu_k7: __darwin_opmask_reg,
7469 pub __fpu_zmmh0: __darwin_ymm_reg,
7470 pub __fpu_zmmh1: __darwin_ymm_reg,
7471 pub __fpu_zmmh2: __darwin_ymm_reg,
7472 pub __fpu_zmmh3: __darwin_ymm_reg,
7473 pub __fpu_zmmh4: __darwin_ymm_reg,
7474 pub __fpu_zmmh5: __darwin_ymm_reg,
7475 pub __fpu_zmmh6: __darwin_ymm_reg,
7476 pub __fpu_zmmh7: __darwin_ymm_reg,
7477}
7478#[test]
7479fn bindgen_test_layout___darwin_i386_avx512_state() {
7480 assert_eq!(
7481 ::std::mem::size_of::<__darwin_i386_avx512_state>(),
7482 1036usize,
7483 concat!("Size of: ", stringify!(__darwin_i386_avx512_state))
7484 );
7485 assert_eq!(
7486 ::std::mem::align_of::<__darwin_i386_avx512_state>(),
7487 4usize,
7488 concat!("Alignment of ", stringify!(__darwin_i386_avx512_state))
7489 );
7490 assert_eq!(
7491 unsafe {
7492 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved as *const _
7493 as usize
7494 },
7495 0usize,
7496 concat!(
7497 "Offset of field: ",
7498 stringify!(__darwin_i386_avx512_state),
7499 "::",
7500 stringify!(__fpu_reserved)
7501 )
7502 );
7503 assert_eq!(
7504 unsafe {
7505 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fcw as *const _ as usize
7506 },
7507 8usize,
7508 concat!(
7509 "Offset of field: ",
7510 stringify!(__darwin_i386_avx512_state),
7511 "::",
7512 stringify!(__fpu_fcw)
7513 )
7514 );
7515 assert_eq!(
7516 unsafe {
7517 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fsw as *const _ as usize
7518 },
7519 10usize,
7520 concat!(
7521 "Offset of field: ",
7522 stringify!(__darwin_i386_avx512_state),
7523 "::",
7524 stringify!(__fpu_fsw)
7525 )
7526 );
7527 assert_eq!(
7528 unsafe {
7529 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ftw as *const _ as usize
7530 },
7531 12usize,
7532 concat!(
7533 "Offset of field: ",
7534 stringify!(__darwin_i386_avx512_state),
7535 "::",
7536 stringify!(__fpu_ftw)
7537 )
7538 );
7539 assert_eq!(
7540 unsafe {
7541 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv1 as *const _ as usize
7542 },
7543 13usize,
7544 concat!(
7545 "Offset of field: ",
7546 stringify!(__darwin_i386_avx512_state),
7547 "::",
7548 stringify!(__fpu_rsrv1)
7549 )
7550 );
7551 assert_eq!(
7552 unsafe {
7553 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fop as *const _ as usize
7554 },
7555 14usize,
7556 concat!(
7557 "Offset of field: ",
7558 stringify!(__darwin_i386_avx512_state),
7559 "::",
7560 stringify!(__fpu_fop)
7561 )
7562 );
7563 assert_eq!(
7564 unsafe {
7565 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ip as *const _ as usize
7566 },
7567 16usize,
7568 concat!(
7569 "Offset of field: ",
7570 stringify!(__darwin_i386_avx512_state),
7571 "::",
7572 stringify!(__fpu_ip)
7573 )
7574 );
7575 assert_eq!(
7576 unsafe {
7577 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_cs as *const _ as usize
7578 },
7579 20usize,
7580 concat!(
7581 "Offset of field: ",
7582 stringify!(__darwin_i386_avx512_state),
7583 "::",
7584 stringify!(__fpu_cs)
7585 )
7586 );
7587 assert_eq!(
7588 unsafe {
7589 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv2 as *const _ as usize
7590 },
7591 22usize,
7592 concat!(
7593 "Offset of field: ",
7594 stringify!(__darwin_i386_avx512_state),
7595 "::",
7596 stringify!(__fpu_rsrv2)
7597 )
7598 );
7599 assert_eq!(
7600 unsafe {
7601 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_dp as *const _ as usize
7602 },
7603 24usize,
7604 concat!(
7605 "Offset of field: ",
7606 stringify!(__darwin_i386_avx512_state),
7607 "::",
7608 stringify!(__fpu_dp)
7609 )
7610 );
7611 assert_eq!(
7612 unsafe {
7613 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ds as *const _ as usize
7614 },
7615 28usize,
7616 concat!(
7617 "Offset of field: ",
7618 stringify!(__darwin_i386_avx512_state),
7619 "::",
7620 stringify!(__fpu_ds)
7621 )
7622 );
7623 assert_eq!(
7624 unsafe {
7625 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv3 as *const _ as usize
7626 },
7627 30usize,
7628 concat!(
7629 "Offset of field: ",
7630 stringify!(__darwin_i386_avx512_state),
7631 "::",
7632 stringify!(__fpu_rsrv3)
7633 )
7634 );
7635 assert_eq!(
7636 unsafe {
7637 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsr as *const _ as usize
7638 },
7639 32usize,
7640 concat!(
7641 "Offset of field: ",
7642 stringify!(__darwin_i386_avx512_state),
7643 "::",
7644 stringify!(__fpu_mxcsr)
7645 )
7646 );
7647 assert_eq!(
7648 unsafe {
7649 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsrmask as *const _
7650 as usize
7651 },
7652 36usize,
7653 concat!(
7654 "Offset of field: ",
7655 stringify!(__darwin_i386_avx512_state),
7656 "::",
7657 stringify!(__fpu_mxcsrmask)
7658 )
7659 );
7660 assert_eq!(
7661 unsafe {
7662 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm0 as *const _ as usize
7663 },
7664 40usize,
7665 concat!(
7666 "Offset of field: ",
7667 stringify!(__darwin_i386_avx512_state),
7668 "::",
7669 stringify!(__fpu_stmm0)
7670 )
7671 );
7672 assert_eq!(
7673 unsafe {
7674 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm1 as *const _ as usize
7675 },
7676 56usize,
7677 concat!(
7678 "Offset of field: ",
7679 stringify!(__darwin_i386_avx512_state),
7680 "::",
7681 stringify!(__fpu_stmm1)
7682 )
7683 );
7684 assert_eq!(
7685 unsafe {
7686 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm2 as *const _ as usize
7687 },
7688 72usize,
7689 concat!(
7690 "Offset of field: ",
7691 stringify!(__darwin_i386_avx512_state),
7692 "::",
7693 stringify!(__fpu_stmm2)
7694 )
7695 );
7696 assert_eq!(
7697 unsafe {
7698 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm3 as *const _ as usize
7699 },
7700 88usize,
7701 concat!(
7702 "Offset of field: ",
7703 stringify!(__darwin_i386_avx512_state),
7704 "::",
7705 stringify!(__fpu_stmm3)
7706 )
7707 );
7708 assert_eq!(
7709 unsafe {
7710 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm4 as *const _ as usize
7711 },
7712 104usize,
7713 concat!(
7714 "Offset of field: ",
7715 stringify!(__darwin_i386_avx512_state),
7716 "::",
7717 stringify!(__fpu_stmm4)
7718 )
7719 );
7720 assert_eq!(
7721 unsafe {
7722 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm5 as *const _ as usize
7723 },
7724 120usize,
7725 concat!(
7726 "Offset of field: ",
7727 stringify!(__darwin_i386_avx512_state),
7728 "::",
7729 stringify!(__fpu_stmm5)
7730 )
7731 );
7732 assert_eq!(
7733 unsafe {
7734 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm6 as *const _ as usize
7735 },
7736 136usize,
7737 concat!(
7738 "Offset of field: ",
7739 stringify!(__darwin_i386_avx512_state),
7740 "::",
7741 stringify!(__fpu_stmm6)
7742 )
7743 );
7744 assert_eq!(
7745 unsafe {
7746 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm7 as *const _ as usize
7747 },
7748 152usize,
7749 concat!(
7750 "Offset of field: ",
7751 stringify!(__darwin_i386_avx512_state),
7752 "::",
7753 stringify!(__fpu_stmm7)
7754 )
7755 );
7756 assert_eq!(
7757 unsafe {
7758 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm0 as *const _ as usize
7759 },
7760 168usize,
7761 concat!(
7762 "Offset of field: ",
7763 stringify!(__darwin_i386_avx512_state),
7764 "::",
7765 stringify!(__fpu_xmm0)
7766 )
7767 );
7768 assert_eq!(
7769 unsafe {
7770 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm1 as *const _ as usize
7771 },
7772 184usize,
7773 concat!(
7774 "Offset of field: ",
7775 stringify!(__darwin_i386_avx512_state),
7776 "::",
7777 stringify!(__fpu_xmm1)
7778 )
7779 );
7780 assert_eq!(
7781 unsafe {
7782 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm2 as *const _ as usize
7783 },
7784 200usize,
7785 concat!(
7786 "Offset of field: ",
7787 stringify!(__darwin_i386_avx512_state),
7788 "::",
7789 stringify!(__fpu_xmm2)
7790 )
7791 );
7792 assert_eq!(
7793 unsafe {
7794 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm3 as *const _ as usize
7795 },
7796 216usize,
7797 concat!(
7798 "Offset of field: ",
7799 stringify!(__darwin_i386_avx512_state),
7800 "::",
7801 stringify!(__fpu_xmm3)
7802 )
7803 );
7804 assert_eq!(
7805 unsafe {
7806 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm4 as *const _ as usize
7807 },
7808 232usize,
7809 concat!(
7810 "Offset of field: ",
7811 stringify!(__darwin_i386_avx512_state),
7812 "::",
7813 stringify!(__fpu_xmm4)
7814 )
7815 );
7816 assert_eq!(
7817 unsafe {
7818 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm5 as *const _ as usize
7819 },
7820 248usize,
7821 concat!(
7822 "Offset of field: ",
7823 stringify!(__darwin_i386_avx512_state),
7824 "::",
7825 stringify!(__fpu_xmm5)
7826 )
7827 );
7828 assert_eq!(
7829 unsafe {
7830 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm6 as *const _ as usize
7831 },
7832 264usize,
7833 concat!(
7834 "Offset of field: ",
7835 stringify!(__darwin_i386_avx512_state),
7836 "::",
7837 stringify!(__fpu_xmm6)
7838 )
7839 );
7840 assert_eq!(
7841 unsafe {
7842 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm7 as *const _ as usize
7843 },
7844 280usize,
7845 concat!(
7846 "Offset of field: ",
7847 stringify!(__darwin_i386_avx512_state),
7848 "::",
7849 stringify!(__fpu_xmm7)
7850 )
7851 );
7852 assert_eq!(
7853 unsafe {
7854 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv4 as *const _ as usize
7855 },
7856 296usize,
7857 concat!(
7858 "Offset of field: ",
7859 stringify!(__darwin_i386_avx512_state),
7860 "::",
7861 stringify!(__fpu_rsrv4)
7862 )
7863 );
7864 assert_eq!(
7865 unsafe {
7866 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved1 as *const _
7867 as usize
7868 },
7869 520usize,
7870 concat!(
7871 "Offset of field: ",
7872 stringify!(__darwin_i386_avx512_state),
7873 "::",
7874 stringify!(__fpu_reserved1)
7875 )
7876 );
7877 assert_eq!(
7878 unsafe {
7879 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__avx_reserved1 as *const _
7880 as usize
7881 },
7882 524usize,
7883 concat!(
7884 "Offset of field: ",
7885 stringify!(__darwin_i386_avx512_state),
7886 "::",
7887 stringify!(__avx_reserved1)
7888 )
7889 );
7890 assert_eq!(
7891 unsafe {
7892 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh0 as *const _ as usize
7893 },
7894 588usize,
7895 concat!(
7896 "Offset of field: ",
7897 stringify!(__darwin_i386_avx512_state),
7898 "::",
7899 stringify!(__fpu_ymmh0)
7900 )
7901 );
7902 assert_eq!(
7903 unsafe {
7904 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh1 as *const _ as usize
7905 },
7906 604usize,
7907 concat!(
7908 "Offset of field: ",
7909 stringify!(__darwin_i386_avx512_state),
7910 "::",
7911 stringify!(__fpu_ymmh1)
7912 )
7913 );
7914 assert_eq!(
7915 unsafe {
7916 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh2 as *const _ as usize
7917 },
7918 620usize,
7919 concat!(
7920 "Offset of field: ",
7921 stringify!(__darwin_i386_avx512_state),
7922 "::",
7923 stringify!(__fpu_ymmh2)
7924 )
7925 );
7926 assert_eq!(
7927 unsafe {
7928 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh3 as *const _ as usize
7929 },
7930 636usize,
7931 concat!(
7932 "Offset of field: ",
7933 stringify!(__darwin_i386_avx512_state),
7934 "::",
7935 stringify!(__fpu_ymmh3)
7936 )
7937 );
7938 assert_eq!(
7939 unsafe {
7940 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh4 as *const _ as usize
7941 },
7942 652usize,
7943 concat!(
7944 "Offset of field: ",
7945 stringify!(__darwin_i386_avx512_state),
7946 "::",
7947 stringify!(__fpu_ymmh4)
7948 )
7949 );
7950 assert_eq!(
7951 unsafe {
7952 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh5 as *const _ as usize
7953 },
7954 668usize,
7955 concat!(
7956 "Offset of field: ",
7957 stringify!(__darwin_i386_avx512_state),
7958 "::",
7959 stringify!(__fpu_ymmh5)
7960 )
7961 );
7962 assert_eq!(
7963 unsafe {
7964 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh6 as *const _ as usize
7965 },
7966 684usize,
7967 concat!(
7968 "Offset of field: ",
7969 stringify!(__darwin_i386_avx512_state),
7970 "::",
7971 stringify!(__fpu_ymmh6)
7972 )
7973 );
7974 assert_eq!(
7975 unsafe {
7976 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh7 as *const _ as usize
7977 },
7978 700usize,
7979 concat!(
7980 "Offset of field: ",
7981 stringify!(__darwin_i386_avx512_state),
7982 "::",
7983 stringify!(__fpu_ymmh7)
7984 )
7985 );
7986 assert_eq!(
7987 unsafe {
7988 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k0 as *const _ as usize
7989 },
7990 716usize,
7991 concat!(
7992 "Offset of field: ",
7993 stringify!(__darwin_i386_avx512_state),
7994 "::",
7995 stringify!(__fpu_k0)
7996 )
7997 );
7998 assert_eq!(
7999 unsafe {
8000 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k1 as *const _ as usize
8001 },
8002 724usize,
8003 concat!(
8004 "Offset of field: ",
8005 stringify!(__darwin_i386_avx512_state),
8006 "::",
8007 stringify!(__fpu_k1)
8008 )
8009 );
8010 assert_eq!(
8011 unsafe {
8012 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k2 as *const _ as usize
8013 },
8014 732usize,
8015 concat!(
8016 "Offset of field: ",
8017 stringify!(__darwin_i386_avx512_state),
8018 "::",
8019 stringify!(__fpu_k2)
8020 )
8021 );
8022 assert_eq!(
8023 unsafe {
8024 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k3 as *const _ as usize
8025 },
8026 740usize,
8027 concat!(
8028 "Offset of field: ",
8029 stringify!(__darwin_i386_avx512_state),
8030 "::",
8031 stringify!(__fpu_k3)
8032 )
8033 );
8034 assert_eq!(
8035 unsafe {
8036 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k4 as *const _ as usize
8037 },
8038 748usize,
8039 concat!(
8040 "Offset of field: ",
8041 stringify!(__darwin_i386_avx512_state),
8042 "::",
8043 stringify!(__fpu_k4)
8044 )
8045 );
8046 assert_eq!(
8047 unsafe {
8048 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k5 as *const _ as usize
8049 },
8050 756usize,
8051 concat!(
8052 "Offset of field: ",
8053 stringify!(__darwin_i386_avx512_state),
8054 "::",
8055 stringify!(__fpu_k5)
8056 )
8057 );
8058 assert_eq!(
8059 unsafe {
8060 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k6 as *const _ as usize
8061 },
8062 764usize,
8063 concat!(
8064 "Offset of field: ",
8065 stringify!(__darwin_i386_avx512_state),
8066 "::",
8067 stringify!(__fpu_k6)
8068 )
8069 );
8070 assert_eq!(
8071 unsafe {
8072 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k7 as *const _ as usize
8073 },
8074 772usize,
8075 concat!(
8076 "Offset of field: ",
8077 stringify!(__darwin_i386_avx512_state),
8078 "::",
8079 stringify!(__fpu_k7)
8080 )
8081 );
8082 assert_eq!(
8083 unsafe {
8084 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh0 as *const _ as usize
8085 },
8086 780usize,
8087 concat!(
8088 "Offset of field: ",
8089 stringify!(__darwin_i386_avx512_state),
8090 "::",
8091 stringify!(__fpu_zmmh0)
8092 )
8093 );
8094 assert_eq!(
8095 unsafe {
8096 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh1 as *const _ as usize
8097 },
8098 812usize,
8099 concat!(
8100 "Offset of field: ",
8101 stringify!(__darwin_i386_avx512_state),
8102 "::",
8103 stringify!(__fpu_zmmh1)
8104 )
8105 );
8106 assert_eq!(
8107 unsafe {
8108 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh2 as *const _ as usize
8109 },
8110 844usize,
8111 concat!(
8112 "Offset of field: ",
8113 stringify!(__darwin_i386_avx512_state),
8114 "::",
8115 stringify!(__fpu_zmmh2)
8116 )
8117 );
8118 assert_eq!(
8119 unsafe {
8120 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh3 as *const _ as usize
8121 },
8122 876usize,
8123 concat!(
8124 "Offset of field: ",
8125 stringify!(__darwin_i386_avx512_state),
8126 "::",
8127 stringify!(__fpu_zmmh3)
8128 )
8129 );
8130 assert_eq!(
8131 unsafe {
8132 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh4 as *const _ as usize
8133 },
8134 908usize,
8135 concat!(
8136 "Offset of field: ",
8137 stringify!(__darwin_i386_avx512_state),
8138 "::",
8139 stringify!(__fpu_zmmh4)
8140 )
8141 );
8142 assert_eq!(
8143 unsafe {
8144 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh5 as *const _ as usize
8145 },
8146 940usize,
8147 concat!(
8148 "Offset of field: ",
8149 stringify!(__darwin_i386_avx512_state),
8150 "::",
8151 stringify!(__fpu_zmmh5)
8152 )
8153 );
8154 assert_eq!(
8155 unsafe {
8156 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh6 as *const _ as usize
8157 },
8158 972usize,
8159 concat!(
8160 "Offset of field: ",
8161 stringify!(__darwin_i386_avx512_state),
8162 "::",
8163 stringify!(__fpu_zmmh6)
8164 )
8165 );
8166 assert_eq!(
8167 unsafe {
8168 &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh7 as *const _ as usize
8169 },
8170 1004usize,
8171 concat!(
8172 "Offset of field: ",
8173 stringify!(__darwin_i386_avx512_state),
8174 "::",
8175 stringify!(__fpu_zmmh7)
8176 )
8177 );
8178}
8179#[repr(C)]
8180#[derive(Debug, Copy, Clone)]
8181pub struct __darwin_i386_exception_state {
8182 pub __trapno: __uint16_t,
8183 pub __cpu: __uint16_t,
8184 pub __err: __uint32_t,
8185 pub __faultvaddr: __uint32_t,
8186}
8187#[test]
8188fn bindgen_test_layout___darwin_i386_exception_state() {
8189 assert_eq!(
8190 ::std::mem::size_of::<__darwin_i386_exception_state>(),
8191 12usize,
8192 concat!("Size of: ", stringify!(__darwin_i386_exception_state))
8193 );
8194 assert_eq!(
8195 ::std::mem::align_of::<__darwin_i386_exception_state>(),
8196 4usize,
8197 concat!("Alignment of ", stringify!(__darwin_i386_exception_state))
8198 );
8199 assert_eq!(
8200 unsafe {
8201 &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__trapno as *const _ as usize
8202 },
8203 0usize,
8204 concat!(
8205 "Offset of field: ",
8206 stringify!(__darwin_i386_exception_state),
8207 "::",
8208 stringify!(__trapno)
8209 )
8210 );
8211 assert_eq!(
8212 unsafe {
8213 &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__cpu as *const _ as usize
8214 },
8215 2usize,
8216 concat!(
8217 "Offset of field: ",
8218 stringify!(__darwin_i386_exception_state),
8219 "::",
8220 stringify!(__cpu)
8221 )
8222 );
8223 assert_eq!(
8224 unsafe {
8225 &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__err as *const _ as usize
8226 },
8227 4usize,
8228 concat!(
8229 "Offset of field: ",
8230 stringify!(__darwin_i386_exception_state),
8231 "::",
8232 stringify!(__err)
8233 )
8234 );
8235 assert_eq!(
8236 unsafe {
8237 &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__faultvaddr as *const _
8238 as usize
8239 },
8240 8usize,
8241 concat!(
8242 "Offset of field: ",
8243 stringify!(__darwin_i386_exception_state),
8244 "::",
8245 stringify!(__faultvaddr)
8246 )
8247 );
8248}
8249#[repr(C)]
8250#[derive(Debug, Copy, Clone)]
8251pub struct __darwin_x86_debug_state32 {
8252 pub __dr0: ::std::os::raw::c_uint,
8253 pub __dr1: ::std::os::raw::c_uint,
8254 pub __dr2: ::std::os::raw::c_uint,
8255 pub __dr3: ::std::os::raw::c_uint,
8256 pub __dr4: ::std::os::raw::c_uint,
8257 pub __dr5: ::std::os::raw::c_uint,
8258 pub __dr6: ::std::os::raw::c_uint,
8259 pub __dr7: ::std::os::raw::c_uint,
8260}
8261#[test]
8262fn bindgen_test_layout___darwin_x86_debug_state32() {
8263 assert_eq!(
8264 ::std::mem::size_of::<__darwin_x86_debug_state32>(),
8265 32usize,
8266 concat!("Size of: ", stringify!(__darwin_x86_debug_state32))
8267 );
8268 assert_eq!(
8269 ::std::mem::align_of::<__darwin_x86_debug_state32>(),
8270 4usize,
8271 concat!("Alignment of ", stringify!(__darwin_x86_debug_state32))
8272 );
8273 assert_eq!(
8274 unsafe {
8275 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr0 as *const _ as usize
8276 },
8277 0usize,
8278 concat!(
8279 "Offset of field: ",
8280 stringify!(__darwin_x86_debug_state32),
8281 "::",
8282 stringify!(__dr0)
8283 )
8284 );
8285 assert_eq!(
8286 unsafe {
8287 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr1 as *const _ as usize
8288 },
8289 4usize,
8290 concat!(
8291 "Offset of field: ",
8292 stringify!(__darwin_x86_debug_state32),
8293 "::",
8294 stringify!(__dr1)
8295 )
8296 );
8297 assert_eq!(
8298 unsafe {
8299 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr2 as *const _ as usize
8300 },
8301 8usize,
8302 concat!(
8303 "Offset of field: ",
8304 stringify!(__darwin_x86_debug_state32),
8305 "::",
8306 stringify!(__dr2)
8307 )
8308 );
8309 assert_eq!(
8310 unsafe {
8311 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr3 as *const _ as usize
8312 },
8313 12usize,
8314 concat!(
8315 "Offset of field: ",
8316 stringify!(__darwin_x86_debug_state32),
8317 "::",
8318 stringify!(__dr3)
8319 )
8320 );
8321 assert_eq!(
8322 unsafe {
8323 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr4 as *const _ as usize
8324 },
8325 16usize,
8326 concat!(
8327 "Offset of field: ",
8328 stringify!(__darwin_x86_debug_state32),
8329 "::",
8330 stringify!(__dr4)
8331 )
8332 );
8333 assert_eq!(
8334 unsafe {
8335 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr5 as *const _ as usize
8336 },
8337 20usize,
8338 concat!(
8339 "Offset of field: ",
8340 stringify!(__darwin_x86_debug_state32),
8341 "::",
8342 stringify!(__dr5)
8343 )
8344 );
8345 assert_eq!(
8346 unsafe {
8347 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr6 as *const _ as usize
8348 },
8349 24usize,
8350 concat!(
8351 "Offset of field: ",
8352 stringify!(__darwin_x86_debug_state32),
8353 "::",
8354 stringify!(__dr6)
8355 )
8356 );
8357 assert_eq!(
8358 unsafe {
8359 &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr7 as *const _ as usize
8360 },
8361 28usize,
8362 concat!(
8363 "Offset of field: ",
8364 stringify!(__darwin_x86_debug_state32),
8365 "::",
8366 stringify!(__dr7)
8367 )
8368 );
8369}
8370#[repr(C)]
8371#[derive(Debug, Copy, Clone)]
8372pub struct __x86_pagein_state {
8373 pub __pagein_error: ::std::os::raw::c_int,
8374}
8375#[test]
8376fn bindgen_test_layout___x86_pagein_state() {
8377 assert_eq!(
8378 ::std::mem::size_of::<__x86_pagein_state>(),
8379 4usize,
8380 concat!("Size of: ", stringify!(__x86_pagein_state))
8381 );
8382 assert_eq!(
8383 ::std::mem::align_of::<__x86_pagein_state>(),
8384 4usize,
8385 concat!("Alignment of ", stringify!(__x86_pagein_state))
8386 );
8387 assert_eq!(
8388 unsafe {
8389 &(*(::std::ptr::null::<__x86_pagein_state>())).__pagein_error as *const _ as usize
8390 },
8391 0usize,
8392 concat!(
8393 "Offset of field: ",
8394 stringify!(__x86_pagein_state),
8395 "::",
8396 stringify!(__pagein_error)
8397 )
8398 );
8399}
8400#[repr(C)]
8401#[derive(Debug, Copy, Clone)]
8402pub struct __darwin_x86_thread_state64 {
8403 pub __rax: __uint64_t,
8404 pub __rbx: __uint64_t,
8405 pub __rcx: __uint64_t,
8406 pub __rdx: __uint64_t,
8407 pub __rdi: __uint64_t,
8408 pub __rsi: __uint64_t,
8409 pub __rbp: __uint64_t,
8410 pub __rsp: __uint64_t,
8411 pub __r8: __uint64_t,
8412 pub __r9: __uint64_t,
8413 pub __r10: __uint64_t,
8414 pub __r11: __uint64_t,
8415 pub __r12: __uint64_t,
8416 pub __r13: __uint64_t,
8417 pub __r14: __uint64_t,
8418 pub __r15: __uint64_t,
8419 pub __rip: __uint64_t,
8420 pub __rflags: __uint64_t,
8421 pub __cs: __uint64_t,
8422 pub __fs: __uint64_t,
8423 pub __gs: __uint64_t,
8424}
8425#[test]
8426fn bindgen_test_layout___darwin_x86_thread_state64() {
8427 assert_eq!(
8428 ::std::mem::size_of::<__darwin_x86_thread_state64>(),
8429 168usize,
8430 concat!("Size of: ", stringify!(__darwin_x86_thread_state64))
8431 );
8432 assert_eq!(
8433 ::std::mem::align_of::<__darwin_x86_thread_state64>(),
8434 8usize,
8435 concat!("Alignment of ", stringify!(__darwin_x86_thread_state64))
8436 );
8437 assert_eq!(
8438 unsafe {
8439 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rax as *const _ as usize
8440 },
8441 0usize,
8442 concat!(
8443 "Offset of field: ",
8444 stringify!(__darwin_x86_thread_state64),
8445 "::",
8446 stringify!(__rax)
8447 )
8448 );
8449 assert_eq!(
8450 unsafe {
8451 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbx as *const _ as usize
8452 },
8453 8usize,
8454 concat!(
8455 "Offset of field: ",
8456 stringify!(__darwin_x86_thread_state64),
8457 "::",
8458 stringify!(__rbx)
8459 )
8460 );
8461 assert_eq!(
8462 unsafe {
8463 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rcx as *const _ as usize
8464 },
8465 16usize,
8466 concat!(
8467 "Offset of field: ",
8468 stringify!(__darwin_x86_thread_state64),
8469 "::",
8470 stringify!(__rcx)
8471 )
8472 );
8473 assert_eq!(
8474 unsafe {
8475 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdx as *const _ as usize
8476 },
8477 24usize,
8478 concat!(
8479 "Offset of field: ",
8480 stringify!(__darwin_x86_thread_state64),
8481 "::",
8482 stringify!(__rdx)
8483 )
8484 );
8485 assert_eq!(
8486 unsafe {
8487 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdi as *const _ as usize
8488 },
8489 32usize,
8490 concat!(
8491 "Offset of field: ",
8492 stringify!(__darwin_x86_thread_state64),
8493 "::",
8494 stringify!(__rdi)
8495 )
8496 );
8497 assert_eq!(
8498 unsafe {
8499 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsi as *const _ as usize
8500 },
8501 40usize,
8502 concat!(
8503 "Offset of field: ",
8504 stringify!(__darwin_x86_thread_state64),
8505 "::",
8506 stringify!(__rsi)
8507 )
8508 );
8509 assert_eq!(
8510 unsafe {
8511 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbp as *const _ as usize
8512 },
8513 48usize,
8514 concat!(
8515 "Offset of field: ",
8516 stringify!(__darwin_x86_thread_state64),
8517 "::",
8518 stringify!(__rbp)
8519 )
8520 );
8521 assert_eq!(
8522 unsafe {
8523 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsp as *const _ as usize
8524 },
8525 56usize,
8526 concat!(
8527 "Offset of field: ",
8528 stringify!(__darwin_x86_thread_state64),
8529 "::",
8530 stringify!(__rsp)
8531 )
8532 );
8533 assert_eq!(
8534 unsafe {
8535 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r8 as *const _ as usize
8536 },
8537 64usize,
8538 concat!(
8539 "Offset of field: ",
8540 stringify!(__darwin_x86_thread_state64),
8541 "::",
8542 stringify!(__r8)
8543 )
8544 );
8545 assert_eq!(
8546 unsafe {
8547 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r9 as *const _ as usize
8548 },
8549 72usize,
8550 concat!(
8551 "Offset of field: ",
8552 stringify!(__darwin_x86_thread_state64),
8553 "::",
8554 stringify!(__r9)
8555 )
8556 );
8557 assert_eq!(
8558 unsafe {
8559 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r10 as *const _ as usize
8560 },
8561 80usize,
8562 concat!(
8563 "Offset of field: ",
8564 stringify!(__darwin_x86_thread_state64),
8565 "::",
8566 stringify!(__r10)
8567 )
8568 );
8569 assert_eq!(
8570 unsafe {
8571 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r11 as *const _ as usize
8572 },
8573 88usize,
8574 concat!(
8575 "Offset of field: ",
8576 stringify!(__darwin_x86_thread_state64),
8577 "::",
8578 stringify!(__r11)
8579 )
8580 );
8581 assert_eq!(
8582 unsafe {
8583 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r12 as *const _ as usize
8584 },
8585 96usize,
8586 concat!(
8587 "Offset of field: ",
8588 stringify!(__darwin_x86_thread_state64),
8589 "::",
8590 stringify!(__r12)
8591 )
8592 );
8593 assert_eq!(
8594 unsafe {
8595 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r13 as *const _ as usize
8596 },
8597 104usize,
8598 concat!(
8599 "Offset of field: ",
8600 stringify!(__darwin_x86_thread_state64),
8601 "::",
8602 stringify!(__r13)
8603 )
8604 );
8605 assert_eq!(
8606 unsafe {
8607 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r14 as *const _ as usize
8608 },
8609 112usize,
8610 concat!(
8611 "Offset of field: ",
8612 stringify!(__darwin_x86_thread_state64),
8613 "::",
8614 stringify!(__r14)
8615 )
8616 );
8617 assert_eq!(
8618 unsafe {
8619 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r15 as *const _ as usize
8620 },
8621 120usize,
8622 concat!(
8623 "Offset of field: ",
8624 stringify!(__darwin_x86_thread_state64),
8625 "::",
8626 stringify!(__r15)
8627 )
8628 );
8629 assert_eq!(
8630 unsafe {
8631 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rip as *const _ as usize
8632 },
8633 128usize,
8634 concat!(
8635 "Offset of field: ",
8636 stringify!(__darwin_x86_thread_state64),
8637 "::",
8638 stringify!(__rip)
8639 )
8640 );
8641 assert_eq!(
8642 unsafe {
8643 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rflags as *const _ as usize
8644 },
8645 136usize,
8646 concat!(
8647 "Offset of field: ",
8648 stringify!(__darwin_x86_thread_state64),
8649 "::",
8650 stringify!(__rflags)
8651 )
8652 );
8653 assert_eq!(
8654 unsafe {
8655 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__cs as *const _ as usize
8656 },
8657 144usize,
8658 concat!(
8659 "Offset of field: ",
8660 stringify!(__darwin_x86_thread_state64),
8661 "::",
8662 stringify!(__cs)
8663 )
8664 );
8665 assert_eq!(
8666 unsafe {
8667 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__fs as *const _ as usize
8668 },
8669 152usize,
8670 concat!(
8671 "Offset of field: ",
8672 stringify!(__darwin_x86_thread_state64),
8673 "::",
8674 stringify!(__fs)
8675 )
8676 );
8677 assert_eq!(
8678 unsafe {
8679 &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__gs as *const _ as usize
8680 },
8681 160usize,
8682 concat!(
8683 "Offset of field: ",
8684 stringify!(__darwin_x86_thread_state64),
8685 "::",
8686 stringify!(__gs)
8687 )
8688 );
8689}
8690#[repr(C)]
8691#[derive(Debug, Copy, Clone)]
8692pub struct __darwin_x86_thread_full_state64 {
8693 pub __ss64: __darwin_x86_thread_state64,
8694 pub __ds: __uint64_t,
8695 pub __es: __uint64_t,
8696 pub __ss: __uint64_t,
8697 pub __gsbase: __uint64_t,
8698}
8699#[test]
8700fn bindgen_test_layout___darwin_x86_thread_full_state64() {
8701 assert_eq!(
8702 ::std::mem::size_of::<__darwin_x86_thread_full_state64>(),
8703 200usize,
8704 concat!("Size of: ", stringify!(__darwin_x86_thread_full_state64))
8705 );
8706 assert_eq!(
8707 ::std::mem::align_of::<__darwin_x86_thread_full_state64>(),
8708 8usize,
8709 concat!(
8710 "Alignment of ",
8711 stringify!(__darwin_x86_thread_full_state64)
8712 )
8713 );
8714 assert_eq!(
8715 unsafe {
8716 &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss64 as *const _ as usize
8717 },
8718 0usize,
8719 concat!(
8720 "Offset of field: ",
8721 stringify!(__darwin_x86_thread_full_state64),
8722 "::",
8723 stringify!(__ss64)
8724 )
8725 );
8726 assert_eq!(
8727 unsafe {
8728 &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ds as *const _ as usize
8729 },
8730 168usize,
8731 concat!(
8732 "Offset of field: ",
8733 stringify!(__darwin_x86_thread_full_state64),
8734 "::",
8735 stringify!(__ds)
8736 )
8737 );
8738 assert_eq!(
8739 unsafe {
8740 &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__es as *const _ as usize
8741 },
8742 176usize,
8743 concat!(
8744 "Offset of field: ",
8745 stringify!(__darwin_x86_thread_full_state64),
8746 "::",
8747 stringify!(__es)
8748 )
8749 );
8750 assert_eq!(
8751 unsafe {
8752 &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss as *const _ as usize
8753 },
8754 184usize,
8755 concat!(
8756 "Offset of field: ",
8757 stringify!(__darwin_x86_thread_full_state64),
8758 "::",
8759 stringify!(__ss)
8760 )
8761 );
8762 assert_eq!(
8763 unsafe {
8764 &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__gsbase as *const _
8765 as usize
8766 },
8767 192usize,
8768 concat!(
8769 "Offset of field: ",
8770 stringify!(__darwin_x86_thread_full_state64),
8771 "::",
8772 stringify!(__gsbase)
8773 )
8774 );
8775}
8776#[repr(C)]
8777#[derive(Copy, Clone)]
8778pub struct __darwin_x86_float_state64 {
8779 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
8780 pub __fpu_fcw: __darwin_fp_control,
8781 pub __fpu_fsw: __darwin_fp_status,
8782 pub __fpu_ftw: __uint8_t,
8783 pub __fpu_rsrv1: __uint8_t,
8784 pub __fpu_fop: __uint16_t,
8785 pub __fpu_ip: __uint32_t,
8786 pub __fpu_cs: __uint16_t,
8787 pub __fpu_rsrv2: __uint16_t,
8788 pub __fpu_dp: __uint32_t,
8789 pub __fpu_ds: __uint16_t,
8790 pub __fpu_rsrv3: __uint16_t,
8791 pub __fpu_mxcsr: __uint32_t,
8792 pub __fpu_mxcsrmask: __uint32_t,
8793 pub __fpu_stmm0: __darwin_mmst_reg,
8794 pub __fpu_stmm1: __darwin_mmst_reg,
8795 pub __fpu_stmm2: __darwin_mmst_reg,
8796 pub __fpu_stmm3: __darwin_mmst_reg,
8797 pub __fpu_stmm4: __darwin_mmst_reg,
8798 pub __fpu_stmm5: __darwin_mmst_reg,
8799 pub __fpu_stmm6: __darwin_mmst_reg,
8800 pub __fpu_stmm7: __darwin_mmst_reg,
8801 pub __fpu_xmm0: __darwin_xmm_reg,
8802 pub __fpu_xmm1: __darwin_xmm_reg,
8803 pub __fpu_xmm2: __darwin_xmm_reg,
8804 pub __fpu_xmm3: __darwin_xmm_reg,
8805 pub __fpu_xmm4: __darwin_xmm_reg,
8806 pub __fpu_xmm5: __darwin_xmm_reg,
8807 pub __fpu_xmm6: __darwin_xmm_reg,
8808 pub __fpu_xmm7: __darwin_xmm_reg,
8809 pub __fpu_xmm8: __darwin_xmm_reg,
8810 pub __fpu_xmm9: __darwin_xmm_reg,
8811 pub __fpu_xmm10: __darwin_xmm_reg,
8812 pub __fpu_xmm11: __darwin_xmm_reg,
8813 pub __fpu_xmm12: __darwin_xmm_reg,
8814 pub __fpu_xmm13: __darwin_xmm_reg,
8815 pub __fpu_xmm14: __darwin_xmm_reg,
8816 pub __fpu_xmm15: __darwin_xmm_reg,
8817 pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
8818 pub __fpu_reserved1: ::std::os::raw::c_int,
8819}
8820#[test]
8821fn bindgen_test_layout___darwin_x86_float_state64() {
8822 assert_eq!(
8823 ::std::mem::size_of::<__darwin_x86_float_state64>(),
8824 524usize,
8825 concat!("Size of: ", stringify!(__darwin_x86_float_state64))
8826 );
8827 assert_eq!(
8828 ::std::mem::align_of::<__darwin_x86_float_state64>(),
8829 4usize,
8830 concat!("Alignment of ", stringify!(__darwin_x86_float_state64))
8831 );
8832 assert_eq!(
8833 unsafe {
8834 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved as *const _
8835 as usize
8836 },
8837 0usize,
8838 concat!(
8839 "Offset of field: ",
8840 stringify!(__darwin_x86_float_state64),
8841 "::",
8842 stringify!(__fpu_reserved)
8843 )
8844 );
8845 assert_eq!(
8846 unsafe {
8847 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fcw as *const _ as usize
8848 },
8849 8usize,
8850 concat!(
8851 "Offset of field: ",
8852 stringify!(__darwin_x86_float_state64),
8853 "::",
8854 stringify!(__fpu_fcw)
8855 )
8856 );
8857 assert_eq!(
8858 unsafe {
8859 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fsw as *const _ as usize
8860 },
8861 10usize,
8862 concat!(
8863 "Offset of field: ",
8864 stringify!(__darwin_x86_float_state64),
8865 "::",
8866 stringify!(__fpu_fsw)
8867 )
8868 );
8869 assert_eq!(
8870 unsafe {
8871 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ftw as *const _ as usize
8872 },
8873 12usize,
8874 concat!(
8875 "Offset of field: ",
8876 stringify!(__darwin_x86_float_state64),
8877 "::",
8878 stringify!(__fpu_ftw)
8879 )
8880 );
8881 assert_eq!(
8882 unsafe {
8883 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv1 as *const _ as usize
8884 },
8885 13usize,
8886 concat!(
8887 "Offset of field: ",
8888 stringify!(__darwin_x86_float_state64),
8889 "::",
8890 stringify!(__fpu_rsrv1)
8891 )
8892 );
8893 assert_eq!(
8894 unsafe {
8895 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fop as *const _ as usize
8896 },
8897 14usize,
8898 concat!(
8899 "Offset of field: ",
8900 stringify!(__darwin_x86_float_state64),
8901 "::",
8902 stringify!(__fpu_fop)
8903 )
8904 );
8905 assert_eq!(
8906 unsafe {
8907 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ip as *const _ as usize
8908 },
8909 16usize,
8910 concat!(
8911 "Offset of field: ",
8912 stringify!(__darwin_x86_float_state64),
8913 "::",
8914 stringify!(__fpu_ip)
8915 )
8916 );
8917 assert_eq!(
8918 unsafe {
8919 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_cs as *const _ as usize
8920 },
8921 20usize,
8922 concat!(
8923 "Offset of field: ",
8924 stringify!(__darwin_x86_float_state64),
8925 "::",
8926 stringify!(__fpu_cs)
8927 )
8928 );
8929 assert_eq!(
8930 unsafe {
8931 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv2 as *const _ as usize
8932 },
8933 22usize,
8934 concat!(
8935 "Offset of field: ",
8936 stringify!(__darwin_x86_float_state64),
8937 "::",
8938 stringify!(__fpu_rsrv2)
8939 )
8940 );
8941 assert_eq!(
8942 unsafe {
8943 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_dp as *const _ as usize
8944 },
8945 24usize,
8946 concat!(
8947 "Offset of field: ",
8948 stringify!(__darwin_x86_float_state64),
8949 "::",
8950 stringify!(__fpu_dp)
8951 )
8952 );
8953 assert_eq!(
8954 unsafe {
8955 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ds as *const _ as usize
8956 },
8957 28usize,
8958 concat!(
8959 "Offset of field: ",
8960 stringify!(__darwin_x86_float_state64),
8961 "::",
8962 stringify!(__fpu_ds)
8963 )
8964 );
8965 assert_eq!(
8966 unsafe {
8967 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv3 as *const _ as usize
8968 },
8969 30usize,
8970 concat!(
8971 "Offset of field: ",
8972 stringify!(__darwin_x86_float_state64),
8973 "::",
8974 stringify!(__fpu_rsrv3)
8975 )
8976 );
8977 assert_eq!(
8978 unsafe {
8979 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsr as *const _ as usize
8980 },
8981 32usize,
8982 concat!(
8983 "Offset of field: ",
8984 stringify!(__darwin_x86_float_state64),
8985 "::",
8986 stringify!(__fpu_mxcsr)
8987 )
8988 );
8989 assert_eq!(
8990 unsafe {
8991 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsrmask as *const _
8992 as usize
8993 },
8994 36usize,
8995 concat!(
8996 "Offset of field: ",
8997 stringify!(__darwin_x86_float_state64),
8998 "::",
8999 stringify!(__fpu_mxcsrmask)
9000 )
9001 );
9002 assert_eq!(
9003 unsafe {
9004 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm0 as *const _ as usize
9005 },
9006 40usize,
9007 concat!(
9008 "Offset of field: ",
9009 stringify!(__darwin_x86_float_state64),
9010 "::",
9011 stringify!(__fpu_stmm0)
9012 )
9013 );
9014 assert_eq!(
9015 unsafe {
9016 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm1 as *const _ as usize
9017 },
9018 56usize,
9019 concat!(
9020 "Offset of field: ",
9021 stringify!(__darwin_x86_float_state64),
9022 "::",
9023 stringify!(__fpu_stmm1)
9024 )
9025 );
9026 assert_eq!(
9027 unsafe {
9028 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm2 as *const _ as usize
9029 },
9030 72usize,
9031 concat!(
9032 "Offset of field: ",
9033 stringify!(__darwin_x86_float_state64),
9034 "::",
9035 stringify!(__fpu_stmm2)
9036 )
9037 );
9038 assert_eq!(
9039 unsafe {
9040 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm3 as *const _ as usize
9041 },
9042 88usize,
9043 concat!(
9044 "Offset of field: ",
9045 stringify!(__darwin_x86_float_state64),
9046 "::",
9047 stringify!(__fpu_stmm3)
9048 )
9049 );
9050 assert_eq!(
9051 unsafe {
9052 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm4 as *const _ as usize
9053 },
9054 104usize,
9055 concat!(
9056 "Offset of field: ",
9057 stringify!(__darwin_x86_float_state64),
9058 "::",
9059 stringify!(__fpu_stmm4)
9060 )
9061 );
9062 assert_eq!(
9063 unsafe {
9064 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm5 as *const _ as usize
9065 },
9066 120usize,
9067 concat!(
9068 "Offset of field: ",
9069 stringify!(__darwin_x86_float_state64),
9070 "::",
9071 stringify!(__fpu_stmm5)
9072 )
9073 );
9074 assert_eq!(
9075 unsafe {
9076 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm6 as *const _ as usize
9077 },
9078 136usize,
9079 concat!(
9080 "Offset of field: ",
9081 stringify!(__darwin_x86_float_state64),
9082 "::",
9083 stringify!(__fpu_stmm6)
9084 )
9085 );
9086 assert_eq!(
9087 unsafe {
9088 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm7 as *const _ as usize
9089 },
9090 152usize,
9091 concat!(
9092 "Offset of field: ",
9093 stringify!(__darwin_x86_float_state64),
9094 "::",
9095 stringify!(__fpu_stmm7)
9096 )
9097 );
9098 assert_eq!(
9099 unsafe {
9100 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm0 as *const _ as usize
9101 },
9102 168usize,
9103 concat!(
9104 "Offset of field: ",
9105 stringify!(__darwin_x86_float_state64),
9106 "::",
9107 stringify!(__fpu_xmm0)
9108 )
9109 );
9110 assert_eq!(
9111 unsafe {
9112 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm1 as *const _ as usize
9113 },
9114 184usize,
9115 concat!(
9116 "Offset of field: ",
9117 stringify!(__darwin_x86_float_state64),
9118 "::",
9119 stringify!(__fpu_xmm1)
9120 )
9121 );
9122 assert_eq!(
9123 unsafe {
9124 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm2 as *const _ as usize
9125 },
9126 200usize,
9127 concat!(
9128 "Offset of field: ",
9129 stringify!(__darwin_x86_float_state64),
9130 "::",
9131 stringify!(__fpu_xmm2)
9132 )
9133 );
9134 assert_eq!(
9135 unsafe {
9136 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm3 as *const _ as usize
9137 },
9138 216usize,
9139 concat!(
9140 "Offset of field: ",
9141 stringify!(__darwin_x86_float_state64),
9142 "::",
9143 stringify!(__fpu_xmm3)
9144 )
9145 );
9146 assert_eq!(
9147 unsafe {
9148 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm4 as *const _ as usize
9149 },
9150 232usize,
9151 concat!(
9152 "Offset of field: ",
9153 stringify!(__darwin_x86_float_state64),
9154 "::",
9155 stringify!(__fpu_xmm4)
9156 )
9157 );
9158 assert_eq!(
9159 unsafe {
9160 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm5 as *const _ as usize
9161 },
9162 248usize,
9163 concat!(
9164 "Offset of field: ",
9165 stringify!(__darwin_x86_float_state64),
9166 "::",
9167 stringify!(__fpu_xmm5)
9168 )
9169 );
9170 assert_eq!(
9171 unsafe {
9172 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm6 as *const _ as usize
9173 },
9174 264usize,
9175 concat!(
9176 "Offset of field: ",
9177 stringify!(__darwin_x86_float_state64),
9178 "::",
9179 stringify!(__fpu_xmm6)
9180 )
9181 );
9182 assert_eq!(
9183 unsafe {
9184 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm7 as *const _ as usize
9185 },
9186 280usize,
9187 concat!(
9188 "Offset of field: ",
9189 stringify!(__darwin_x86_float_state64),
9190 "::",
9191 stringify!(__fpu_xmm7)
9192 )
9193 );
9194 assert_eq!(
9195 unsafe {
9196 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm8 as *const _ as usize
9197 },
9198 296usize,
9199 concat!(
9200 "Offset of field: ",
9201 stringify!(__darwin_x86_float_state64),
9202 "::",
9203 stringify!(__fpu_xmm8)
9204 )
9205 );
9206 assert_eq!(
9207 unsafe {
9208 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm9 as *const _ as usize
9209 },
9210 312usize,
9211 concat!(
9212 "Offset of field: ",
9213 stringify!(__darwin_x86_float_state64),
9214 "::",
9215 stringify!(__fpu_xmm9)
9216 )
9217 );
9218 assert_eq!(
9219 unsafe {
9220 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm10 as *const _ as usize
9221 },
9222 328usize,
9223 concat!(
9224 "Offset of field: ",
9225 stringify!(__darwin_x86_float_state64),
9226 "::",
9227 stringify!(__fpu_xmm10)
9228 )
9229 );
9230 assert_eq!(
9231 unsafe {
9232 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm11 as *const _ as usize
9233 },
9234 344usize,
9235 concat!(
9236 "Offset of field: ",
9237 stringify!(__darwin_x86_float_state64),
9238 "::",
9239 stringify!(__fpu_xmm11)
9240 )
9241 );
9242 assert_eq!(
9243 unsafe {
9244 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm12 as *const _ as usize
9245 },
9246 360usize,
9247 concat!(
9248 "Offset of field: ",
9249 stringify!(__darwin_x86_float_state64),
9250 "::",
9251 stringify!(__fpu_xmm12)
9252 )
9253 );
9254 assert_eq!(
9255 unsafe {
9256 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm13 as *const _ as usize
9257 },
9258 376usize,
9259 concat!(
9260 "Offset of field: ",
9261 stringify!(__darwin_x86_float_state64),
9262 "::",
9263 stringify!(__fpu_xmm13)
9264 )
9265 );
9266 assert_eq!(
9267 unsafe {
9268 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm14 as *const _ as usize
9269 },
9270 392usize,
9271 concat!(
9272 "Offset of field: ",
9273 stringify!(__darwin_x86_float_state64),
9274 "::",
9275 stringify!(__fpu_xmm14)
9276 )
9277 );
9278 assert_eq!(
9279 unsafe {
9280 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm15 as *const _ as usize
9281 },
9282 408usize,
9283 concat!(
9284 "Offset of field: ",
9285 stringify!(__darwin_x86_float_state64),
9286 "::",
9287 stringify!(__fpu_xmm15)
9288 )
9289 );
9290 assert_eq!(
9291 unsafe {
9292 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv4 as *const _ as usize
9293 },
9294 424usize,
9295 concat!(
9296 "Offset of field: ",
9297 stringify!(__darwin_x86_float_state64),
9298 "::",
9299 stringify!(__fpu_rsrv4)
9300 )
9301 );
9302 assert_eq!(
9303 unsafe {
9304 &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved1 as *const _
9305 as usize
9306 },
9307 520usize,
9308 concat!(
9309 "Offset of field: ",
9310 stringify!(__darwin_x86_float_state64),
9311 "::",
9312 stringify!(__fpu_reserved1)
9313 )
9314 );
9315}
9316#[repr(C)]
9317#[derive(Copy, Clone)]
9318pub struct __darwin_x86_avx_state64 {
9319 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
9320 pub __fpu_fcw: __darwin_fp_control,
9321 pub __fpu_fsw: __darwin_fp_status,
9322 pub __fpu_ftw: __uint8_t,
9323 pub __fpu_rsrv1: __uint8_t,
9324 pub __fpu_fop: __uint16_t,
9325 pub __fpu_ip: __uint32_t,
9326 pub __fpu_cs: __uint16_t,
9327 pub __fpu_rsrv2: __uint16_t,
9328 pub __fpu_dp: __uint32_t,
9329 pub __fpu_ds: __uint16_t,
9330 pub __fpu_rsrv3: __uint16_t,
9331 pub __fpu_mxcsr: __uint32_t,
9332 pub __fpu_mxcsrmask: __uint32_t,
9333 pub __fpu_stmm0: __darwin_mmst_reg,
9334 pub __fpu_stmm1: __darwin_mmst_reg,
9335 pub __fpu_stmm2: __darwin_mmst_reg,
9336 pub __fpu_stmm3: __darwin_mmst_reg,
9337 pub __fpu_stmm4: __darwin_mmst_reg,
9338 pub __fpu_stmm5: __darwin_mmst_reg,
9339 pub __fpu_stmm6: __darwin_mmst_reg,
9340 pub __fpu_stmm7: __darwin_mmst_reg,
9341 pub __fpu_xmm0: __darwin_xmm_reg,
9342 pub __fpu_xmm1: __darwin_xmm_reg,
9343 pub __fpu_xmm2: __darwin_xmm_reg,
9344 pub __fpu_xmm3: __darwin_xmm_reg,
9345 pub __fpu_xmm4: __darwin_xmm_reg,
9346 pub __fpu_xmm5: __darwin_xmm_reg,
9347 pub __fpu_xmm6: __darwin_xmm_reg,
9348 pub __fpu_xmm7: __darwin_xmm_reg,
9349 pub __fpu_xmm8: __darwin_xmm_reg,
9350 pub __fpu_xmm9: __darwin_xmm_reg,
9351 pub __fpu_xmm10: __darwin_xmm_reg,
9352 pub __fpu_xmm11: __darwin_xmm_reg,
9353 pub __fpu_xmm12: __darwin_xmm_reg,
9354 pub __fpu_xmm13: __darwin_xmm_reg,
9355 pub __fpu_xmm14: __darwin_xmm_reg,
9356 pub __fpu_xmm15: __darwin_xmm_reg,
9357 pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
9358 pub __fpu_reserved1: ::std::os::raw::c_int,
9359 pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
9360 pub __fpu_ymmh0: __darwin_xmm_reg,
9361 pub __fpu_ymmh1: __darwin_xmm_reg,
9362 pub __fpu_ymmh2: __darwin_xmm_reg,
9363 pub __fpu_ymmh3: __darwin_xmm_reg,
9364 pub __fpu_ymmh4: __darwin_xmm_reg,
9365 pub __fpu_ymmh5: __darwin_xmm_reg,
9366 pub __fpu_ymmh6: __darwin_xmm_reg,
9367 pub __fpu_ymmh7: __darwin_xmm_reg,
9368 pub __fpu_ymmh8: __darwin_xmm_reg,
9369 pub __fpu_ymmh9: __darwin_xmm_reg,
9370 pub __fpu_ymmh10: __darwin_xmm_reg,
9371 pub __fpu_ymmh11: __darwin_xmm_reg,
9372 pub __fpu_ymmh12: __darwin_xmm_reg,
9373 pub __fpu_ymmh13: __darwin_xmm_reg,
9374 pub __fpu_ymmh14: __darwin_xmm_reg,
9375 pub __fpu_ymmh15: __darwin_xmm_reg,
9376}
9377#[test]
9378fn bindgen_test_layout___darwin_x86_avx_state64() {
9379 assert_eq!(
9380 ::std::mem::size_of::<__darwin_x86_avx_state64>(),
9381 844usize,
9382 concat!("Size of: ", stringify!(__darwin_x86_avx_state64))
9383 );
9384 assert_eq!(
9385 ::std::mem::align_of::<__darwin_x86_avx_state64>(),
9386 4usize,
9387 concat!("Alignment of ", stringify!(__darwin_x86_avx_state64))
9388 );
9389 assert_eq!(
9390 unsafe {
9391 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved as *const _ as usize
9392 },
9393 0usize,
9394 concat!(
9395 "Offset of field: ",
9396 stringify!(__darwin_x86_avx_state64),
9397 "::",
9398 stringify!(__fpu_reserved)
9399 )
9400 );
9401 assert_eq!(
9402 unsafe {
9403 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fcw as *const _ as usize
9404 },
9405 8usize,
9406 concat!(
9407 "Offset of field: ",
9408 stringify!(__darwin_x86_avx_state64),
9409 "::",
9410 stringify!(__fpu_fcw)
9411 )
9412 );
9413 assert_eq!(
9414 unsafe {
9415 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fsw as *const _ as usize
9416 },
9417 10usize,
9418 concat!(
9419 "Offset of field: ",
9420 stringify!(__darwin_x86_avx_state64),
9421 "::",
9422 stringify!(__fpu_fsw)
9423 )
9424 );
9425 assert_eq!(
9426 unsafe {
9427 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ftw as *const _ as usize
9428 },
9429 12usize,
9430 concat!(
9431 "Offset of field: ",
9432 stringify!(__darwin_x86_avx_state64),
9433 "::",
9434 stringify!(__fpu_ftw)
9435 )
9436 );
9437 assert_eq!(
9438 unsafe {
9439 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv1 as *const _ as usize
9440 },
9441 13usize,
9442 concat!(
9443 "Offset of field: ",
9444 stringify!(__darwin_x86_avx_state64),
9445 "::",
9446 stringify!(__fpu_rsrv1)
9447 )
9448 );
9449 assert_eq!(
9450 unsafe {
9451 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fop as *const _ as usize
9452 },
9453 14usize,
9454 concat!(
9455 "Offset of field: ",
9456 stringify!(__darwin_x86_avx_state64),
9457 "::",
9458 stringify!(__fpu_fop)
9459 )
9460 );
9461 assert_eq!(
9462 unsafe {
9463 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ip as *const _ as usize
9464 },
9465 16usize,
9466 concat!(
9467 "Offset of field: ",
9468 stringify!(__darwin_x86_avx_state64),
9469 "::",
9470 stringify!(__fpu_ip)
9471 )
9472 );
9473 assert_eq!(
9474 unsafe {
9475 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_cs as *const _ as usize
9476 },
9477 20usize,
9478 concat!(
9479 "Offset of field: ",
9480 stringify!(__darwin_x86_avx_state64),
9481 "::",
9482 stringify!(__fpu_cs)
9483 )
9484 );
9485 assert_eq!(
9486 unsafe {
9487 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv2 as *const _ as usize
9488 },
9489 22usize,
9490 concat!(
9491 "Offset of field: ",
9492 stringify!(__darwin_x86_avx_state64),
9493 "::",
9494 stringify!(__fpu_rsrv2)
9495 )
9496 );
9497 assert_eq!(
9498 unsafe {
9499 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_dp as *const _ as usize
9500 },
9501 24usize,
9502 concat!(
9503 "Offset of field: ",
9504 stringify!(__darwin_x86_avx_state64),
9505 "::",
9506 stringify!(__fpu_dp)
9507 )
9508 );
9509 assert_eq!(
9510 unsafe {
9511 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ds as *const _ as usize
9512 },
9513 28usize,
9514 concat!(
9515 "Offset of field: ",
9516 stringify!(__darwin_x86_avx_state64),
9517 "::",
9518 stringify!(__fpu_ds)
9519 )
9520 );
9521 assert_eq!(
9522 unsafe {
9523 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv3 as *const _ as usize
9524 },
9525 30usize,
9526 concat!(
9527 "Offset of field: ",
9528 stringify!(__darwin_x86_avx_state64),
9529 "::",
9530 stringify!(__fpu_rsrv3)
9531 )
9532 );
9533 assert_eq!(
9534 unsafe {
9535 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsr as *const _ as usize
9536 },
9537 32usize,
9538 concat!(
9539 "Offset of field: ",
9540 stringify!(__darwin_x86_avx_state64),
9541 "::",
9542 stringify!(__fpu_mxcsr)
9543 )
9544 );
9545 assert_eq!(
9546 unsafe {
9547 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsrmask as *const _
9548 as usize
9549 },
9550 36usize,
9551 concat!(
9552 "Offset of field: ",
9553 stringify!(__darwin_x86_avx_state64),
9554 "::",
9555 stringify!(__fpu_mxcsrmask)
9556 )
9557 );
9558 assert_eq!(
9559 unsafe {
9560 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm0 as *const _ as usize
9561 },
9562 40usize,
9563 concat!(
9564 "Offset of field: ",
9565 stringify!(__darwin_x86_avx_state64),
9566 "::",
9567 stringify!(__fpu_stmm0)
9568 )
9569 );
9570 assert_eq!(
9571 unsafe {
9572 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm1 as *const _ as usize
9573 },
9574 56usize,
9575 concat!(
9576 "Offset of field: ",
9577 stringify!(__darwin_x86_avx_state64),
9578 "::",
9579 stringify!(__fpu_stmm1)
9580 )
9581 );
9582 assert_eq!(
9583 unsafe {
9584 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm2 as *const _ as usize
9585 },
9586 72usize,
9587 concat!(
9588 "Offset of field: ",
9589 stringify!(__darwin_x86_avx_state64),
9590 "::",
9591 stringify!(__fpu_stmm2)
9592 )
9593 );
9594 assert_eq!(
9595 unsafe {
9596 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm3 as *const _ as usize
9597 },
9598 88usize,
9599 concat!(
9600 "Offset of field: ",
9601 stringify!(__darwin_x86_avx_state64),
9602 "::",
9603 stringify!(__fpu_stmm3)
9604 )
9605 );
9606 assert_eq!(
9607 unsafe {
9608 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm4 as *const _ as usize
9609 },
9610 104usize,
9611 concat!(
9612 "Offset of field: ",
9613 stringify!(__darwin_x86_avx_state64),
9614 "::",
9615 stringify!(__fpu_stmm4)
9616 )
9617 );
9618 assert_eq!(
9619 unsafe {
9620 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm5 as *const _ as usize
9621 },
9622 120usize,
9623 concat!(
9624 "Offset of field: ",
9625 stringify!(__darwin_x86_avx_state64),
9626 "::",
9627 stringify!(__fpu_stmm5)
9628 )
9629 );
9630 assert_eq!(
9631 unsafe {
9632 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm6 as *const _ as usize
9633 },
9634 136usize,
9635 concat!(
9636 "Offset of field: ",
9637 stringify!(__darwin_x86_avx_state64),
9638 "::",
9639 stringify!(__fpu_stmm6)
9640 )
9641 );
9642 assert_eq!(
9643 unsafe {
9644 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm7 as *const _ as usize
9645 },
9646 152usize,
9647 concat!(
9648 "Offset of field: ",
9649 stringify!(__darwin_x86_avx_state64),
9650 "::",
9651 stringify!(__fpu_stmm7)
9652 )
9653 );
9654 assert_eq!(
9655 unsafe {
9656 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm0 as *const _ as usize
9657 },
9658 168usize,
9659 concat!(
9660 "Offset of field: ",
9661 stringify!(__darwin_x86_avx_state64),
9662 "::",
9663 stringify!(__fpu_xmm0)
9664 )
9665 );
9666 assert_eq!(
9667 unsafe {
9668 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm1 as *const _ as usize
9669 },
9670 184usize,
9671 concat!(
9672 "Offset of field: ",
9673 stringify!(__darwin_x86_avx_state64),
9674 "::",
9675 stringify!(__fpu_xmm1)
9676 )
9677 );
9678 assert_eq!(
9679 unsafe {
9680 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm2 as *const _ as usize
9681 },
9682 200usize,
9683 concat!(
9684 "Offset of field: ",
9685 stringify!(__darwin_x86_avx_state64),
9686 "::",
9687 stringify!(__fpu_xmm2)
9688 )
9689 );
9690 assert_eq!(
9691 unsafe {
9692 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm3 as *const _ as usize
9693 },
9694 216usize,
9695 concat!(
9696 "Offset of field: ",
9697 stringify!(__darwin_x86_avx_state64),
9698 "::",
9699 stringify!(__fpu_xmm3)
9700 )
9701 );
9702 assert_eq!(
9703 unsafe {
9704 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm4 as *const _ as usize
9705 },
9706 232usize,
9707 concat!(
9708 "Offset of field: ",
9709 stringify!(__darwin_x86_avx_state64),
9710 "::",
9711 stringify!(__fpu_xmm4)
9712 )
9713 );
9714 assert_eq!(
9715 unsafe {
9716 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm5 as *const _ as usize
9717 },
9718 248usize,
9719 concat!(
9720 "Offset of field: ",
9721 stringify!(__darwin_x86_avx_state64),
9722 "::",
9723 stringify!(__fpu_xmm5)
9724 )
9725 );
9726 assert_eq!(
9727 unsafe {
9728 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm6 as *const _ as usize
9729 },
9730 264usize,
9731 concat!(
9732 "Offset of field: ",
9733 stringify!(__darwin_x86_avx_state64),
9734 "::",
9735 stringify!(__fpu_xmm6)
9736 )
9737 );
9738 assert_eq!(
9739 unsafe {
9740 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm7 as *const _ as usize
9741 },
9742 280usize,
9743 concat!(
9744 "Offset of field: ",
9745 stringify!(__darwin_x86_avx_state64),
9746 "::",
9747 stringify!(__fpu_xmm7)
9748 )
9749 );
9750 assert_eq!(
9751 unsafe {
9752 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm8 as *const _ as usize
9753 },
9754 296usize,
9755 concat!(
9756 "Offset of field: ",
9757 stringify!(__darwin_x86_avx_state64),
9758 "::",
9759 stringify!(__fpu_xmm8)
9760 )
9761 );
9762 assert_eq!(
9763 unsafe {
9764 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm9 as *const _ as usize
9765 },
9766 312usize,
9767 concat!(
9768 "Offset of field: ",
9769 stringify!(__darwin_x86_avx_state64),
9770 "::",
9771 stringify!(__fpu_xmm9)
9772 )
9773 );
9774 assert_eq!(
9775 unsafe {
9776 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm10 as *const _ as usize
9777 },
9778 328usize,
9779 concat!(
9780 "Offset of field: ",
9781 stringify!(__darwin_x86_avx_state64),
9782 "::",
9783 stringify!(__fpu_xmm10)
9784 )
9785 );
9786 assert_eq!(
9787 unsafe {
9788 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm11 as *const _ as usize
9789 },
9790 344usize,
9791 concat!(
9792 "Offset of field: ",
9793 stringify!(__darwin_x86_avx_state64),
9794 "::",
9795 stringify!(__fpu_xmm11)
9796 )
9797 );
9798 assert_eq!(
9799 unsafe {
9800 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm12 as *const _ as usize
9801 },
9802 360usize,
9803 concat!(
9804 "Offset of field: ",
9805 stringify!(__darwin_x86_avx_state64),
9806 "::",
9807 stringify!(__fpu_xmm12)
9808 )
9809 );
9810 assert_eq!(
9811 unsafe {
9812 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm13 as *const _ as usize
9813 },
9814 376usize,
9815 concat!(
9816 "Offset of field: ",
9817 stringify!(__darwin_x86_avx_state64),
9818 "::",
9819 stringify!(__fpu_xmm13)
9820 )
9821 );
9822 assert_eq!(
9823 unsafe {
9824 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm14 as *const _ as usize
9825 },
9826 392usize,
9827 concat!(
9828 "Offset of field: ",
9829 stringify!(__darwin_x86_avx_state64),
9830 "::",
9831 stringify!(__fpu_xmm14)
9832 )
9833 );
9834 assert_eq!(
9835 unsafe {
9836 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm15 as *const _ as usize
9837 },
9838 408usize,
9839 concat!(
9840 "Offset of field: ",
9841 stringify!(__darwin_x86_avx_state64),
9842 "::",
9843 stringify!(__fpu_xmm15)
9844 )
9845 );
9846 assert_eq!(
9847 unsafe {
9848 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv4 as *const _ as usize
9849 },
9850 424usize,
9851 concat!(
9852 "Offset of field: ",
9853 stringify!(__darwin_x86_avx_state64),
9854 "::",
9855 stringify!(__fpu_rsrv4)
9856 )
9857 );
9858 assert_eq!(
9859 unsafe {
9860 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved1 as *const _
9861 as usize
9862 },
9863 520usize,
9864 concat!(
9865 "Offset of field: ",
9866 stringify!(__darwin_x86_avx_state64),
9867 "::",
9868 stringify!(__fpu_reserved1)
9869 )
9870 );
9871 assert_eq!(
9872 unsafe {
9873 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__avx_reserved1 as *const _
9874 as usize
9875 },
9876 524usize,
9877 concat!(
9878 "Offset of field: ",
9879 stringify!(__darwin_x86_avx_state64),
9880 "::",
9881 stringify!(__avx_reserved1)
9882 )
9883 );
9884 assert_eq!(
9885 unsafe {
9886 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh0 as *const _ as usize
9887 },
9888 588usize,
9889 concat!(
9890 "Offset of field: ",
9891 stringify!(__darwin_x86_avx_state64),
9892 "::",
9893 stringify!(__fpu_ymmh0)
9894 )
9895 );
9896 assert_eq!(
9897 unsafe {
9898 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh1 as *const _ as usize
9899 },
9900 604usize,
9901 concat!(
9902 "Offset of field: ",
9903 stringify!(__darwin_x86_avx_state64),
9904 "::",
9905 stringify!(__fpu_ymmh1)
9906 )
9907 );
9908 assert_eq!(
9909 unsafe {
9910 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh2 as *const _ as usize
9911 },
9912 620usize,
9913 concat!(
9914 "Offset of field: ",
9915 stringify!(__darwin_x86_avx_state64),
9916 "::",
9917 stringify!(__fpu_ymmh2)
9918 )
9919 );
9920 assert_eq!(
9921 unsafe {
9922 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh3 as *const _ as usize
9923 },
9924 636usize,
9925 concat!(
9926 "Offset of field: ",
9927 stringify!(__darwin_x86_avx_state64),
9928 "::",
9929 stringify!(__fpu_ymmh3)
9930 )
9931 );
9932 assert_eq!(
9933 unsafe {
9934 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh4 as *const _ as usize
9935 },
9936 652usize,
9937 concat!(
9938 "Offset of field: ",
9939 stringify!(__darwin_x86_avx_state64),
9940 "::",
9941 stringify!(__fpu_ymmh4)
9942 )
9943 );
9944 assert_eq!(
9945 unsafe {
9946 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh5 as *const _ as usize
9947 },
9948 668usize,
9949 concat!(
9950 "Offset of field: ",
9951 stringify!(__darwin_x86_avx_state64),
9952 "::",
9953 stringify!(__fpu_ymmh5)
9954 )
9955 );
9956 assert_eq!(
9957 unsafe {
9958 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh6 as *const _ as usize
9959 },
9960 684usize,
9961 concat!(
9962 "Offset of field: ",
9963 stringify!(__darwin_x86_avx_state64),
9964 "::",
9965 stringify!(__fpu_ymmh6)
9966 )
9967 );
9968 assert_eq!(
9969 unsafe {
9970 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh7 as *const _ as usize
9971 },
9972 700usize,
9973 concat!(
9974 "Offset of field: ",
9975 stringify!(__darwin_x86_avx_state64),
9976 "::",
9977 stringify!(__fpu_ymmh7)
9978 )
9979 );
9980 assert_eq!(
9981 unsafe {
9982 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh8 as *const _ as usize
9983 },
9984 716usize,
9985 concat!(
9986 "Offset of field: ",
9987 stringify!(__darwin_x86_avx_state64),
9988 "::",
9989 stringify!(__fpu_ymmh8)
9990 )
9991 );
9992 assert_eq!(
9993 unsafe {
9994 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh9 as *const _ as usize
9995 },
9996 732usize,
9997 concat!(
9998 "Offset of field: ",
9999 stringify!(__darwin_x86_avx_state64),
10000 "::",
10001 stringify!(__fpu_ymmh9)
10002 )
10003 );
10004 assert_eq!(
10005 unsafe {
10006 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh10 as *const _ as usize
10007 },
10008 748usize,
10009 concat!(
10010 "Offset of field: ",
10011 stringify!(__darwin_x86_avx_state64),
10012 "::",
10013 stringify!(__fpu_ymmh10)
10014 )
10015 );
10016 assert_eq!(
10017 unsafe {
10018 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh11 as *const _ as usize
10019 },
10020 764usize,
10021 concat!(
10022 "Offset of field: ",
10023 stringify!(__darwin_x86_avx_state64),
10024 "::",
10025 stringify!(__fpu_ymmh11)
10026 )
10027 );
10028 assert_eq!(
10029 unsafe {
10030 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh12 as *const _ as usize
10031 },
10032 780usize,
10033 concat!(
10034 "Offset of field: ",
10035 stringify!(__darwin_x86_avx_state64),
10036 "::",
10037 stringify!(__fpu_ymmh12)
10038 )
10039 );
10040 assert_eq!(
10041 unsafe {
10042 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh13 as *const _ as usize
10043 },
10044 796usize,
10045 concat!(
10046 "Offset of field: ",
10047 stringify!(__darwin_x86_avx_state64),
10048 "::",
10049 stringify!(__fpu_ymmh13)
10050 )
10051 );
10052 assert_eq!(
10053 unsafe {
10054 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh14 as *const _ as usize
10055 },
10056 812usize,
10057 concat!(
10058 "Offset of field: ",
10059 stringify!(__darwin_x86_avx_state64),
10060 "::",
10061 stringify!(__fpu_ymmh14)
10062 )
10063 );
10064 assert_eq!(
10065 unsafe {
10066 &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh15 as *const _ as usize
10067 },
10068 828usize,
10069 concat!(
10070 "Offset of field: ",
10071 stringify!(__darwin_x86_avx_state64),
10072 "::",
10073 stringify!(__fpu_ymmh15)
10074 )
10075 );
10076}
10077#[repr(C)]
10078#[derive(Copy, Clone)]
10079pub struct __darwin_x86_avx512_state64 {
10080 pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
10081 pub __fpu_fcw: __darwin_fp_control,
10082 pub __fpu_fsw: __darwin_fp_status,
10083 pub __fpu_ftw: __uint8_t,
10084 pub __fpu_rsrv1: __uint8_t,
10085 pub __fpu_fop: __uint16_t,
10086 pub __fpu_ip: __uint32_t,
10087 pub __fpu_cs: __uint16_t,
10088 pub __fpu_rsrv2: __uint16_t,
10089 pub __fpu_dp: __uint32_t,
10090 pub __fpu_ds: __uint16_t,
10091 pub __fpu_rsrv3: __uint16_t,
10092 pub __fpu_mxcsr: __uint32_t,
10093 pub __fpu_mxcsrmask: __uint32_t,
10094 pub __fpu_stmm0: __darwin_mmst_reg,
10095 pub __fpu_stmm1: __darwin_mmst_reg,
10096 pub __fpu_stmm2: __darwin_mmst_reg,
10097 pub __fpu_stmm3: __darwin_mmst_reg,
10098 pub __fpu_stmm4: __darwin_mmst_reg,
10099 pub __fpu_stmm5: __darwin_mmst_reg,
10100 pub __fpu_stmm6: __darwin_mmst_reg,
10101 pub __fpu_stmm7: __darwin_mmst_reg,
10102 pub __fpu_xmm0: __darwin_xmm_reg,
10103 pub __fpu_xmm1: __darwin_xmm_reg,
10104 pub __fpu_xmm2: __darwin_xmm_reg,
10105 pub __fpu_xmm3: __darwin_xmm_reg,
10106 pub __fpu_xmm4: __darwin_xmm_reg,
10107 pub __fpu_xmm5: __darwin_xmm_reg,
10108 pub __fpu_xmm6: __darwin_xmm_reg,
10109 pub __fpu_xmm7: __darwin_xmm_reg,
10110 pub __fpu_xmm8: __darwin_xmm_reg,
10111 pub __fpu_xmm9: __darwin_xmm_reg,
10112 pub __fpu_xmm10: __darwin_xmm_reg,
10113 pub __fpu_xmm11: __darwin_xmm_reg,
10114 pub __fpu_xmm12: __darwin_xmm_reg,
10115 pub __fpu_xmm13: __darwin_xmm_reg,
10116 pub __fpu_xmm14: __darwin_xmm_reg,
10117 pub __fpu_xmm15: __darwin_xmm_reg,
10118 pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
10119 pub __fpu_reserved1: ::std::os::raw::c_int,
10120 pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
10121 pub __fpu_ymmh0: __darwin_xmm_reg,
10122 pub __fpu_ymmh1: __darwin_xmm_reg,
10123 pub __fpu_ymmh2: __darwin_xmm_reg,
10124 pub __fpu_ymmh3: __darwin_xmm_reg,
10125 pub __fpu_ymmh4: __darwin_xmm_reg,
10126 pub __fpu_ymmh5: __darwin_xmm_reg,
10127 pub __fpu_ymmh6: __darwin_xmm_reg,
10128 pub __fpu_ymmh7: __darwin_xmm_reg,
10129 pub __fpu_ymmh8: __darwin_xmm_reg,
10130 pub __fpu_ymmh9: __darwin_xmm_reg,
10131 pub __fpu_ymmh10: __darwin_xmm_reg,
10132 pub __fpu_ymmh11: __darwin_xmm_reg,
10133 pub __fpu_ymmh12: __darwin_xmm_reg,
10134 pub __fpu_ymmh13: __darwin_xmm_reg,
10135 pub __fpu_ymmh14: __darwin_xmm_reg,
10136 pub __fpu_ymmh15: __darwin_xmm_reg,
10137 pub __fpu_k0: __darwin_opmask_reg,
10138 pub __fpu_k1: __darwin_opmask_reg,
10139 pub __fpu_k2: __darwin_opmask_reg,
10140 pub __fpu_k3: __darwin_opmask_reg,
10141 pub __fpu_k4: __darwin_opmask_reg,
10142 pub __fpu_k5: __darwin_opmask_reg,
10143 pub __fpu_k6: __darwin_opmask_reg,
10144 pub __fpu_k7: __darwin_opmask_reg,
10145 pub __fpu_zmmh0: __darwin_ymm_reg,
10146 pub __fpu_zmmh1: __darwin_ymm_reg,
10147 pub __fpu_zmmh2: __darwin_ymm_reg,
10148 pub __fpu_zmmh3: __darwin_ymm_reg,
10149 pub __fpu_zmmh4: __darwin_ymm_reg,
10150 pub __fpu_zmmh5: __darwin_ymm_reg,
10151 pub __fpu_zmmh6: __darwin_ymm_reg,
10152 pub __fpu_zmmh7: __darwin_ymm_reg,
10153 pub __fpu_zmmh8: __darwin_ymm_reg,
10154 pub __fpu_zmmh9: __darwin_ymm_reg,
10155 pub __fpu_zmmh10: __darwin_ymm_reg,
10156 pub __fpu_zmmh11: __darwin_ymm_reg,
10157 pub __fpu_zmmh12: __darwin_ymm_reg,
10158 pub __fpu_zmmh13: __darwin_ymm_reg,
10159 pub __fpu_zmmh14: __darwin_ymm_reg,
10160 pub __fpu_zmmh15: __darwin_ymm_reg,
10161 pub __fpu_zmm16: __darwin_zmm_reg,
10162 pub __fpu_zmm17: __darwin_zmm_reg,
10163 pub __fpu_zmm18: __darwin_zmm_reg,
10164 pub __fpu_zmm19: __darwin_zmm_reg,
10165 pub __fpu_zmm20: __darwin_zmm_reg,
10166 pub __fpu_zmm21: __darwin_zmm_reg,
10167 pub __fpu_zmm22: __darwin_zmm_reg,
10168 pub __fpu_zmm23: __darwin_zmm_reg,
10169 pub __fpu_zmm24: __darwin_zmm_reg,
10170 pub __fpu_zmm25: __darwin_zmm_reg,
10171 pub __fpu_zmm26: __darwin_zmm_reg,
10172 pub __fpu_zmm27: __darwin_zmm_reg,
10173 pub __fpu_zmm28: __darwin_zmm_reg,
10174 pub __fpu_zmm29: __darwin_zmm_reg,
10175 pub __fpu_zmm30: __darwin_zmm_reg,
10176 pub __fpu_zmm31: __darwin_zmm_reg,
10177}
10178#[test]
10179fn bindgen_test_layout___darwin_x86_avx512_state64() {
10180 assert_eq!(
10181 ::std::mem::size_of::<__darwin_x86_avx512_state64>(),
10182 2444usize,
10183 concat!("Size of: ", stringify!(__darwin_x86_avx512_state64))
10184 );
10185 assert_eq!(
10186 ::std::mem::align_of::<__darwin_x86_avx512_state64>(),
10187 4usize,
10188 concat!("Alignment of ", stringify!(__darwin_x86_avx512_state64))
10189 );
10190 assert_eq!(
10191 unsafe {
10192 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved as *const _
10193 as usize
10194 },
10195 0usize,
10196 concat!(
10197 "Offset of field: ",
10198 stringify!(__darwin_x86_avx512_state64),
10199 "::",
10200 stringify!(__fpu_reserved)
10201 )
10202 );
10203 assert_eq!(
10204 unsafe {
10205 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fcw as *const _ as usize
10206 },
10207 8usize,
10208 concat!(
10209 "Offset of field: ",
10210 stringify!(__darwin_x86_avx512_state64),
10211 "::",
10212 stringify!(__fpu_fcw)
10213 )
10214 );
10215 assert_eq!(
10216 unsafe {
10217 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fsw as *const _ as usize
10218 },
10219 10usize,
10220 concat!(
10221 "Offset of field: ",
10222 stringify!(__darwin_x86_avx512_state64),
10223 "::",
10224 stringify!(__fpu_fsw)
10225 )
10226 );
10227 assert_eq!(
10228 unsafe {
10229 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ftw as *const _ as usize
10230 },
10231 12usize,
10232 concat!(
10233 "Offset of field: ",
10234 stringify!(__darwin_x86_avx512_state64),
10235 "::",
10236 stringify!(__fpu_ftw)
10237 )
10238 );
10239 assert_eq!(
10240 unsafe {
10241 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv1 as *const _ as usize
10242 },
10243 13usize,
10244 concat!(
10245 "Offset of field: ",
10246 stringify!(__darwin_x86_avx512_state64),
10247 "::",
10248 stringify!(__fpu_rsrv1)
10249 )
10250 );
10251 assert_eq!(
10252 unsafe {
10253 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fop as *const _ as usize
10254 },
10255 14usize,
10256 concat!(
10257 "Offset of field: ",
10258 stringify!(__darwin_x86_avx512_state64),
10259 "::",
10260 stringify!(__fpu_fop)
10261 )
10262 );
10263 assert_eq!(
10264 unsafe {
10265 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ip as *const _ as usize
10266 },
10267 16usize,
10268 concat!(
10269 "Offset of field: ",
10270 stringify!(__darwin_x86_avx512_state64),
10271 "::",
10272 stringify!(__fpu_ip)
10273 )
10274 );
10275 assert_eq!(
10276 unsafe {
10277 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_cs as *const _ as usize
10278 },
10279 20usize,
10280 concat!(
10281 "Offset of field: ",
10282 stringify!(__darwin_x86_avx512_state64),
10283 "::",
10284 stringify!(__fpu_cs)
10285 )
10286 );
10287 assert_eq!(
10288 unsafe {
10289 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv2 as *const _ as usize
10290 },
10291 22usize,
10292 concat!(
10293 "Offset of field: ",
10294 stringify!(__darwin_x86_avx512_state64),
10295 "::",
10296 stringify!(__fpu_rsrv2)
10297 )
10298 );
10299 assert_eq!(
10300 unsafe {
10301 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_dp as *const _ as usize
10302 },
10303 24usize,
10304 concat!(
10305 "Offset of field: ",
10306 stringify!(__darwin_x86_avx512_state64),
10307 "::",
10308 stringify!(__fpu_dp)
10309 )
10310 );
10311 assert_eq!(
10312 unsafe {
10313 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ds as *const _ as usize
10314 },
10315 28usize,
10316 concat!(
10317 "Offset of field: ",
10318 stringify!(__darwin_x86_avx512_state64),
10319 "::",
10320 stringify!(__fpu_ds)
10321 )
10322 );
10323 assert_eq!(
10324 unsafe {
10325 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv3 as *const _ as usize
10326 },
10327 30usize,
10328 concat!(
10329 "Offset of field: ",
10330 stringify!(__darwin_x86_avx512_state64),
10331 "::",
10332 stringify!(__fpu_rsrv3)
10333 )
10334 );
10335 assert_eq!(
10336 unsafe {
10337 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsr as *const _ as usize
10338 },
10339 32usize,
10340 concat!(
10341 "Offset of field: ",
10342 stringify!(__darwin_x86_avx512_state64),
10343 "::",
10344 stringify!(__fpu_mxcsr)
10345 )
10346 );
10347 assert_eq!(
10348 unsafe {
10349 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsrmask as *const _
10350 as usize
10351 },
10352 36usize,
10353 concat!(
10354 "Offset of field: ",
10355 stringify!(__darwin_x86_avx512_state64),
10356 "::",
10357 stringify!(__fpu_mxcsrmask)
10358 )
10359 );
10360 assert_eq!(
10361 unsafe {
10362 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm0 as *const _ as usize
10363 },
10364 40usize,
10365 concat!(
10366 "Offset of field: ",
10367 stringify!(__darwin_x86_avx512_state64),
10368 "::",
10369 stringify!(__fpu_stmm0)
10370 )
10371 );
10372 assert_eq!(
10373 unsafe {
10374 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm1 as *const _ as usize
10375 },
10376 56usize,
10377 concat!(
10378 "Offset of field: ",
10379 stringify!(__darwin_x86_avx512_state64),
10380 "::",
10381 stringify!(__fpu_stmm1)
10382 )
10383 );
10384 assert_eq!(
10385 unsafe {
10386 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm2 as *const _ as usize
10387 },
10388 72usize,
10389 concat!(
10390 "Offset of field: ",
10391 stringify!(__darwin_x86_avx512_state64),
10392 "::",
10393 stringify!(__fpu_stmm2)
10394 )
10395 );
10396 assert_eq!(
10397 unsafe {
10398 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm3 as *const _ as usize
10399 },
10400 88usize,
10401 concat!(
10402 "Offset of field: ",
10403 stringify!(__darwin_x86_avx512_state64),
10404 "::",
10405 stringify!(__fpu_stmm3)
10406 )
10407 );
10408 assert_eq!(
10409 unsafe {
10410 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm4 as *const _ as usize
10411 },
10412 104usize,
10413 concat!(
10414 "Offset of field: ",
10415 stringify!(__darwin_x86_avx512_state64),
10416 "::",
10417 stringify!(__fpu_stmm4)
10418 )
10419 );
10420 assert_eq!(
10421 unsafe {
10422 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm5 as *const _ as usize
10423 },
10424 120usize,
10425 concat!(
10426 "Offset of field: ",
10427 stringify!(__darwin_x86_avx512_state64),
10428 "::",
10429 stringify!(__fpu_stmm5)
10430 )
10431 );
10432 assert_eq!(
10433 unsafe {
10434 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm6 as *const _ as usize
10435 },
10436 136usize,
10437 concat!(
10438 "Offset of field: ",
10439 stringify!(__darwin_x86_avx512_state64),
10440 "::",
10441 stringify!(__fpu_stmm6)
10442 )
10443 );
10444 assert_eq!(
10445 unsafe {
10446 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm7 as *const _ as usize
10447 },
10448 152usize,
10449 concat!(
10450 "Offset of field: ",
10451 stringify!(__darwin_x86_avx512_state64),
10452 "::",
10453 stringify!(__fpu_stmm7)
10454 )
10455 );
10456 assert_eq!(
10457 unsafe {
10458 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm0 as *const _ as usize
10459 },
10460 168usize,
10461 concat!(
10462 "Offset of field: ",
10463 stringify!(__darwin_x86_avx512_state64),
10464 "::",
10465 stringify!(__fpu_xmm0)
10466 )
10467 );
10468 assert_eq!(
10469 unsafe {
10470 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm1 as *const _ as usize
10471 },
10472 184usize,
10473 concat!(
10474 "Offset of field: ",
10475 stringify!(__darwin_x86_avx512_state64),
10476 "::",
10477 stringify!(__fpu_xmm1)
10478 )
10479 );
10480 assert_eq!(
10481 unsafe {
10482 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm2 as *const _ as usize
10483 },
10484 200usize,
10485 concat!(
10486 "Offset of field: ",
10487 stringify!(__darwin_x86_avx512_state64),
10488 "::",
10489 stringify!(__fpu_xmm2)
10490 )
10491 );
10492 assert_eq!(
10493 unsafe {
10494 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm3 as *const _ as usize
10495 },
10496 216usize,
10497 concat!(
10498 "Offset of field: ",
10499 stringify!(__darwin_x86_avx512_state64),
10500 "::",
10501 stringify!(__fpu_xmm3)
10502 )
10503 );
10504 assert_eq!(
10505 unsafe {
10506 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm4 as *const _ as usize
10507 },
10508 232usize,
10509 concat!(
10510 "Offset of field: ",
10511 stringify!(__darwin_x86_avx512_state64),
10512 "::",
10513 stringify!(__fpu_xmm4)
10514 )
10515 );
10516 assert_eq!(
10517 unsafe {
10518 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm5 as *const _ as usize
10519 },
10520 248usize,
10521 concat!(
10522 "Offset of field: ",
10523 stringify!(__darwin_x86_avx512_state64),
10524 "::",
10525 stringify!(__fpu_xmm5)
10526 )
10527 );
10528 assert_eq!(
10529 unsafe {
10530 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm6 as *const _ as usize
10531 },
10532 264usize,
10533 concat!(
10534 "Offset of field: ",
10535 stringify!(__darwin_x86_avx512_state64),
10536 "::",
10537 stringify!(__fpu_xmm6)
10538 )
10539 );
10540 assert_eq!(
10541 unsafe {
10542 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm7 as *const _ as usize
10543 },
10544 280usize,
10545 concat!(
10546 "Offset of field: ",
10547 stringify!(__darwin_x86_avx512_state64),
10548 "::",
10549 stringify!(__fpu_xmm7)
10550 )
10551 );
10552 assert_eq!(
10553 unsafe {
10554 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm8 as *const _ as usize
10555 },
10556 296usize,
10557 concat!(
10558 "Offset of field: ",
10559 stringify!(__darwin_x86_avx512_state64),
10560 "::",
10561 stringify!(__fpu_xmm8)
10562 )
10563 );
10564 assert_eq!(
10565 unsafe {
10566 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm9 as *const _ as usize
10567 },
10568 312usize,
10569 concat!(
10570 "Offset of field: ",
10571 stringify!(__darwin_x86_avx512_state64),
10572 "::",
10573 stringify!(__fpu_xmm9)
10574 )
10575 );
10576 assert_eq!(
10577 unsafe {
10578 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm10 as *const _ as usize
10579 },
10580 328usize,
10581 concat!(
10582 "Offset of field: ",
10583 stringify!(__darwin_x86_avx512_state64),
10584 "::",
10585 stringify!(__fpu_xmm10)
10586 )
10587 );
10588 assert_eq!(
10589 unsafe {
10590 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm11 as *const _ as usize
10591 },
10592 344usize,
10593 concat!(
10594 "Offset of field: ",
10595 stringify!(__darwin_x86_avx512_state64),
10596 "::",
10597 stringify!(__fpu_xmm11)
10598 )
10599 );
10600 assert_eq!(
10601 unsafe {
10602 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm12 as *const _ as usize
10603 },
10604 360usize,
10605 concat!(
10606 "Offset of field: ",
10607 stringify!(__darwin_x86_avx512_state64),
10608 "::",
10609 stringify!(__fpu_xmm12)
10610 )
10611 );
10612 assert_eq!(
10613 unsafe {
10614 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm13 as *const _ as usize
10615 },
10616 376usize,
10617 concat!(
10618 "Offset of field: ",
10619 stringify!(__darwin_x86_avx512_state64),
10620 "::",
10621 stringify!(__fpu_xmm13)
10622 )
10623 );
10624 assert_eq!(
10625 unsafe {
10626 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm14 as *const _ as usize
10627 },
10628 392usize,
10629 concat!(
10630 "Offset of field: ",
10631 stringify!(__darwin_x86_avx512_state64),
10632 "::",
10633 stringify!(__fpu_xmm14)
10634 )
10635 );
10636 assert_eq!(
10637 unsafe {
10638 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm15 as *const _ as usize
10639 },
10640 408usize,
10641 concat!(
10642 "Offset of field: ",
10643 stringify!(__darwin_x86_avx512_state64),
10644 "::",
10645 stringify!(__fpu_xmm15)
10646 )
10647 );
10648 assert_eq!(
10649 unsafe {
10650 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv4 as *const _ as usize
10651 },
10652 424usize,
10653 concat!(
10654 "Offset of field: ",
10655 stringify!(__darwin_x86_avx512_state64),
10656 "::",
10657 stringify!(__fpu_rsrv4)
10658 )
10659 );
10660 assert_eq!(
10661 unsafe {
10662 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved1 as *const _
10663 as usize
10664 },
10665 520usize,
10666 concat!(
10667 "Offset of field: ",
10668 stringify!(__darwin_x86_avx512_state64),
10669 "::",
10670 stringify!(__fpu_reserved1)
10671 )
10672 );
10673 assert_eq!(
10674 unsafe {
10675 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__avx_reserved1 as *const _
10676 as usize
10677 },
10678 524usize,
10679 concat!(
10680 "Offset of field: ",
10681 stringify!(__darwin_x86_avx512_state64),
10682 "::",
10683 stringify!(__avx_reserved1)
10684 )
10685 );
10686 assert_eq!(
10687 unsafe {
10688 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh0 as *const _ as usize
10689 },
10690 588usize,
10691 concat!(
10692 "Offset of field: ",
10693 stringify!(__darwin_x86_avx512_state64),
10694 "::",
10695 stringify!(__fpu_ymmh0)
10696 )
10697 );
10698 assert_eq!(
10699 unsafe {
10700 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh1 as *const _ as usize
10701 },
10702 604usize,
10703 concat!(
10704 "Offset of field: ",
10705 stringify!(__darwin_x86_avx512_state64),
10706 "::",
10707 stringify!(__fpu_ymmh1)
10708 )
10709 );
10710 assert_eq!(
10711 unsafe {
10712 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh2 as *const _ as usize
10713 },
10714 620usize,
10715 concat!(
10716 "Offset of field: ",
10717 stringify!(__darwin_x86_avx512_state64),
10718 "::",
10719 stringify!(__fpu_ymmh2)
10720 )
10721 );
10722 assert_eq!(
10723 unsafe {
10724 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh3 as *const _ as usize
10725 },
10726 636usize,
10727 concat!(
10728 "Offset of field: ",
10729 stringify!(__darwin_x86_avx512_state64),
10730 "::",
10731 stringify!(__fpu_ymmh3)
10732 )
10733 );
10734 assert_eq!(
10735 unsafe {
10736 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh4 as *const _ as usize
10737 },
10738 652usize,
10739 concat!(
10740 "Offset of field: ",
10741 stringify!(__darwin_x86_avx512_state64),
10742 "::",
10743 stringify!(__fpu_ymmh4)
10744 )
10745 );
10746 assert_eq!(
10747 unsafe {
10748 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh5 as *const _ as usize
10749 },
10750 668usize,
10751 concat!(
10752 "Offset of field: ",
10753 stringify!(__darwin_x86_avx512_state64),
10754 "::",
10755 stringify!(__fpu_ymmh5)
10756 )
10757 );
10758 assert_eq!(
10759 unsafe {
10760 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh6 as *const _ as usize
10761 },
10762 684usize,
10763 concat!(
10764 "Offset of field: ",
10765 stringify!(__darwin_x86_avx512_state64),
10766 "::",
10767 stringify!(__fpu_ymmh6)
10768 )
10769 );
10770 assert_eq!(
10771 unsafe {
10772 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh7 as *const _ as usize
10773 },
10774 700usize,
10775 concat!(
10776 "Offset of field: ",
10777 stringify!(__darwin_x86_avx512_state64),
10778 "::",
10779 stringify!(__fpu_ymmh7)
10780 )
10781 );
10782 assert_eq!(
10783 unsafe {
10784 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh8 as *const _ as usize
10785 },
10786 716usize,
10787 concat!(
10788 "Offset of field: ",
10789 stringify!(__darwin_x86_avx512_state64),
10790 "::",
10791 stringify!(__fpu_ymmh8)
10792 )
10793 );
10794 assert_eq!(
10795 unsafe {
10796 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh9 as *const _ as usize
10797 },
10798 732usize,
10799 concat!(
10800 "Offset of field: ",
10801 stringify!(__darwin_x86_avx512_state64),
10802 "::",
10803 stringify!(__fpu_ymmh9)
10804 )
10805 );
10806 assert_eq!(
10807 unsafe {
10808 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh10 as *const _
10809 as usize
10810 },
10811 748usize,
10812 concat!(
10813 "Offset of field: ",
10814 stringify!(__darwin_x86_avx512_state64),
10815 "::",
10816 stringify!(__fpu_ymmh10)
10817 )
10818 );
10819 assert_eq!(
10820 unsafe {
10821 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh11 as *const _
10822 as usize
10823 },
10824 764usize,
10825 concat!(
10826 "Offset of field: ",
10827 stringify!(__darwin_x86_avx512_state64),
10828 "::",
10829 stringify!(__fpu_ymmh11)
10830 )
10831 );
10832 assert_eq!(
10833 unsafe {
10834 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh12 as *const _
10835 as usize
10836 },
10837 780usize,
10838 concat!(
10839 "Offset of field: ",
10840 stringify!(__darwin_x86_avx512_state64),
10841 "::",
10842 stringify!(__fpu_ymmh12)
10843 )
10844 );
10845 assert_eq!(
10846 unsafe {
10847 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh13 as *const _
10848 as usize
10849 },
10850 796usize,
10851 concat!(
10852 "Offset of field: ",
10853 stringify!(__darwin_x86_avx512_state64),
10854 "::",
10855 stringify!(__fpu_ymmh13)
10856 )
10857 );
10858 assert_eq!(
10859 unsafe {
10860 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh14 as *const _
10861 as usize
10862 },
10863 812usize,
10864 concat!(
10865 "Offset of field: ",
10866 stringify!(__darwin_x86_avx512_state64),
10867 "::",
10868 stringify!(__fpu_ymmh14)
10869 )
10870 );
10871 assert_eq!(
10872 unsafe {
10873 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh15 as *const _
10874 as usize
10875 },
10876 828usize,
10877 concat!(
10878 "Offset of field: ",
10879 stringify!(__darwin_x86_avx512_state64),
10880 "::",
10881 stringify!(__fpu_ymmh15)
10882 )
10883 );
10884 assert_eq!(
10885 unsafe {
10886 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k0 as *const _ as usize
10887 },
10888 844usize,
10889 concat!(
10890 "Offset of field: ",
10891 stringify!(__darwin_x86_avx512_state64),
10892 "::",
10893 stringify!(__fpu_k0)
10894 )
10895 );
10896 assert_eq!(
10897 unsafe {
10898 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k1 as *const _ as usize
10899 },
10900 852usize,
10901 concat!(
10902 "Offset of field: ",
10903 stringify!(__darwin_x86_avx512_state64),
10904 "::",
10905 stringify!(__fpu_k1)
10906 )
10907 );
10908 assert_eq!(
10909 unsafe {
10910 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k2 as *const _ as usize
10911 },
10912 860usize,
10913 concat!(
10914 "Offset of field: ",
10915 stringify!(__darwin_x86_avx512_state64),
10916 "::",
10917 stringify!(__fpu_k2)
10918 )
10919 );
10920 assert_eq!(
10921 unsafe {
10922 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k3 as *const _ as usize
10923 },
10924 868usize,
10925 concat!(
10926 "Offset of field: ",
10927 stringify!(__darwin_x86_avx512_state64),
10928 "::",
10929 stringify!(__fpu_k3)
10930 )
10931 );
10932 assert_eq!(
10933 unsafe {
10934 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k4 as *const _ as usize
10935 },
10936 876usize,
10937 concat!(
10938 "Offset of field: ",
10939 stringify!(__darwin_x86_avx512_state64),
10940 "::",
10941 stringify!(__fpu_k4)
10942 )
10943 );
10944 assert_eq!(
10945 unsafe {
10946 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k5 as *const _ as usize
10947 },
10948 884usize,
10949 concat!(
10950 "Offset of field: ",
10951 stringify!(__darwin_x86_avx512_state64),
10952 "::",
10953 stringify!(__fpu_k5)
10954 )
10955 );
10956 assert_eq!(
10957 unsafe {
10958 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k6 as *const _ as usize
10959 },
10960 892usize,
10961 concat!(
10962 "Offset of field: ",
10963 stringify!(__darwin_x86_avx512_state64),
10964 "::",
10965 stringify!(__fpu_k6)
10966 )
10967 );
10968 assert_eq!(
10969 unsafe {
10970 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k7 as *const _ as usize
10971 },
10972 900usize,
10973 concat!(
10974 "Offset of field: ",
10975 stringify!(__darwin_x86_avx512_state64),
10976 "::",
10977 stringify!(__fpu_k7)
10978 )
10979 );
10980 assert_eq!(
10981 unsafe {
10982 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh0 as *const _ as usize
10983 },
10984 908usize,
10985 concat!(
10986 "Offset of field: ",
10987 stringify!(__darwin_x86_avx512_state64),
10988 "::",
10989 stringify!(__fpu_zmmh0)
10990 )
10991 );
10992 assert_eq!(
10993 unsafe {
10994 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh1 as *const _ as usize
10995 },
10996 940usize,
10997 concat!(
10998 "Offset of field: ",
10999 stringify!(__darwin_x86_avx512_state64),
11000 "::",
11001 stringify!(__fpu_zmmh1)
11002 )
11003 );
11004 assert_eq!(
11005 unsafe {
11006 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh2 as *const _ as usize
11007 },
11008 972usize,
11009 concat!(
11010 "Offset of field: ",
11011 stringify!(__darwin_x86_avx512_state64),
11012 "::",
11013 stringify!(__fpu_zmmh2)
11014 )
11015 );
11016 assert_eq!(
11017 unsafe {
11018 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh3 as *const _ as usize
11019 },
11020 1004usize,
11021 concat!(
11022 "Offset of field: ",
11023 stringify!(__darwin_x86_avx512_state64),
11024 "::",
11025 stringify!(__fpu_zmmh3)
11026 )
11027 );
11028 assert_eq!(
11029 unsafe {
11030 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh4 as *const _ as usize
11031 },
11032 1036usize,
11033 concat!(
11034 "Offset of field: ",
11035 stringify!(__darwin_x86_avx512_state64),
11036 "::",
11037 stringify!(__fpu_zmmh4)
11038 )
11039 );
11040 assert_eq!(
11041 unsafe {
11042 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh5 as *const _ as usize
11043 },
11044 1068usize,
11045 concat!(
11046 "Offset of field: ",
11047 stringify!(__darwin_x86_avx512_state64),
11048 "::",
11049 stringify!(__fpu_zmmh5)
11050 )
11051 );
11052 assert_eq!(
11053 unsafe {
11054 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh6 as *const _ as usize
11055 },
11056 1100usize,
11057 concat!(
11058 "Offset of field: ",
11059 stringify!(__darwin_x86_avx512_state64),
11060 "::",
11061 stringify!(__fpu_zmmh6)
11062 )
11063 );
11064 assert_eq!(
11065 unsafe {
11066 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh7 as *const _ as usize
11067 },
11068 1132usize,
11069 concat!(
11070 "Offset of field: ",
11071 stringify!(__darwin_x86_avx512_state64),
11072 "::",
11073 stringify!(__fpu_zmmh7)
11074 )
11075 );
11076 assert_eq!(
11077 unsafe {
11078 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh8 as *const _ as usize
11079 },
11080 1164usize,
11081 concat!(
11082 "Offset of field: ",
11083 stringify!(__darwin_x86_avx512_state64),
11084 "::",
11085 stringify!(__fpu_zmmh8)
11086 )
11087 );
11088 assert_eq!(
11089 unsafe {
11090 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh9 as *const _ as usize
11091 },
11092 1196usize,
11093 concat!(
11094 "Offset of field: ",
11095 stringify!(__darwin_x86_avx512_state64),
11096 "::",
11097 stringify!(__fpu_zmmh9)
11098 )
11099 );
11100 assert_eq!(
11101 unsafe {
11102 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh10 as *const _
11103 as usize
11104 },
11105 1228usize,
11106 concat!(
11107 "Offset of field: ",
11108 stringify!(__darwin_x86_avx512_state64),
11109 "::",
11110 stringify!(__fpu_zmmh10)
11111 )
11112 );
11113 assert_eq!(
11114 unsafe {
11115 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh11 as *const _
11116 as usize
11117 },
11118 1260usize,
11119 concat!(
11120 "Offset of field: ",
11121 stringify!(__darwin_x86_avx512_state64),
11122 "::",
11123 stringify!(__fpu_zmmh11)
11124 )
11125 );
11126 assert_eq!(
11127 unsafe {
11128 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh12 as *const _
11129 as usize
11130 },
11131 1292usize,
11132 concat!(
11133 "Offset of field: ",
11134 stringify!(__darwin_x86_avx512_state64),
11135 "::",
11136 stringify!(__fpu_zmmh12)
11137 )
11138 );
11139 assert_eq!(
11140 unsafe {
11141 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh13 as *const _
11142 as usize
11143 },
11144 1324usize,
11145 concat!(
11146 "Offset of field: ",
11147 stringify!(__darwin_x86_avx512_state64),
11148 "::",
11149 stringify!(__fpu_zmmh13)
11150 )
11151 );
11152 assert_eq!(
11153 unsafe {
11154 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh14 as *const _
11155 as usize
11156 },
11157 1356usize,
11158 concat!(
11159 "Offset of field: ",
11160 stringify!(__darwin_x86_avx512_state64),
11161 "::",
11162 stringify!(__fpu_zmmh14)
11163 )
11164 );
11165 assert_eq!(
11166 unsafe {
11167 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh15 as *const _
11168 as usize
11169 },
11170 1388usize,
11171 concat!(
11172 "Offset of field: ",
11173 stringify!(__darwin_x86_avx512_state64),
11174 "::",
11175 stringify!(__fpu_zmmh15)
11176 )
11177 );
11178 assert_eq!(
11179 unsafe {
11180 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm16 as *const _ as usize
11181 },
11182 1420usize,
11183 concat!(
11184 "Offset of field: ",
11185 stringify!(__darwin_x86_avx512_state64),
11186 "::",
11187 stringify!(__fpu_zmm16)
11188 )
11189 );
11190 assert_eq!(
11191 unsafe {
11192 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm17 as *const _ as usize
11193 },
11194 1484usize,
11195 concat!(
11196 "Offset of field: ",
11197 stringify!(__darwin_x86_avx512_state64),
11198 "::",
11199 stringify!(__fpu_zmm17)
11200 )
11201 );
11202 assert_eq!(
11203 unsafe {
11204 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm18 as *const _ as usize
11205 },
11206 1548usize,
11207 concat!(
11208 "Offset of field: ",
11209 stringify!(__darwin_x86_avx512_state64),
11210 "::",
11211 stringify!(__fpu_zmm18)
11212 )
11213 );
11214 assert_eq!(
11215 unsafe {
11216 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm19 as *const _ as usize
11217 },
11218 1612usize,
11219 concat!(
11220 "Offset of field: ",
11221 stringify!(__darwin_x86_avx512_state64),
11222 "::",
11223 stringify!(__fpu_zmm19)
11224 )
11225 );
11226 assert_eq!(
11227 unsafe {
11228 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm20 as *const _ as usize
11229 },
11230 1676usize,
11231 concat!(
11232 "Offset of field: ",
11233 stringify!(__darwin_x86_avx512_state64),
11234 "::",
11235 stringify!(__fpu_zmm20)
11236 )
11237 );
11238 assert_eq!(
11239 unsafe {
11240 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm21 as *const _ as usize
11241 },
11242 1740usize,
11243 concat!(
11244 "Offset of field: ",
11245 stringify!(__darwin_x86_avx512_state64),
11246 "::",
11247 stringify!(__fpu_zmm21)
11248 )
11249 );
11250 assert_eq!(
11251 unsafe {
11252 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm22 as *const _ as usize
11253 },
11254 1804usize,
11255 concat!(
11256 "Offset of field: ",
11257 stringify!(__darwin_x86_avx512_state64),
11258 "::",
11259 stringify!(__fpu_zmm22)
11260 )
11261 );
11262 assert_eq!(
11263 unsafe {
11264 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm23 as *const _ as usize
11265 },
11266 1868usize,
11267 concat!(
11268 "Offset of field: ",
11269 stringify!(__darwin_x86_avx512_state64),
11270 "::",
11271 stringify!(__fpu_zmm23)
11272 )
11273 );
11274 assert_eq!(
11275 unsafe {
11276 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm24 as *const _ as usize
11277 },
11278 1932usize,
11279 concat!(
11280 "Offset of field: ",
11281 stringify!(__darwin_x86_avx512_state64),
11282 "::",
11283 stringify!(__fpu_zmm24)
11284 )
11285 );
11286 assert_eq!(
11287 unsafe {
11288 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm25 as *const _ as usize
11289 },
11290 1996usize,
11291 concat!(
11292 "Offset of field: ",
11293 stringify!(__darwin_x86_avx512_state64),
11294 "::",
11295 stringify!(__fpu_zmm25)
11296 )
11297 );
11298 assert_eq!(
11299 unsafe {
11300 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm26 as *const _ as usize
11301 },
11302 2060usize,
11303 concat!(
11304 "Offset of field: ",
11305 stringify!(__darwin_x86_avx512_state64),
11306 "::",
11307 stringify!(__fpu_zmm26)
11308 )
11309 );
11310 assert_eq!(
11311 unsafe {
11312 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm27 as *const _ as usize
11313 },
11314 2124usize,
11315 concat!(
11316 "Offset of field: ",
11317 stringify!(__darwin_x86_avx512_state64),
11318 "::",
11319 stringify!(__fpu_zmm27)
11320 )
11321 );
11322 assert_eq!(
11323 unsafe {
11324 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm28 as *const _ as usize
11325 },
11326 2188usize,
11327 concat!(
11328 "Offset of field: ",
11329 stringify!(__darwin_x86_avx512_state64),
11330 "::",
11331 stringify!(__fpu_zmm28)
11332 )
11333 );
11334 assert_eq!(
11335 unsafe {
11336 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm29 as *const _ as usize
11337 },
11338 2252usize,
11339 concat!(
11340 "Offset of field: ",
11341 stringify!(__darwin_x86_avx512_state64),
11342 "::",
11343 stringify!(__fpu_zmm29)
11344 )
11345 );
11346 assert_eq!(
11347 unsafe {
11348 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm30 as *const _ as usize
11349 },
11350 2316usize,
11351 concat!(
11352 "Offset of field: ",
11353 stringify!(__darwin_x86_avx512_state64),
11354 "::",
11355 stringify!(__fpu_zmm30)
11356 )
11357 );
11358 assert_eq!(
11359 unsafe {
11360 &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm31 as *const _ as usize
11361 },
11362 2380usize,
11363 concat!(
11364 "Offset of field: ",
11365 stringify!(__darwin_x86_avx512_state64),
11366 "::",
11367 stringify!(__fpu_zmm31)
11368 )
11369 );
11370}
11371#[repr(C)]
11372#[derive(Debug, Copy, Clone)]
11373pub struct __darwin_x86_exception_state64 {
11374 pub __trapno: __uint16_t,
11375 pub __cpu: __uint16_t,
11376 pub __err: __uint32_t,
11377 pub __faultvaddr: __uint64_t,
11378}
11379#[test]
11380fn bindgen_test_layout___darwin_x86_exception_state64() {
11381 assert_eq!(
11382 ::std::mem::size_of::<__darwin_x86_exception_state64>(),
11383 16usize,
11384 concat!("Size of: ", stringify!(__darwin_x86_exception_state64))
11385 );
11386 assert_eq!(
11387 ::std::mem::align_of::<__darwin_x86_exception_state64>(),
11388 8usize,
11389 concat!("Alignment of ", stringify!(__darwin_x86_exception_state64))
11390 );
11391 assert_eq!(
11392 unsafe {
11393 &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__trapno as *const _ as usize
11394 },
11395 0usize,
11396 concat!(
11397 "Offset of field: ",
11398 stringify!(__darwin_x86_exception_state64),
11399 "::",
11400 stringify!(__trapno)
11401 )
11402 );
11403 assert_eq!(
11404 unsafe {
11405 &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__cpu as *const _ as usize
11406 },
11407 2usize,
11408 concat!(
11409 "Offset of field: ",
11410 stringify!(__darwin_x86_exception_state64),
11411 "::",
11412 stringify!(__cpu)
11413 )
11414 );
11415 assert_eq!(
11416 unsafe {
11417 &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__err as *const _ as usize
11418 },
11419 4usize,
11420 concat!(
11421 "Offset of field: ",
11422 stringify!(__darwin_x86_exception_state64),
11423 "::",
11424 stringify!(__err)
11425 )
11426 );
11427 assert_eq!(
11428 unsafe {
11429 &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__faultvaddr as *const _
11430 as usize
11431 },
11432 8usize,
11433 concat!(
11434 "Offset of field: ",
11435 stringify!(__darwin_x86_exception_state64),
11436 "::",
11437 stringify!(__faultvaddr)
11438 )
11439 );
11440}
11441#[repr(C)]
11442#[derive(Debug, Copy, Clone)]
11443pub struct __darwin_x86_debug_state64 {
11444 pub __dr0: __uint64_t,
11445 pub __dr1: __uint64_t,
11446 pub __dr2: __uint64_t,
11447 pub __dr3: __uint64_t,
11448 pub __dr4: __uint64_t,
11449 pub __dr5: __uint64_t,
11450 pub __dr6: __uint64_t,
11451 pub __dr7: __uint64_t,
11452}
11453#[test]
11454fn bindgen_test_layout___darwin_x86_debug_state64() {
11455 assert_eq!(
11456 ::std::mem::size_of::<__darwin_x86_debug_state64>(),
11457 64usize,
11458 concat!("Size of: ", stringify!(__darwin_x86_debug_state64))
11459 );
11460 assert_eq!(
11461 ::std::mem::align_of::<__darwin_x86_debug_state64>(),
11462 8usize,
11463 concat!("Alignment of ", stringify!(__darwin_x86_debug_state64))
11464 );
11465 assert_eq!(
11466 unsafe {
11467 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr0 as *const _ as usize
11468 },
11469 0usize,
11470 concat!(
11471 "Offset of field: ",
11472 stringify!(__darwin_x86_debug_state64),
11473 "::",
11474 stringify!(__dr0)
11475 )
11476 );
11477 assert_eq!(
11478 unsafe {
11479 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr1 as *const _ as usize
11480 },
11481 8usize,
11482 concat!(
11483 "Offset of field: ",
11484 stringify!(__darwin_x86_debug_state64),
11485 "::",
11486 stringify!(__dr1)
11487 )
11488 );
11489 assert_eq!(
11490 unsafe {
11491 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr2 as *const _ as usize
11492 },
11493 16usize,
11494 concat!(
11495 "Offset of field: ",
11496 stringify!(__darwin_x86_debug_state64),
11497 "::",
11498 stringify!(__dr2)
11499 )
11500 );
11501 assert_eq!(
11502 unsafe {
11503 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr3 as *const _ as usize
11504 },
11505 24usize,
11506 concat!(
11507 "Offset of field: ",
11508 stringify!(__darwin_x86_debug_state64),
11509 "::",
11510 stringify!(__dr3)
11511 )
11512 );
11513 assert_eq!(
11514 unsafe {
11515 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr4 as *const _ as usize
11516 },
11517 32usize,
11518 concat!(
11519 "Offset of field: ",
11520 stringify!(__darwin_x86_debug_state64),
11521 "::",
11522 stringify!(__dr4)
11523 )
11524 );
11525 assert_eq!(
11526 unsafe {
11527 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr5 as *const _ as usize
11528 },
11529 40usize,
11530 concat!(
11531 "Offset of field: ",
11532 stringify!(__darwin_x86_debug_state64),
11533 "::",
11534 stringify!(__dr5)
11535 )
11536 );
11537 assert_eq!(
11538 unsafe {
11539 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr6 as *const _ as usize
11540 },
11541 48usize,
11542 concat!(
11543 "Offset of field: ",
11544 stringify!(__darwin_x86_debug_state64),
11545 "::",
11546 stringify!(__dr6)
11547 )
11548 );
11549 assert_eq!(
11550 unsafe {
11551 &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr7 as *const _ as usize
11552 },
11553 56usize,
11554 concat!(
11555 "Offset of field: ",
11556 stringify!(__darwin_x86_debug_state64),
11557 "::",
11558 stringify!(__dr7)
11559 )
11560 );
11561}
11562#[repr(C)]
11563#[derive(Debug, Copy, Clone)]
11564pub struct __darwin_x86_cpmu_state64 {
11565 pub __ctrs: [__uint64_t; 16usize],
11566}
11567#[test]
11568fn bindgen_test_layout___darwin_x86_cpmu_state64() {
11569 assert_eq!(
11570 ::std::mem::size_of::<__darwin_x86_cpmu_state64>(),
11571 128usize,
11572 concat!("Size of: ", stringify!(__darwin_x86_cpmu_state64))
11573 );
11574 assert_eq!(
11575 ::std::mem::align_of::<__darwin_x86_cpmu_state64>(),
11576 8usize,
11577 concat!("Alignment of ", stringify!(__darwin_x86_cpmu_state64))
11578 );
11579 assert_eq!(
11580 unsafe {
11581 &(*(::std::ptr::null::<__darwin_x86_cpmu_state64>())).__ctrs as *const _ as usize
11582 },
11583 0usize,
11584 concat!(
11585 "Offset of field: ",
11586 stringify!(__darwin_x86_cpmu_state64),
11587 "::",
11588 stringify!(__ctrs)
11589 )
11590 );
11591}
11592#[repr(C)]
11593#[derive(Copy, Clone)]
11594pub struct __darwin_mcontext32 {
11595 pub __es: __darwin_i386_exception_state,
11596 pub __ss: __darwin_i386_thread_state,
11597 pub __fs: __darwin_i386_float_state,
11598}
11599#[test]
11600fn bindgen_test_layout___darwin_mcontext32() {
11601 assert_eq!(
11602 ::std::mem::size_of::<__darwin_mcontext32>(),
11603 600usize,
11604 concat!("Size of: ", stringify!(__darwin_mcontext32))
11605 );
11606 assert_eq!(
11607 ::std::mem::align_of::<__darwin_mcontext32>(),
11608 4usize,
11609 concat!("Alignment of ", stringify!(__darwin_mcontext32))
11610 );
11611 assert_eq!(
11612 unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__es as *const _ as usize },
11613 0usize,
11614 concat!(
11615 "Offset of field: ",
11616 stringify!(__darwin_mcontext32),
11617 "::",
11618 stringify!(__es)
11619 )
11620 );
11621 assert_eq!(
11622 unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__ss as *const _ as usize },
11623 12usize,
11624 concat!(
11625 "Offset of field: ",
11626 stringify!(__darwin_mcontext32),
11627 "::",
11628 stringify!(__ss)
11629 )
11630 );
11631 assert_eq!(
11632 unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__fs as *const _ as usize },
11633 76usize,
11634 concat!(
11635 "Offset of field: ",
11636 stringify!(__darwin_mcontext32),
11637 "::",
11638 stringify!(__fs)
11639 )
11640 );
11641}
11642#[repr(C)]
11643#[derive(Copy, Clone)]
11644pub struct __darwin_mcontext_avx32 {
11645 pub __es: __darwin_i386_exception_state,
11646 pub __ss: __darwin_i386_thread_state,
11647 pub __fs: __darwin_i386_avx_state,
11648}
11649#[test]
11650fn bindgen_test_layout___darwin_mcontext_avx32() {
11651 assert_eq!(
11652 ::std::mem::size_of::<__darwin_mcontext_avx32>(),
11653 792usize,
11654 concat!("Size of: ", stringify!(__darwin_mcontext_avx32))
11655 );
11656 assert_eq!(
11657 ::std::mem::align_of::<__darwin_mcontext_avx32>(),
11658 4usize,
11659 concat!("Alignment of ", stringify!(__darwin_mcontext_avx32))
11660 );
11661 assert_eq!(
11662 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__es as *const _ as usize },
11663 0usize,
11664 concat!(
11665 "Offset of field: ",
11666 stringify!(__darwin_mcontext_avx32),
11667 "::",
11668 stringify!(__es)
11669 )
11670 );
11671 assert_eq!(
11672 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__ss as *const _ as usize },
11673 12usize,
11674 concat!(
11675 "Offset of field: ",
11676 stringify!(__darwin_mcontext_avx32),
11677 "::",
11678 stringify!(__ss)
11679 )
11680 );
11681 assert_eq!(
11682 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__fs as *const _ as usize },
11683 76usize,
11684 concat!(
11685 "Offset of field: ",
11686 stringify!(__darwin_mcontext_avx32),
11687 "::",
11688 stringify!(__fs)
11689 )
11690 );
11691}
11692#[repr(C)]
11693#[derive(Copy, Clone)]
11694pub struct __darwin_mcontext_avx512_32 {
11695 pub __es: __darwin_i386_exception_state,
11696 pub __ss: __darwin_i386_thread_state,
11697 pub __fs: __darwin_i386_avx512_state,
11698}
11699#[test]
11700fn bindgen_test_layout___darwin_mcontext_avx512_32() {
11701 assert_eq!(
11702 ::std::mem::size_of::<__darwin_mcontext_avx512_32>(),
11703 1112usize,
11704 concat!("Size of: ", stringify!(__darwin_mcontext_avx512_32))
11705 );
11706 assert_eq!(
11707 ::std::mem::align_of::<__darwin_mcontext_avx512_32>(),
11708 4usize,
11709 concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_32))
11710 );
11711 assert_eq!(
11712 unsafe {
11713 &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__es as *const _ as usize
11714 },
11715 0usize,
11716 concat!(
11717 "Offset of field: ",
11718 stringify!(__darwin_mcontext_avx512_32),
11719 "::",
11720 stringify!(__es)
11721 )
11722 );
11723 assert_eq!(
11724 unsafe {
11725 &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__ss as *const _ as usize
11726 },
11727 12usize,
11728 concat!(
11729 "Offset of field: ",
11730 stringify!(__darwin_mcontext_avx512_32),
11731 "::",
11732 stringify!(__ss)
11733 )
11734 );
11735 assert_eq!(
11736 unsafe {
11737 &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__fs as *const _ as usize
11738 },
11739 76usize,
11740 concat!(
11741 "Offset of field: ",
11742 stringify!(__darwin_mcontext_avx512_32),
11743 "::",
11744 stringify!(__fs)
11745 )
11746 );
11747}
11748#[repr(C)]
11749#[derive(Copy, Clone)]
11750pub struct __darwin_mcontext64 {
11751 pub __es: __darwin_x86_exception_state64,
11752 pub __ss: __darwin_x86_thread_state64,
11753 pub __fs: __darwin_x86_float_state64,
11754}
11755#[test]
11756fn bindgen_test_layout___darwin_mcontext64() {
11757 assert_eq!(
11758 ::std::mem::size_of::<__darwin_mcontext64>(),
11759 712usize,
11760 concat!("Size of: ", stringify!(__darwin_mcontext64))
11761 );
11762 assert_eq!(
11763 ::std::mem::align_of::<__darwin_mcontext64>(),
11764 8usize,
11765 concat!("Alignment of ", stringify!(__darwin_mcontext64))
11766 );
11767 assert_eq!(
11768 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__es as *const _ as usize },
11769 0usize,
11770 concat!(
11771 "Offset of field: ",
11772 stringify!(__darwin_mcontext64),
11773 "::",
11774 stringify!(__es)
11775 )
11776 );
11777 assert_eq!(
11778 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__ss as *const _ as usize },
11779 16usize,
11780 concat!(
11781 "Offset of field: ",
11782 stringify!(__darwin_mcontext64),
11783 "::",
11784 stringify!(__ss)
11785 )
11786 );
11787 assert_eq!(
11788 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__fs as *const _ as usize },
11789 184usize,
11790 concat!(
11791 "Offset of field: ",
11792 stringify!(__darwin_mcontext64),
11793 "::",
11794 stringify!(__fs)
11795 )
11796 );
11797}
11798#[repr(C)]
11799#[derive(Copy, Clone)]
11800pub struct __darwin_mcontext64_full {
11801 pub __es: __darwin_x86_exception_state64,
11802 pub __ss: __darwin_x86_thread_full_state64,
11803 pub __fs: __darwin_x86_float_state64,
11804}
11805#[test]
11806fn bindgen_test_layout___darwin_mcontext64_full() {
11807 assert_eq!(
11808 ::std::mem::size_of::<__darwin_mcontext64_full>(),
11809 744usize,
11810 concat!("Size of: ", stringify!(__darwin_mcontext64_full))
11811 );
11812 assert_eq!(
11813 ::std::mem::align_of::<__darwin_mcontext64_full>(),
11814 8usize,
11815 concat!("Alignment of ", stringify!(__darwin_mcontext64_full))
11816 );
11817 assert_eq!(
11818 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__es as *const _ as usize },
11819 0usize,
11820 concat!(
11821 "Offset of field: ",
11822 stringify!(__darwin_mcontext64_full),
11823 "::",
11824 stringify!(__es)
11825 )
11826 );
11827 assert_eq!(
11828 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__ss as *const _ as usize },
11829 16usize,
11830 concat!(
11831 "Offset of field: ",
11832 stringify!(__darwin_mcontext64_full),
11833 "::",
11834 stringify!(__ss)
11835 )
11836 );
11837 assert_eq!(
11838 unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__fs as *const _ as usize },
11839 216usize,
11840 concat!(
11841 "Offset of field: ",
11842 stringify!(__darwin_mcontext64_full),
11843 "::",
11844 stringify!(__fs)
11845 )
11846 );
11847}
11848#[repr(C)]
11849#[derive(Copy, Clone)]
11850pub struct __darwin_mcontext_avx64 {
11851 pub __es: __darwin_x86_exception_state64,
11852 pub __ss: __darwin_x86_thread_state64,
11853 pub __fs: __darwin_x86_avx_state64,
11854}
11855#[test]
11856fn bindgen_test_layout___darwin_mcontext_avx64() {
11857 assert_eq!(
11858 ::std::mem::size_of::<__darwin_mcontext_avx64>(),
11859 1032usize,
11860 concat!("Size of: ", stringify!(__darwin_mcontext_avx64))
11861 );
11862 assert_eq!(
11863 ::std::mem::align_of::<__darwin_mcontext_avx64>(),
11864 8usize,
11865 concat!("Alignment of ", stringify!(__darwin_mcontext_avx64))
11866 );
11867 assert_eq!(
11868 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__es as *const _ as usize },
11869 0usize,
11870 concat!(
11871 "Offset of field: ",
11872 stringify!(__darwin_mcontext_avx64),
11873 "::",
11874 stringify!(__es)
11875 )
11876 );
11877 assert_eq!(
11878 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__ss as *const _ as usize },
11879 16usize,
11880 concat!(
11881 "Offset of field: ",
11882 stringify!(__darwin_mcontext_avx64),
11883 "::",
11884 stringify!(__ss)
11885 )
11886 );
11887 assert_eq!(
11888 unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__fs as *const _ as usize },
11889 184usize,
11890 concat!(
11891 "Offset of field: ",
11892 stringify!(__darwin_mcontext_avx64),
11893 "::",
11894 stringify!(__fs)
11895 )
11896 );
11897}
11898#[repr(C)]
11899#[derive(Copy, Clone)]
11900pub struct __darwin_mcontext_avx64_full {
11901 pub __es: __darwin_x86_exception_state64,
11902 pub __ss: __darwin_x86_thread_full_state64,
11903 pub __fs: __darwin_x86_avx_state64,
11904}
11905#[test]
11906fn bindgen_test_layout___darwin_mcontext_avx64_full() {
11907 assert_eq!(
11908 ::std::mem::size_of::<__darwin_mcontext_avx64_full>(),
11909 1064usize,
11910 concat!("Size of: ", stringify!(__darwin_mcontext_avx64_full))
11911 );
11912 assert_eq!(
11913 ::std::mem::align_of::<__darwin_mcontext_avx64_full>(),
11914 8usize,
11915 concat!("Alignment of ", stringify!(__darwin_mcontext_avx64_full))
11916 );
11917 assert_eq!(
11918 unsafe {
11919 &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__es as *const _ as usize
11920 },
11921 0usize,
11922 concat!(
11923 "Offset of field: ",
11924 stringify!(__darwin_mcontext_avx64_full),
11925 "::",
11926 stringify!(__es)
11927 )
11928 );
11929 assert_eq!(
11930 unsafe {
11931 &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__ss as *const _ as usize
11932 },
11933 16usize,
11934 concat!(
11935 "Offset of field: ",
11936 stringify!(__darwin_mcontext_avx64_full),
11937 "::",
11938 stringify!(__ss)
11939 )
11940 );
11941 assert_eq!(
11942 unsafe {
11943 &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__fs as *const _ as usize
11944 },
11945 216usize,
11946 concat!(
11947 "Offset of field: ",
11948 stringify!(__darwin_mcontext_avx64_full),
11949 "::",
11950 stringify!(__fs)
11951 )
11952 );
11953}
11954#[repr(C)]
11955#[derive(Copy, Clone)]
11956pub struct __darwin_mcontext_avx512_64 {
11957 pub __es: __darwin_x86_exception_state64,
11958 pub __ss: __darwin_x86_thread_state64,
11959 pub __fs: __darwin_x86_avx512_state64,
11960}
11961#[test]
11962fn bindgen_test_layout___darwin_mcontext_avx512_64() {
11963 assert_eq!(
11964 ::std::mem::size_of::<__darwin_mcontext_avx512_64>(),
11965 2632usize,
11966 concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64))
11967 );
11968 assert_eq!(
11969 ::std::mem::align_of::<__darwin_mcontext_avx512_64>(),
11970 8usize,
11971 concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_64))
11972 );
11973 assert_eq!(
11974 unsafe {
11975 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__es as *const _ as usize
11976 },
11977 0usize,
11978 concat!(
11979 "Offset of field: ",
11980 stringify!(__darwin_mcontext_avx512_64),
11981 "::",
11982 stringify!(__es)
11983 )
11984 );
11985 assert_eq!(
11986 unsafe {
11987 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__ss as *const _ as usize
11988 },
11989 16usize,
11990 concat!(
11991 "Offset of field: ",
11992 stringify!(__darwin_mcontext_avx512_64),
11993 "::",
11994 stringify!(__ss)
11995 )
11996 );
11997 assert_eq!(
11998 unsafe {
11999 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__fs as *const _ as usize
12000 },
12001 184usize,
12002 concat!(
12003 "Offset of field: ",
12004 stringify!(__darwin_mcontext_avx512_64),
12005 "::",
12006 stringify!(__fs)
12007 )
12008 );
12009}
12010#[repr(C)]
12011#[derive(Copy, Clone)]
12012pub struct __darwin_mcontext_avx512_64_full {
12013 pub __es: __darwin_x86_exception_state64,
12014 pub __ss: __darwin_x86_thread_full_state64,
12015 pub __fs: __darwin_x86_avx512_state64,
12016}
12017#[test]
12018fn bindgen_test_layout___darwin_mcontext_avx512_64_full() {
12019 assert_eq!(
12020 ::std::mem::size_of::<__darwin_mcontext_avx512_64_full>(),
12021 2664usize,
12022 concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64_full))
12023 );
12024 assert_eq!(
12025 ::std::mem::align_of::<__darwin_mcontext_avx512_64_full>(),
12026 8usize,
12027 concat!(
12028 "Alignment of ",
12029 stringify!(__darwin_mcontext_avx512_64_full)
12030 )
12031 );
12032 assert_eq!(
12033 unsafe {
12034 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__es as *const _ as usize
12035 },
12036 0usize,
12037 concat!(
12038 "Offset of field: ",
12039 stringify!(__darwin_mcontext_avx512_64_full),
12040 "::",
12041 stringify!(__es)
12042 )
12043 );
12044 assert_eq!(
12045 unsafe {
12046 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__ss as *const _ as usize
12047 },
12048 16usize,
12049 concat!(
12050 "Offset of field: ",
12051 stringify!(__darwin_mcontext_avx512_64_full),
12052 "::",
12053 stringify!(__ss)
12054 )
12055 );
12056 assert_eq!(
12057 unsafe {
12058 &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__fs as *const _ as usize
12059 },
12060 216usize,
12061 concat!(
12062 "Offset of field: ",
12063 stringify!(__darwin_mcontext_avx512_64_full),
12064 "::",
12065 stringify!(__fs)
12066 )
12067 );
12068}
12069pub type mcontext_t = *mut __darwin_mcontext64;
12070#[repr(C)]
12071#[derive(Debug, Copy, Clone)]
12072pub struct __darwin_sigaltstack {
12073 pub ss_sp: *mut ::std::os::raw::c_void,
12074 pub ss_size: __darwin_size_t,
12075 pub ss_flags: ::std::os::raw::c_int,
12076}
12077#[test]
12078fn bindgen_test_layout___darwin_sigaltstack() {
12079 assert_eq!(
12080 ::std::mem::size_of::<__darwin_sigaltstack>(),
12081 24usize,
12082 concat!("Size of: ", stringify!(__darwin_sigaltstack))
12083 );
12084 assert_eq!(
12085 ::std::mem::align_of::<__darwin_sigaltstack>(),
12086 8usize,
12087 concat!("Alignment of ", stringify!(__darwin_sigaltstack))
12088 );
12089 assert_eq!(
12090 unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_sp as *const _ as usize },
12091 0usize,
12092 concat!(
12093 "Offset of field: ",
12094 stringify!(__darwin_sigaltstack),
12095 "::",
12096 stringify!(ss_sp)
12097 )
12098 );
12099 assert_eq!(
12100 unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_size as *const _ as usize },
12101 8usize,
12102 concat!(
12103 "Offset of field: ",
12104 stringify!(__darwin_sigaltstack),
12105 "::",
12106 stringify!(ss_size)
12107 )
12108 );
12109 assert_eq!(
12110 unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_flags as *const _ as usize },
12111 16usize,
12112 concat!(
12113 "Offset of field: ",
12114 stringify!(__darwin_sigaltstack),
12115 "::",
12116 stringify!(ss_flags)
12117 )
12118 );
12119}
12120pub type stack_t = __darwin_sigaltstack;
12121#[repr(C)]
12122#[derive(Debug, Copy, Clone)]
12123pub struct __darwin_ucontext {
12124 pub uc_onstack: ::std::os::raw::c_int,
12125 pub uc_sigmask: __darwin_sigset_t,
12126 pub uc_stack: __darwin_sigaltstack,
12127 pub uc_link: *mut __darwin_ucontext,
12128 pub uc_mcsize: __darwin_size_t,
12129 pub uc_mcontext: *mut __darwin_mcontext64,
12130}
12131#[test]
12132fn bindgen_test_layout___darwin_ucontext() {
12133 assert_eq!(
12134 ::std::mem::size_of::<__darwin_ucontext>(),
12135 56usize,
12136 concat!("Size of: ", stringify!(__darwin_ucontext))
12137 );
12138 assert_eq!(
12139 ::std::mem::align_of::<__darwin_ucontext>(),
12140 8usize,
12141 concat!("Alignment of ", stringify!(__darwin_ucontext))
12142 );
12143 assert_eq!(
12144 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_onstack as *const _ as usize },
12145 0usize,
12146 concat!(
12147 "Offset of field: ",
12148 stringify!(__darwin_ucontext),
12149 "::",
12150 stringify!(uc_onstack)
12151 )
12152 );
12153 assert_eq!(
12154 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_sigmask as *const _ as usize },
12155 4usize,
12156 concat!(
12157 "Offset of field: ",
12158 stringify!(__darwin_ucontext),
12159 "::",
12160 stringify!(uc_sigmask)
12161 )
12162 );
12163 assert_eq!(
12164 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_stack as *const _ as usize },
12165 8usize,
12166 concat!(
12167 "Offset of field: ",
12168 stringify!(__darwin_ucontext),
12169 "::",
12170 stringify!(uc_stack)
12171 )
12172 );
12173 assert_eq!(
12174 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_link as *const _ as usize },
12175 32usize,
12176 concat!(
12177 "Offset of field: ",
12178 stringify!(__darwin_ucontext),
12179 "::",
12180 stringify!(uc_link)
12181 )
12182 );
12183 assert_eq!(
12184 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcsize as *const _ as usize },
12185 40usize,
12186 concat!(
12187 "Offset of field: ",
12188 stringify!(__darwin_ucontext),
12189 "::",
12190 stringify!(uc_mcsize)
12191 )
12192 );
12193 assert_eq!(
12194 unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcontext as *const _ as usize },
12195 48usize,
12196 concat!(
12197 "Offset of field: ",
12198 stringify!(__darwin_ucontext),
12199 "::",
12200 stringify!(uc_mcontext)
12201 )
12202 );
12203}
12204pub type ucontext_t = __darwin_ucontext;
12205pub type sigset_t = __darwin_sigset_t;
12206#[repr(C)]
12207#[derive(Copy, Clone)]
12208pub union sigval {
12209 pub sival_int: ::std::os::raw::c_int,
12210 pub sival_ptr: *mut ::std::os::raw::c_void,
12211 _bindgen_union_align: u64,
12212}
12213#[test]
12214fn bindgen_test_layout_sigval() {
12215 assert_eq!(
12216 ::std::mem::size_of::<sigval>(),
12217 8usize,
12218 concat!("Size of: ", stringify!(sigval))
12219 );
12220 assert_eq!(
12221 ::std::mem::align_of::<sigval>(),
12222 8usize,
12223 concat!("Alignment of ", stringify!(sigval))
12224 );
12225 assert_eq!(
12226 unsafe { &(*(::std::ptr::null::<sigval>())).sival_int as *const _ as usize },
12227 0usize,
12228 concat!(
12229 "Offset of field: ",
12230 stringify!(sigval),
12231 "::",
12232 stringify!(sival_int)
12233 )
12234 );
12235 assert_eq!(
12236 unsafe { &(*(::std::ptr::null::<sigval>())).sival_ptr as *const _ as usize },
12237 0usize,
12238 concat!(
12239 "Offset of field: ",
12240 stringify!(sigval),
12241 "::",
12242 stringify!(sival_ptr)
12243 )
12244 );
12245}
12246#[repr(C)]
12247#[derive(Copy, Clone)]
12248pub struct sigevent {
12249 pub sigev_notify: ::std::os::raw::c_int,
12250 pub sigev_signo: ::std::os::raw::c_int,
12251 pub sigev_value: sigval,
12252 pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
12253 pub sigev_notify_attributes: *mut pthread_attr_t,
12254}
12255#[test]
12256fn bindgen_test_layout_sigevent() {
12257 assert_eq!(
12258 ::std::mem::size_of::<sigevent>(),
12259 32usize,
12260 concat!("Size of: ", stringify!(sigevent))
12261 );
12262 assert_eq!(
12263 ::std::mem::align_of::<sigevent>(),
12264 8usize,
12265 concat!("Alignment of ", stringify!(sigevent))
12266 );
12267 assert_eq!(
12268 unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_notify as *const _ as usize },
12269 0usize,
12270 concat!(
12271 "Offset of field: ",
12272 stringify!(sigevent),
12273 "::",
12274 stringify!(sigev_notify)
12275 )
12276 );
12277 assert_eq!(
12278 unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_signo as *const _ as usize },
12279 4usize,
12280 concat!(
12281 "Offset of field: ",
12282 stringify!(sigevent),
12283 "::",
12284 stringify!(sigev_signo)
12285 )
12286 );
12287 assert_eq!(
12288 unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_value as *const _ as usize },
12289 8usize,
12290 concat!(
12291 "Offset of field: ",
12292 stringify!(sigevent),
12293 "::",
12294 stringify!(sigev_value)
12295 )
12296 );
12297 assert_eq!(
12298 unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_notify_function as *const _ as usize },
12299 16usize,
12300 concat!(
12301 "Offset of field: ",
12302 stringify!(sigevent),
12303 "::",
12304 stringify!(sigev_notify_function)
12305 )
12306 );
12307 assert_eq!(
12308 unsafe {
12309 &(*(::std::ptr::null::<sigevent>())).sigev_notify_attributes as *const _ as usize
12310 },
12311 24usize,
12312 concat!(
12313 "Offset of field: ",
12314 stringify!(sigevent),
12315 "::",
12316 stringify!(sigev_notify_attributes)
12317 )
12318 );
12319}
12320#[repr(C)]
12321#[derive(Copy, Clone)]
12322pub struct __siginfo {
12323 pub si_signo: ::std::os::raw::c_int,
12324 pub si_errno: ::std::os::raw::c_int,
12325 pub si_code: ::std::os::raw::c_int,
12326 pub si_pid: pid_t,
12327 pub si_uid: uid_t,
12328 pub si_status: ::std::os::raw::c_int,
12329 pub si_addr: *mut ::std::os::raw::c_void,
12330 pub si_value: sigval,
12331 pub si_band: ::std::os::raw::c_long,
12332 pub __pad: [::std::os::raw::c_ulong; 7usize],
12333}
12334#[test]
12335fn bindgen_test_layout___siginfo() {
12336 assert_eq!(
12337 ::std::mem::size_of::<__siginfo>(),
12338 104usize,
12339 concat!("Size of: ", stringify!(__siginfo))
12340 );
12341 assert_eq!(
12342 ::std::mem::align_of::<__siginfo>(),
12343 8usize,
12344 concat!("Alignment of ", stringify!(__siginfo))
12345 );
12346 assert_eq!(
12347 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_signo as *const _ as usize },
12348 0usize,
12349 concat!(
12350 "Offset of field: ",
12351 stringify!(__siginfo),
12352 "::",
12353 stringify!(si_signo)
12354 )
12355 );
12356 assert_eq!(
12357 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_errno as *const _ as usize },
12358 4usize,
12359 concat!(
12360 "Offset of field: ",
12361 stringify!(__siginfo),
12362 "::",
12363 stringify!(si_errno)
12364 )
12365 );
12366 assert_eq!(
12367 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_code as *const _ as usize },
12368 8usize,
12369 concat!(
12370 "Offset of field: ",
12371 stringify!(__siginfo),
12372 "::",
12373 stringify!(si_code)
12374 )
12375 );
12376 assert_eq!(
12377 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_pid as *const _ as usize },
12378 12usize,
12379 concat!(
12380 "Offset of field: ",
12381 stringify!(__siginfo),
12382 "::",
12383 stringify!(si_pid)
12384 )
12385 );
12386 assert_eq!(
12387 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_uid as *const _ as usize },
12388 16usize,
12389 concat!(
12390 "Offset of field: ",
12391 stringify!(__siginfo),
12392 "::",
12393 stringify!(si_uid)
12394 )
12395 );
12396 assert_eq!(
12397 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_status as *const _ as usize },
12398 20usize,
12399 concat!(
12400 "Offset of field: ",
12401 stringify!(__siginfo),
12402 "::",
12403 stringify!(si_status)
12404 )
12405 );
12406 assert_eq!(
12407 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_addr as *const _ as usize },
12408 24usize,
12409 concat!(
12410 "Offset of field: ",
12411 stringify!(__siginfo),
12412 "::",
12413 stringify!(si_addr)
12414 )
12415 );
12416 assert_eq!(
12417 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_value as *const _ as usize },
12418 32usize,
12419 concat!(
12420 "Offset of field: ",
12421 stringify!(__siginfo),
12422 "::",
12423 stringify!(si_value)
12424 )
12425 );
12426 assert_eq!(
12427 unsafe { &(*(::std::ptr::null::<__siginfo>())).si_band as *const _ as usize },
12428 40usize,
12429 concat!(
12430 "Offset of field: ",
12431 stringify!(__siginfo),
12432 "::",
12433 stringify!(si_band)
12434 )
12435 );
12436 assert_eq!(
12437 unsafe { &(*(::std::ptr::null::<__siginfo>())).__pad as *const _ as usize },
12438 48usize,
12439 concat!(
12440 "Offset of field: ",
12441 stringify!(__siginfo),
12442 "::",
12443 stringify!(__pad)
12444 )
12445 );
12446}
12447pub type siginfo_t = __siginfo;
12448#[repr(C)]
12449#[derive(Copy, Clone)]
12450pub union __sigaction_u {
12451 pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
12452 pub __sa_sigaction: ::std::option::Option<
12453 unsafe extern "C" fn(
12454 arg1: ::std::os::raw::c_int,
12455 arg2: *mut __siginfo,
12456 arg3: *mut ::std::os::raw::c_void,
12457 ),
12458 >,
12459 _bindgen_union_align: u64,
12460}
12461#[test]
12462fn bindgen_test_layout___sigaction_u() {
12463 assert_eq!(
12464 ::std::mem::size_of::<__sigaction_u>(),
12465 8usize,
12466 concat!("Size of: ", stringify!(__sigaction_u))
12467 );
12468 assert_eq!(
12469 ::std::mem::align_of::<__sigaction_u>(),
12470 8usize,
12471 concat!("Alignment of ", stringify!(__sigaction_u))
12472 );
12473 assert_eq!(
12474 unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_handler as *const _ as usize },
12475 0usize,
12476 concat!(
12477 "Offset of field: ",
12478 stringify!(__sigaction_u),
12479 "::",
12480 stringify!(__sa_handler)
12481 )
12482 );
12483 assert_eq!(
12484 unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_sigaction as *const _ as usize },
12485 0usize,
12486 concat!(
12487 "Offset of field: ",
12488 stringify!(__sigaction_u),
12489 "::",
12490 stringify!(__sa_sigaction)
12491 )
12492 );
12493}
12494#[repr(C)]
12495#[derive(Copy, Clone)]
12496pub struct __sigaction {
12497 pub __sigaction_u: __sigaction_u,
12498 pub sa_tramp: ::std::option::Option<
12499 unsafe extern "C" fn(
12500 arg1: *mut ::std::os::raw::c_void,
12501 arg2: ::std::os::raw::c_int,
12502 arg3: ::std::os::raw::c_int,
12503 arg4: *mut siginfo_t,
12504 arg5: *mut ::std::os::raw::c_void,
12505 ),
12506 >,
12507 pub sa_mask: sigset_t,
12508 pub sa_flags: ::std::os::raw::c_int,
12509}
12510#[test]
12511fn bindgen_test_layout___sigaction() {
12512 assert_eq!(
12513 ::std::mem::size_of::<__sigaction>(),
12514 24usize,
12515 concat!("Size of: ", stringify!(__sigaction))
12516 );
12517 assert_eq!(
12518 ::std::mem::align_of::<__sigaction>(),
12519 8usize,
12520 concat!("Alignment of ", stringify!(__sigaction))
12521 );
12522 assert_eq!(
12523 unsafe { &(*(::std::ptr::null::<__sigaction>())).__sigaction_u as *const _ as usize },
12524 0usize,
12525 concat!(
12526 "Offset of field: ",
12527 stringify!(__sigaction),
12528 "::",
12529 stringify!(__sigaction_u)
12530 )
12531 );
12532 assert_eq!(
12533 unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_tramp as *const _ as usize },
12534 8usize,
12535 concat!(
12536 "Offset of field: ",
12537 stringify!(__sigaction),
12538 "::",
12539 stringify!(sa_tramp)
12540 )
12541 );
12542 assert_eq!(
12543 unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_mask as *const _ as usize },
12544 16usize,
12545 concat!(
12546 "Offset of field: ",
12547 stringify!(__sigaction),
12548 "::",
12549 stringify!(sa_mask)
12550 )
12551 );
12552 assert_eq!(
12553 unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_flags as *const _ as usize },
12554 20usize,
12555 concat!(
12556 "Offset of field: ",
12557 stringify!(__sigaction),
12558 "::",
12559 stringify!(sa_flags)
12560 )
12561 );
12562}
12563#[repr(C)]
12564#[derive(Copy, Clone)]
12565pub struct sigaction {
12566 pub __sigaction_u: __sigaction_u,
12567 pub sa_mask: sigset_t,
12568 pub sa_flags: ::std::os::raw::c_int,
12569}
12570#[test]
12571fn bindgen_test_layout_sigaction() {
12572 assert_eq!(
12573 ::std::mem::size_of::<sigaction>(),
12574 16usize,
12575 concat!("Size of: ", stringify!(sigaction))
12576 );
12577 assert_eq!(
12578 ::std::mem::align_of::<sigaction>(),
12579 8usize,
12580 concat!("Alignment of ", stringify!(sigaction))
12581 );
12582 assert_eq!(
12583 unsafe { &(*(::std::ptr::null::<sigaction>())).__sigaction_u as *const _ as usize },
12584 0usize,
12585 concat!(
12586 "Offset of field: ",
12587 stringify!(sigaction),
12588 "::",
12589 stringify!(__sigaction_u)
12590 )
12591 );
12592 assert_eq!(
12593 unsafe { &(*(::std::ptr::null::<sigaction>())).sa_mask as *const _ as usize },
12594 8usize,
12595 concat!(
12596 "Offset of field: ",
12597 stringify!(sigaction),
12598 "::",
12599 stringify!(sa_mask)
12600 )
12601 );
12602 assert_eq!(
12603 unsafe { &(*(::std::ptr::null::<sigaction>())).sa_flags as *const _ as usize },
12604 12usize,
12605 concat!(
12606 "Offset of field: ",
12607 stringify!(sigaction),
12608 "::",
12609 stringify!(sa_flags)
12610 )
12611 );
12612}
12613pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
12614#[repr(C)]
12615#[derive(Debug, Copy, Clone)]
12616pub struct sigvec {
12617 pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
12618 pub sv_mask: ::std::os::raw::c_int,
12619 pub sv_flags: ::std::os::raw::c_int,
12620}
12621#[test]
12622fn bindgen_test_layout_sigvec() {
12623 assert_eq!(
12624 ::std::mem::size_of::<sigvec>(),
12625 16usize,
12626 concat!("Size of: ", stringify!(sigvec))
12627 );
12628 assert_eq!(
12629 ::std::mem::align_of::<sigvec>(),
12630 8usize,
12631 concat!("Alignment of ", stringify!(sigvec))
12632 );
12633 assert_eq!(
12634 unsafe { &(*(::std::ptr::null::<sigvec>())).sv_handler as *const _ as usize },
12635 0usize,
12636 concat!(
12637 "Offset of field: ",
12638 stringify!(sigvec),
12639 "::",
12640 stringify!(sv_handler)
12641 )
12642 );
12643 assert_eq!(
12644 unsafe { &(*(::std::ptr::null::<sigvec>())).sv_mask as *const _ as usize },
12645 8usize,
12646 concat!(
12647 "Offset of field: ",
12648 stringify!(sigvec),
12649 "::",
12650 stringify!(sv_mask)
12651 )
12652 );
12653 assert_eq!(
12654 unsafe { &(*(::std::ptr::null::<sigvec>())).sv_flags as *const _ as usize },
12655 12usize,
12656 concat!(
12657 "Offset of field: ",
12658 stringify!(sigvec),
12659 "::",
12660 stringify!(sv_flags)
12661 )
12662 );
12663}
12664#[repr(C)]
12665#[derive(Debug, Copy, Clone)]
12666pub struct sigstack {
12667 pub ss_sp: *mut ::std::os::raw::c_char,
12668 pub ss_onstack: ::std::os::raw::c_int,
12669}
12670#[test]
12671fn bindgen_test_layout_sigstack() {
12672 assert_eq!(
12673 ::std::mem::size_of::<sigstack>(),
12674 16usize,
12675 concat!("Size of: ", stringify!(sigstack))
12676 );
12677 assert_eq!(
12678 ::std::mem::align_of::<sigstack>(),
12679 8usize,
12680 concat!("Alignment of ", stringify!(sigstack))
12681 );
12682 assert_eq!(
12683 unsafe { &(*(::std::ptr::null::<sigstack>())).ss_sp as *const _ as usize },
12684 0usize,
12685 concat!(
12686 "Offset of field: ",
12687 stringify!(sigstack),
12688 "::",
12689 stringify!(ss_sp)
12690 )
12691 );
12692 assert_eq!(
12693 unsafe { &(*(::std::ptr::null::<sigstack>())).ss_onstack as *const _ as usize },
12694 8usize,
12695 concat!(
12696 "Offset of field: ",
12697 stringify!(sigstack),
12698 "::",
12699 stringify!(ss_onstack)
12700 )
12701 );
12702}
12703extern "C" {
12704 pub fn signal(
12705 arg1: ::std::os::raw::c_int,
12706 arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
12707 ) -> ::std::option::Option<
12708 unsafe extern "C" fn(
12709 arg1: ::std::os::raw::c_int,
12710 arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
12711 ),
12712 >;
12713}
12714pub type au_id_t = uid_t;
12715pub type au_asid_t = pid_t;
12716pub type au_event_t = u_int16_t;
12717pub type au_emod_t = u_int16_t;
12718pub type au_class_t = u_int32_t;
12719pub type au_asflgs_t = u_int64_t;
12720pub type au_ctlmode_t = ::std::os::raw::c_uchar;
12721#[repr(C)]
12722#[derive(Debug, Copy, Clone)]
12723pub struct au_tid {
12724 pub port: dev_t,
12725 pub machine: u_int32_t,
12726}
12727#[test]
12728fn bindgen_test_layout_au_tid() {
12729 assert_eq!(
12730 ::std::mem::size_of::<au_tid>(),
12731 8usize,
12732 concat!("Size of: ", stringify!(au_tid))
12733 );
12734 assert_eq!(
12735 ::std::mem::align_of::<au_tid>(),
12736 4usize,
12737 concat!("Alignment of ", stringify!(au_tid))
12738 );
12739 assert_eq!(
12740 unsafe { &(*(::std::ptr::null::<au_tid>())).port as *const _ as usize },
12741 0usize,
12742 concat!(
12743 "Offset of field: ",
12744 stringify!(au_tid),
12745 "::",
12746 stringify!(port)
12747 )
12748 );
12749 assert_eq!(
12750 unsafe { &(*(::std::ptr::null::<au_tid>())).machine as *const _ as usize },
12751 4usize,
12752 concat!(
12753 "Offset of field: ",
12754 stringify!(au_tid),
12755 "::",
12756 stringify!(machine)
12757 )
12758 );
12759}
12760pub type au_tid_t = au_tid;
12761#[repr(C)]
12762#[derive(Debug, Copy, Clone)]
12763pub struct au_tid_addr {
12764 pub at_port: dev_t,
12765 pub at_type: u_int32_t,
12766 pub at_addr: [u_int32_t; 4usize],
12767}
12768#[test]
12769fn bindgen_test_layout_au_tid_addr() {
12770 assert_eq!(
12771 ::std::mem::size_of::<au_tid_addr>(),
12772 24usize,
12773 concat!("Size of: ", stringify!(au_tid_addr))
12774 );
12775 assert_eq!(
12776 ::std::mem::align_of::<au_tid_addr>(),
12777 4usize,
12778 concat!("Alignment of ", stringify!(au_tid_addr))
12779 );
12780 assert_eq!(
12781 unsafe { &(*(::std::ptr::null::<au_tid_addr>())).at_port as *const _ as usize },
12782 0usize,
12783 concat!(
12784 "Offset of field: ",
12785 stringify!(au_tid_addr),
12786 "::",
12787 stringify!(at_port)
12788 )
12789 );
12790 assert_eq!(
12791 unsafe { &(*(::std::ptr::null::<au_tid_addr>())).at_type as *const _ as usize },
12792 4usize,
12793 concat!(
12794 "Offset of field: ",
12795 stringify!(au_tid_addr),
12796 "::",
12797 stringify!(at_type)
12798 )
12799 );
12800 assert_eq!(
12801 unsafe { &(*(::std::ptr::null::<au_tid_addr>())).at_addr as *const _ as usize },
12802 8usize,
12803 concat!(
12804 "Offset of field: ",
12805 stringify!(au_tid_addr),
12806 "::",
12807 stringify!(at_addr)
12808 )
12809 );
12810}
12811pub type au_tid_addr_t = au_tid_addr;
12812#[repr(C)]
12813#[derive(Debug, Copy, Clone)]
12814pub struct au_mask {
12815 pub am_success: ::std::os::raw::c_uint,
12816 pub am_failure: ::std::os::raw::c_uint,
12817}
12818#[test]
12819fn bindgen_test_layout_au_mask() {
12820 assert_eq!(
12821 ::std::mem::size_of::<au_mask>(),
12822 8usize,
12823 concat!("Size of: ", stringify!(au_mask))
12824 );
12825 assert_eq!(
12826 ::std::mem::align_of::<au_mask>(),
12827 4usize,
12828 concat!("Alignment of ", stringify!(au_mask))
12829 );
12830 assert_eq!(
12831 unsafe { &(*(::std::ptr::null::<au_mask>())).am_success as *const _ as usize },
12832 0usize,
12833 concat!(
12834 "Offset of field: ",
12835 stringify!(au_mask),
12836 "::",
12837 stringify!(am_success)
12838 )
12839 );
12840 assert_eq!(
12841 unsafe { &(*(::std::ptr::null::<au_mask>())).am_failure as *const _ as usize },
12842 4usize,
12843 concat!(
12844 "Offset of field: ",
12845 stringify!(au_mask),
12846 "::",
12847 stringify!(am_failure)
12848 )
12849 );
12850}
12851pub type au_mask_t = au_mask;
12852#[repr(C)]
12853#[derive(Debug, Copy, Clone)]
12854pub struct auditinfo {
12855 pub ai_auid: au_id_t,
12856 pub ai_mask: au_mask_t,
12857 pub ai_termid: au_tid_t,
12858 pub ai_asid: au_asid_t,
12859}
12860#[test]
12861fn bindgen_test_layout_auditinfo() {
12862 assert_eq!(
12863 ::std::mem::size_of::<auditinfo>(),
12864 24usize,
12865 concat!("Size of: ", stringify!(auditinfo))
12866 );
12867 assert_eq!(
12868 ::std::mem::align_of::<auditinfo>(),
12869 4usize,
12870 concat!("Alignment of ", stringify!(auditinfo))
12871 );
12872 assert_eq!(
12873 unsafe { &(*(::std::ptr::null::<auditinfo>())).ai_auid as *const _ as usize },
12874 0usize,
12875 concat!(
12876 "Offset of field: ",
12877 stringify!(auditinfo),
12878 "::",
12879 stringify!(ai_auid)
12880 )
12881 );
12882 assert_eq!(
12883 unsafe { &(*(::std::ptr::null::<auditinfo>())).ai_mask as *const _ as usize },
12884 4usize,
12885 concat!(
12886 "Offset of field: ",
12887 stringify!(auditinfo),
12888 "::",
12889 stringify!(ai_mask)
12890 )
12891 );
12892 assert_eq!(
12893 unsafe { &(*(::std::ptr::null::<auditinfo>())).ai_termid as *const _ as usize },
12894 12usize,
12895 concat!(
12896 "Offset of field: ",
12897 stringify!(auditinfo),
12898 "::",
12899 stringify!(ai_termid)
12900 )
12901 );
12902 assert_eq!(
12903 unsafe { &(*(::std::ptr::null::<auditinfo>())).ai_asid as *const _ as usize },
12904 20usize,
12905 concat!(
12906 "Offset of field: ",
12907 stringify!(auditinfo),
12908 "::",
12909 stringify!(ai_asid)
12910 )
12911 );
12912}
12913pub type auditinfo_t = auditinfo;
12914#[repr(C)]
12915#[derive(Debug, Copy, Clone)]
12916pub struct auditinfo_addr {
12917 pub ai_auid: au_id_t,
12918 pub ai_mask: au_mask_t,
12919 pub ai_termid: au_tid_addr_t,
12920 pub ai_asid: au_asid_t,
12921 pub ai_flags: au_asflgs_t,
12922}
12923#[test]
12924fn bindgen_test_layout_auditinfo_addr() {
12925 assert_eq!(
12926 ::std::mem::size_of::<auditinfo_addr>(),
12927 48usize,
12928 concat!("Size of: ", stringify!(auditinfo_addr))
12929 );
12930 assert_eq!(
12931 ::std::mem::align_of::<auditinfo_addr>(),
12932 8usize,
12933 concat!("Alignment of ", stringify!(auditinfo_addr))
12934 );
12935 assert_eq!(
12936 unsafe { &(*(::std::ptr::null::<auditinfo_addr>())).ai_auid as *const _ as usize },
12937 0usize,
12938 concat!(
12939 "Offset of field: ",
12940 stringify!(auditinfo_addr),
12941 "::",
12942 stringify!(ai_auid)
12943 )
12944 );
12945 assert_eq!(
12946 unsafe { &(*(::std::ptr::null::<auditinfo_addr>())).ai_mask as *const _ as usize },
12947 4usize,
12948 concat!(
12949 "Offset of field: ",
12950 stringify!(auditinfo_addr),
12951 "::",
12952 stringify!(ai_mask)
12953 )
12954 );
12955 assert_eq!(
12956 unsafe { &(*(::std::ptr::null::<auditinfo_addr>())).ai_termid as *const _ as usize },
12957 12usize,
12958 concat!(
12959 "Offset of field: ",
12960 stringify!(auditinfo_addr),
12961 "::",
12962 stringify!(ai_termid)
12963 )
12964 );
12965 assert_eq!(
12966 unsafe { &(*(::std::ptr::null::<auditinfo_addr>())).ai_asid as *const _ as usize },
12967 36usize,
12968 concat!(
12969 "Offset of field: ",
12970 stringify!(auditinfo_addr),
12971 "::",
12972 stringify!(ai_asid)
12973 )
12974 );
12975 assert_eq!(
12976 unsafe { &(*(::std::ptr::null::<auditinfo_addr>())).ai_flags as *const _ as usize },
12977 40usize,
12978 concat!(
12979 "Offset of field: ",
12980 stringify!(auditinfo_addr),
12981 "::",
12982 stringify!(ai_flags)
12983 )
12984 );
12985}
12986pub type auditinfo_addr_t = auditinfo_addr;
12987#[repr(C)]
12988#[derive(Debug, Copy, Clone)]
12989pub struct auditpinfo {
12990 pub ap_pid: pid_t,
12991 pub ap_auid: au_id_t,
12992 pub ap_mask: au_mask_t,
12993 pub ap_termid: au_tid_t,
12994 pub ap_asid: au_asid_t,
12995}
12996#[test]
12997fn bindgen_test_layout_auditpinfo() {
12998 assert_eq!(
12999 ::std::mem::size_of::<auditpinfo>(),
13000 28usize,
13001 concat!("Size of: ", stringify!(auditpinfo))
13002 );
13003 assert_eq!(
13004 ::std::mem::align_of::<auditpinfo>(),
13005 4usize,
13006 concat!("Alignment of ", stringify!(auditpinfo))
13007 );
13008 assert_eq!(
13009 unsafe { &(*(::std::ptr::null::<auditpinfo>())).ap_pid as *const _ as usize },
13010 0usize,
13011 concat!(
13012 "Offset of field: ",
13013 stringify!(auditpinfo),
13014 "::",
13015 stringify!(ap_pid)
13016 )
13017 );
13018 assert_eq!(
13019 unsafe { &(*(::std::ptr::null::<auditpinfo>())).ap_auid as *const _ as usize },
13020 4usize,
13021 concat!(
13022 "Offset of field: ",
13023 stringify!(auditpinfo),
13024 "::",
13025 stringify!(ap_auid)
13026 )
13027 );
13028 assert_eq!(
13029 unsafe { &(*(::std::ptr::null::<auditpinfo>())).ap_mask as *const _ as usize },
13030 8usize,
13031 concat!(
13032 "Offset of field: ",
13033 stringify!(auditpinfo),
13034 "::",
13035 stringify!(ap_mask)
13036 )
13037 );
13038 assert_eq!(
13039 unsafe { &(*(::std::ptr::null::<auditpinfo>())).ap_termid as *const _ as usize },
13040 16usize,
13041 concat!(
13042 "Offset of field: ",
13043 stringify!(auditpinfo),
13044 "::",
13045 stringify!(ap_termid)
13046 )
13047 );
13048 assert_eq!(
13049 unsafe { &(*(::std::ptr::null::<auditpinfo>())).ap_asid as *const _ as usize },
13050 24usize,
13051 concat!(
13052 "Offset of field: ",
13053 stringify!(auditpinfo),
13054 "::",
13055 stringify!(ap_asid)
13056 )
13057 );
13058}
13059pub type auditpinfo_t = auditpinfo;
13060#[repr(C)]
13061#[derive(Debug, Copy, Clone)]
13062pub struct auditpinfo_addr {
13063 pub ap_pid: pid_t,
13064 pub ap_auid: au_id_t,
13065 pub ap_mask: au_mask_t,
13066 pub ap_termid: au_tid_addr_t,
13067 pub ap_asid: au_asid_t,
13068 pub ap_flags: au_asflgs_t,
13069}
13070#[test]
13071fn bindgen_test_layout_auditpinfo_addr() {
13072 assert_eq!(
13073 ::std::mem::size_of::<auditpinfo_addr>(),
13074 56usize,
13075 concat!("Size of: ", stringify!(auditpinfo_addr))
13076 );
13077 assert_eq!(
13078 ::std::mem::align_of::<auditpinfo_addr>(),
13079 8usize,
13080 concat!("Alignment of ", stringify!(auditpinfo_addr))
13081 );
13082 assert_eq!(
13083 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_pid as *const _ as usize },
13084 0usize,
13085 concat!(
13086 "Offset of field: ",
13087 stringify!(auditpinfo_addr),
13088 "::",
13089 stringify!(ap_pid)
13090 )
13091 );
13092 assert_eq!(
13093 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_auid as *const _ as usize },
13094 4usize,
13095 concat!(
13096 "Offset of field: ",
13097 stringify!(auditpinfo_addr),
13098 "::",
13099 stringify!(ap_auid)
13100 )
13101 );
13102 assert_eq!(
13103 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_mask as *const _ as usize },
13104 8usize,
13105 concat!(
13106 "Offset of field: ",
13107 stringify!(auditpinfo_addr),
13108 "::",
13109 stringify!(ap_mask)
13110 )
13111 );
13112 assert_eq!(
13113 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_termid as *const _ as usize },
13114 16usize,
13115 concat!(
13116 "Offset of field: ",
13117 stringify!(auditpinfo_addr),
13118 "::",
13119 stringify!(ap_termid)
13120 )
13121 );
13122 assert_eq!(
13123 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_asid as *const _ as usize },
13124 40usize,
13125 concat!(
13126 "Offset of field: ",
13127 stringify!(auditpinfo_addr),
13128 "::",
13129 stringify!(ap_asid)
13130 )
13131 );
13132 assert_eq!(
13133 unsafe { &(*(::std::ptr::null::<auditpinfo_addr>())).ap_flags as *const _ as usize },
13134 48usize,
13135 concat!(
13136 "Offset of field: ",
13137 stringify!(auditpinfo_addr),
13138 "::",
13139 stringify!(ap_flags)
13140 )
13141 );
13142}
13143pub type auditpinfo_addr_t = auditpinfo_addr;
13144#[repr(C)]
13145#[derive(Debug, Copy, Clone)]
13146pub struct au_session {
13147 pub as_aia_p: *mut auditinfo_addr_t,
13148 pub as_mask: au_mask_t,
13149}
13150#[test]
13151fn bindgen_test_layout_au_session() {
13152 assert_eq!(
13153 ::std::mem::size_of::<au_session>(),
13154 16usize,
13155 concat!("Size of: ", stringify!(au_session))
13156 );
13157 assert_eq!(
13158 ::std::mem::align_of::<au_session>(),
13159 8usize,
13160 concat!("Alignment of ", stringify!(au_session))
13161 );
13162 assert_eq!(
13163 unsafe { &(*(::std::ptr::null::<au_session>())).as_aia_p as *const _ as usize },
13164 0usize,
13165 concat!(
13166 "Offset of field: ",
13167 stringify!(au_session),
13168 "::",
13169 stringify!(as_aia_p)
13170 )
13171 );
13172 assert_eq!(
13173 unsafe { &(*(::std::ptr::null::<au_session>())).as_mask as *const _ as usize },
13174 8usize,
13175 concat!(
13176 "Offset of field: ",
13177 stringify!(au_session),
13178 "::",
13179 stringify!(as_mask)
13180 )
13181 );
13182}
13183pub type au_session_t = au_session;
13184#[repr(C)]
13185#[derive(Debug, Copy, Clone)]
13186pub struct au_expire_after {
13187 pub age: time_t,
13188 pub size: size_t,
13189 pub op_type: ::std::os::raw::c_uchar,
13190}
13191#[test]
13192fn bindgen_test_layout_au_expire_after() {
13193 assert_eq!(
13194 ::std::mem::size_of::<au_expire_after>(),
13195 24usize,
13196 concat!("Size of: ", stringify!(au_expire_after))
13197 );
13198 assert_eq!(
13199 ::std::mem::align_of::<au_expire_after>(),
13200 8usize,
13201 concat!("Alignment of ", stringify!(au_expire_after))
13202 );
13203 assert_eq!(
13204 unsafe { &(*(::std::ptr::null::<au_expire_after>())).age as *const _ as usize },
13205 0usize,
13206 concat!(
13207 "Offset of field: ",
13208 stringify!(au_expire_after),
13209 "::",
13210 stringify!(age)
13211 )
13212 );
13213 assert_eq!(
13214 unsafe { &(*(::std::ptr::null::<au_expire_after>())).size as *const _ as usize },
13215 8usize,
13216 concat!(
13217 "Offset of field: ",
13218 stringify!(au_expire_after),
13219 "::",
13220 stringify!(size)
13221 )
13222 );
13223 assert_eq!(
13224 unsafe { &(*(::std::ptr::null::<au_expire_after>())).op_type as *const _ as usize },
13225 16usize,
13226 concat!(
13227 "Offset of field: ",
13228 stringify!(au_expire_after),
13229 "::",
13230 stringify!(op_type)
13231 )
13232 );
13233}
13234pub type au_expire_after_t = au_expire_after;
13235#[repr(C)]
13236#[derive(Debug, Copy, Clone)]
13237pub struct au_token {
13238 _unused: [u8; 0],
13239}
13240pub type token_t = au_token;
13241#[repr(C)]
13242#[derive(Debug, Copy, Clone)]
13243pub struct au_qctrl {
13244 pub aq_hiwater: ::std::os::raw::c_int,
13245 pub aq_lowater: ::std::os::raw::c_int,
13246 pub aq_bufsz: ::std::os::raw::c_int,
13247 pub aq_delay: ::std::os::raw::c_int,
13248 pub aq_minfree: ::std::os::raw::c_int,
13249}
13250#[test]
13251fn bindgen_test_layout_au_qctrl() {
13252 assert_eq!(
13253 ::std::mem::size_of::<au_qctrl>(),
13254 20usize,
13255 concat!("Size of: ", stringify!(au_qctrl))
13256 );
13257 assert_eq!(
13258 ::std::mem::align_of::<au_qctrl>(),
13259 4usize,
13260 concat!("Alignment of ", stringify!(au_qctrl))
13261 );
13262 assert_eq!(
13263 unsafe { &(*(::std::ptr::null::<au_qctrl>())).aq_hiwater as *const _ as usize },
13264 0usize,
13265 concat!(
13266 "Offset of field: ",
13267 stringify!(au_qctrl),
13268 "::",
13269 stringify!(aq_hiwater)
13270 )
13271 );
13272 assert_eq!(
13273 unsafe { &(*(::std::ptr::null::<au_qctrl>())).aq_lowater as *const _ as usize },
13274 4usize,
13275 concat!(
13276 "Offset of field: ",
13277 stringify!(au_qctrl),
13278 "::",
13279 stringify!(aq_lowater)
13280 )
13281 );
13282 assert_eq!(
13283 unsafe { &(*(::std::ptr::null::<au_qctrl>())).aq_bufsz as *const _ as usize },
13284 8usize,
13285 concat!(
13286 "Offset of field: ",
13287 stringify!(au_qctrl),
13288 "::",
13289 stringify!(aq_bufsz)
13290 )
13291 );
13292 assert_eq!(
13293 unsafe { &(*(::std::ptr::null::<au_qctrl>())).aq_delay as *const _ as usize },
13294 12usize,
13295 concat!(
13296 "Offset of field: ",
13297 stringify!(au_qctrl),
13298 "::",
13299 stringify!(aq_delay)
13300 )
13301 );
13302 assert_eq!(
13303 unsafe { &(*(::std::ptr::null::<au_qctrl>())).aq_minfree as *const _ as usize },
13304 16usize,
13305 concat!(
13306 "Offset of field: ",
13307 stringify!(au_qctrl),
13308 "::",
13309 stringify!(aq_minfree)
13310 )
13311 );
13312}
13313pub type au_qctrl_t = au_qctrl;
13314#[repr(C)]
13315#[derive(Debug, Copy, Clone)]
13316pub struct audit_stat {
13317 pub as_version: ::std::os::raw::c_uint,
13318 pub as_numevent: ::std::os::raw::c_uint,
13319 pub as_generated: ::std::os::raw::c_int,
13320 pub as_nonattrib: ::std::os::raw::c_int,
13321 pub as_kernel: ::std::os::raw::c_int,
13322 pub as_audit: ::std::os::raw::c_int,
13323 pub as_auditctl: ::std::os::raw::c_int,
13324 pub as_enqueue: ::std::os::raw::c_int,
13325 pub as_written: ::std::os::raw::c_int,
13326 pub as_wblocked: ::std::os::raw::c_int,
13327 pub as_rblocked: ::std::os::raw::c_int,
13328 pub as_dropped: ::std::os::raw::c_int,
13329 pub as_totalsize: ::std::os::raw::c_int,
13330 pub as_memused: ::std::os::raw::c_uint,
13331}
13332#[test]
13333fn bindgen_test_layout_audit_stat() {
13334 assert_eq!(
13335 ::std::mem::size_of::<audit_stat>(),
13336 56usize,
13337 concat!("Size of: ", stringify!(audit_stat))
13338 );
13339 assert_eq!(
13340 ::std::mem::align_of::<audit_stat>(),
13341 4usize,
13342 concat!("Alignment of ", stringify!(audit_stat))
13343 );
13344 assert_eq!(
13345 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_version as *const _ as usize },
13346 0usize,
13347 concat!(
13348 "Offset of field: ",
13349 stringify!(audit_stat),
13350 "::",
13351 stringify!(as_version)
13352 )
13353 );
13354 assert_eq!(
13355 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_numevent as *const _ as usize },
13356 4usize,
13357 concat!(
13358 "Offset of field: ",
13359 stringify!(audit_stat),
13360 "::",
13361 stringify!(as_numevent)
13362 )
13363 );
13364 assert_eq!(
13365 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_generated as *const _ as usize },
13366 8usize,
13367 concat!(
13368 "Offset of field: ",
13369 stringify!(audit_stat),
13370 "::",
13371 stringify!(as_generated)
13372 )
13373 );
13374 assert_eq!(
13375 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_nonattrib as *const _ as usize },
13376 12usize,
13377 concat!(
13378 "Offset of field: ",
13379 stringify!(audit_stat),
13380 "::",
13381 stringify!(as_nonattrib)
13382 )
13383 );
13384 assert_eq!(
13385 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_kernel as *const _ as usize },
13386 16usize,
13387 concat!(
13388 "Offset of field: ",
13389 stringify!(audit_stat),
13390 "::",
13391 stringify!(as_kernel)
13392 )
13393 );
13394 assert_eq!(
13395 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_audit as *const _ as usize },
13396 20usize,
13397 concat!(
13398 "Offset of field: ",
13399 stringify!(audit_stat),
13400 "::",
13401 stringify!(as_audit)
13402 )
13403 );
13404 assert_eq!(
13405 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_auditctl as *const _ as usize },
13406 24usize,
13407 concat!(
13408 "Offset of field: ",
13409 stringify!(audit_stat),
13410 "::",
13411 stringify!(as_auditctl)
13412 )
13413 );
13414 assert_eq!(
13415 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_enqueue as *const _ as usize },
13416 28usize,
13417 concat!(
13418 "Offset of field: ",
13419 stringify!(audit_stat),
13420 "::",
13421 stringify!(as_enqueue)
13422 )
13423 );
13424 assert_eq!(
13425 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_written as *const _ as usize },
13426 32usize,
13427 concat!(
13428 "Offset of field: ",
13429 stringify!(audit_stat),
13430 "::",
13431 stringify!(as_written)
13432 )
13433 );
13434 assert_eq!(
13435 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_wblocked as *const _ as usize },
13436 36usize,
13437 concat!(
13438 "Offset of field: ",
13439 stringify!(audit_stat),
13440 "::",
13441 stringify!(as_wblocked)
13442 )
13443 );
13444 assert_eq!(
13445 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_rblocked as *const _ as usize },
13446 40usize,
13447 concat!(
13448 "Offset of field: ",
13449 stringify!(audit_stat),
13450 "::",
13451 stringify!(as_rblocked)
13452 )
13453 );
13454 assert_eq!(
13455 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_dropped as *const _ as usize },
13456 44usize,
13457 concat!(
13458 "Offset of field: ",
13459 stringify!(audit_stat),
13460 "::",
13461 stringify!(as_dropped)
13462 )
13463 );
13464 assert_eq!(
13465 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_totalsize as *const _ as usize },
13466 48usize,
13467 concat!(
13468 "Offset of field: ",
13469 stringify!(audit_stat),
13470 "::",
13471 stringify!(as_totalsize)
13472 )
13473 );
13474 assert_eq!(
13475 unsafe { &(*(::std::ptr::null::<audit_stat>())).as_memused as *const _ as usize },
13476 52usize,
13477 concat!(
13478 "Offset of field: ",
13479 stringify!(audit_stat),
13480 "::",
13481 stringify!(as_memused)
13482 )
13483 );
13484}
13485pub type au_stat_t = audit_stat;
13486#[repr(C)]
13487#[derive(Debug, Copy, Clone)]
13488pub struct audit_fstat {
13489 pub af_filesz: u_int64_t,
13490 pub af_currsz: u_int64_t,
13491}
13492#[test]
13493fn bindgen_test_layout_audit_fstat() {
13494 assert_eq!(
13495 ::std::mem::size_of::<audit_fstat>(),
13496 16usize,
13497 concat!("Size of: ", stringify!(audit_fstat))
13498 );
13499 assert_eq!(
13500 ::std::mem::align_of::<audit_fstat>(),
13501 8usize,
13502 concat!("Alignment of ", stringify!(audit_fstat))
13503 );
13504 assert_eq!(
13505 unsafe { &(*(::std::ptr::null::<audit_fstat>())).af_filesz as *const _ as usize },
13506 0usize,
13507 concat!(
13508 "Offset of field: ",
13509 stringify!(audit_fstat),
13510 "::",
13511 stringify!(af_filesz)
13512 )
13513 );
13514 assert_eq!(
13515 unsafe { &(*(::std::ptr::null::<audit_fstat>())).af_currsz as *const _ as usize },
13516 8usize,
13517 concat!(
13518 "Offset of field: ",
13519 stringify!(audit_fstat),
13520 "::",
13521 stringify!(af_currsz)
13522 )
13523 );
13524}
13525pub type au_fstat_t = audit_fstat;
13526#[repr(C)]
13527#[derive(Debug, Copy, Clone)]
13528pub struct au_evclass_map {
13529 pub ec_number: au_event_t,
13530 pub ec_class: au_class_t,
13531}
13532#[test]
13533fn bindgen_test_layout_au_evclass_map() {
13534 assert_eq!(
13535 ::std::mem::size_of::<au_evclass_map>(),
13536 8usize,
13537 concat!("Size of: ", stringify!(au_evclass_map))
13538 );
13539 assert_eq!(
13540 ::std::mem::align_of::<au_evclass_map>(),
13541 4usize,
13542 concat!("Alignment of ", stringify!(au_evclass_map))
13543 );
13544 assert_eq!(
13545 unsafe { &(*(::std::ptr::null::<au_evclass_map>())).ec_number as *const _ as usize },
13546 0usize,
13547 concat!(
13548 "Offset of field: ",
13549 stringify!(au_evclass_map),
13550 "::",
13551 stringify!(ec_number)
13552 )
13553 );
13554 assert_eq!(
13555 unsafe { &(*(::std::ptr::null::<au_evclass_map>())).ec_class as *const _ as usize },
13556 4usize,
13557 concat!(
13558 "Offset of field: ",
13559 stringify!(au_evclass_map),
13560 "::",
13561 stringify!(ec_class)
13562 )
13563 );
13564}
13565pub type au_evclass_map_t = au_evclass_map;
13566extern "C" {
13567 pub fn audit(
13568 arg1: *const ::std::os::raw::c_void,
13569 arg2: ::std::os::raw::c_int,
13570 ) -> ::std::os::raw::c_int;
13571}
13572extern "C" {
13573 pub fn auditon(
13574 arg1: ::std::os::raw::c_int,
13575 arg2: *mut ::std::os::raw::c_void,
13576 arg3: ::std::os::raw::c_int,
13577 ) -> ::std::os::raw::c_int;
13578}
13579extern "C" {
13580 pub fn auditctl(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
13581}
13582extern "C" {
13583 pub fn getauid(arg1: *mut au_id_t) -> ::std::os::raw::c_int;
13584}
13585extern "C" {
13586 pub fn setauid(arg1: *const au_id_t) -> ::std::os::raw::c_int;
13587}
13588extern "C" {
13589 pub fn getaudit_addr(
13590 arg1: *mut auditinfo_addr,
13591 arg2: ::std::os::raw::c_int,
13592 ) -> ::std::os::raw::c_int;
13593}
13594extern "C" {
13595 pub fn setaudit_addr(
13596 arg1: *const auditinfo_addr,
13597 arg2: ::std::os::raw::c_int,
13598 ) -> ::std::os::raw::c_int;
13599}
13600extern "C" {
13601 pub fn getaudit(arg1: *mut auditinfo) -> ::std::os::raw::c_int;
13602}
13603extern "C" {
13604 pub fn setaudit(arg1: *const auditinfo) -> ::std::os::raw::c_int;
13605}
13606extern "C" {
13607 pub fn audit_session_self() -> mach_port_name_t;
13608}
13609extern "C" {
13610 pub fn audit_session_join(port: mach_port_name_t) -> au_asid_t;
13611}
13612extern "C" {
13613 pub fn audit_session_port(
13614 asid: au_asid_t,
13615 portname: *mut mach_port_name_t,
13616 ) -> ::std::os::raw::c_int;
13617}
13618#[repr(C)]
13619#[derive(Debug, Copy, Clone)]
13620pub struct label {
13621 _unused: [u8; 0],
13622}
13623#[repr(C)]
13624#[derive(Debug, Copy, Clone)]
13625pub struct ucred {
13626 _unused: [u8; 0],
13627}
13628#[repr(C)]
13629#[derive(Debug, Copy, Clone)]
13630pub struct posix_cred {
13631 _unused: [u8; 0],
13632}
13633pub type kauth_cred_t = *mut ucred;
13634pub type posix_cred_t = *mut posix_cred;
13635#[repr(C)]
13636#[derive(Debug, Copy, Clone)]
13637pub struct xucred {
13638 pub cr_version: u_int,
13639 pub cr_uid: uid_t,
13640 pub cr_ngroups: ::std::os::raw::c_short,
13641 pub cr_groups: [gid_t; 16usize],
13642}
13643#[test]
13644fn bindgen_test_layout_xucred() {
13645 assert_eq!(
13646 ::std::mem::size_of::<xucred>(),
13647 76usize,
13648 concat!("Size of: ", stringify!(xucred))
13649 );
13650 assert_eq!(
13651 ::std::mem::align_of::<xucred>(),
13652 4usize,
13653 concat!("Alignment of ", stringify!(xucred))
13654 );
13655 assert_eq!(
13656 unsafe { &(*(::std::ptr::null::<xucred>())).cr_version as *const _ as usize },
13657 0usize,
13658 concat!(
13659 "Offset of field: ",
13660 stringify!(xucred),
13661 "::",
13662 stringify!(cr_version)
13663 )
13664 );
13665 assert_eq!(
13666 unsafe { &(*(::std::ptr::null::<xucred>())).cr_uid as *const _ as usize },
13667 4usize,
13668 concat!(
13669 "Offset of field: ",
13670 stringify!(xucred),
13671 "::",
13672 stringify!(cr_uid)
13673 )
13674 );
13675 assert_eq!(
13676 unsafe { &(*(::std::ptr::null::<xucred>())).cr_ngroups as *const _ as usize },
13677 8usize,
13678 concat!(
13679 "Offset of field: ",
13680 stringify!(xucred),
13681 "::",
13682 stringify!(cr_ngroups)
13683 )
13684 );
13685 assert_eq!(
13686 unsafe { &(*(::std::ptr::null::<xucred>())).cr_groups as *const _ as usize },
13687 12usize,
13688 concat!(
13689 "Offset of field: ",
13690 stringify!(xucred),
13691 "::",
13692 stringify!(cr_groups)
13693 )
13694 );
13695}
13696#[repr(C)]
13697#[derive(Debug, Copy, Clone)]
13698pub struct timespec {
13699 pub tv_sec: __darwin_time_t,
13700 pub tv_nsec: ::std::os::raw::c_long,
13701}
13702#[test]
13703fn bindgen_test_layout_timespec() {
13704 assert_eq!(
13705 ::std::mem::size_of::<timespec>(),
13706 16usize,
13707 concat!("Size of: ", stringify!(timespec))
13708 );
13709 assert_eq!(
13710 ::std::mem::align_of::<timespec>(),
13711 8usize,
13712 concat!("Alignment of ", stringify!(timespec))
13713 );
13714 assert_eq!(
13715 unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize },
13716 0usize,
13717 concat!(
13718 "Offset of field: ",
13719 stringify!(timespec),
13720 "::",
13721 stringify!(tv_sec)
13722 )
13723 );
13724 assert_eq!(
13725 unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize },
13726 8usize,
13727 concat!(
13728 "Offset of field: ",
13729 stringify!(timespec),
13730 "::",
13731 stringify!(tv_nsec)
13732 )
13733 );
13734}
13735#[repr(C)]
13736#[derive(Debug, Copy, Clone)]
13737pub struct timeval {
13738 pub tv_sec: __darwin_time_t,
13739 pub tv_usec: __darwin_suseconds_t,
13740}
13741#[test]
13742fn bindgen_test_layout_timeval() {
13743 assert_eq!(
13744 ::std::mem::size_of::<timeval>(),
13745 16usize,
13746 concat!("Size of: ", stringify!(timeval))
13747 );
13748 assert_eq!(
13749 ::std::mem::align_of::<timeval>(),
13750 8usize,
13751 concat!("Alignment of ", stringify!(timeval))
13752 );
13753 assert_eq!(
13754 unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize },
13755 0usize,
13756 concat!(
13757 "Offset of field: ",
13758 stringify!(timeval),
13759 "::",
13760 stringify!(tv_sec)
13761 )
13762 );
13763 assert_eq!(
13764 unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize },
13765 8usize,
13766 concat!(
13767 "Offset of field: ",
13768 stringify!(timeval),
13769 "::",
13770 stringify!(tv_usec)
13771 )
13772 );
13773}
13774#[repr(C)]
13775#[derive(Debug, Copy, Clone)]
13776pub struct timeval64 {
13777 pub tv_sec: __int64_t,
13778 pub tv_usec: __int64_t,
13779}
13780#[test]
13781fn bindgen_test_layout_timeval64() {
13782 assert_eq!(
13783 ::std::mem::size_of::<timeval64>(),
13784 16usize,
13785 concat!("Size of: ", stringify!(timeval64))
13786 );
13787 assert_eq!(
13788 ::std::mem::align_of::<timeval64>(),
13789 8usize,
13790 concat!("Alignment of ", stringify!(timeval64))
13791 );
13792 assert_eq!(
13793 unsafe { &(*(::std::ptr::null::<timeval64>())).tv_sec as *const _ as usize },
13794 0usize,
13795 concat!(
13796 "Offset of field: ",
13797 stringify!(timeval64),
13798 "::",
13799 stringify!(tv_sec)
13800 )
13801 );
13802 assert_eq!(
13803 unsafe { &(*(::std::ptr::null::<timeval64>())).tv_usec as *const _ as usize },
13804 8usize,
13805 concat!(
13806 "Offset of field: ",
13807 stringify!(timeval64),
13808 "::",
13809 stringify!(tv_usec)
13810 )
13811 );
13812}
13813#[repr(C)]
13814#[derive(Debug, Copy, Clone)]
13815pub struct itimerval {
13816 pub it_interval: timeval,
13817 pub it_value: timeval,
13818}
13819#[test]
13820fn bindgen_test_layout_itimerval() {
13821 assert_eq!(
13822 ::std::mem::size_of::<itimerval>(),
13823 32usize,
13824 concat!("Size of: ", stringify!(itimerval))
13825 );
13826 assert_eq!(
13827 ::std::mem::align_of::<itimerval>(),
13828 8usize,
13829 concat!("Alignment of ", stringify!(itimerval))
13830 );
13831 assert_eq!(
13832 unsafe { &(*(::std::ptr::null::<itimerval>())).it_interval as *const _ as usize },
13833 0usize,
13834 concat!(
13835 "Offset of field: ",
13836 stringify!(itimerval),
13837 "::",
13838 stringify!(it_interval)
13839 )
13840 );
13841 assert_eq!(
13842 unsafe { &(*(::std::ptr::null::<itimerval>())).it_value as *const _ as usize },
13843 16usize,
13844 concat!(
13845 "Offset of field: ",
13846 stringify!(itimerval),
13847 "::",
13848 stringify!(it_value)
13849 )
13850 );
13851}
13852#[repr(C)]
13853#[derive(Debug, Copy, Clone)]
13854pub struct timezone {
13855 pub tz_minuteswest: ::std::os::raw::c_int,
13856 pub tz_dsttime: ::std::os::raw::c_int,
13857}
13858#[test]
13859fn bindgen_test_layout_timezone() {
13860 assert_eq!(
13861 ::std::mem::size_of::<timezone>(),
13862 8usize,
13863 concat!("Size of: ", stringify!(timezone))
13864 );
13865 assert_eq!(
13866 ::std::mem::align_of::<timezone>(),
13867 4usize,
13868 concat!("Alignment of ", stringify!(timezone))
13869 );
13870 assert_eq!(
13871 unsafe { &(*(::std::ptr::null::<timezone>())).tz_minuteswest as *const _ as usize },
13872 0usize,
13873 concat!(
13874 "Offset of field: ",
13875 stringify!(timezone),
13876 "::",
13877 stringify!(tz_minuteswest)
13878 )
13879 );
13880 assert_eq!(
13881 unsafe { &(*(::std::ptr::null::<timezone>())).tz_dsttime as *const _ as usize },
13882 4usize,
13883 concat!(
13884 "Offset of field: ",
13885 stringify!(timezone),
13886 "::",
13887 stringify!(tz_dsttime)
13888 )
13889 );
13890}
13891#[repr(C)]
13892#[derive(Debug, Copy, Clone)]
13893pub struct clockinfo {
13894 pub hz: ::std::os::raw::c_int,
13895 pub tick: ::std::os::raw::c_int,
13896 pub tickadj: ::std::os::raw::c_int,
13897 pub stathz: ::std::os::raw::c_int,
13898 pub profhz: ::std::os::raw::c_int,
13899}
13900#[test]
13901fn bindgen_test_layout_clockinfo() {
13902 assert_eq!(
13903 ::std::mem::size_of::<clockinfo>(),
13904 20usize,
13905 concat!("Size of: ", stringify!(clockinfo))
13906 );
13907 assert_eq!(
13908 ::std::mem::align_of::<clockinfo>(),
13909 4usize,
13910 concat!("Alignment of ", stringify!(clockinfo))
13911 );
13912 assert_eq!(
13913 unsafe { &(*(::std::ptr::null::<clockinfo>())).hz as *const _ as usize },
13914 0usize,
13915 concat!(
13916 "Offset of field: ",
13917 stringify!(clockinfo),
13918 "::",
13919 stringify!(hz)
13920 )
13921 );
13922 assert_eq!(
13923 unsafe { &(*(::std::ptr::null::<clockinfo>())).tick as *const _ as usize },
13924 4usize,
13925 concat!(
13926 "Offset of field: ",
13927 stringify!(clockinfo),
13928 "::",
13929 stringify!(tick)
13930 )
13931 );
13932 assert_eq!(
13933 unsafe { &(*(::std::ptr::null::<clockinfo>())).tickadj as *const _ as usize },
13934 8usize,
13935 concat!(
13936 "Offset of field: ",
13937 stringify!(clockinfo),
13938 "::",
13939 stringify!(tickadj)
13940 )
13941 );
13942 assert_eq!(
13943 unsafe { &(*(::std::ptr::null::<clockinfo>())).stathz as *const _ as usize },
13944 12usize,
13945 concat!(
13946 "Offset of field: ",
13947 stringify!(clockinfo),
13948 "::",
13949 stringify!(stathz)
13950 )
13951 );
13952 assert_eq!(
13953 unsafe { &(*(::std::ptr::null::<clockinfo>())).profhz as *const _ as usize },
13954 16usize,
13955 concat!(
13956 "Offset of field: ",
13957 stringify!(clockinfo),
13958 "::",
13959 stringify!(profhz)
13960 )
13961 );
13962}
13963pub type __darwin_nl_item = ::std::os::raw::c_int;
13964pub type __darwin_wctrans_t = ::std::os::raw::c_int;
13965pub type __darwin_wctype_t = __uint32_t;
13966#[repr(C)]
13967#[derive(Debug, Copy, Clone)]
13968pub struct tm {
13969 pub tm_sec: ::std::os::raw::c_int,
13970 pub tm_min: ::std::os::raw::c_int,
13971 pub tm_hour: ::std::os::raw::c_int,
13972 pub tm_mday: ::std::os::raw::c_int,
13973 pub tm_mon: ::std::os::raw::c_int,
13974 pub tm_year: ::std::os::raw::c_int,
13975 pub tm_wday: ::std::os::raw::c_int,
13976 pub tm_yday: ::std::os::raw::c_int,
13977 pub tm_isdst: ::std::os::raw::c_int,
13978 pub tm_gmtoff: ::std::os::raw::c_long,
13979 pub tm_zone: *mut ::std::os::raw::c_char,
13980}
13981#[test]
13982fn bindgen_test_layout_tm() {
13983 assert_eq!(
13984 ::std::mem::size_of::<tm>(),
13985 56usize,
13986 concat!("Size of: ", stringify!(tm))
13987 );
13988 assert_eq!(
13989 ::std::mem::align_of::<tm>(),
13990 8usize,
13991 concat!("Alignment of ", stringify!(tm))
13992 );
13993 assert_eq!(
13994 unsafe { &(*(::std::ptr::null::<tm>())).tm_sec as *const _ as usize },
13995 0usize,
13996 concat!(
13997 "Offset of field: ",
13998 stringify!(tm),
13999 "::",
14000 stringify!(tm_sec)
14001 )
14002 );
14003 assert_eq!(
14004 unsafe { &(*(::std::ptr::null::<tm>())).tm_min as *const _ as usize },
14005 4usize,
14006 concat!(
14007 "Offset of field: ",
14008 stringify!(tm),
14009 "::",
14010 stringify!(tm_min)
14011 )
14012 );
14013 assert_eq!(
14014 unsafe { &(*(::std::ptr::null::<tm>())).tm_hour as *const _ as usize },
14015 8usize,
14016 concat!(
14017 "Offset of field: ",
14018 stringify!(tm),
14019 "::",
14020 stringify!(tm_hour)
14021 )
14022 );
14023 assert_eq!(
14024 unsafe { &(*(::std::ptr::null::<tm>())).tm_mday as *const _ as usize },
14025 12usize,
14026 concat!(
14027 "Offset of field: ",
14028 stringify!(tm),
14029 "::",
14030 stringify!(tm_mday)
14031 )
14032 );
14033 assert_eq!(
14034 unsafe { &(*(::std::ptr::null::<tm>())).tm_mon as *const _ as usize },
14035 16usize,
14036 concat!(
14037 "Offset of field: ",
14038 stringify!(tm),
14039 "::",
14040 stringify!(tm_mon)
14041 )
14042 );
14043 assert_eq!(
14044 unsafe { &(*(::std::ptr::null::<tm>())).tm_year as *const _ as usize },
14045 20usize,
14046 concat!(
14047 "Offset of field: ",
14048 stringify!(tm),
14049 "::",
14050 stringify!(tm_year)
14051 )
14052 );
14053 assert_eq!(
14054 unsafe { &(*(::std::ptr::null::<tm>())).tm_wday as *const _ as usize },
14055 24usize,
14056 concat!(
14057 "Offset of field: ",
14058 stringify!(tm),
14059 "::",
14060 stringify!(tm_wday)
14061 )
14062 );
14063 assert_eq!(
14064 unsafe { &(*(::std::ptr::null::<tm>())).tm_yday as *const _ as usize },
14065 28usize,
14066 concat!(
14067 "Offset of field: ",
14068 stringify!(tm),
14069 "::",
14070 stringify!(tm_yday)
14071 )
14072 );
14073 assert_eq!(
14074 unsafe { &(*(::std::ptr::null::<tm>())).tm_isdst as *const _ as usize },
14075 32usize,
14076 concat!(
14077 "Offset of field: ",
14078 stringify!(tm),
14079 "::",
14080 stringify!(tm_isdst)
14081 )
14082 );
14083 assert_eq!(
14084 unsafe { &(*(::std::ptr::null::<tm>())).tm_gmtoff as *const _ as usize },
14085 40usize,
14086 concat!(
14087 "Offset of field: ",
14088 stringify!(tm),
14089 "::",
14090 stringify!(tm_gmtoff)
14091 )
14092 );
14093 assert_eq!(
14094 unsafe { &(*(::std::ptr::null::<tm>())).tm_zone as *const _ as usize },
14095 48usize,
14096 concat!(
14097 "Offset of field: ",
14098 stringify!(tm),
14099 "::",
14100 stringify!(tm_zone)
14101 )
14102 );
14103}
14104extern "C" {
14105 pub static mut tzname: [*mut ::std::os::raw::c_char; 0usize];
14106}
14107extern "C" {
14108 pub static mut getdate_err: ::std::os::raw::c_int;
14109}
14110extern "C" {
14111 pub static mut timezone: ::std::os::raw::c_long;
14112}
14113extern "C" {
14114 pub static mut daylight: ::std::os::raw::c_int;
14115}
14116extern "C" {
14117 pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char;
14118}
14119extern "C" {
14120 pub fn clock() -> clock_t;
14121}
14122extern "C" {
14123 pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char;
14124}
14125extern "C" {
14126 pub fn difftime(arg1: time_t, arg2: time_t) -> f64;
14127}
14128extern "C" {
14129 pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm;
14130}
14131extern "C" {
14132 pub fn gmtime(arg1: *const time_t) -> *mut tm;
14133}
14134extern "C" {
14135 pub fn localtime(arg1: *const time_t) -> *mut tm;
14136}
14137extern "C" {
14138 pub fn mktime(arg1: *mut tm) -> time_t;
14139}
14140extern "C" {
14141 pub fn strftime(
14142 arg1: *mut ::std::os::raw::c_char,
14143 arg2: size_t,
14144 arg3: *const ::std::os::raw::c_char,
14145 arg4: *const tm,
14146 ) -> size_t;
14147}
14148extern "C" {
14149 pub fn strptime(
14150 arg1: *const ::std::os::raw::c_char,
14151 arg2: *const ::std::os::raw::c_char,
14152 arg3: *mut tm,
14153 ) -> *mut ::std::os::raw::c_char;
14154}
14155extern "C" {
14156 pub fn time(arg1: *mut time_t) -> time_t;
14157}
14158extern "C" {
14159 pub fn tzset();
14160}
14161extern "C" {
14162 pub fn asctime_r(
14163 arg1: *const tm,
14164 arg2: *mut ::std::os::raw::c_char,
14165 ) -> *mut ::std::os::raw::c_char;
14166}
14167extern "C" {
14168 pub fn ctime_r(
14169 arg1: *const time_t,
14170 arg2: *mut ::std::os::raw::c_char,
14171 ) -> *mut ::std::os::raw::c_char;
14172}
14173extern "C" {
14174 pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
14175}
14176extern "C" {
14177 pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
14178}
14179extern "C" {
14180 pub fn posix2time(arg1: time_t) -> time_t;
14181}
14182extern "C" {
14183 pub fn tzsetwall();
14184}
14185extern "C" {
14186 pub fn time2posix(arg1: time_t) -> time_t;
14187}
14188extern "C" {
14189 pub fn timelocal(arg1: *mut tm) -> time_t;
14190}
14191extern "C" {
14192 pub fn timegm(arg1: *mut tm) -> time_t;
14193}
14194extern "C" {
14195 pub fn nanosleep(__rqtp: *const timespec, __rmtp: *mut timespec) -> ::std::os::raw::c_int;
14196}
14197pub const clockid_t__CLOCK_REALTIME: clockid_t = 0;
14198pub const clockid_t__CLOCK_MONOTONIC: clockid_t = 6;
14199pub const clockid_t__CLOCK_MONOTONIC_RAW: clockid_t = 4;
14200pub const clockid_t__CLOCK_MONOTONIC_RAW_APPROX: clockid_t = 5;
14201pub const clockid_t__CLOCK_UPTIME_RAW: clockid_t = 8;
14202pub const clockid_t__CLOCK_UPTIME_RAW_APPROX: clockid_t = 9;
14203pub const clockid_t__CLOCK_PROCESS_CPUTIME_ID: clockid_t = 12;
14204pub const clockid_t__CLOCK_THREAD_CPUTIME_ID: clockid_t = 16;
14205pub type clockid_t = ::std::os::raw::c_uint;
14206extern "C" {
14207 pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
14208}
14209extern "C" {
14210 pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
14211}
14212extern "C" {
14213 pub fn clock_gettime_nsec_np(__clock_id: clockid_t) -> __uint64_t;
14214}
14215extern "C" {
14216 pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
14217}
14218extern "C" {
14219 pub fn timespec_get(ts: *mut timespec, base: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
14220}
14221extern "C" {
14222 pub fn adjtime(arg1: *const timeval, arg2: *mut timeval) -> ::std::os::raw::c_int;
14223}
14224extern "C" {
14225 pub fn futimes(arg1: ::std::os::raw::c_int, arg2: *const timeval) -> ::std::os::raw::c_int;
14226}
14227extern "C" {
14228 pub fn lutimes(
14229 arg1: *const ::std::os::raw::c_char,
14230 arg2: *const timeval,
14231 ) -> ::std::os::raw::c_int;
14232}
14233extern "C" {
14234 pub fn settimeofday(arg1: *const timeval, arg2: *const timezone) -> ::std::os::raw::c_int;
14235}
14236extern "C" {
14237 pub fn getitimer(arg1: ::std::os::raw::c_int, arg2: *mut itimerval) -> ::std::os::raw::c_int;
14238}
14239extern "C" {
14240 pub fn gettimeofday(
14241 arg1: *mut timeval,
14242 arg2: *mut ::std::os::raw::c_void,
14243 ) -> ::std::os::raw::c_int;
14244}
14245extern "C" {
14246 #[link_name = "\u{1}_select$1050"]
14247 pub fn select(
14248 arg1: ::std::os::raw::c_int,
14249 arg2: *mut fd_set,
14250 arg3: *mut fd_set,
14251 arg4: *mut fd_set,
14252 arg5: *mut timeval,
14253 ) -> ::std::os::raw::c_int;
14254}
14255extern "C" {
14256 pub fn setitimer(
14257 arg1: ::std::os::raw::c_int,
14258 arg2: *const itimerval,
14259 arg3: *mut itimerval,
14260 ) -> ::std::os::raw::c_int;
14261}
14262extern "C" {
14263 pub fn utimes(
14264 arg1: *const ::std::os::raw::c_char,
14265 arg2: *const timeval,
14266 ) -> ::std::os::raw::c_int;
14267}
14268pub type text_encoding_t = u_int32_t;
14269pub type fsobj_type_t = u_int32_t;
14270pub type fsobj_tag_t = u_int32_t;
14271pub type fsfile_type_t = u_int32_t;
14272pub type fsvolid_t = u_int32_t;
14273#[repr(C)]
14274#[derive(Debug, Copy, Clone)]
14275pub struct fsobj_id {
14276 pub fid_objno: u_int32_t,
14277 pub fid_generation: u_int32_t,
14278}
14279#[test]
14280fn bindgen_test_layout_fsobj_id() {
14281 assert_eq!(
14282 ::std::mem::size_of::<fsobj_id>(),
14283 8usize,
14284 concat!("Size of: ", stringify!(fsobj_id))
14285 );
14286 assert_eq!(
14287 ::std::mem::align_of::<fsobj_id>(),
14288 4usize,
14289 concat!("Alignment of ", stringify!(fsobj_id))
14290 );
14291 assert_eq!(
14292 unsafe { &(*(::std::ptr::null::<fsobj_id>())).fid_objno as *const _ as usize },
14293 0usize,
14294 concat!(
14295 "Offset of field: ",
14296 stringify!(fsobj_id),
14297 "::",
14298 stringify!(fid_objno)
14299 )
14300 );
14301 assert_eq!(
14302 unsafe { &(*(::std::ptr::null::<fsobj_id>())).fid_generation as *const _ as usize },
14303 4usize,
14304 concat!(
14305 "Offset of field: ",
14306 stringify!(fsobj_id),
14307 "::",
14308 stringify!(fid_generation)
14309 )
14310 );
14311}
14312pub type fsobj_id_t = fsobj_id;
14313pub type attrgroup_t = u_int32_t;
14314#[repr(C)]
14315#[derive(Debug, Copy, Clone)]
14316pub struct attrlist {
14317 pub bitmapcount: u_short,
14318 pub reserved: u_int16_t,
14319 pub commonattr: attrgroup_t,
14320 pub volattr: attrgroup_t,
14321 pub dirattr: attrgroup_t,
14322 pub fileattr: attrgroup_t,
14323 pub forkattr: attrgroup_t,
14324}
14325#[test]
14326fn bindgen_test_layout_attrlist() {
14327 assert_eq!(
14328 ::std::mem::size_of::<attrlist>(),
14329 24usize,
14330 concat!("Size of: ", stringify!(attrlist))
14331 );
14332 assert_eq!(
14333 ::std::mem::align_of::<attrlist>(),
14334 4usize,
14335 concat!("Alignment of ", stringify!(attrlist))
14336 );
14337 assert_eq!(
14338 unsafe { &(*(::std::ptr::null::<attrlist>())).bitmapcount as *const _ as usize },
14339 0usize,
14340 concat!(
14341 "Offset of field: ",
14342 stringify!(attrlist),
14343 "::",
14344 stringify!(bitmapcount)
14345 )
14346 );
14347 assert_eq!(
14348 unsafe { &(*(::std::ptr::null::<attrlist>())).reserved as *const _ as usize },
14349 2usize,
14350 concat!(
14351 "Offset of field: ",
14352 stringify!(attrlist),
14353 "::",
14354 stringify!(reserved)
14355 )
14356 );
14357 assert_eq!(
14358 unsafe { &(*(::std::ptr::null::<attrlist>())).commonattr as *const _ as usize },
14359 4usize,
14360 concat!(
14361 "Offset of field: ",
14362 stringify!(attrlist),
14363 "::",
14364 stringify!(commonattr)
14365 )
14366 );
14367 assert_eq!(
14368 unsafe { &(*(::std::ptr::null::<attrlist>())).volattr as *const _ as usize },
14369 8usize,
14370 concat!(
14371 "Offset of field: ",
14372 stringify!(attrlist),
14373 "::",
14374 stringify!(volattr)
14375 )
14376 );
14377 assert_eq!(
14378 unsafe { &(*(::std::ptr::null::<attrlist>())).dirattr as *const _ as usize },
14379 12usize,
14380 concat!(
14381 "Offset of field: ",
14382 stringify!(attrlist),
14383 "::",
14384 stringify!(dirattr)
14385 )
14386 );
14387 assert_eq!(
14388 unsafe { &(*(::std::ptr::null::<attrlist>())).fileattr as *const _ as usize },
14389 16usize,
14390 concat!(
14391 "Offset of field: ",
14392 stringify!(attrlist),
14393 "::",
14394 stringify!(fileattr)
14395 )
14396 );
14397 assert_eq!(
14398 unsafe { &(*(::std::ptr::null::<attrlist>())).forkattr as *const _ as usize },
14399 20usize,
14400 concat!(
14401 "Offset of field: ",
14402 stringify!(attrlist),
14403 "::",
14404 stringify!(forkattr)
14405 )
14406 );
14407}
14408#[repr(C)]
14409#[derive(Debug, Copy, Clone)]
14410pub struct attribute_set {
14411 pub commonattr: attrgroup_t,
14412 pub volattr: attrgroup_t,
14413 pub dirattr: attrgroup_t,
14414 pub fileattr: attrgroup_t,
14415 pub forkattr: attrgroup_t,
14416}
14417#[test]
14418fn bindgen_test_layout_attribute_set() {
14419 assert_eq!(
14420 ::std::mem::size_of::<attribute_set>(),
14421 20usize,
14422 concat!("Size of: ", stringify!(attribute_set))
14423 );
14424 assert_eq!(
14425 ::std::mem::align_of::<attribute_set>(),
14426 4usize,
14427 concat!("Alignment of ", stringify!(attribute_set))
14428 );
14429 assert_eq!(
14430 unsafe { &(*(::std::ptr::null::<attribute_set>())).commonattr as *const _ as usize },
14431 0usize,
14432 concat!(
14433 "Offset of field: ",
14434 stringify!(attribute_set),
14435 "::",
14436 stringify!(commonattr)
14437 )
14438 );
14439 assert_eq!(
14440 unsafe { &(*(::std::ptr::null::<attribute_set>())).volattr as *const _ as usize },
14441 4usize,
14442 concat!(
14443 "Offset of field: ",
14444 stringify!(attribute_set),
14445 "::",
14446 stringify!(volattr)
14447 )
14448 );
14449 assert_eq!(
14450 unsafe { &(*(::std::ptr::null::<attribute_set>())).dirattr as *const _ as usize },
14451 8usize,
14452 concat!(
14453 "Offset of field: ",
14454 stringify!(attribute_set),
14455 "::",
14456 stringify!(dirattr)
14457 )
14458 );
14459 assert_eq!(
14460 unsafe { &(*(::std::ptr::null::<attribute_set>())).fileattr as *const _ as usize },
14461 12usize,
14462 concat!(
14463 "Offset of field: ",
14464 stringify!(attribute_set),
14465 "::",
14466 stringify!(fileattr)
14467 )
14468 );
14469 assert_eq!(
14470 unsafe { &(*(::std::ptr::null::<attribute_set>())).forkattr as *const _ as usize },
14471 16usize,
14472 concat!(
14473 "Offset of field: ",
14474 stringify!(attribute_set),
14475 "::",
14476 stringify!(forkattr)
14477 )
14478 );
14479}
14480pub type attribute_set_t = attribute_set;
14481#[repr(C)]
14482#[derive(Debug, Copy, Clone)]
14483pub struct attrreference {
14484 pub attr_dataoffset: i32,
14485 pub attr_length: u_int32_t,
14486}
14487#[test]
14488fn bindgen_test_layout_attrreference() {
14489 assert_eq!(
14490 ::std::mem::size_of::<attrreference>(),
14491 8usize,
14492 concat!("Size of: ", stringify!(attrreference))
14493 );
14494 assert_eq!(
14495 ::std::mem::align_of::<attrreference>(),
14496 4usize,
14497 concat!("Alignment of ", stringify!(attrreference))
14498 );
14499 assert_eq!(
14500 unsafe { &(*(::std::ptr::null::<attrreference>())).attr_dataoffset as *const _ as usize },
14501 0usize,
14502 concat!(
14503 "Offset of field: ",
14504 stringify!(attrreference),
14505 "::",
14506 stringify!(attr_dataoffset)
14507 )
14508 );
14509 assert_eq!(
14510 unsafe { &(*(::std::ptr::null::<attrreference>())).attr_length as *const _ as usize },
14511 4usize,
14512 concat!(
14513 "Offset of field: ",
14514 stringify!(attrreference),
14515 "::",
14516 stringify!(attr_length)
14517 )
14518 );
14519}
14520pub type attrreference_t = attrreference;
14521#[repr(C)]
14522#[derive(Debug, Copy, Clone)]
14523pub struct diskextent {
14524 pub startblock: u_int32_t,
14525 pub blockcount: u_int32_t,
14526}
14527#[test]
14528fn bindgen_test_layout_diskextent() {
14529 assert_eq!(
14530 ::std::mem::size_of::<diskextent>(),
14531 8usize,
14532 concat!("Size of: ", stringify!(diskextent))
14533 );
14534 assert_eq!(
14535 ::std::mem::align_of::<diskextent>(),
14536 4usize,
14537 concat!("Alignment of ", stringify!(diskextent))
14538 );
14539 assert_eq!(
14540 unsafe { &(*(::std::ptr::null::<diskextent>())).startblock as *const _ as usize },
14541 0usize,
14542 concat!(
14543 "Offset of field: ",
14544 stringify!(diskextent),
14545 "::",
14546 stringify!(startblock)
14547 )
14548 );
14549 assert_eq!(
14550 unsafe { &(*(::std::ptr::null::<diskextent>())).blockcount as *const _ as usize },
14551 4usize,
14552 concat!(
14553 "Offset of field: ",
14554 stringify!(diskextent),
14555 "::",
14556 stringify!(blockcount)
14557 )
14558 );
14559}
14560pub type extentrecord = [diskextent; 8usize];
14561pub type vol_capabilities_set_t = [u_int32_t; 4usize];
14562#[repr(C)]
14563#[derive(Debug, Copy, Clone)]
14564pub struct vol_capabilities_attr {
14565 pub capabilities: vol_capabilities_set_t,
14566 pub valid: vol_capabilities_set_t,
14567}
14568#[test]
14569fn bindgen_test_layout_vol_capabilities_attr() {
14570 assert_eq!(
14571 ::std::mem::size_of::<vol_capabilities_attr>(),
14572 32usize,
14573 concat!("Size of: ", stringify!(vol_capabilities_attr))
14574 );
14575 assert_eq!(
14576 ::std::mem::align_of::<vol_capabilities_attr>(),
14577 4usize,
14578 concat!("Alignment of ", stringify!(vol_capabilities_attr))
14579 );
14580 assert_eq!(
14581 unsafe {
14582 &(*(::std::ptr::null::<vol_capabilities_attr>())).capabilities as *const _ as usize
14583 },
14584 0usize,
14585 concat!(
14586 "Offset of field: ",
14587 stringify!(vol_capabilities_attr),
14588 "::",
14589 stringify!(capabilities)
14590 )
14591 );
14592 assert_eq!(
14593 unsafe { &(*(::std::ptr::null::<vol_capabilities_attr>())).valid as *const _ as usize },
14594 16usize,
14595 concat!(
14596 "Offset of field: ",
14597 stringify!(vol_capabilities_attr),
14598 "::",
14599 stringify!(valid)
14600 )
14601 );
14602}
14603pub type vol_capabilities_attr_t = vol_capabilities_attr;
14604#[repr(C)]
14605#[derive(Debug, Copy, Clone)]
14606pub struct vol_attributes_attr {
14607 pub validattr: attribute_set_t,
14608 pub nativeattr: attribute_set_t,
14609}
14610#[test]
14611fn bindgen_test_layout_vol_attributes_attr() {
14612 assert_eq!(
14613 ::std::mem::size_of::<vol_attributes_attr>(),
14614 40usize,
14615 concat!("Size of: ", stringify!(vol_attributes_attr))
14616 );
14617 assert_eq!(
14618 ::std::mem::align_of::<vol_attributes_attr>(),
14619 4usize,
14620 concat!("Alignment of ", stringify!(vol_attributes_attr))
14621 );
14622 assert_eq!(
14623 unsafe { &(*(::std::ptr::null::<vol_attributes_attr>())).validattr as *const _ as usize },
14624 0usize,
14625 concat!(
14626 "Offset of field: ",
14627 stringify!(vol_attributes_attr),
14628 "::",
14629 stringify!(validattr)
14630 )
14631 );
14632 assert_eq!(
14633 unsafe { &(*(::std::ptr::null::<vol_attributes_attr>())).nativeattr as *const _ as usize },
14634 20usize,
14635 concat!(
14636 "Offset of field: ",
14637 stringify!(vol_attributes_attr),
14638 "::",
14639 stringify!(nativeattr)
14640 )
14641 );
14642}
14643pub type vol_attributes_attr_t = vol_attributes_attr;
14644#[repr(C)]
14645#[derive(Debug, Copy, Clone)]
14646pub struct fssearchblock {
14647 pub returnattrs: *mut attrlist,
14648 pub returnbuffer: *mut ::std::os::raw::c_void,
14649 pub returnbuffersize: size_t,
14650 pub maxmatches: u_long,
14651 pub timelimit: timeval,
14652 pub searchparams1: *mut ::std::os::raw::c_void,
14653 pub sizeofsearchparams1: size_t,
14654 pub searchparams2: *mut ::std::os::raw::c_void,
14655 pub sizeofsearchparams2: size_t,
14656 pub searchattrs: attrlist,
14657}
14658#[test]
14659fn bindgen_test_layout_fssearchblock() {
14660 assert_eq!(
14661 ::std::mem::size_of::<fssearchblock>(),
14662 104usize,
14663 concat!("Size of: ", stringify!(fssearchblock))
14664 );
14665 assert_eq!(
14666 ::std::mem::align_of::<fssearchblock>(),
14667 8usize,
14668 concat!("Alignment of ", stringify!(fssearchblock))
14669 );
14670 assert_eq!(
14671 unsafe { &(*(::std::ptr::null::<fssearchblock>())).returnattrs as *const _ as usize },
14672 0usize,
14673 concat!(
14674 "Offset of field: ",
14675 stringify!(fssearchblock),
14676 "::",
14677 stringify!(returnattrs)
14678 )
14679 );
14680 assert_eq!(
14681 unsafe { &(*(::std::ptr::null::<fssearchblock>())).returnbuffer as *const _ as usize },
14682 8usize,
14683 concat!(
14684 "Offset of field: ",
14685 stringify!(fssearchblock),
14686 "::",
14687 stringify!(returnbuffer)
14688 )
14689 );
14690 assert_eq!(
14691 unsafe { &(*(::std::ptr::null::<fssearchblock>())).returnbuffersize as *const _ as usize },
14692 16usize,
14693 concat!(
14694 "Offset of field: ",
14695 stringify!(fssearchblock),
14696 "::",
14697 stringify!(returnbuffersize)
14698 )
14699 );
14700 assert_eq!(
14701 unsafe { &(*(::std::ptr::null::<fssearchblock>())).maxmatches as *const _ as usize },
14702 24usize,
14703 concat!(
14704 "Offset of field: ",
14705 stringify!(fssearchblock),
14706 "::",
14707 stringify!(maxmatches)
14708 )
14709 );
14710 assert_eq!(
14711 unsafe { &(*(::std::ptr::null::<fssearchblock>())).timelimit as *const _ as usize },
14712 32usize,
14713 concat!(
14714 "Offset of field: ",
14715 stringify!(fssearchblock),
14716 "::",
14717 stringify!(timelimit)
14718 )
14719 );
14720 assert_eq!(
14721 unsafe { &(*(::std::ptr::null::<fssearchblock>())).searchparams1 as *const _ as usize },
14722 48usize,
14723 concat!(
14724 "Offset of field: ",
14725 stringify!(fssearchblock),
14726 "::",
14727 stringify!(searchparams1)
14728 )
14729 );
14730 assert_eq!(
14731 unsafe {
14732 &(*(::std::ptr::null::<fssearchblock>())).sizeofsearchparams1 as *const _ as usize
14733 },
14734 56usize,
14735 concat!(
14736 "Offset of field: ",
14737 stringify!(fssearchblock),
14738 "::",
14739 stringify!(sizeofsearchparams1)
14740 )
14741 );
14742 assert_eq!(
14743 unsafe { &(*(::std::ptr::null::<fssearchblock>())).searchparams2 as *const _ as usize },
14744 64usize,
14745 concat!(
14746 "Offset of field: ",
14747 stringify!(fssearchblock),
14748 "::",
14749 stringify!(searchparams2)
14750 )
14751 );
14752 assert_eq!(
14753 unsafe {
14754 &(*(::std::ptr::null::<fssearchblock>())).sizeofsearchparams2 as *const _ as usize
14755 },
14756 72usize,
14757 concat!(
14758 "Offset of field: ",
14759 stringify!(fssearchblock),
14760 "::",
14761 stringify!(sizeofsearchparams2)
14762 )
14763 );
14764 assert_eq!(
14765 unsafe { &(*(::std::ptr::null::<fssearchblock>())).searchattrs as *const _ as usize },
14766 80usize,
14767 concat!(
14768 "Offset of field: ",
14769 stringify!(fssearchblock),
14770 "::",
14771 stringify!(searchattrs)
14772 )
14773 );
14774}
14775#[repr(C, packed)]
14776#[derive(Copy, Clone)]
14777pub struct searchstate {
14778 pub ss_union_flags: u32,
14779 pub ss_union_layer: u32,
14780 pub ss_fsstate: [u_char; 548usize],
14781}
14782#[test]
14783fn bindgen_test_layout_searchstate() {
14784 assert_eq!(
14785 ::std::mem::size_of::<searchstate>(),
14786 556usize,
14787 concat!("Size of: ", stringify!(searchstate))
14788 );
14789 assert_eq!(
14790 ::std::mem::align_of::<searchstate>(),
14791 1usize,
14792 concat!("Alignment of ", stringify!(searchstate))
14793 );
14794 assert_eq!(
14795 unsafe { &(*(::std::ptr::null::<searchstate>())).ss_union_flags as *const _ as usize },
14796 0usize,
14797 concat!(
14798 "Offset of field: ",
14799 stringify!(searchstate),
14800 "::",
14801 stringify!(ss_union_flags)
14802 )
14803 );
14804 assert_eq!(
14805 unsafe { &(*(::std::ptr::null::<searchstate>())).ss_union_layer as *const _ as usize },
14806 4usize,
14807 concat!(
14808 "Offset of field: ",
14809 stringify!(searchstate),
14810 "::",
14811 stringify!(ss_union_layer)
14812 )
14813 );
14814 assert_eq!(
14815 unsafe { &(*(::std::ptr::null::<searchstate>())).ss_fsstate as *const _ as usize },
14816 8usize,
14817 concat!(
14818 "Offset of field: ",
14819 stringify!(searchstate),
14820 "::",
14821 stringify!(ss_fsstate)
14822 )
14823 );
14824}
14825#[repr(C)]
14826#[derive(Debug, Copy, Clone)]
14827pub struct fsid {
14828 pub val: [i32; 2usize],
14829}
14830#[test]
14831fn bindgen_test_layout_fsid() {
14832 assert_eq!(
14833 ::std::mem::size_of::<fsid>(),
14834 8usize,
14835 concat!("Size of: ", stringify!(fsid))
14836 );
14837 assert_eq!(
14838 ::std::mem::align_of::<fsid>(),
14839 4usize,
14840 concat!("Alignment of ", stringify!(fsid))
14841 );
14842 assert_eq!(
14843 unsafe { &(*(::std::ptr::null::<fsid>())).val as *const _ as usize },
14844 0usize,
14845 concat!("Offset of field: ", stringify!(fsid), "::", stringify!(val))
14846 );
14847}
14848pub type fsid_t = fsid;
14849#[repr(C)]
14850#[derive(Copy, Clone)]
14851pub struct statfs64 {
14852 pub f_bsize: u32,
14853 pub f_iosize: i32,
14854 pub f_blocks: u64,
14855 pub f_bfree: u64,
14856 pub f_bavail: u64,
14857 pub f_files: u64,
14858 pub f_ffree: u64,
14859 pub f_fsid: fsid_t,
14860 pub f_owner: uid_t,
14861 pub f_type: u32,
14862 pub f_flags: u32,
14863 pub f_fssubtype: u32,
14864 pub f_fstypename: [::std::os::raw::c_char; 16usize],
14865 pub f_mntonname: [::std::os::raw::c_char; 1024usize],
14866 pub f_mntfromname: [::std::os::raw::c_char; 1024usize],
14867 pub f_flags_ext: u32,
14868 pub f_reserved: [u32; 7usize],
14869}
14870#[test]
14871fn bindgen_test_layout_statfs64() {
14872 assert_eq!(
14873 ::std::mem::size_of::<statfs64>(),
14874 2168usize,
14875 concat!("Size of: ", stringify!(statfs64))
14876 );
14877 assert_eq!(
14878 ::std::mem::align_of::<statfs64>(),
14879 8usize,
14880 concat!("Alignment of ", stringify!(statfs64))
14881 );
14882 assert_eq!(
14883 unsafe { &(*(::std::ptr::null::<statfs64>())).f_bsize as *const _ as usize },
14884 0usize,
14885 concat!(
14886 "Offset of field: ",
14887 stringify!(statfs64),
14888 "::",
14889 stringify!(f_bsize)
14890 )
14891 );
14892 assert_eq!(
14893 unsafe { &(*(::std::ptr::null::<statfs64>())).f_iosize as *const _ as usize },
14894 4usize,
14895 concat!(
14896 "Offset of field: ",
14897 stringify!(statfs64),
14898 "::",
14899 stringify!(f_iosize)
14900 )
14901 );
14902 assert_eq!(
14903 unsafe { &(*(::std::ptr::null::<statfs64>())).f_blocks as *const _ as usize },
14904 8usize,
14905 concat!(
14906 "Offset of field: ",
14907 stringify!(statfs64),
14908 "::",
14909 stringify!(f_blocks)
14910 )
14911 );
14912 assert_eq!(
14913 unsafe { &(*(::std::ptr::null::<statfs64>())).f_bfree as *const _ as usize },
14914 16usize,
14915 concat!(
14916 "Offset of field: ",
14917 stringify!(statfs64),
14918 "::",
14919 stringify!(f_bfree)
14920 )
14921 );
14922 assert_eq!(
14923 unsafe { &(*(::std::ptr::null::<statfs64>())).f_bavail as *const _ as usize },
14924 24usize,
14925 concat!(
14926 "Offset of field: ",
14927 stringify!(statfs64),
14928 "::",
14929 stringify!(f_bavail)
14930 )
14931 );
14932 assert_eq!(
14933 unsafe { &(*(::std::ptr::null::<statfs64>())).f_files as *const _ as usize },
14934 32usize,
14935 concat!(
14936 "Offset of field: ",
14937 stringify!(statfs64),
14938 "::",
14939 stringify!(f_files)
14940 )
14941 );
14942 assert_eq!(
14943 unsafe { &(*(::std::ptr::null::<statfs64>())).f_ffree as *const _ as usize },
14944 40usize,
14945 concat!(
14946 "Offset of field: ",
14947 stringify!(statfs64),
14948 "::",
14949 stringify!(f_ffree)
14950 )
14951 );
14952 assert_eq!(
14953 unsafe { &(*(::std::ptr::null::<statfs64>())).f_fsid as *const _ as usize },
14954 48usize,
14955 concat!(
14956 "Offset of field: ",
14957 stringify!(statfs64),
14958 "::",
14959 stringify!(f_fsid)
14960 )
14961 );
14962 assert_eq!(
14963 unsafe { &(*(::std::ptr::null::<statfs64>())).f_owner as *const _ as usize },
14964 56usize,
14965 concat!(
14966 "Offset of field: ",
14967 stringify!(statfs64),
14968 "::",
14969 stringify!(f_owner)
14970 )
14971 );
14972 assert_eq!(
14973 unsafe { &(*(::std::ptr::null::<statfs64>())).f_type as *const _ as usize },
14974 60usize,
14975 concat!(
14976 "Offset of field: ",
14977 stringify!(statfs64),
14978 "::",
14979 stringify!(f_type)
14980 )
14981 );
14982 assert_eq!(
14983 unsafe { &(*(::std::ptr::null::<statfs64>())).f_flags as *const _ as usize },
14984 64usize,
14985 concat!(
14986 "Offset of field: ",
14987 stringify!(statfs64),
14988 "::",
14989 stringify!(f_flags)
14990 )
14991 );
14992 assert_eq!(
14993 unsafe { &(*(::std::ptr::null::<statfs64>())).f_fssubtype as *const _ as usize },
14994 68usize,
14995 concat!(
14996 "Offset of field: ",
14997 stringify!(statfs64),
14998 "::",
14999 stringify!(f_fssubtype)
15000 )
15001 );
15002 assert_eq!(
15003 unsafe { &(*(::std::ptr::null::<statfs64>())).f_fstypename as *const _ as usize },
15004 72usize,
15005 concat!(
15006 "Offset of field: ",
15007 stringify!(statfs64),
15008 "::",
15009 stringify!(f_fstypename)
15010 )
15011 );
15012 assert_eq!(
15013 unsafe { &(*(::std::ptr::null::<statfs64>())).f_mntonname as *const _ as usize },
15014 88usize,
15015 concat!(
15016 "Offset of field: ",
15017 stringify!(statfs64),
15018 "::",
15019 stringify!(f_mntonname)
15020 )
15021 );
15022 assert_eq!(
15023 unsafe { &(*(::std::ptr::null::<statfs64>())).f_mntfromname as *const _ as usize },
15024 1112usize,
15025 concat!(
15026 "Offset of field: ",
15027 stringify!(statfs64),
15028 "::",
15029 stringify!(f_mntfromname)
15030 )
15031 );
15032 assert_eq!(
15033 unsafe { &(*(::std::ptr::null::<statfs64>())).f_flags_ext as *const _ as usize },
15034 2136usize,
15035 concat!(
15036 "Offset of field: ",
15037 stringify!(statfs64),
15038 "::",
15039 stringify!(f_flags_ext)
15040 )
15041 );
15042 assert_eq!(
15043 unsafe { &(*(::std::ptr::null::<statfs64>())).f_reserved as *const _ as usize },
15044 2140usize,
15045 concat!(
15046 "Offset of field: ",
15047 stringify!(statfs64),
15048 "::",
15049 stringify!(f_reserved)
15050 )
15051 );
15052}
15053#[repr(C)]
15054#[derive(Copy, Clone)]
15055pub struct statfs {
15056 pub f_bsize: u32,
15057 pub f_iosize: i32,
15058 pub f_blocks: u64,
15059 pub f_bfree: u64,
15060 pub f_bavail: u64,
15061 pub f_files: u64,
15062 pub f_ffree: u64,
15063 pub f_fsid: fsid_t,
15064 pub f_owner: uid_t,
15065 pub f_type: u32,
15066 pub f_flags: u32,
15067 pub f_fssubtype: u32,
15068 pub f_fstypename: [::std::os::raw::c_char; 16usize],
15069 pub f_mntonname: [::std::os::raw::c_char; 1024usize],
15070 pub f_mntfromname: [::std::os::raw::c_char; 1024usize],
15071 pub f_flags_ext: u32,
15072 pub f_reserved: [u32; 7usize],
15073}
15074#[test]
15075fn bindgen_test_layout_statfs() {
15076 assert_eq!(
15077 ::std::mem::size_of::<statfs>(),
15078 2168usize,
15079 concat!("Size of: ", stringify!(statfs))
15080 );
15081 assert_eq!(
15082 ::std::mem::align_of::<statfs>(),
15083 8usize,
15084 concat!("Alignment of ", stringify!(statfs))
15085 );
15086 assert_eq!(
15087 unsafe { &(*(::std::ptr::null::<statfs>())).f_bsize as *const _ as usize },
15088 0usize,
15089 concat!(
15090 "Offset of field: ",
15091 stringify!(statfs),
15092 "::",
15093 stringify!(f_bsize)
15094 )
15095 );
15096 assert_eq!(
15097 unsafe { &(*(::std::ptr::null::<statfs>())).f_iosize as *const _ as usize },
15098 4usize,
15099 concat!(
15100 "Offset of field: ",
15101 stringify!(statfs),
15102 "::",
15103 stringify!(f_iosize)
15104 )
15105 );
15106 assert_eq!(
15107 unsafe { &(*(::std::ptr::null::<statfs>())).f_blocks as *const _ as usize },
15108 8usize,
15109 concat!(
15110 "Offset of field: ",
15111 stringify!(statfs),
15112 "::",
15113 stringify!(f_blocks)
15114 )
15115 );
15116 assert_eq!(
15117 unsafe { &(*(::std::ptr::null::<statfs>())).f_bfree as *const _ as usize },
15118 16usize,
15119 concat!(
15120 "Offset of field: ",
15121 stringify!(statfs),
15122 "::",
15123 stringify!(f_bfree)
15124 )
15125 );
15126 assert_eq!(
15127 unsafe { &(*(::std::ptr::null::<statfs>())).f_bavail as *const _ as usize },
15128 24usize,
15129 concat!(
15130 "Offset of field: ",
15131 stringify!(statfs),
15132 "::",
15133 stringify!(f_bavail)
15134 )
15135 );
15136 assert_eq!(
15137 unsafe { &(*(::std::ptr::null::<statfs>())).f_files as *const _ as usize },
15138 32usize,
15139 concat!(
15140 "Offset of field: ",
15141 stringify!(statfs),
15142 "::",
15143 stringify!(f_files)
15144 )
15145 );
15146 assert_eq!(
15147 unsafe { &(*(::std::ptr::null::<statfs>())).f_ffree as *const _ as usize },
15148 40usize,
15149 concat!(
15150 "Offset of field: ",
15151 stringify!(statfs),
15152 "::",
15153 stringify!(f_ffree)
15154 )
15155 );
15156 assert_eq!(
15157 unsafe { &(*(::std::ptr::null::<statfs>())).f_fsid as *const _ as usize },
15158 48usize,
15159 concat!(
15160 "Offset of field: ",
15161 stringify!(statfs),
15162 "::",
15163 stringify!(f_fsid)
15164 )
15165 );
15166 assert_eq!(
15167 unsafe { &(*(::std::ptr::null::<statfs>())).f_owner as *const _ as usize },
15168 56usize,
15169 concat!(
15170 "Offset of field: ",
15171 stringify!(statfs),
15172 "::",
15173 stringify!(f_owner)
15174 )
15175 );
15176 assert_eq!(
15177 unsafe { &(*(::std::ptr::null::<statfs>())).f_type as *const _ as usize },
15178 60usize,
15179 concat!(
15180 "Offset of field: ",
15181 stringify!(statfs),
15182 "::",
15183 stringify!(f_type)
15184 )
15185 );
15186 assert_eq!(
15187 unsafe { &(*(::std::ptr::null::<statfs>())).f_flags as *const _ as usize },
15188 64usize,
15189 concat!(
15190 "Offset of field: ",
15191 stringify!(statfs),
15192 "::",
15193 stringify!(f_flags)
15194 )
15195 );
15196 assert_eq!(
15197 unsafe { &(*(::std::ptr::null::<statfs>())).f_fssubtype as *const _ as usize },
15198 68usize,
15199 concat!(
15200 "Offset of field: ",
15201 stringify!(statfs),
15202 "::",
15203 stringify!(f_fssubtype)
15204 )
15205 );
15206 assert_eq!(
15207 unsafe { &(*(::std::ptr::null::<statfs>())).f_fstypename as *const _ as usize },
15208 72usize,
15209 concat!(
15210 "Offset of field: ",
15211 stringify!(statfs),
15212 "::",
15213 stringify!(f_fstypename)
15214 )
15215 );
15216 assert_eq!(
15217 unsafe { &(*(::std::ptr::null::<statfs>())).f_mntonname as *const _ as usize },
15218 88usize,
15219 concat!(
15220 "Offset of field: ",
15221 stringify!(statfs),
15222 "::",
15223 stringify!(f_mntonname)
15224 )
15225 );
15226 assert_eq!(
15227 unsafe { &(*(::std::ptr::null::<statfs>())).f_mntfromname as *const _ as usize },
15228 1112usize,
15229 concat!(
15230 "Offset of field: ",
15231 stringify!(statfs),
15232 "::",
15233 stringify!(f_mntfromname)
15234 )
15235 );
15236 assert_eq!(
15237 unsafe { &(*(::std::ptr::null::<statfs>())).f_flags_ext as *const _ as usize },
15238 2136usize,
15239 concat!(
15240 "Offset of field: ",
15241 stringify!(statfs),
15242 "::",
15243 stringify!(f_flags_ext)
15244 )
15245 );
15246 assert_eq!(
15247 unsafe { &(*(::std::ptr::null::<statfs>())).f_reserved as *const _ as usize },
15248 2140usize,
15249 concat!(
15250 "Offset of field: ",
15251 stringify!(statfs),
15252 "::",
15253 stringify!(f_reserved)
15254 )
15255 );
15256}
15257#[repr(C, packed(4))]
15258#[derive(Copy, Clone)]
15259pub struct vfsstatfs {
15260 pub f_bsize: u32,
15261 pub f_iosize: size_t,
15262 pub f_blocks: u64,
15263 pub f_bfree: u64,
15264 pub f_bavail: u64,
15265 pub f_bused: u64,
15266 pub f_files: u64,
15267 pub f_ffree: u64,
15268 pub f_fsid: fsid_t,
15269 pub f_owner: uid_t,
15270 pub f_flags: u64,
15271 pub f_fstypename: [::std::os::raw::c_char; 16usize],
15272 pub f_mntonname: [::std::os::raw::c_char; 1024usize],
15273 pub f_mntfromname: [::std::os::raw::c_char; 1024usize],
15274 pub f_fssubtype: u32,
15275 pub f_reserved: [*mut ::std::os::raw::c_void; 2usize],
15276}
15277#[test]
15278fn bindgen_test_layout_vfsstatfs() {
15279 assert_eq!(
15280 ::std::mem::size_of::<vfsstatfs>(),
15281 2164usize,
15282 concat!("Size of: ", stringify!(vfsstatfs))
15283 );
15284 assert_eq!(
15285 ::std::mem::align_of::<vfsstatfs>(),
15286 4usize,
15287 concat!("Alignment of ", stringify!(vfsstatfs))
15288 );
15289 assert_eq!(
15290 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_bsize as *const _ as usize },
15291 0usize,
15292 concat!(
15293 "Offset of field: ",
15294 stringify!(vfsstatfs),
15295 "::",
15296 stringify!(f_bsize)
15297 )
15298 );
15299 assert_eq!(
15300 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_iosize as *const _ as usize },
15301 4usize,
15302 concat!(
15303 "Offset of field: ",
15304 stringify!(vfsstatfs),
15305 "::",
15306 stringify!(f_iosize)
15307 )
15308 );
15309 assert_eq!(
15310 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_blocks as *const _ as usize },
15311 12usize,
15312 concat!(
15313 "Offset of field: ",
15314 stringify!(vfsstatfs),
15315 "::",
15316 stringify!(f_blocks)
15317 )
15318 );
15319 assert_eq!(
15320 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_bfree as *const _ as usize },
15321 20usize,
15322 concat!(
15323 "Offset of field: ",
15324 stringify!(vfsstatfs),
15325 "::",
15326 stringify!(f_bfree)
15327 )
15328 );
15329 assert_eq!(
15330 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_bavail as *const _ as usize },
15331 28usize,
15332 concat!(
15333 "Offset of field: ",
15334 stringify!(vfsstatfs),
15335 "::",
15336 stringify!(f_bavail)
15337 )
15338 );
15339 assert_eq!(
15340 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_bused as *const _ as usize },
15341 36usize,
15342 concat!(
15343 "Offset of field: ",
15344 stringify!(vfsstatfs),
15345 "::",
15346 stringify!(f_bused)
15347 )
15348 );
15349 assert_eq!(
15350 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_files as *const _ as usize },
15351 44usize,
15352 concat!(
15353 "Offset of field: ",
15354 stringify!(vfsstatfs),
15355 "::",
15356 stringify!(f_files)
15357 )
15358 );
15359 assert_eq!(
15360 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_ffree as *const _ as usize },
15361 52usize,
15362 concat!(
15363 "Offset of field: ",
15364 stringify!(vfsstatfs),
15365 "::",
15366 stringify!(f_ffree)
15367 )
15368 );
15369 assert_eq!(
15370 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_fsid as *const _ as usize },
15371 60usize,
15372 concat!(
15373 "Offset of field: ",
15374 stringify!(vfsstatfs),
15375 "::",
15376 stringify!(f_fsid)
15377 )
15378 );
15379 assert_eq!(
15380 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_owner as *const _ as usize },
15381 68usize,
15382 concat!(
15383 "Offset of field: ",
15384 stringify!(vfsstatfs),
15385 "::",
15386 stringify!(f_owner)
15387 )
15388 );
15389 assert_eq!(
15390 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_flags as *const _ as usize },
15391 72usize,
15392 concat!(
15393 "Offset of field: ",
15394 stringify!(vfsstatfs),
15395 "::",
15396 stringify!(f_flags)
15397 )
15398 );
15399 assert_eq!(
15400 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_fstypename as *const _ as usize },
15401 80usize,
15402 concat!(
15403 "Offset of field: ",
15404 stringify!(vfsstatfs),
15405 "::",
15406 stringify!(f_fstypename)
15407 )
15408 );
15409 assert_eq!(
15410 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_mntonname as *const _ as usize },
15411 96usize,
15412 concat!(
15413 "Offset of field: ",
15414 stringify!(vfsstatfs),
15415 "::",
15416 stringify!(f_mntonname)
15417 )
15418 );
15419 assert_eq!(
15420 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_mntfromname as *const _ as usize },
15421 1120usize,
15422 concat!(
15423 "Offset of field: ",
15424 stringify!(vfsstatfs),
15425 "::",
15426 stringify!(f_mntfromname)
15427 )
15428 );
15429 assert_eq!(
15430 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_fssubtype as *const _ as usize },
15431 2144usize,
15432 concat!(
15433 "Offset of field: ",
15434 stringify!(vfsstatfs),
15435 "::",
15436 stringify!(f_fssubtype)
15437 )
15438 );
15439 assert_eq!(
15440 unsafe { &(*(::std::ptr::null::<vfsstatfs>())).f_reserved as *const _ as usize },
15441 2148usize,
15442 concat!(
15443 "Offset of field: ",
15444 stringify!(vfsstatfs),
15445 "::",
15446 stringify!(f_reserved)
15447 )
15448 );
15449}
15450#[repr(C)]
15451#[derive(Debug, Copy, Clone)]
15452pub struct mount {
15453 _unused: [u8; 0],
15454}
15455pub type mount_t = *mut mount;
15456#[repr(C)]
15457#[derive(Debug, Copy, Clone)]
15458pub struct vnode {
15459 _unused: [u8; 0],
15460}
15461pub type vnode_t = *mut vnode;
15462#[repr(C)]
15463#[derive(Debug, Copy, Clone)]
15464pub struct vfsconf {
15465 pub vfc_reserved1: u32,
15466 pub vfc_name: [::std::os::raw::c_char; 15usize],
15467 pub vfc_typenum: ::std::os::raw::c_int,
15468 pub vfc_refcount: ::std::os::raw::c_int,
15469 pub vfc_flags: ::std::os::raw::c_int,
15470 pub vfc_reserved2: u32,
15471 pub vfc_reserved3: u32,
15472}
15473#[test]
15474fn bindgen_test_layout_vfsconf() {
15475 assert_eq!(
15476 ::std::mem::size_of::<vfsconf>(),
15477 40usize,
15478 concat!("Size of: ", stringify!(vfsconf))
15479 );
15480 assert_eq!(
15481 ::std::mem::align_of::<vfsconf>(),
15482 4usize,
15483 concat!("Alignment of ", stringify!(vfsconf))
15484 );
15485 assert_eq!(
15486 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_reserved1 as *const _ as usize },
15487 0usize,
15488 concat!(
15489 "Offset of field: ",
15490 stringify!(vfsconf),
15491 "::",
15492 stringify!(vfc_reserved1)
15493 )
15494 );
15495 assert_eq!(
15496 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_name as *const _ as usize },
15497 4usize,
15498 concat!(
15499 "Offset of field: ",
15500 stringify!(vfsconf),
15501 "::",
15502 stringify!(vfc_name)
15503 )
15504 );
15505 assert_eq!(
15506 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_typenum as *const _ as usize },
15507 20usize,
15508 concat!(
15509 "Offset of field: ",
15510 stringify!(vfsconf),
15511 "::",
15512 stringify!(vfc_typenum)
15513 )
15514 );
15515 assert_eq!(
15516 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_refcount as *const _ as usize },
15517 24usize,
15518 concat!(
15519 "Offset of field: ",
15520 stringify!(vfsconf),
15521 "::",
15522 stringify!(vfc_refcount)
15523 )
15524 );
15525 assert_eq!(
15526 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_flags as *const _ as usize },
15527 28usize,
15528 concat!(
15529 "Offset of field: ",
15530 stringify!(vfsconf),
15531 "::",
15532 stringify!(vfc_flags)
15533 )
15534 );
15535 assert_eq!(
15536 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_reserved2 as *const _ as usize },
15537 32usize,
15538 concat!(
15539 "Offset of field: ",
15540 stringify!(vfsconf),
15541 "::",
15542 stringify!(vfc_reserved2)
15543 )
15544 );
15545 assert_eq!(
15546 unsafe { &(*(::std::ptr::null::<vfsconf>())).vfc_reserved3 as *const _ as usize },
15547 36usize,
15548 concat!(
15549 "Offset of field: ",
15550 stringify!(vfsconf),
15551 "::",
15552 stringify!(vfc_reserved3)
15553 )
15554 );
15555}
15556#[repr(C)]
15557#[derive(Debug, Copy, Clone)]
15558pub struct vfsidctl {
15559 pub vc_vers: ::std::os::raw::c_int,
15560 pub vc_fsid: fsid_t,
15561 pub vc_ptr: *mut ::std::os::raw::c_void,
15562 pub vc_len: size_t,
15563 pub vc_spare: [u_int32_t; 12usize],
15564}
15565#[test]
15566fn bindgen_test_layout_vfsidctl() {
15567 assert_eq!(
15568 ::std::mem::size_of::<vfsidctl>(),
15569 80usize,
15570 concat!("Size of: ", stringify!(vfsidctl))
15571 );
15572 assert_eq!(
15573 ::std::mem::align_of::<vfsidctl>(),
15574 8usize,
15575 concat!("Alignment of ", stringify!(vfsidctl))
15576 );
15577 assert_eq!(
15578 unsafe { &(*(::std::ptr::null::<vfsidctl>())).vc_vers as *const _ as usize },
15579 0usize,
15580 concat!(
15581 "Offset of field: ",
15582 stringify!(vfsidctl),
15583 "::",
15584 stringify!(vc_vers)
15585 )
15586 );
15587 assert_eq!(
15588 unsafe { &(*(::std::ptr::null::<vfsidctl>())).vc_fsid as *const _ as usize },
15589 4usize,
15590 concat!(
15591 "Offset of field: ",
15592 stringify!(vfsidctl),
15593 "::",
15594 stringify!(vc_fsid)
15595 )
15596 );
15597 assert_eq!(
15598 unsafe { &(*(::std::ptr::null::<vfsidctl>())).vc_ptr as *const _ as usize },
15599 16usize,
15600 concat!(
15601 "Offset of field: ",
15602 stringify!(vfsidctl),
15603 "::",
15604 stringify!(vc_ptr)
15605 )
15606 );
15607 assert_eq!(
15608 unsafe { &(*(::std::ptr::null::<vfsidctl>())).vc_len as *const _ as usize },
15609 24usize,
15610 concat!(
15611 "Offset of field: ",
15612 stringify!(vfsidctl),
15613 "::",
15614 stringify!(vc_len)
15615 )
15616 );
15617 assert_eq!(
15618 unsafe { &(*(::std::ptr::null::<vfsidctl>())).vc_spare as *const _ as usize },
15619 32usize,
15620 concat!(
15621 "Offset of field: ",
15622 stringify!(vfsidctl),
15623 "::",
15624 stringify!(vc_spare)
15625 )
15626 );
15627}
15628#[repr(C)]
15629#[derive(Debug, Copy, Clone)]
15630pub struct vfsquery {
15631 pub vq_flags: u_int32_t,
15632 pub vq_spare: [u_int32_t; 31usize],
15633}
15634#[test]
15635fn bindgen_test_layout_vfsquery() {
15636 assert_eq!(
15637 ::std::mem::size_of::<vfsquery>(),
15638 128usize,
15639 concat!("Size of: ", stringify!(vfsquery))
15640 );
15641 assert_eq!(
15642 ::std::mem::align_of::<vfsquery>(),
15643 4usize,
15644 concat!("Alignment of ", stringify!(vfsquery))
15645 );
15646 assert_eq!(
15647 unsafe { &(*(::std::ptr::null::<vfsquery>())).vq_flags as *const _ as usize },
15648 0usize,
15649 concat!(
15650 "Offset of field: ",
15651 stringify!(vfsquery),
15652 "::",
15653 stringify!(vq_flags)
15654 )
15655 );
15656 assert_eq!(
15657 unsafe { &(*(::std::ptr::null::<vfsquery>())).vq_spare as *const _ as usize },
15658 4usize,
15659 concat!(
15660 "Offset of field: ",
15661 stringify!(vfsquery),
15662 "::",
15663 stringify!(vq_spare)
15664 )
15665 );
15666}
15667#[repr(C)]
15668#[derive(Copy, Clone)]
15669pub struct vfs_server {
15670 pub vs_minutes: i32,
15671 pub vs_server_name: [u_int8_t; 768usize],
15672}
15673#[test]
15674fn bindgen_test_layout_vfs_server() {
15675 assert_eq!(
15676 ::std::mem::size_of::<vfs_server>(),
15677 772usize,
15678 concat!("Size of: ", stringify!(vfs_server))
15679 );
15680 assert_eq!(
15681 ::std::mem::align_of::<vfs_server>(),
15682 4usize,
15683 concat!("Alignment of ", stringify!(vfs_server))
15684 );
15685 assert_eq!(
15686 unsafe { &(*(::std::ptr::null::<vfs_server>())).vs_minutes as *const _ as usize },
15687 0usize,
15688 concat!(
15689 "Offset of field: ",
15690 stringify!(vfs_server),
15691 "::",
15692 stringify!(vs_minutes)
15693 )
15694 );
15695 assert_eq!(
15696 unsafe { &(*(::std::ptr::null::<vfs_server>())).vs_server_name as *const _ as usize },
15697 4usize,
15698 concat!(
15699 "Offset of field: ",
15700 stringify!(vfs_server),
15701 "::",
15702 stringify!(vs_server_name)
15703 )
15704 );
15705}
15706#[repr(C)]
15707pub struct netfs_status {
15708 pub ns_status: u_int32_t,
15709 pub ns_mountopts: [::std::os::raw::c_char; 512usize],
15710 pub ns_waittime: u32,
15711 pub ns_threadcount: u32,
15712 pub ns_threadids: __IncompleteArrayField<u64>,
15713}
15714#[test]
15715fn bindgen_test_layout_netfs_status() {
15716 assert_eq!(
15717 ::std::mem::size_of::<netfs_status>(),
15718 528usize,
15719 concat!("Size of: ", stringify!(netfs_status))
15720 );
15721 assert_eq!(
15722 ::std::mem::align_of::<netfs_status>(),
15723 8usize,
15724 concat!("Alignment of ", stringify!(netfs_status))
15725 );
15726 assert_eq!(
15727 unsafe { &(*(::std::ptr::null::<netfs_status>())).ns_status as *const _ as usize },
15728 0usize,
15729 concat!(
15730 "Offset of field: ",
15731 stringify!(netfs_status),
15732 "::",
15733 stringify!(ns_status)
15734 )
15735 );
15736 assert_eq!(
15737 unsafe { &(*(::std::ptr::null::<netfs_status>())).ns_mountopts as *const _ as usize },
15738 4usize,
15739 concat!(
15740 "Offset of field: ",
15741 stringify!(netfs_status),
15742 "::",
15743 stringify!(ns_mountopts)
15744 )
15745 );
15746 assert_eq!(
15747 unsafe { &(*(::std::ptr::null::<netfs_status>())).ns_waittime as *const _ as usize },
15748 516usize,
15749 concat!(
15750 "Offset of field: ",
15751 stringify!(netfs_status),
15752 "::",
15753 stringify!(ns_waittime)
15754 )
15755 );
15756 assert_eq!(
15757 unsafe { &(*(::std::ptr::null::<netfs_status>())).ns_threadcount as *const _ as usize },
15758 520usize,
15759 concat!(
15760 "Offset of field: ",
15761 stringify!(netfs_status),
15762 "::",
15763 stringify!(ns_threadcount)
15764 )
15765 );
15766 assert_eq!(
15767 unsafe { &(*(::std::ptr::null::<netfs_status>())).ns_threadids as *const _ as usize },
15768 528usize,
15769 concat!(
15770 "Offset of field: ",
15771 stringify!(netfs_status),
15772 "::",
15773 stringify!(ns_threadids)
15774 )
15775 );
15776}
15777#[repr(C)]
15778#[derive(Copy, Clone)]
15779pub struct fhandle {
15780 pub fh_len: ::std::os::raw::c_uint,
15781 pub fh_data: [::std::os::raw::c_uchar; 128usize],
15782}
15783#[test]
15784fn bindgen_test_layout_fhandle() {
15785 assert_eq!(
15786 ::std::mem::size_of::<fhandle>(),
15787 132usize,
15788 concat!("Size of: ", stringify!(fhandle))
15789 );
15790 assert_eq!(
15791 ::std::mem::align_of::<fhandle>(),
15792 4usize,
15793 concat!("Alignment of ", stringify!(fhandle))
15794 );
15795 assert_eq!(
15796 unsafe { &(*(::std::ptr::null::<fhandle>())).fh_len as *const _ as usize },
15797 0usize,
15798 concat!(
15799 "Offset of field: ",
15800 stringify!(fhandle),
15801 "::",
15802 stringify!(fh_len)
15803 )
15804 );
15805 assert_eq!(
15806 unsafe { &(*(::std::ptr::null::<fhandle>())).fh_data as *const _ as usize },
15807 4usize,
15808 concat!(
15809 "Offset of field: ",
15810 stringify!(fhandle),
15811 "::",
15812 stringify!(fh_data)
15813 )
15814 );
15815}
15816pub type fhandle_t = fhandle;
15817extern "C" {
15818 pub fn fhopen(arg1: *const fhandle, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
15819}
15820extern "C" {
15821 #[link_name = "\u{1}_fstatfs$INODE64"]
15822 pub fn fstatfs(arg1: ::std::os::raw::c_int, arg2: *mut statfs) -> ::std::os::raw::c_int;
15823}
15824extern "C" {
15825 pub fn fstatfs64(arg1: ::std::os::raw::c_int, arg2: *mut statfs64) -> ::std::os::raw::c_int;
15826}
15827extern "C" {
15828 pub fn getfh(
15829 arg1: *const ::std::os::raw::c_char,
15830 arg2: *mut fhandle_t,
15831 ) -> ::std::os::raw::c_int;
15832}
15833extern "C" {
15834 #[link_name = "\u{1}_getfsstat$INODE64"]
15835 pub fn getfsstat(
15836 arg1: *mut statfs,
15837 arg2: ::std::os::raw::c_int,
15838 arg3: ::std::os::raw::c_int,
15839 ) -> ::std::os::raw::c_int;
15840}
15841extern "C" {
15842 pub fn getfsstat64(
15843 arg1: *mut statfs64,
15844 arg2: ::std::os::raw::c_int,
15845 arg3: ::std::os::raw::c_int,
15846 ) -> ::std::os::raw::c_int;
15847}
15848extern "C" {
15849 #[link_name = "\u{1}_getmntinfo$INODE64"]
15850 pub fn getmntinfo(arg1: *mut *mut statfs, arg2: ::std::os::raw::c_int)
15851 -> ::std::os::raw::c_int;
15852}
15853extern "C" {
15854 #[link_name = "\u{1}_getmntinfo_r_np$INODE64"]
15855 pub fn getmntinfo_r_np(
15856 arg1: *mut *mut statfs,
15857 arg2: ::std::os::raw::c_int,
15858 ) -> ::std::os::raw::c_int;
15859}
15860extern "C" {
15861 pub fn getmntinfo64(
15862 arg1: *mut *mut statfs64,
15863 arg2: ::std::os::raw::c_int,
15864 ) -> ::std::os::raw::c_int;
15865}
15866extern "C" {
15867 pub fn mount(
15868 arg1: *const ::std::os::raw::c_char,
15869 arg2: *const ::std::os::raw::c_char,
15870 arg3: ::std::os::raw::c_int,
15871 arg4: *mut ::std::os::raw::c_void,
15872 ) -> ::std::os::raw::c_int;
15873}
15874extern "C" {
15875 pub fn fmount(
15876 arg1: *const ::std::os::raw::c_char,
15877 arg2: ::std::os::raw::c_int,
15878 arg3: ::std::os::raw::c_int,
15879 arg4: *mut ::std::os::raw::c_void,
15880 ) -> ::std::os::raw::c_int;
15881}
15882extern "C" {
15883 #[link_name = "\u{1}_statfs$INODE64"]
15884 pub fn statfs(arg1: *const ::std::os::raw::c_char, arg2: *mut statfs) -> ::std::os::raw::c_int;
15885}
15886extern "C" {
15887 pub fn statfs64(
15888 arg1: *const ::std::os::raw::c_char,
15889 arg2: *mut statfs64,
15890 ) -> ::std::os::raw::c_int;
15891}
15892extern "C" {
15893 pub fn unmount(
15894 arg1: *const ::std::os::raw::c_char,
15895 arg2: ::std::os::raw::c_int,
15896 ) -> ::std::os::raw::c_int;
15897}
15898extern "C" {
15899 pub fn getvfsbyname(
15900 arg1: *const ::std::os::raw::c_char,
15901 arg2: *mut vfsconf,
15902 ) -> ::std::os::raw::c_int;
15903}
15904#[repr(C)]
15905#[derive(Debug, Copy, Clone)]
15906pub struct ostat {
15907 pub st_dev: __uint16_t,
15908 pub st_ino: ino_t,
15909 pub st_mode: mode_t,
15910 pub st_nlink: nlink_t,
15911 pub st_uid: __uint16_t,
15912 pub st_gid: __uint16_t,
15913 pub st_rdev: __uint16_t,
15914 pub st_size: __int32_t,
15915 pub st_atimespec: timespec,
15916 pub st_mtimespec: timespec,
15917 pub st_ctimespec: timespec,
15918 pub st_blksize: __int32_t,
15919 pub st_blocks: __int32_t,
15920 pub st_flags: __uint32_t,
15921 pub st_gen: __uint32_t,
15922}
15923#[test]
15924fn bindgen_test_layout_ostat() {
15925 assert_eq!(
15926 ::std::mem::size_of::<ostat>(),
15927 96usize,
15928 concat!("Size of: ", stringify!(ostat))
15929 );
15930 assert_eq!(
15931 ::std::mem::align_of::<ostat>(),
15932 8usize,
15933 concat!("Alignment of ", stringify!(ostat))
15934 );
15935 assert_eq!(
15936 unsafe { &(*(::std::ptr::null::<ostat>())).st_dev as *const _ as usize },
15937 0usize,
15938 concat!(
15939 "Offset of field: ",
15940 stringify!(ostat),
15941 "::",
15942 stringify!(st_dev)
15943 )
15944 );
15945 assert_eq!(
15946 unsafe { &(*(::std::ptr::null::<ostat>())).st_ino as *const _ as usize },
15947 8usize,
15948 concat!(
15949 "Offset of field: ",
15950 stringify!(ostat),
15951 "::",
15952 stringify!(st_ino)
15953 )
15954 );
15955 assert_eq!(
15956 unsafe { &(*(::std::ptr::null::<ostat>())).st_mode as *const _ as usize },
15957 16usize,
15958 concat!(
15959 "Offset of field: ",
15960 stringify!(ostat),
15961 "::",
15962 stringify!(st_mode)
15963 )
15964 );
15965 assert_eq!(
15966 unsafe { &(*(::std::ptr::null::<ostat>())).st_nlink as *const _ as usize },
15967 18usize,
15968 concat!(
15969 "Offset of field: ",
15970 stringify!(ostat),
15971 "::",
15972 stringify!(st_nlink)
15973 )
15974 );
15975 assert_eq!(
15976 unsafe { &(*(::std::ptr::null::<ostat>())).st_uid as *const _ as usize },
15977 20usize,
15978 concat!(
15979 "Offset of field: ",
15980 stringify!(ostat),
15981 "::",
15982 stringify!(st_uid)
15983 )
15984 );
15985 assert_eq!(
15986 unsafe { &(*(::std::ptr::null::<ostat>())).st_gid as *const _ as usize },
15987 22usize,
15988 concat!(
15989 "Offset of field: ",
15990 stringify!(ostat),
15991 "::",
15992 stringify!(st_gid)
15993 )
15994 );
15995 assert_eq!(
15996 unsafe { &(*(::std::ptr::null::<ostat>())).st_rdev as *const _ as usize },
15997 24usize,
15998 concat!(
15999 "Offset of field: ",
16000 stringify!(ostat),
16001 "::",
16002 stringify!(st_rdev)
16003 )
16004 );
16005 assert_eq!(
16006 unsafe { &(*(::std::ptr::null::<ostat>())).st_size as *const _ as usize },
16007 28usize,
16008 concat!(
16009 "Offset of field: ",
16010 stringify!(ostat),
16011 "::",
16012 stringify!(st_size)
16013 )
16014 );
16015 assert_eq!(
16016 unsafe { &(*(::std::ptr::null::<ostat>())).st_atimespec as *const _ as usize },
16017 32usize,
16018 concat!(
16019 "Offset of field: ",
16020 stringify!(ostat),
16021 "::",
16022 stringify!(st_atimespec)
16023 )
16024 );
16025 assert_eq!(
16026 unsafe { &(*(::std::ptr::null::<ostat>())).st_mtimespec as *const _ as usize },
16027 48usize,
16028 concat!(
16029 "Offset of field: ",
16030 stringify!(ostat),
16031 "::",
16032 stringify!(st_mtimespec)
16033 )
16034 );
16035 assert_eq!(
16036 unsafe { &(*(::std::ptr::null::<ostat>())).st_ctimespec as *const _ as usize },
16037 64usize,
16038 concat!(
16039 "Offset of field: ",
16040 stringify!(ostat),
16041 "::",
16042 stringify!(st_ctimespec)
16043 )
16044 );
16045 assert_eq!(
16046 unsafe { &(*(::std::ptr::null::<ostat>())).st_blksize as *const _ as usize },
16047 80usize,
16048 concat!(
16049 "Offset of field: ",
16050 stringify!(ostat),
16051 "::",
16052 stringify!(st_blksize)
16053 )
16054 );
16055 assert_eq!(
16056 unsafe { &(*(::std::ptr::null::<ostat>())).st_blocks as *const _ as usize },
16057 84usize,
16058 concat!(
16059 "Offset of field: ",
16060 stringify!(ostat),
16061 "::",
16062 stringify!(st_blocks)
16063 )
16064 );
16065 assert_eq!(
16066 unsafe { &(*(::std::ptr::null::<ostat>())).st_flags as *const _ as usize },
16067 88usize,
16068 concat!(
16069 "Offset of field: ",
16070 stringify!(ostat),
16071 "::",
16072 stringify!(st_flags)
16073 )
16074 );
16075 assert_eq!(
16076 unsafe { &(*(::std::ptr::null::<ostat>())).st_gen as *const _ as usize },
16077 92usize,
16078 concat!(
16079 "Offset of field: ",
16080 stringify!(ostat),
16081 "::",
16082 stringify!(st_gen)
16083 )
16084 );
16085}
16086#[repr(C)]
16087#[derive(Debug, Copy, Clone)]
16088pub struct stat {
16089 pub st_dev: dev_t,
16090 pub st_mode: mode_t,
16091 pub st_nlink: nlink_t,
16092 pub st_ino: __darwin_ino64_t,
16093 pub st_uid: uid_t,
16094 pub st_gid: gid_t,
16095 pub st_rdev: dev_t,
16096 pub st_atimespec: timespec,
16097 pub st_mtimespec: timespec,
16098 pub st_ctimespec: timespec,
16099 pub st_birthtimespec: timespec,
16100 pub st_size: off_t,
16101 pub st_blocks: blkcnt_t,
16102 pub st_blksize: blksize_t,
16103 pub st_flags: __uint32_t,
16104 pub st_gen: __uint32_t,
16105 pub st_lspare: __int32_t,
16106 pub st_qspare: [__int64_t; 2usize],
16107}
16108#[test]
16109fn bindgen_test_layout_stat() {
16110 assert_eq!(
16111 ::std::mem::size_of::<stat>(),
16112 144usize,
16113 concat!("Size of: ", stringify!(stat))
16114 );
16115 assert_eq!(
16116 ::std::mem::align_of::<stat>(),
16117 8usize,
16118 concat!("Alignment of ", stringify!(stat))
16119 );
16120 assert_eq!(
16121 unsafe { &(*(::std::ptr::null::<stat>())).st_dev as *const _ as usize },
16122 0usize,
16123 concat!(
16124 "Offset of field: ",
16125 stringify!(stat),
16126 "::",
16127 stringify!(st_dev)
16128 )
16129 );
16130 assert_eq!(
16131 unsafe { &(*(::std::ptr::null::<stat>())).st_mode as *const _ as usize },
16132 4usize,
16133 concat!(
16134 "Offset of field: ",
16135 stringify!(stat),
16136 "::",
16137 stringify!(st_mode)
16138 )
16139 );
16140 assert_eq!(
16141 unsafe { &(*(::std::ptr::null::<stat>())).st_nlink as *const _ as usize },
16142 6usize,
16143 concat!(
16144 "Offset of field: ",
16145 stringify!(stat),
16146 "::",
16147 stringify!(st_nlink)
16148 )
16149 );
16150 assert_eq!(
16151 unsafe { &(*(::std::ptr::null::<stat>())).st_ino as *const _ as usize },
16152 8usize,
16153 concat!(
16154 "Offset of field: ",
16155 stringify!(stat),
16156 "::",
16157 stringify!(st_ino)
16158 )
16159 );
16160 assert_eq!(
16161 unsafe { &(*(::std::ptr::null::<stat>())).st_uid as *const _ as usize },
16162 16usize,
16163 concat!(
16164 "Offset of field: ",
16165 stringify!(stat),
16166 "::",
16167 stringify!(st_uid)
16168 )
16169 );
16170 assert_eq!(
16171 unsafe { &(*(::std::ptr::null::<stat>())).st_gid as *const _ as usize },
16172 20usize,
16173 concat!(
16174 "Offset of field: ",
16175 stringify!(stat),
16176 "::",
16177 stringify!(st_gid)
16178 )
16179 );
16180 assert_eq!(
16181 unsafe { &(*(::std::ptr::null::<stat>())).st_rdev as *const _ as usize },
16182 24usize,
16183 concat!(
16184 "Offset of field: ",
16185 stringify!(stat),
16186 "::",
16187 stringify!(st_rdev)
16188 )
16189 );
16190 assert_eq!(
16191 unsafe { &(*(::std::ptr::null::<stat>())).st_atimespec as *const _ as usize },
16192 32usize,
16193 concat!(
16194 "Offset of field: ",
16195 stringify!(stat),
16196 "::",
16197 stringify!(st_atimespec)
16198 )
16199 );
16200 assert_eq!(
16201 unsafe { &(*(::std::ptr::null::<stat>())).st_mtimespec as *const _ as usize },
16202 48usize,
16203 concat!(
16204 "Offset of field: ",
16205 stringify!(stat),
16206 "::",
16207 stringify!(st_mtimespec)
16208 )
16209 );
16210 assert_eq!(
16211 unsafe { &(*(::std::ptr::null::<stat>())).st_ctimespec as *const _ as usize },
16212 64usize,
16213 concat!(
16214 "Offset of field: ",
16215 stringify!(stat),
16216 "::",
16217 stringify!(st_ctimespec)
16218 )
16219 );
16220 assert_eq!(
16221 unsafe { &(*(::std::ptr::null::<stat>())).st_birthtimespec as *const _ as usize },
16222 80usize,
16223 concat!(
16224 "Offset of field: ",
16225 stringify!(stat),
16226 "::",
16227 stringify!(st_birthtimespec)
16228 )
16229 );
16230 assert_eq!(
16231 unsafe { &(*(::std::ptr::null::<stat>())).st_size as *const _ as usize },
16232 96usize,
16233 concat!(
16234 "Offset of field: ",
16235 stringify!(stat),
16236 "::",
16237 stringify!(st_size)
16238 )
16239 );
16240 assert_eq!(
16241 unsafe { &(*(::std::ptr::null::<stat>())).st_blocks as *const _ as usize },
16242 104usize,
16243 concat!(
16244 "Offset of field: ",
16245 stringify!(stat),
16246 "::",
16247 stringify!(st_blocks)
16248 )
16249 );
16250 assert_eq!(
16251 unsafe { &(*(::std::ptr::null::<stat>())).st_blksize as *const _ as usize },
16252 112usize,
16253 concat!(
16254 "Offset of field: ",
16255 stringify!(stat),
16256 "::",
16257 stringify!(st_blksize)
16258 )
16259 );
16260 assert_eq!(
16261 unsafe { &(*(::std::ptr::null::<stat>())).st_flags as *const _ as usize },
16262 116usize,
16263 concat!(
16264 "Offset of field: ",
16265 stringify!(stat),
16266 "::",
16267 stringify!(st_flags)
16268 )
16269 );
16270 assert_eq!(
16271 unsafe { &(*(::std::ptr::null::<stat>())).st_gen as *const _ as usize },
16272 120usize,
16273 concat!(
16274 "Offset of field: ",
16275 stringify!(stat),
16276 "::",
16277 stringify!(st_gen)
16278 )
16279 );
16280 assert_eq!(
16281 unsafe { &(*(::std::ptr::null::<stat>())).st_lspare as *const _ as usize },
16282 124usize,
16283 concat!(
16284 "Offset of field: ",
16285 stringify!(stat),
16286 "::",
16287 stringify!(st_lspare)
16288 )
16289 );
16290 assert_eq!(
16291 unsafe { &(*(::std::ptr::null::<stat>())).st_qspare as *const _ as usize },
16292 128usize,
16293 concat!(
16294 "Offset of field: ",
16295 stringify!(stat),
16296 "::",
16297 stringify!(st_qspare)
16298 )
16299 );
16300}
16301#[repr(C)]
16302#[derive(Debug, Copy, Clone)]
16303pub struct stat64 {
16304 pub st_dev: dev_t,
16305 pub st_mode: mode_t,
16306 pub st_nlink: nlink_t,
16307 pub st_ino: __darwin_ino64_t,
16308 pub st_uid: uid_t,
16309 pub st_gid: gid_t,
16310 pub st_rdev: dev_t,
16311 pub st_atimespec: timespec,
16312 pub st_mtimespec: timespec,
16313 pub st_ctimespec: timespec,
16314 pub st_birthtimespec: timespec,
16315 pub st_size: off_t,
16316 pub st_blocks: blkcnt_t,
16317 pub st_blksize: blksize_t,
16318 pub st_flags: __uint32_t,
16319 pub st_gen: __uint32_t,
16320 pub st_lspare: __int32_t,
16321 pub st_qspare: [__int64_t; 2usize],
16322}
16323#[test]
16324fn bindgen_test_layout_stat64() {
16325 assert_eq!(
16326 ::std::mem::size_of::<stat64>(),
16327 144usize,
16328 concat!("Size of: ", stringify!(stat64))
16329 );
16330 assert_eq!(
16331 ::std::mem::align_of::<stat64>(),
16332 8usize,
16333 concat!("Alignment of ", stringify!(stat64))
16334 );
16335 assert_eq!(
16336 unsafe { &(*(::std::ptr::null::<stat64>())).st_dev as *const _ as usize },
16337 0usize,
16338 concat!(
16339 "Offset of field: ",
16340 stringify!(stat64),
16341 "::",
16342 stringify!(st_dev)
16343 )
16344 );
16345 assert_eq!(
16346 unsafe { &(*(::std::ptr::null::<stat64>())).st_mode as *const _ as usize },
16347 4usize,
16348 concat!(
16349 "Offset of field: ",
16350 stringify!(stat64),
16351 "::",
16352 stringify!(st_mode)
16353 )
16354 );
16355 assert_eq!(
16356 unsafe { &(*(::std::ptr::null::<stat64>())).st_nlink as *const _ as usize },
16357 6usize,
16358 concat!(
16359 "Offset of field: ",
16360 stringify!(stat64),
16361 "::",
16362 stringify!(st_nlink)
16363 )
16364 );
16365 assert_eq!(
16366 unsafe { &(*(::std::ptr::null::<stat64>())).st_ino as *const _ as usize },
16367 8usize,
16368 concat!(
16369 "Offset of field: ",
16370 stringify!(stat64),
16371 "::",
16372 stringify!(st_ino)
16373 )
16374 );
16375 assert_eq!(
16376 unsafe { &(*(::std::ptr::null::<stat64>())).st_uid as *const _ as usize },
16377 16usize,
16378 concat!(
16379 "Offset of field: ",
16380 stringify!(stat64),
16381 "::",
16382 stringify!(st_uid)
16383 )
16384 );
16385 assert_eq!(
16386 unsafe { &(*(::std::ptr::null::<stat64>())).st_gid as *const _ as usize },
16387 20usize,
16388 concat!(
16389 "Offset of field: ",
16390 stringify!(stat64),
16391 "::",
16392 stringify!(st_gid)
16393 )
16394 );
16395 assert_eq!(
16396 unsafe { &(*(::std::ptr::null::<stat64>())).st_rdev as *const _ as usize },
16397 24usize,
16398 concat!(
16399 "Offset of field: ",
16400 stringify!(stat64),
16401 "::",
16402 stringify!(st_rdev)
16403 )
16404 );
16405 assert_eq!(
16406 unsafe { &(*(::std::ptr::null::<stat64>())).st_atimespec as *const _ as usize },
16407 32usize,
16408 concat!(
16409 "Offset of field: ",
16410 stringify!(stat64),
16411 "::",
16412 stringify!(st_atimespec)
16413 )
16414 );
16415 assert_eq!(
16416 unsafe { &(*(::std::ptr::null::<stat64>())).st_mtimespec as *const _ as usize },
16417 48usize,
16418 concat!(
16419 "Offset of field: ",
16420 stringify!(stat64),
16421 "::",
16422 stringify!(st_mtimespec)
16423 )
16424 );
16425 assert_eq!(
16426 unsafe { &(*(::std::ptr::null::<stat64>())).st_ctimespec as *const _ as usize },
16427 64usize,
16428 concat!(
16429 "Offset of field: ",
16430 stringify!(stat64),
16431 "::",
16432 stringify!(st_ctimespec)
16433 )
16434 );
16435 assert_eq!(
16436 unsafe { &(*(::std::ptr::null::<stat64>())).st_birthtimespec as *const _ as usize },
16437 80usize,
16438 concat!(
16439 "Offset of field: ",
16440 stringify!(stat64),
16441 "::",
16442 stringify!(st_birthtimespec)
16443 )
16444 );
16445 assert_eq!(
16446 unsafe { &(*(::std::ptr::null::<stat64>())).st_size as *const _ as usize },
16447 96usize,
16448 concat!(
16449 "Offset of field: ",
16450 stringify!(stat64),
16451 "::",
16452 stringify!(st_size)
16453 )
16454 );
16455 assert_eq!(
16456 unsafe { &(*(::std::ptr::null::<stat64>())).st_blocks as *const _ as usize },
16457 104usize,
16458 concat!(
16459 "Offset of field: ",
16460 stringify!(stat64),
16461 "::",
16462 stringify!(st_blocks)
16463 )
16464 );
16465 assert_eq!(
16466 unsafe { &(*(::std::ptr::null::<stat64>())).st_blksize as *const _ as usize },
16467 112usize,
16468 concat!(
16469 "Offset of field: ",
16470 stringify!(stat64),
16471 "::",
16472 stringify!(st_blksize)
16473 )
16474 );
16475 assert_eq!(
16476 unsafe { &(*(::std::ptr::null::<stat64>())).st_flags as *const _ as usize },
16477 116usize,
16478 concat!(
16479 "Offset of field: ",
16480 stringify!(stat64),
16481 "::",
16482 stringify!(st_flags)
16483 )
16484 );
16485 assert_eq!(
16486 unsafe { &(*(::std::ptr::null::<stat64>())).st_gen as *const _ as usize },
16487 120usize,
16488 concat!(
16489 "Offset of field: ",
16490 stringify!(stat64),
16491 "::",
16492 stringify!(st_gen)
16493 )
16494 );
16495 assert_eq!(
16496 unsafe { &(*(::std::ptr::null::<stat64>())).st_lspare as *const _ as usize },
16497 124usize,
16498 concat!(
16499 "Offset of field: ",
16500 stringify!(stat64),
16501 "::",
16502 stringify!(st_lspare)
16503 )
16504 );
16505 assert_eq!(
16506 unsafe { &(*(::std::ptr::null::<stat64>())).st_qspare as *const _ as usize },
16507 128usize,
16508 concat!(
16509 "Offset of field: ",
16510 stringify!(stat64),
16511 "::",
16512 stringify!(st_qspare)
16513 )
16514 );
16515}
16516extern "C" {
16517 pub fn chmod(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
16518}
16519extern "C" {
16520 pub fn fchmod(arg1: ::std::os::raw::c_int, arg2: mode_t) -> ::std::os::raw::c_int;
16521}
16522extern "C" {
16523 #[link_name = "\u{1}_fstat$INODE64"]
16524 pub fn fstat(arg1: ::std::os::raw::c_int, arg2: *mut stat) -> ::std::os::raw::c_int;
16525}
16526extern "C" {
16527 #[link_name = "\u{1}_lstat$INODE64"]
16528 pub fn lstat(arg1: *const ::std::os::raw::c_char, arg2: *mut stat) -> ::std::os::raw::c_int;
16529}
16530extern "C" {
16531 pub fn mkdir(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
16532}
16533extern "C" {
16534 pub fn mkfifo(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
16535}
16536extern "C" {
16537 #[link_name = "\u{1}_stat$INODE64"]
16538 pub fn stat(arg1: *const ::std::os::raw::c_char, arg2: *mut stat) -> ::std::os::raw::c_int;
16539}
16540extern "C" {
16541 pub fn mknod(
16542 arg1: *const ::std::os::raw::c_char,
16543 arg2: mode_t,
16544 arg3: dev_t,
16545 ) -> ::std::os::raw::c_int;
16546}
16547extern "C" {
16548 pub fn umask(arg1: mode_t) -> mode_t;
16549}
16550extern "C" {
16551 pub fn fchmodat(
16552 arg1: ::std::os::raw::c_int,
16553 arg2: *const ::std::os::raw::c_char,
16554 arg3: mode_t,
16555 arg4: ::std::os::raw::c_int,
16556 ) -> ::std::os::raw::c_int;
16557}
16558extern "C" {
16559 #[link_name = "\u{1}_fstatat$INODE64"]
16560 pub fn fstatat(
16561 arg1: ::std::os::raw::c_int,
16562 arg2: *const ::std::os::raw::c_char,
16563 arg3: *mut stat,
16564 arg4: ::std::os::raw::c_int,
16565 ) -> ::std::os::raw::c_int;
16566}
16567extern "C" {
16568 pub fn mkdirat(
16569 arg1: ::std::os::raw::c_int,
16570 arg2: *const ::std::os::raw::c_char,
16571 arg3: mode_t,
16572 ) -> ::std::os::raw::c_int;
16573}
16574extern "C" {
16575 pub fn futimens(__fd: ::std::os::raw::c_int, __times: *const timespec)
16576 -> ::std::os::raw::c_int;
16577}
16578extern "C" {
16579 pub fn utimensat(
16580 __fd: ::std::os::raw::c_int,
16581 __path: *const ::std::os::raw::c_char,
16582 __times: *const timespec,
16583 __flag: ::std::os::raw::c_int,
16584 ) -> ::std::os::raw::c_int;
16585}
16586#[repr(C)]
16587#[derive(Debug, Copy, Clone)]
16588pub struct _filesec {
16589 _unused: [u8; 0],
16590}
16591pub type filesec_t = *mut _filesec;
16592extern "C" {
16593 pub fn chflags(arg1: *const ::std::os::raw::c_char, arg2: __uint32_t) -> ::std::os::raw::c_int;
16594}
16595extern "C" {
16596 pub fn chmodx_np(arg1: *const ::std::os::raw::c_char, arg2: filesec_t)
16597 -> ::std::os::raw::c_int;
16598}
16599extern "C" {
16600 pub fn fchflags(arg1: ::std::os::raw::c_int, arg2: __uint32_t) -> ::std::os::raw::c_int;
16601}
16602extern "C" {
16603 pub fn fchmodx_np(arg1: ::std::os::raw::c_int, arg2: filesec_t) -> ::std::os::raw::c_int;
16604}
16605extern "C" {
16606 #[link_name = "\u{1}_fstatx_np$INODE64"]
16607 pub fn fstatx_np(
16608 arg1: ::std::os::raw::c_int,
16609 arg2: *mut stat,
16610 arg3: filesec_t,
16611 ) -> ::std::os::raw::c_int;
16612}
16613extern "C" {
16614 pub fn lchflags(arg1: *const ::std::os::raw::c_char, arg2: __uint32_t)
16615 -> ::std::os::raw::c_int;
16616}
16617extern "C" {
16618 pub fn lchmod(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
16619}
16620extern "C" {
16621 #[link_name = "\u{1}_lstatx_np$INODE64"]
16622 pub fn lstatx_np(
16623 arg1: *const ::std::os::raw::c_char,
16624 arg2: *mut stat,
16625 arg3: filesec_t,
16626 ) -> ::std::os::raw::c_int;
16627}
16628extern "C" {
16629 pub fn mkdirx_np(arg1: *const ::std::os::raw::c_char, arg2: filesec_t)
16630 -> ::std::os::raw::c_int;
16631}
16632extern "C" {
16633 pub fn mkfifox_np(
16634 arg1: *const ::std::os::raw::c_char,
16635 arg2: filesec_t,
16636 ) -> ::std::os::raw::c_int;
16637}
16638extern "C" {
16639 #[link_name = "\u{1}_statx_np$INODE64"]
16640 pub fn statx_np(
16641 arg1: *const ::std::os::raw::c_char,
16642 arg2: *mut stat,
16643 arg3: filesec_t,
16644 ) -> ::std::os::raw::c_int;
16645}
16646extern "C" {
16647 pub fn umaskx_np(arg1: filesec_t) -> ::std::os::raw::c_int;
16648}
16649extern "C" {
16650 pub fn fstatx64_np(
16651 arg1: ::std::os::raw::c_int,
16652 arg2: *mut stat64,
16653 arg3: filesec_t,
16654 ) -> ::std::os::raw::c_int;
16655}
16656extern "C" {
16657 pub fn lstatx64_np(
16658 arg1: *const ::std::os::raw::c_char,
16659 arg2: *mut stat64,
16660 arg3: filesec_t,
16661 ) -> ::std::os::raw::c_int;
16662}
16663extern "C" {
16664 pub fn statx64_np(
16665 arg1: *const ::std::os::raw::c_char,
16666 arg2: *mut stat64,
16667 arg3: filesec_t,
16668 ) -> ::std::os::raw::c_int;
16669}
16670extern "C" {
16671 pub fn fstat64(arg1: ::std::os::raw::c_int, arg2: *mut stat64) -> ::std::os::raw::c_int;
16672}
16673extern "C" {
16674 pub fn lstat64(arg1: *const ::std::os::raw::c_char, arg2: *mut stat64)
16675 -> ::std::os::raw::c_int;
16676}
16677extern "C" {
16678 pub fn stat64(arg1: *const ::std::os::raw::c_char, arg2: *mut stat64) -> ::std::os::raw::c_int;
16679}
16680extern "C" {
16681 pub fn getxattr(
16682 path: *const ::std::os::raw::c_char,
16683 name: *const ::std::os::raw::c_char,
16684 value: *mut ::std::os::raw::c_void,
16685 size: size_t,
16686 position: u_int32_t,
16687 options: ::std::os::raw::c_int,
16688 ) -> ssize_t;
16689}
16690extern "C" {
16691 pub fn fgetxattr(
16692 fd: ::std::os::raw::c_int,
16693 name: *const ::std::os::raw::c_char,
16694 value: *mut ::std::os::raw::c_void,
16695 size: size_t,
16696 position: u_int32_t,
16697 options: ::std::os::raw::c_int,
16698 ) -> ssize_t;
16699}
16700extern "C" {
16701 pub fn setxattr(
16702 path: *const ::std::os::raw::c_char,
16703 name: *const ::std::os::raw::c_char,
16704 value: *const ::std::os::raw::c_void,
16705 size: size_t,
16706 position: u_int32_t,
16707 options: ::std::os::raw::c_int,
16708 ) -> ::std::os::raw::c_int;
16709}
16710extern "C" {
16711 pub fn fsetxattr(
16712 fd: ::std::os::raw::c_int,
16713 name: *const ::std::os::raw::c_char,
16714 value: *const ::std::os::raw::c_void,
16715 size: size_t,
16716 position: u_int32_t,
16717 options: ::std::os::raw::c_int,
16718 ) -> ::std::os::raw::c_int;
16719}
16720extern "C" {
16721 pub fn removexattr(
16722 path: *const ::std::os::raw::c_char,
16723 name: *const ::std::os::raw::c_char,
16724 options: ::std::os::raw::c_int,
16725 ) -> ::std::os::raw::c_int;
16726}
16727extern "C" {
16728 pub fn fremovexattr(
16729 fd: ::std::os::raw::c_int,
16730 name: *const ::std::os::raw::c_char,
16731 options: ::std::os::raw::c_int,
16732 ) -> ::std::os::raw::c_int;
16733}
16734extern "C" {
16735 pub fn listxattr(
16736 path: *const ::std::os::raw::c_char,
16737 namebuff: *mut ::std::os::raw::c_char,
16738 size: size_t,
16739 options: ::std::os::raw::c_int,
16740 ) -> ssize_t;
16741}
16742extern "C" {
16743 pub fn flistxattr(
16744 fd: ::std::os::raw::c_int,
16745 namebuff: *mut ::std::os::raw::c_char,
16746 size: size_t,
16747 options: ::std::os::raw::c_int,
16748 ) -> ssize_t;
16749}
16750#[repr(C)]
16751#[derive(Copy, Clone)]
16752pub union guid_t {
16753 pub g_guid: [::std::os::raw::c_uchar; 16usize],
16754 pub g_guid_asint: [::std::os::raw::c_uint; 4usize],
16755 _bindgen_union_align: [u32; 4usize],
16756}
16757#[test]
16758fn bindgen_test_layout_guid_t() {
16759 assert_eq!(
16760 ::std::mem::size_of::<guid_t>(),
16761 16usize,
16762 concat!("Size of: ", stringify!(guid_t))
16763 );
16764 assert_eq!(
16765 ::std::mem::align_of::<guid_t>(),
16766 4usize,
16767 concat!("Alignment of ", stringify!(guid_t))
16768 );
16769 assert_eq!(
16770 unsafe { &(*(::std::ptr::null::<guid_t>())).g_guid as *const _ as usize },
16771 0usize,
16772 concat!(
16773 "Offset of field: ",
16774 stringify!(guid_t),
16775 "::",
16776 stringify!(g_guid)
16777 )
16778 );
16779 assert_eq!(
16780 unsafe { &(*(::std::ptr::null::<guid_t>())).g_guid_asint as *const _ as usize },
16781 0usize,
16782 concat!(
16783 "Offset of field: ",
16784 stringify!(guid_t),
16785 "::",
16786 stringify!(g_guid_asint)
16787 )
16788 );
16789}
16790#[repr(C, packed)]
16791#[derive(Debug, Copy, Clone)]
16792pub struct ntsid_t {
16793 pub sid_kind: u_int8_t,
16794 pub sid_authcount: u_int8_t,
16795 pub sid_authority: [u_int8_t; 6usize],
16796 pub sid_authorities: [u_int32_t; 16usize],
16797}
16798#[test]
16799fn bindgen_test_layout_ntsid_t() {
16800 assert_eq!(
16801 ::std::mem::size_of::<ntsid_t>(),
16802 72usize,
16803 concat!("Size of: ", stringify!(ntsid_t))
16804 );
16805 assert_eq!(
16806 ::std::mem::align_of::<ntsid_t>(),
16807 1usize,
16808 concat!("Alignment of ", stringify!(ntsid_t))
16809 );
16810 assert_eq!(
16811 unsafe { &(*(::std::ptr::null::<ntsid_t>())).sid_kind as *const _ as usize },
16812 0usize,
16813 concat!(
16814 "Offset of field: ",
16815 stringify!(ntsid_t),
16816 "::",
16817 stringify!(sid_kind)
16818 )
16819 );
16820 assert_eq!(
16821 unsafe { &(*(::std::ptr::null::<ntsid_t>())).sid_authcount as *const _ as usize },
16822 1usize,
16823 concat!(
16824 "Offset of field: ",
16825 stringify!(ntsid_t),
16826 "::",
16827 stringify!(sid_authcount)
16828 )
16829 );
16830 assert_eq!(
16831 unsafe { &(*(::std::ptr::null::<ntsid_t>())).sid_authority as *const _ as usize },
16832 2usize,
16833 concat!(
16834 "Offset of field: ",
16835 stringify!(ntsid_t),
16836 "::",
16837 stringify!(sid_authority)
16838 )
16839 );
16840 assert_eq!(
16841 unsafe { &(*(::std::ptr::null::<ntsid_t>())).sid_authorities as *const _ as usize },
16842 8usize,
16843 concat!(
16844 "Offset of field: ",
16845 stringify!(ntsid_t),
16846 "::",
16847 stringify!(sid_authorities)
16848 )
16849 );
16850}
16851#[repr(C)]
16852#[derive(Copy, Clone)]
16853pub struct kauth_identity_extlookup {
16854 pub el_seqno: u_int32_t,
16855 pub el_result: u_int32_t,
16856 pub el_flags: u_int32_t,
16857 pub el_info_pid: __darwin_pid_t,
16858 pub el_extend: u_int64_t,
16859 pub el_info_reserved_1: u_int32_t,
16860 pub el_uid: uid_t,
16861 pub el_uguid: guid_t,
16862 pub el_uguid_valid: u_int32_t,
16863 pub el_usid: ntsid_t,
16864 pub el_usid_valid: u_int32_t,
16865 pub el_gid: gid_t,
16866 pub el_gguid: guid_t,
16867 pub el_gguid_valid: u_int32_t,
16868 pub el_gsid: ntsid_t,
16869 pub el_gsid_valid: u_int32_t,
16870 pub el_member_valid: u_int32_t,
16871 pub el_sup_grp_cnt: u_int32_t,
16872 pub el_sup_groups: [gid_t; 16usize],
16873}
16874#[test]
16875fn bindgen_test_layout_kauth_identity_extlookup() {
16876 assert_eq!(
16877 ::std::mem::size_of::<kauth_identity_extlookup>(),
16878 304usize,
16879 concat!("Size of: ", stringify!(kauth_identity_extlookup))
16880 );
16881 assert_eq!(
16882 ::std::mem::align_of::<kauth_identity_extlookup>(),
16883 8usize,
16884 concat!("Alignment of ", stringify!(kauth_identity_extlookup))
16885 );
16886 assert_eq!(
16887 unsafe {
16888 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_seqno as *const _ as usize
16889 },
16890 0usize,
16891 concat!(
16892 "Offset of field: ",
16893 stringify!(kauth_identity_extlookup),
16894 "::",
16895 stringify!(el_seqno)
16896 )
16897 );
16898 assert_eq!(
16899 unsafe {
16900 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_result as *const _ as usize
16901 },
16902 4usize,
16903 concat!(
16904 "Offset of field: ",
16905 stringify!(kauth_identity_extlookup),
16906 "::",
16907 stringify!(el_result)
16908 )
16909 );
16910 assert_eq!(
16911 unsafe {
16912 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_flags as *const _ as usize
16913 },
16914 8usize,
16915 concat!(
16916 "Offset of field: ",
16917 stringify!(kauth_identity_extlookup),
16918 "::",
16919 stringify!(el_flags)
16920 )
16921 );
16922 assert_eq!(
16923 unsafe {
16924 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_info_pid as *const _ as usize
16925 },
16926 12usize,
16927 concat!(
16928 "Offset of field: ",
16929 stringify!(kauth_identity_extlookup),
16930 "::",
16931 stringify!(el_info_pid)
16932 )
16933 );
16934 assert_eq!(
16935 unsafe {
16936 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_extend as *const _ as usize
16937 },
16938 16usize,
16939 concat!(
16940 "Offset of field: ",
16941 stringify!(kauth_identity_extlookup),
16942 "::",
16943 stringify!(el_extend)
16944 )
16945 );
16946 assert_eq!(
16947 unsafe {
16948 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_info_reserved_1 as *const _
16949 as usize
16950 },
16951 24usize,
16952 concat!(
16953 "Offset of field: ",
16954 stringify!(kauth_identity_extlookup),
16955 "::",
16956 stringify!(el_info_reserved_1)
16957 )
16958 );
16959 assert_eq!(
16960 unsafe { &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_uid as *const _ as usize },
16961 28usize,
16962 concat!(
16963 "Offset of field: ",
16964 stringify!(kauth_identity_extlookup),
16965 "::",
16966 stringify!(el_uid)
16967 )
16968 );
16969 assert_eq!(
16970 unsafe {
16971 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_uguid as *const _ as usize
16972 },
16973 32usize,
16974 concat!(
16975 "Offset of field: ",
16976 stringify!(kauth_identity_extlookup),
16977 "::",
16978 stringify!(el_uguid)
16979 )
16980 );
16981 assert_eq!(
16982 unsafe {
16983 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_uguid_valid as *const _ as usize
16984 },
16985 48usize,
16986 concat!(
16987 "Offset of field: ",
16988 stringify!(kauth_identity_extlookup),
16989 "::",
16990 stringify!(el_uguid_valid)
16991 )
16992 );
16993 assert_eq!(
16994 unsafe {
16995 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_usid as *const _ as usize
16996 },
16997 52usize,
16998 concat!(
16999 "Offset of field: ",
17000 stringify!(kauth_identity_extlookup),
17001 "::",
17002 stringify!(el_usid)
17003 )
17004 );
17005 assert_eq!(
17006 unsafe {
17007 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_usid_valid as *const _ as usize
17008 },
17009 124usize,
17010 concat!(
17011 "Offset of field: ",
17012 stringify!(kauth_identity_extlookup),
17013 "::",
17014 stringify!(el_usid_valid)
17015 )
17016 );
17017 assert_eq!(
17018 unsafe { &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_gid as *const _ as usize },
17019 128usize,
17020 concat!(
17021 "Offset of field: ",
17022 stringify!(kauth_identity_extlookup),
17023 "::",
17024 stringify!(el_gid)
17025 )
17026 );
17027 assert_eq!(
17028 unsafe {
17029 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_gguid as *const _ as usize
17030 },
17031 132usize,
17032 concat!(
17033 "Offset of field: ",
17034 stringify!(kauth_identity_extlookup),
17035 "::",
17036 stringify!(el_gguid)
17037 )
17038 );
17039 assert_eq!(
17040 unsafe {
17041 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_gguid_valid as *const _ as usize
17042 },
17043 148usize,
17044 concat!(
17045 "Offset of field: ",
17046 stringify!(kauth_identity_extlookup),
17047 "::",
17048 stringify!(el_gguid_valid)
17049 )
17050 );
17051 assert_eq!(
17052 unsafe {
17053 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_gsid as *const _ as usize
17054 },
17055 152usize,
17056 concat!(
17057 "Offset of field: ",
17058 stringify!(kauth_identity_extlookup),
17059 "::",
17060 stringify!(el_gsid)
17061 )
17062 );
17063 assert_eq!(
17064 unsafe {
17065 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_gsid_valid as *const _ as usize
17066 },
17067 224usize,
17068 concat!(
17069 "Offset of field: ",
17070 stringify!(kauth_identity_extlookup),
17071 "::",
17072 stringify!(el_gsid_valid)
17073 )
17074 );
17075 assert_eq!(
17076 unsafe {
17077 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_member_valid as *const _
17078 as usize
17079 },
17080 228usize,
17081 concat!(
17082 "Offset of field: ",
17083 stringify!(kauth_identity_extlookup),
17084 "::",
17085 stringify!(el_member_valid)
17086 )
17087 );
17088 assert_eq!(
17089 unsafe {
17090 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_sup_grp_cnt as *const _ as usize
17091 },
17092 232usize,
17093 concat!(
17094 "Offset of field: ",
17095 stringify!(kauth_identity_extlookup),
17096 "::",
17097 stringify!(el_sup_grp_cnt)
17098 )
17099 );
17100 assert_eq!(
17101 unsafe {
17102 &(*(::std::ptr::null::<kauth_identity_extlookup>())).el_sup_groups as *const _ as usize
17103 },
17104 236usize,
17105 concat!(
17106 "Offset of field: ",
17107 stringify!(kauth_identity_extlookup),
17108 "::",
17109 stringify!(el_sup_groups)
17110 )
17111 );
17112}
17113#[repr(C)]
17114#[derive(Debug, Copy, Clone)]
17115pub struct kauth_cache_sizes {
17116 pub kcs_group_size: u_int32_t,
17117 pub kcs_id_size: u_int32_t,
17118}
17119#[test]
17120fn bindgen_test_layout_kauth_cache_sizes() {
17121 assert_eq!(
17122 ::std::mem::size_of::<kauth_cache_sizes>(),
17123 8usize,
17124 concat!("Size of: ", stringify!(kauth_cache_sizes))
17125 );
17126 assert_eq!(
17127 ::std::mem::align_of::<kauth_cache_sizes>(),
17128 4usize,
17129 concat!("Alignment of ", stringify!(kauth_cache_sizes))
17130 );
17131 assert_eq!(
17132 unsafe {
17133 &(*(::std::ptr::null::<kauth_cache_sizes>())).kcs_group_size as *const _ as usize
17134 },
17135 0usize,
17136 concat!(
17137 "Offset of field: ",
17138 stringify!(kauth_cache_sizes),
17139 "::",
17140 stringify!(kcs_group_size)
17141 )
17142 );
17143 assert_eq!(
17144 unsafe { &(*(::std::ptr::null::<kauth_cache_sizes>())).kcs_id_size as *const _ as usize },
17145 4usize,
17146 concat!(
17147 "Offset of field: ",
17148 stringify!(kauth_cache_sizes),
17149 "::",
17150 stringify!(kcs_id_size)
17151 )
17152 );
17153}
17154pub type kauth_ace_rights_t = u_int32_t;
17155#[repr(C)]
17156#[derive(Copy, Clone)]
17157pub struct kauth_ace {
17158 pub ace_applicable: guid_t,
17159 pub ace_flags: u_int32_t,
17160 pub ace_rights: kauth_ace_rights_t,
17161}
17162#[test]
17163fn bindgen_test_layout_kauth_ace() {
17164 assert_eq!(
17165 ::std::mem::size_of::<kauth_ace>(),
17166 24usize,
17167 concat!("Size of: ", stringify!(kauth_ace))
17168 );
17169 assert_eq!(
17170 ::std::mem::align_of::<kauth_ace>(),
17171 4usize,
17172 concat!("Alignment of ", stringify!(kauth_ace))
17173 );
17174 assert_eq!(
17175 unsafe { &(*(::std::ptr::null::<kauth_ace>())).ace_applicable as *const _ as usize },
17176 0usize,
17177 concat!(
17178 "Offset of field: ",
17179 stringify!(kauth_ace),
17180 "::",
17181 stringify!(ace_applicable)
17182 )
17183 );
17184 assert_eq!(
17185 unsafe { &(*(::std::ptr::null::<kauth_ace>())).ace_flags as *const _ as usize },
17186 16usize,
17187 concat!(
17188 "Offset of field: ",
17189 stringify!(kauth_ace),
17190 "::",
17191 stringify!(ace_flags)
17192 )
17193 );
17194 assert_eq!(
17195 unsafe { &(*(::std::ptr::null::<kauth_ace>())).ace_rights as *const _ as usize },
17196 20usize,
17197 concat!(
17198 "Offset of field: ",
17199 stringify!(kauth_ace),
17200 "::",
17201 stringify!(ace_rights)
17202 )
17203 );
17204}
17205pub type kauth_ace_t = *mut kauth_ace;
17206#[repr(C)]
17207#[derive(Copy, Clone)]
17208pub struct kauth_acl {
17209 pub acl_entrycount: u_int32_t,
17210 pub acl_flags: u_int32_t,
17211 pub acl_ace: [kauth_ace; 1usize],
17212}
17213#[test]
17214fn bindgen_test_layout_kauth_acl() {
17215 assert_eq!(
17216 ::std::mem::size_of::<kauth_acl>(),
17217 32usize,
17218 concat!("Size of: ", stringify!(kauth_acl))
17219 );
17220 assert_eq!(
17221 ::std::mem::align_of::<kauth_acl>(),
17222 4usize,
17223 concat!("Alignment of ", stringify!(kauth_acl))
17224 );
17225 assert_eq!(
17226 unsafe { &(*(::std::ptr::null::<kauth_acl>())).acl_entrycount as *const _ as usize },
17227 0usize,
17228 concat!(
17229 "Offset of field: ",
17230 stringify!(kauth_acl),
17231 "::",
17232 stringify!(acl_entrycount)
17233 )
17234 );
17235 assert_eq!(
17236 unsafe { &(*(::std::ptr::null::<kauth_acl>())).acl_flags as *const _ as usize },
17237 4usize,
17238 concat!(
17239 "Offset of field: ",
17240 stringify!(kauth_acl),
17241 "::",
17242 stringify!(acl_flags)
17243 )
17244 );
17245 assert_eq!(
17246 unsafe { &(*(::std::ptr::null::<kauth_acl>())).acl_ace as *const _ as usize },
17247 8usize,
17248 concat!(
17249 "Offset of field: ",
17250 stringify!(kauth_acl),
17251 "::",
17252 stringify!(acl_ace)
17253 )
17254 );
17255}
17256pub type kauth_acl_t = *mut kauth_acl;
17257#[repr(C)]
17258#[derive(Copy, Clone)]
17259pub struct kauth_filesec {
17260 pub fsec_magic: u_int32_t,
17261 pub fsec_owner: guid_t,
17262 pub fsec_group: guid_t,
17263 pub fsec_acl: kauth_acl,
17264}
17265#[test]
17266fn bindgen_test_layout_kauth_filesec() {
17267 assert_eq!(
17268 ::std::mem::size_of::<kauth_filesec>(),
17269 68usize,
17270 concat!("Size of: ", stringify!(kauth_filesec))
17271 );
17272 assert_eq!(
17273 ::std::mem::align_of::<kauth_filesec>(),
17274 4usize,
17275 concat!("Alignment of ", stringify!(kauth_filesec))
17276 );
17277 assert_eq!(
17278 unsafe { &(*(::std::ptr::null::<kauth_filesec>())).fsec_magic as *const _ as usize },
17279 0usize,
17280 concat!(
17281 "Offset of field: ",
17282 stringify!(kauth_filesec),
17283 "::",
17284 stringify!(fsec_magic)
17285 )
17286 );
17287 assert_eq!(
17288 unsafe { &(*(::std::ptr::null::<kauth_filesec>())).fsec_owner as *const _ as usize },
17289 4usize,
17290 concat!(
17291 "Offset of field: ",
17292 stringify!(kauth_filesec),
17293 "::",
17294 stringify!(fsec_owner)
17295 )
17296 );
17297 assert_eq!(
17298 unsafe { &(*(::std::ptr::null::<kauth_filesec>())).fsec_group as *const _ as usize },
17299 20usize,
17300 concat!(
17301 "Offset of field: ",
17302 stringify!(kauth_filesec),
17303 "::",
17304 stringify!(fsec_group)
17305 )
17306 );
17307 assert_eq!(
17308 unsafe { &(*(::std::ptr::null::<kauth_filesec>())).fsec_acl as *const _ as usize },
17309 36usize,
17310 concat!(
17311 "Offset of field: ",
17312 stringify!(kauth_filesec),
17313 "::",
17314 stringify!(fsec_acl)
17315 )
17316 );
17317}
17318pub type kauth_filesec_t = *mut kauth_filesec;
17319pub const acl_perm_t_ACL_READ_DATA: acl_perm_t = 2;
17320pub const acl_perm_t_ACL_LIST_DIRECTORY: acl_perm_t = 2;
17321pub const acl_perm_t_ACL_WRITE_DATA: acl_perm_t = 4;
17322pub const acl_perm_t_ACL_ADD_FILE: acl_perm_t = 4;
17323pub const acl_perm_t_ACL_EXECUTE: acl_perm_t = 8;
17324pub const acl_perm_t_ACL_SEARCH: acl_perm_t = 8;
17325pub const acl_perm_t_ACL_DELETE: acl_perm_t = 16;
17326pub const acl_perm_t_ACL_APPEND_DATA: acl_perm_t = 32;
17327pub const acl_perm_t_ACL_ADD_SUBDIRECTORY: acl_perm_t = 32;
17328pub const acl_perm_t_ACL_DELETE_CHILD: acl_perm_t = 64;
17329pub const acl_perm_t_ACL_READ_ATTRIBUTES: acl_perm_t = 128;
17330pub const acl_perm_t_ACL_WRITE_ATTRIBUTES: acl_perm_t = 256;
17331pub const acl_perm_t_ACL_READ_EXTATTRIBUTES: acl_perm_t = 512;
17332pub const acl_perm_t_ACL_WRITE_EXTATTRIBUTES: acl_perm_t = 1024;
17333pub const acl_perm_t_ACL_READ_SECURITY: acl_perm_t = 2048;
17334pub const acl_perm_t_ACL_WRITE_SECURITY: acl_perm_t = 4096;
17335pub const acl_perm_t_ACL_CHANGE_OWNER: acl_perm_t = 8192;
17336pub const acl_perm_t_ACL_SYNCHRONIZE: acl_perm_t = 1048576;
17337pub type acl_perm_t = ::std::os::raw::c_uint;
17338pub const acl_tag_t_ACL_UNDEFINED_TAG: acl_tag_t = 0;
17339pub const acl_tag_t_ACL_EXTENDED_ALLOW: acl_tag_t = 1;
17340pub const acl_tag_t_ACL_EXTENDED_DENY: acl_tag_t = 2;
17341pub type acl_tag_t = ::std::os::raw::c_uint;
17342pub const acl_type_t_ACL_TYPE_EXTENDED: acl_type_t = 256;
17343pub const acl_type_t_ACL_TYPE_ACCESS: acl_type_t = 0;
17344pub const acl_type_t_ACL_TYPE_DEFAULT: acl_type_t = 1;
17345pub const acl_type_t_ACL_TYPE_AFS: acl_type_t = 2;
17346pub const acl_type_t_ACL_TYPE_CODA: acl_type_t = 3;
17347pub const acl_type_t_ACL_TYPE_NTFS: acl_type_t = 4;
17348pub const acl_type_t_ACL_TYPE_NWFS: acl_type_t = 5;
17349pub type acl_type_t = ::std::os::raw::c_uint;
17350pub const acl_entry_id_t_ACL_FIRST_ENTRY: acl_entry_id_t = 0;
17351pub const acl_entry_id_t_ACL_NEXT_ENTRY: acl_entry_id_t = -1;
17352pub const acl_entry_id_t_ACL_LAST_ENTRY: acl_entry_id_t = -2;
17353pub type acl_entry_id_t = ::std::os::raw::c_int;
17354pub const acl_flag_t_ACL_FLAG_DEFER_INHERIT: acl_flag_t = 1;
17355pub const acl_flag_t_ACL_FLAG_NO_INHERIT: acl_flag_t = 131072;
17356pub const acl_flag_t_ACL_ENTRY_INHERITED: acl_flag_t = 16;
17357pub const acl_flag_t_ACL_ENTRY_FILE_INHERIT: acl_flag_t = 32;
17358pub const acl_flag_t_ACL_ENTRY_DIRECTORY_INHERIT: acl_flag_t = 64;
17359pub const acl_flag_t_ACL_ENTRY_LIMIT_INHERIT: acl_flag_t = 128;
17360pub const acl_flag_t_ACL_ENTRY_ONLY_INHERIT: acl_flag_t = 256;
17361pub type acl_flag_t = ::std::os::raw::c_uint;
17362#[repr(C)]
17363#[derive(Debug, Copy, Clone)]
17364pub struct _acl {
17365 _unused: [u8; 0],
17366}
17367#[repr(C)]
17368#[derive(Debug, Copy, Clone)]
17369pub struct _acl_entry {
17370 _unused: [u8; 0],
17371}
17372#[repr(C)]
17373#[derive(Debug, Copy, Clone)]
17374pub struct _acl_permset {
17375 _unused: [u8; 0],
17376}
17377#[repr(C)]
17378#[derive(Debug, Copy, Clone)]
17379pub struct _acl_flagset {
17380 _unused: [u8; 0],
17381}
17382pub type acl_t = *mut _acl;
17383pub type acl_entry_t = *mut _acl_entry;
17384pub type acl_permset_t = *mut _acl_permset;
17385pub type acl_flagset_t = *mut _acl_flagset;
17386pub type acl_permset_mask_t = u_int64_t;
17387extern "C" {
17388 pub fn acl_dup(acl: acl_t) -> acl_t;
17389}
17390extern "C" {
17391 pub fn acl_free(obj_p: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
17392}
17393extern "C" {
17394 pub fn acl_init(count: ::std::os::raw::c_int) -> acl_t;
17395}
17396extern "C" {
17397 pub fn acl_copy_entry(dest_d: acl_entry_t, src_d: acl_entry_t) -> ::std::os::raw::c_int;
17398}
17399extern "C" {
17400 pub fn acl_create_entry(acl_p: *mut acl_t, entry_p: *mut acl_entry_t) -> ::std::os::raw::c_int;
17401}
17402extern "C" {
17403 pub fn acl_create_entry_np(
17404 acl_p: *mut acl_t,
17405 entry_p: *mut acl_entry_t,
17406 entry_index: ::std::os::raw::c_int,
17407 ) -> ::std::os::raw::c_int;
17408}
17409extern "C" {
17410 pub fn acl_delete_entry(acl: acl_t, entry_d: acl_entry_t) -> ::std::os::raw::c_int;
17411}
17412extern "C" {
17413 pub fn acl_get_entry(
17414 acl: acl_t,
17415 entry_id: ::std::os::raw::c_int,
17416 entry_p: *mut acl_entry_t,
17417 ) -> ::std::os::raw::c_int;
17418}
17419extern "C" {
17420 pub fn acl_valid(acl: acl_t) -> ::std::os::raw::c_int;
17421}
17422extern "C" {
17423 pub fn acl_valid_fd_np(
17424 fd: ::std::os::raw::c_int,
17425 type_: acl_type_t,
17426 acl: acl_t,
17427 ) -> ::std::os::raw::c_int;
17428}
17429extern "C" {
17430 pub fn acl_valid_file_np(
17431 path: *const ::std::os::raw::c_char,
17432 type_: acl_type_t,
17433 acl: acl_t,
17434 ) -> ::std::os::raw::c_int;
17435}
17436extern "C" {
17437 pub fn acl_valid_link_np(
17438 path: *const ::std::os::raw::c_char,
17439 type_: acl_type_t,
17440 acl: acl_t,
17441 ) -> ::std::os::raw::c_int;
17442}
17443extern "C" {
17444 pub fn acl_add_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
17445}
17446extern "C" {
17447 pub fn acl_calc_mask(acl_p: *mut acl_t) -> ::std::os::raw::c_int;
17448}
17449extern "C" {
17450 pub fn acl_clear_perms(permset_d: acl_permset_t) -> ::std::os::raw::c_int;
17451}
17452extern "C" {
17453 pub fn acl_delete_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
17454}
17455extern "C" {
17456 pub fn acl_get_perm_np(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
17457}
17458extern "C" {
17459 pub fn acl_get_permset(
17460 entry_d: acl_entry_t,
17461 permset_p: *mut acl_permset_t,
17462 ) -> ::std::os::raw::c_int;
17463}
17464extern "C" {
17465 pub fn acl_set_permset(entry_d: acl_entry_t, permset_d: acl_permset_t)
17466 -> ::std::os::raw::c_int;
17467}
17468extern "C" {
17469 pub fn acl_maximal_permset_mask_np(mask_p: *mut acl_permset_mask_t) -> ::std::os::raw::c_int;
17470}
17471extern "C" {
17472 pub fn acl_get_permset_mask_np(
17473 entry_d: acl_entry_t,
17474 mask_p: *mut acl_permset_mask_t,
17475 ) -> ::std::os::raw::c_int;
17476}
17477extern "C" {
17478 pub fn acl_set_permset_mask_np(
17479 entry_d: acl_entry_t,
17480 mask: acl_permset_mask_t,
17481 ) -> ::std::os::raw::c_int;
17482}
17483extern "C" {
17484 pub fn acl_add_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
17485}
17486extern "C" {
17487 pub fn acl_clear_flags_np(flagset_d: acl_flagset_t) -> ::std::os::raw::c_int;
17488}
17489extern "C" {
17490 pub fn acl_delete_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
17491}
17492extern "C" {
17493 pub fn acl_get_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
17494}
17495extern "C" {
17496 pub fn acl_get_flagset_np(
17497 obj_p: *mut ::std::os::raw::c_void,
17498 flagset_p: *mut acl_flagset_t,
17499 ) -> ::std::os::raw::c_int;
17500}
17501extern "C" {
17502 pub fn acl_set_flagset_np(
17503 obj_p: *mut ::std::os::raw::c_void,
17504 flagset_d: acl_flagset_t,
17505 ) -> ::std::os::raw::c_int;
17506}
17507extern "C" {
17508 pub fn acl_get_qualifier(entry_d: acl_entry_t) -> *mut ::std::os::raw::c_void;
17509}
17510extern "C" {
17511 pub fn acl_get_tag_type(
17512 entry_d: acl_entry_t,
17513 tag_type_p: *mut acl_tag_t,
17514 ) -> ::std::os::raw::c_int;
17515}
17516extern "C" {
17517 pub fn acl_set_qualifier(
17518 entry_d: acl_entry_t,
17519 tag_qualifier_p: *const ::std::os::raw::c_void,
17520 ) -> ::std::os::raw::c_int;
17521}
17522extern "C" {
17523 pub fn acl_set_tag_type(entry_d: acl_entry_t, tag_type: acl_tag_t) -> ::std::os::raw::c_int;
17524}
17525extern "C" {
17526 pub fn acl_delete_def_file(path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
17527}
17528extern "C" {
17529 pub fn acl_get_fd(fd: ::std::os::raw::c_int) -> acl_t;
17530}
17531extern "C" {
17532 pub fn acl_get_fd_np(fd: ::std::os::raw::c_int, type_: acl_type_t) -> acl_t;
17533}
17534extern "C" {
17535 pub fn acl_get_file(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
17536}
17537extern "C" {
17538 pub fn acl_get_link_np(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
17539}
17540extern "C" {
17541 pub fn acl_set_fd(fd: ::std::os::raw::c_int, acl: acl_t) -> ::std::os::raw::c_int;
17542}
17543extern "C" {
17544 pub fn acl_set_fd_np(
17545 fd: ::std::os::raw::c_int,
17546 acl: acl_t,
17547 acl_type: acl_type_t,
17548 ) -> ::std::os::raw::c_int;
17549}
17550extern "C" {
17551 pub fn acl_set_file(
17552 path_p: *const ::std::os::raw::c_char,
17553 type_: acl_type_t,
17554 acl: acl_t,
17555 ) -> ::std::os::raw::c_int;
17556}
17557extern "C" {
17558 pub fn acl_set_link_np(
17559 path_p: *const ::std::os::raw::c_char,
17560 type_: acl_type_t,
17561 acl: acl_t,
17562 ) -> ::std::os::raw::c_int;
17563}
17564extern "C" {
17565 pub fn acl_copy_ext(buf_p: *mut ::std::os::raw::c_void, acl: acl_t, size: ssize_t) -> ssize_t;
17566}
17567extern "C" {
17568 pub fn acl_copy_ext_native(
17569 buf_p: *mut ::std::os::raw::c_void,
17570 acl: acl_t,
17571 size: ssize_t,
17572 ) -> ssize_t;
17573}
17574extern "C" {
17575 pub fn acl_copy_int(buf_p: *const ::std::os::raw::c_void) -> acl_t;
17576}
17577extern "C" {
17578 pub fn acl_copy_int_native(buf_p: *const ::std::os::raw::c_void) -> acl_t;
17579}
17580extern "C" {
17581 pub fn acl_from_text(buf_p: *const ::std::os::raw::c_char) -> acl_t;
17582}
17583extern "C" {
17584 pub fn acl_size(acl: acl_t) -> ssize_t;
17585}
17586extern "C" {
17587 pub fn acl_to_text(acl: acl_t, len_p: *mut ssize_t) -> *mut ::std::os::raw::c_char;
17588}
17589#[repr(C)]
17590#[derive(Debug, Copy, Clone)]
17591pub struct es_file_t {
17592 pub path: es_string_token_t,
17593 pub path_truncated: bool,
17594 pub stat: stat,
17595}
17596#[test]
17597fn bindgen_test_layout_es_file_t() {
17598 assert_eq!(
17599 ::std::mem::size_of::<es_file_t>(),
17600 168usize,
17601 concat!("Size of: ", stringify!(es_file_t))
17602 );
17603 assert_eq!(
17604 ::std::mem::align_of::<es_file_t>(),
17605 8usize,
17606 concat!("Alignment of ", stringify!(es_file_t))
17607 );
17608 assert_eq!(
17609 unsafe { &(*(::std::ptr::null::<es_file_t>())).path as *const _ as usize },
17610 0usize,
17611 concat!(
17612 "Offset of field: ",
17613 stringify!(es_file_t),
17614 "::",
17615 stringify!(path)
17616 )
17617 );
17618 assert_eq!(
17619 unsafe { &(*(::std::ptr::null::<es_file_t>())).path_truncated as *const _ as usize },
17620 16usize,
17621 concat!(
17622 "Offset of field: ",
17623 stringify!(es_file_t),
17624 "::",
17625 stringify!(path_truncated)
17626 )
17627 );
17628 assert_eq!(
17629 unsafe { &(*(::std::ptr::null::<es_file_t>())).stat as *const _ as usize },
17630 24usize,
17631 concat!(
17632 "Offset of field: ",
17633 stringify!(es_file_t),
17634 "::",
17635 stringify!(stat)
17636 )
17637 );
17638}
17639#[repr(C)]
17640#[derive(Debug, Copy, Clone)]
17641pub struct es_process_t {
17642 pub audit_token: audit_token_t,
17643 pub ppid: pid_t,
17644 pub original_ppid: pid_t,
17645 pub group_id: pid_t,
17646 pub session_id: pid_t,
17647 pub codesigning_flags: u32,
17648 pub is_platform_binary: bool,
17649 pub is_es_client: bool,
17650 pub cdhash: [u8; 20usize],
17651 pub signing_id: es_string_token_t,
17652 pub team_id: es_string_token_t,
17653 pub executable: *mut es_file_t,
17654 pub tty: *mut es_file_t,
17655 pub start_time: timeval,
17656}
17657#[test]
17658fn bindgen_test_layout_es_process_t() {
17659 assert_eq!(
17660 ::std::mem::size_of::<es_process_t>(),
17661 144usize,
17662 concat!("Size of: ", stringify!(es_process_t))
17663 );
17664 assert_eq!(
17665 ::std::mem::align_of::<es_process_t>(),
17666 8usize,
17667 concat!("Alignment of ", stringify!(es_process_t))
17668 );
17669 assert_eq!(
17670 unsafe { &(*(::std::ptr::null::<es_process_t>())).audit_token as *const _ as usize },
17671 0usize,
17672 concat!(
17673 "Offset of field: ",
17674 stringify!(es_process_t),
17675 "::",
17676 stringify!(audit_token)
17677 )
17678 );
17679 assert_eq!(
17680 unsafe { &(*(::std::ptr::null::<es_process_t>())).ppid as *const _ as usize },
17681 32usize,
17682 concat!(
17683 "Offset of field: ",
17684 stringify!(es_process_t),
17685 "::",
17686 stringify!(ppid)
17687 )
17688 );
17689 assert_eq!(
17690 unsafe { &(*(::std::ptr::null::<es_process_t>())).original_ppid as *const _ as usize },
17691 36usize,
17692 concat!(
17693 "Offset of field: ",
17694 stringify!(es_process_t),
17695 "::",
17696 stringify!(original_ppid)
17697 )
17698 );
17699 assert_eq!(
17700 unsafe { &(*(::std::ptr::null::<es_process_t>())).group_id as *const _ as usize },
17701 40usize,
17702 concat!(
17703 "Offset of field: ",
17704 stringify!(es_process_t),
17705 "::",
17706 stringify!(group_id)
17707 )
17708 );
17709 assert_eq!(
17710 unsafe { &(*(::std::ptr::null::<es_process_t>())).session_id as *const _ as usize },
17711 44usize,
17712 concat!(
17713 "Offset of field: ",
17714 stringify!(es_process_t),
17715 "::",
17716 stringify!(session_id)
17717 )
17718 );
17719 assert_eq!(
17720 unsafe { &(*(::std::ptr::null::<es_process_t>())).codesigning_flags as *const _ as usize },
17721 48usize,
17722 concat!(
17723 "Offset of field: ",
17724 stringify!(es_process_t),
17725 "::",
17726 stringify!(codesigning_flags)
17727 )
17728 );
17729 assert_eq!(
17730 unsafe { &(*(::std::ptr::null::<es_process_t>())).is_platform_binary as *const _ as usize },
17731 52usize,
17732 concat!(
17733 "Offset of field: ",
17734 stringify!(es_process_t),
17735 "::",
17736 stringify!(is_platform_binary)
17737 )
17738 );
17739 assert_eq!(
17740 unsafe { &(*(::std::ptr::null::<es_process_t>())).is_es_client as *const _ as usize },
17741 53usize,
17742 concat!(
17743 "Offset of field: ",
17744 stringify!(es_process_t),
17745 "::",
17746 stringify!(is_es_client)
17747 )
17748 );
17749 assert_eq!(
17750 unsafe { &(*(::std::ptr::null::<es_process_t>())).cdhash as *const _ as usize },
17751 54usize,
17752 concat!(
17753 "Offset of field: ",
17754 stringify!(es_process_t),
17755 "::",
17756 stringify!(cdhash)
17757 )
17758 );
17759 assert_eq!(
17760 unsafe { &(*(::std::ptr::null::<es_process_t>())).signing_id as *const _ as usize },
17761 80usize,
17762 concat!(
17763 "Offset of field: ",
17764 stringify!(es_process_t),
17765 "::",
17766 stringify!(signing_id)
17767 )
17768 );
17769 assert_eq!(
17770 unsafe { &(*(::std::ptr::null::<es_process_t>())).team_id as *const _ as usize },
17771 96usize,
17772 concat!(
17773 "Offset of field: ",
17774 stringify!(es_process_t),
17775 "::",
17776 stringify!(team_id)
17777 )
17778 );
17779 assert_eq!(
17780 unsafe { &(*(::std::ptr::null::<es_process_t>())).executable as *const _ as usize },
17781 112usize,
17782 concat!(
17783 "Offset of field: ",
17784 stringify!(es_process_t),
17785 "::",
17786 stringify!(executable)
17787 )
17788 );
17789 assert_eq!(
17790 unsafe { &(*(::std::ptr::null::<es_process_t>())).tty as *const _ as usize },
17791 120usize,
17792 concat!(
17793 "Offset of field: ",
17794 stringify!(es_process_t),
17795 "::",
17796 stringify!(tty)
17797 )
17798 );
17799 assert_eq!(
17800 unsafe { &(*(::std::ptr::null::<es_process_t>())).start_time as *const _ as usize },
17801 128usize,
17802 concat!(
17803 "Offset of field: ",
17804 stringify!(es_process_t),
17805 "::",
17806 stringify!(start_time)
17807 )
17808 );
17809}
17810#[repr(C)]
17811#[derive(Debug, Copy, Clone)]
17812pub struct es_thread_state_t {
17813 pub flavor: ::std::os::raw::c_int,
17814 pub state: es_token_t,
17815}
17816#[test]
17817fn bindgen_test_layout_es_thread_state_t() {
17818 assert_eq!(
17819 ::std::mem::size_of::<es_thread_state_t>(),
17820 24usize,
17821 concat!("Size of: ", stringify!(es_thread_state_t))
17822 );
17823 assert_eq!(
17824 ::std::mem::align_of::<es_thread_state_t>(),
17825 8usize,
17826 concat!("Alignment of ", stringify!(es_thread_state_t))
17827 );
17828 assert_eq!(
17829 unsafe { &(*(::std::ptr::null::<es_thread_state_t>())).flavor as *const _ as usize },
17830 0usize,
17831 concat!(
17832 "Offset of field: ",
17833 stringify!(es_thread_state_t),
17834 "::",
17835 stringify!(flavor)
17836 )
17837 );
17838 assert_eq!(
17839 unsafe { &(*(::std::ptr::null::<es_thread_state_t>())).state as *const _ as usize },
17840 8usize,
17841 concat!(
17842 "Offset of field: ",
17843 stringify!(es_thread_state_t),
17844 "::",
17845 stringify!(state)
17846 )
17847 );
17848}
17849pub type es_statfs_t = statfs;
17850#[repr(C)]
17851#[derive(Copy, Clone)]
17852pub struct es_fd_t {
17853 pub fd: i32,
17854 pub fdtype: u32,
17855 pub __bindgen_anon_1: es_fd_t__bindgen_ty_1,
17856}
17857#[repr(C)]
17858#[derive(Copy, Clone)]
17859pub union es_fd_t__bindgen_ty_1 {
17860 pub pipe: es_fd_t__bindgen_ty_1__bindgen_ty_1,
17861 _bindgen_union_align: u64,
17862}
17863#[repr(C)]
17864#[derive(Debug, Copy, Clone)]
17865pub struct es_fd_t__bindgen_ty_1__bindgen_ty_1 {
17866 pub pipe_id: u64,
17867}
17868#[test]
17869fn bindgen_test_layout_es_fd_t__bindgen_ty_1__bindgen_ty_1() {
17870 assert_eq!(
17871 ::std::mem::size_of::<es_fd_t__bindgen_ty_1__bindgen_ty_1>(),
17872 8usize,
17873 concat!("Size of: ", stringify!(es_fd_t__bindgen_ty_1__bindgen_ty_1))
17874 );
17875 assert_eq!(
17876 ::std::mem::align_of::<es_fd_t__bindgen_ty_1__bindgen_ty_1>(),
17877 8usize,
17878 concat!(
17879 "Alignment of ",
17880 stringify!(es_fd_t__bindgen_ty_1__bindgen_ty_1)
17881 )
17882 );
17883 assert_eq!(
17884 unsafe {
17885 &(*(::std::ptr::null::<es_fd_t__bindgen_ty_1__bindgen_ty_1>())).pipe_id as *const _
17886 as usize
17887 },
17888 0usize,
17889 concat!(
17890 "Offset of field: ",
17891 stringify!(es_fd_t__bindgen_ty_1__bindgen_ty_1),
17892 "::",
17893 stringify!(pipe_id)
17894 )
17895 );
17896}
17897#[test]
17898fn bindgen_test_layout_es_fd_t__bindgen_ty_1() {
17899 assert_eq!(
17900 ::std::mem::size_of::<es_fd_t__bindgen_ty_1>(),
17901 8usize,
17902 concat!("Size of: ", stringify!(es_fd_t__bindgen_ty_1))
17903 );
17904 assert_eq!(
17905 ::std::mem::align_of::<es_fd_t__bindgen_ty_1>(),
17906 8usize,
17907 concat!("Alignment of ", stringify!(es_fd_t__bindgen_ty_1))
17908 );
17909 assert_eq!(
17910 unsafe { &(*(::std::ptr::null::<es_fd_t__bindgen_ty_1>())).pipe as *const _ as usize },
17911 0usize,
17912 concat!(
17913 "Offset of field: ",
17914 stringify!(es_fd_t__bindgen_ty_1),
17915 "::",
17916 stringify!(pipe)
17917 )
17918 );
17919}
17920#[test]
17921fn bindgen_test_layout_es_fd_t() {
17922 assert_eq!(
17923 ::std::mem::size_of::<es_fd_t>(),
17924 16usize,
17925 concat!("Size of: ", stringify!(es_fd_t))
17926 );
17927 assert_eq!(
17928 ::std::mem::align_of::<es_fd_t>(),
17929 8usize,
17930 concat!("Alignment of ", stringify!(es_fd_t))
17931 );
17932 assert_eq!(
17933 unsafe { &(*(::std::ptr::null::<es_fd_t>())).fd as *const _ as usize },
17934 0usize,
17935 concat!(
17936 "Offset of field: ",
17937 stringify!(es_fd_t),
17938 "::",
17939 stringify!(fd)
17940 )
17941 );
17942 assert_eq!(
17943 unsafe { &(*(::std::ptr::null::<es_fd_t>())).fdtype as *const _ as usize },
17944 4usize,
17945 concat!(
17946 "Offset of field: ",
17947 stringify!(es_fd_t),
17948 "::",
17949 stringify!(fdtype)
17950 )
17951 );
17952}
17953#[repr(C)]
17954#[derive(Copy, Clone)]
17955pub struct es_event_exec_t {
17956 pub target: *mut es_process_t,
17957 pub args: es_token_t,
17958 pub __bindgen_anon_1: es_event_exec_t__bindgen_ty_1,
17959}
17960#[repr(C)]
17961#[derive(Copy, Clone)]
17962pub union es_event_exec_t__bindgen_ty_1 {
17963 pub reserved: [u8; 64usize],
17964 pub __bindgen_anon_1: es_event_exec_t__bindgen_ty_1__bindgen_ty_1,
17965 _bindgen_union_align: [u64; 8usize],
17966}
17967#[repr(C)]
17968#[derive(Debug, Copy, Clone)]
17969pub struct es_event_exec_t__bindgen_ty_1__bindgen_ty_1 {
17970 pub script: *mut es_file_t,
17971 pub cwd: *mut es_file_t,
17972 pub last_fd: ::std::os::raw::c_int,
17973}
17974#[test]
17975fn bindgen_test_layout_es_event_exec_t__bindgen_ty_1__bindgen_ty_1() {
17976 assert_eq!(
17977 ::std::mem::size_of::<es_event_exec_t__bindgen_ty_1__bindgen_ty_1>(),
17978 24usize,
17979 concat!(
17980 "Size of: ",
17981 stringify!(es_event_exec_t__bindgen_ty_1__bindgen_ty_1)
17982 )
17983 );
17984 assert_eq!(
17985 ::std::mem::align_of::<es_event_exec_t__bindgen_ty_1__bindgen_ty_1>(),
17986 8usize,
17987 concat!(
17988 "Alignment of ",
17989 stringify!(es_event_exec_t__bindgen_ty_1__bindgen_ty_1)
17990 )
17991 );
17992 assert_eq!(
17993 unsafe {
17994 &(*(::std::ptr::null::<es_event_exec_t__bindgen_ty_1__bindgen_ty_1>())).script
17995 as *const _ as usize
17996 },
17997 0usize,
17998 concat!(
17999 "Offset of field: ",
18000 stringify!(es_event_exec_t__bindgen_ty_1__bindgen_ty_1),
18001 "::",
18002 stringify!(script)
18003 )
18004 );
18005 assert_eq!(
18006 unsafe {
18007 &(*(::std::ptr::null::<es_event_exec_t__bindgen_ty_1__bindgen_ty_1>())).cwd as *const _
18008 as usize
18009 },
18010 8usize,
18011 concat!(
18012 "Offset of field: ",
18013 stringify!(es_event_exec_t__bindgen_ty_1__bindgen_ty_1),
18014 "::",
18015 stringify!(cwd)
18016 )
18017 );
18018 assert_eq!(
18019 unsafe {
18020 &(*(::std::ptr::null::<es_event_exec_t__bindgen_ty_1__bindgen_ty_1>())).last_fd
18021 as *const _ as usize
18022 },
18023 16usize,
18024 concat!(
18025 "Offset of field: ",
18026 stringify!(es_event_exec_t__bindgen_ty_1__bindgen_ty_1),
18027 "::",
18028 stringify!(last_fd)
18029 )
18030 );
18031}
18032#[test]
18033fn bindgen_test_layout_es_event_exec_t__bindgen_ty_1() {
18034 assert_eq!(
18035 ::std::mem::size_of::<es_event_exec_t__bindgen_ty_1>(),
18036 64usize,
18037 concat!("Size of: ", stringify!(es_event_exec_t__bindgen_ty_1))
18038 );
18039 assert_eq!(
18040 ::std::mem::align_of::<es_event_exec_t__bindgen_ty_1>(),
18041 8usize,
18042 concat!("Alignment of ", stringify!(es_event_exec_t__bindgen_ty_1))
18043 );
18044 assert_eq!(
18045 unsafe {
18046 &(*(::std::ptr::null::<es_event_exec_t__bindgen_ty_1>())).reserved as *const _ as usize
18047 },
18048 0usize,
18049 concat!(
18050 "Offset of field: ",
18051 stringify!(es_event_exec_t__bindgen_ty_1),
18052 "::",
18053 stringify!(reserved)
18054 )
18055 );
18056}
18057#[test]
18058fn bindgen_test_layout_es_event_exec_t() {
18059 assert_eq!(
18060 ::std::mem::size_of::<es_event_exec_t>(),
18061 88usize,
18062 concat!("Size of: ", stringify!(es_event_exec_t))
18063 );
18064 assert_eq!(
18065 ::std::mem::align_of::<es_event_exec_t>(),
18066 8usize,
18067 concat!("Alignment of ", stringify!(es_event_exec_t))
18068 );
18069 assert_eq!(
18070 unsafe { &(*(::std::ptr::null::<es_event_exec_t>())).target as *const _ as usize },
18071 0usize,
18072 concat!(
18073 "Offset of field: ",
18074 stringify!(es_event_exec_t),
18075 "::",
18076 stringify!(target)
18077 )
18078 );
18079 assert_eq!(
18080 unsafe { &(*(::std::ptr::null::<es_event_exec_t>())).args as *const _ as usize },
18081 8usize,
18082 concat!(
18083 "Offset of field: ",
18084 stringify!(es_event_exec_t),
18085 "::",
18086 stringify!(args)
18087 )
18088 );
18089}
18090#[repr(C)]
18091#[derive(Copy, Clone)]
18092pub struct es_event_open_t {
18093 pub fflag: i32,
18094 pub file: *mut es_file_t,
18095 pub reserved: [u8; 64usize],
18096}
18097#[test]
18098fn bindgen_test_layout_es_event_open_t() {
18099 assert_eq!(
18100 ::std::mem::size_of::<es_event_open_t>(),
18101 80usize,
18102 concat!("Size of: ", stringify!(es_event_open_t))
18103 );
18104 assert_eq!(
18105 ::std::mem::align_of::<es_event_open_t>(),
18106 8usize,
18107 concat!("Alignment of ", stringify!(es_event_open_t))
18108 );
18109 assert_eq!(
18110 unsafe { &(*(::std::ptr::null::<es_event_open_t>())).fflag as *const _ as usize },
18111 0usize,
18112 concat!(
18113 "Offset of field: ",
18114 stringify!(es_event_open_t),
18115 "::",
18116 stringify!(fflag)
18117 )
18118 );
18119 assert_eq!(
18120 unsafe { &(*(::std::ptr::null::<es_event_open_t>())).file as *const _ as usize },
18121 8usize,
18122 concat!(
18123 "Offset of field: ",
18124 stringify!(es_event_open_t),
18125 "::",
18126 stringify!(file)
18127 )
18128 );
18129 assert_eq!(
18130 unsafe { &(*(::std::ptr::null::<es_event_open_t>())).reserved as *const _ as usize },
18131 16usize,
18132 concat!(
18133 "Offset of field: ",
18134 stringify!(es_event_open_t),
18135 "::",
18136 stringify!(reserved)
18137 )
18138 );
18139}
18140#[repr(C)]
18141#[derive(Copy, Clone)]
18142pub struct es_event_kextload_t {
18143 pub identifier: es_string_token_t,
18144 pub reserved: [u8; 64usize],
18145}
18146#[test]
18147fn bindgen_test_layout_es_event_kextload_t() {
18148 assert_eq!(
18149 ::std::mem::size_of::<es_event_kextload_t>(),
18150 80usize,
18151 concat!("Size of: ", stringify!(es_event_kextload_t))
18152 );
18153 assert_eq!(
18154 ::std::mem::align_of::<es_event_kextload_t>(),
18155 8usize,
18156 concat!("Alignment of ", stringify!(es_event_kextload_t))
18157 );
18158 assert_eq!(
18159 unsafe { &(*(::std::ptr::null::<es_event_kextload_t>())).identifier as *const _ as usize },
18160 0usize,
18161 concat!(
18162 "Offset of field: ",
18163 stringify!(es_event_kextload_t),
18164 "::",
18165 stringify!(identifier)
18166 )
18167 );
18168 assert_eq!(
18169 unsafe { &(*(::std::ptr::null::<es_event_kextload_t>())).reserved as *const _ as usize },
18170 16usize,
18171 concat!(
18172 "Offset of field: ",
18173 stringify!(es_event_kextload_t),
18174 "::",
18175 stringify!(reserved)
18176 )
18177 );
18178}
18179#[repr(C)]
18180#[derive(Copy, Clone)]
18181pub struct es_event_kextunload_t {
18182 pub identifier: es_string_token_t,
18183 pub reserved: [u8; 64usize],
18184}
18185#[test]
18186fn bindgen_test_layout_es_event_kextunload_t() {
18187 assert_eq!(
18188 ::std::mem::size_of::<es_event_kextunload_t>(),
18189 80usize,
18190 concat!("Size of: ", stringify!(es_event_kextunload_t))
18191 );
18192 assert_eq!(
18193 ::std::mem::align_of::<es_event_kextunload_t>(),
18194 8usize,
18195 concat!("Alignment of ", stringify!(es_event_kextunload_t))
18196 );
18197 assert_eq!(
18198 unsafe {
18199 &(*(::std::ptr::null::<es_event_kextunload_t>())).identifier as *const _ as usize
18200 },
18201 0usize,
18202 concat!(
18203 "Offset of field: ",
18204 stringify!(es_event_kextunload_t),
18205 "::",
18206 stringify!(identifier)
18207 )
18208 );
18209 assert_eq!(
18210 unsafe { &(*(::std::ptr::null::<es_event_kextunload_t>())).reserved as *const _ as usize },
18211 16usize,
18212 concat!(
18213 "Offset of field: ",
18214 stringify!(es_event_kextunload_t),
18215 "::",
18216 stringify!(reserved)
18217 )
18218 );
18219}
18220#[repr(C)]
18221#[derive(Copy, Clone)]
18222pub struct es_event_unlink_t {
18223 pub target: *mut es_file_t,
18224 pub parent_dir: *mut es_file_t,
18225 pub reserved: [u8; 64usize],
18226}
18227#[test]
18228fn bindgen_test_layout_es_event_unlink_t() {
18229 assert_eq!(
18230 ::std::mem::size_of::<es_event_unlink_t>(),
18231 80usize,
18232 concat!("Size of: ", stringify!(es_event_unlink_t))
18233 );
18234 assert_eq!(
18235 ::std::mem::align_of::<es_event_unlink_t>(),
18236 8usize,
18237 concat!("Alignment of ", stringify!(es_event_unlink_t))
18238 );
18239 assert_eq!(
18240 unsafe { &(*(::std::ptr::null::<es_event_unlink_t>())).target as *const _ as usize },
18241 0usize,
18242 concat!(
18243 "Offset of field: ",
18244 stringify!(es_event_unlink_t),
18245 "::",
18246 stringify!(target)
18247 )
18248 );
18249 assert_eq!(
18250 unsafe { &(*(::std::ptr::null::<es_event_unlink_t>())).parent_dir as *const _ as usize },
18251 8usize,
18252 concat!(
18253 "Offset of field: ",
18254 stringify!(es_event_unlink_t),
18255 "::",
18256 stringify!(parent_dir)
18257 )
18258 );
18259 assert_eq!(
18260 unsafe { &(*(::std::ptr::null::<es_event_unlink_t>())).reserved as *const _ as usize },
18261 16usize,
18262 concat!(
18263 "Offset of field: ",
18264 stringify!(es_event_unlink_t),
18265 "::",
18266 stringify!(reserved)
18267 )
18268 );
18269}
18270#[repr(C)]
18271#[derive(Copy, Clone)]
18272pub struct es_event_mmap_t {
18273 pub protection: i32,
18274 pub max_protection: i32,
18275 pub flags: i32,
18276 pub file_pos: u64,
18277 pub source: *mut es_file_t,
18278 pub reserved: [u8; 64usize],
18279}
18280#[test]
18281fn bindgen_test_layout_es_event_mmap_t() {
18282 assert_eq!(
18283 ::std::mem::size_of::<es_event_mmap_t>(),
18284 96usize,
18285 concat!("Size of: ", stringify!(es_event_mmap_t))
18286 );
18287 assert_eq!(
18288 ::std::mem::align_of::<es_event_mmap_t>(),
18289 8usize,
18290 concat!("Alignment of ", stringify!(es_event_mmap_t))
18291 );
18292 assert_eq!(
18293 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).protection as *const _ as usize },
18294 0usize,
18295 concat!(
18296 "Offset of field: ",
18297 stringify!(es_event_mmap_t),
18298 "::",
18299 stringify!(protection)
18300 )
18301 );
18302 assert_eq!(
18303 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).max_protection as *const _ as usize },
18304 4usize,
18305 concat!(
18306 "Offset of field: ",
18307 stringify!(es_event_mmap_t),
18308 "::",
18309 stringify!(max_protection)
18310 )
18311 );
18312 assert_eq!(
18313 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).flags as *const _ as usize },
18314 8usize,
18315 concat!(
18316 "Offset of field: ",
18317 stringify!(es_event_mmap_t),
18318 "::",
18319 stringify!(flags)
18320 )
18321 );
18322 assert_eq!(
18323 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).file_pos as *const _ as usize },
18324 16usize,
18325 concat!(
18326 "Offset of field: ",
18327 stringify!(es_event_mmap_t),
18328 "::",
18329 stringify!(file_pos)
18330 )
18331 );
18332 assert_eq!(
18333 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).source as *const _ as usize },
18334 24usize,
18335 concat!(
18336 "Offset of field: ",
18337 stringify!(es_event_mmap_t),
18338 "::",
18339 stringify!(source)
18340 )
18341 );
18342 assert_eq!(
18343 unsafe { &(*(::std::ptr::null::<es_event_mmap_t>())).reserved as *const _ as usize },
18344 32usize,
18345 concat!(
18346 "Offset of field: ",
18347 stringify!(es_event_mmap_t),
18348 "::",
18349 stringify!(reserved)
18350 )
18351 );
18352}
18353#[repr(C)]
18354#[derive(Copy, Clone)]
18355pub struct es_event_link_t {
18356 pub source: *mut es_file_t,
18357 pub target_dir: *mut es_file_t,
18358 pub target_filename: es_string_token_t,
18359 pub reserved: [u8; 64usize],
18360}
18361#[test]
18362fn bindgen_test_layout_es_event_link_t() {
18363 assert_eq!(
18364 ::std::mem::size_of::<es_event_link_t>(),
18365 96usize,
18366 concat!("Size of: ", stringify!(es_event_link_t))
18367 );
18368 assert_eq!(
18369 ::std::mem::align_of::<es_event_link_t>(),
18370 8usize,
18371 concat!("Alignment of ", stringify!(es_event_link_t))
18372 );
18373 assert_eq!(
18374 unsafe { &(*(::std::ptr::null::<es_event_link_t>())).source as *const _ as usize },
18375 0usize,
18376 concat!(
18377 "Offset of field: ",
18378 stringify!(es_event_link_t),
18379 "::",
18380 stringify!(source)
18381 )
18382 );
18383 assert_eq!(
18384 unsafe { &(*(::std::ptr::null::<es_event_link_t>())).target_dir as *const _ as usize },
18385 8usize,
18386 concat!(
18387 "Offset of field: ",
18388 stringify!(es_event_link_t),
18389 "::",
18390 stringify!(target_dir)
18391 )
18392 );
18393 assert_eq!(
18394 unsafe { &(*(::std::ptr::null::<es_event_link_t>())).target_filename as *const _ as usize },
18395 16usize,
18396 concat!(
18397 "Offset of field: ",
18398 stringify!(es_event_link_t),
18399 "::",
18400 stringify!(target_filename)
18401 )
18402 );
18403 assert_eq!(
18404 unsafe { &(*(::std::ptr::null::<es_event_link_t>())).reserved as *const _ as usize },
18405 32usize,
18406 concat!(
18407 "Offset of field: ",
18408 stringify!(es_event_link_t),
18409 "::",
18410 stringify!(reserved)
18411 )
18412 );
18413}
18414#[repr(C)]
18415#[derive(Copy, Clone)]
18416pub struct es_event_mount_t {
18417 pub statfs: *mut es_statfs_t,
18418 pub reserved: [u8; 64usize],
18419}
18420#[test]
18421fn bindgen_test_layout_es_event_mount_t() {
18422 assert_eq!(
18423 ::std::mem::size_of::<es_event_mount_t>(),
18424 72usize,
18425 concat!("Size of: ", stringify!(es_event_mount_t))
18426 );
18427 assert_eq!(
18428 ::std::mem::align_of::<es_event_mount_t>(),
18429 8usize,
18430 concat!("Alignment of ", stringify!(es_event_mount_t))
18431 );
18432 assert_eq!(
18433 unsafe { &(*(::std::ptr::null::<es_event_mount_t>())).statfs as *const _ as usize },
18434 0usize,
18435 concat!(
18436 "Offset of field: ",
18437 stringify!(es_event_mount_t),
18438 "::",
18439 stringify!(statfs)
18440 )
18441 );
18442 assert_eq!(
18443 unsafe { &(*(::std::ptr::null::<es_event_mount_t>())).reserved as *const _ as usize },
18444 8usize,
18445 concat!(
18446 "Offset of field: ",
18447 stringify!(es_event_mount_t),
18448 "::",
18449 stringify!(reserved)
18450 )
18451 );
18452}
18453#[repr(C)]
18454#[derive(Copy, Clone)]
18455pub struct es_event_unmount_t {
18456 pub statfs: *mut es_statfs_t,
18457 pub reserved: [u8; 64usize],
18458}
18459#[test]
18460fn bindgen_test_layout_es_event_unmount_t() {
18461 assert_eq!(
18462 ::std::mem::size_of::<es_event_unmount_t>(),
18463 72usize,
18464 concat!("Size of: ", stringify!(es_event_unmount_t))
18465 );
18466 assert_eq!(
18467 ::std::mem::align_of::<es_event_unmount_t>(),
18468 8usize,
18469 concat!("Alignment of ", stringify!(es_event_unmount_t))
18470 );
18471 assert_eq!(
18472 unsafe { &(*(::std::ptr::null::<es_event_unmount_t>())).statfs as *const _ as usize },
18473 0usize,
18474 concat!(
18475 "Offset of field: ",
18476 stringify!(es_event_unmount_t),
18477 "::",
18478 stringify!(statfs)
18479 )
18480 );
18481 assert_eq!(
18482 unsafe { &(*(::std::ptr::null::<es_event_unmount_t>())).reserved as *const _ as usize },
18483 8usize,
18484 concat!(
18485 "Offset of field: ",
18486 stringify!(es_event_unmount_t),
18487 "::",
18488 stringify!(reserved)
18489 )
18490 );
18491}
18492#[repr(C)]
18493#[derive(Copy, Clone)]
18494pub struct es_event_remount_t {
18495 pub statfs: *mut es_statfs_t,
18496 pub reserved: [u8; 64usize],
18497}
18498#[test]
18499fn bindgen_test_layout_es_event_remount_t() {
18500 assert_eq!(
18501 ::std::mem::size_of::<es_event_remount_t>(),
18502 72usize,
18503 concat!("Size of: ", stringify!(es_event_remount_t))
18504 );
18505 assert_eq!(
18506 ::std::mem::align_of::<es_event_remount_t>(),
18507 8usize,
18508 concat!("Alignment of ", stringify!(es_event_remount_t))
18509 );
18510 assert_eq!(
18511 unsafe { &(*(::std::ptr::null::<es_event_remount_t>())).statfs as *const _ as usize },
18512 0usize,
18513 concat!(
18514 "Offset of field: ",
18515 stringify!(es_event_remount_t),
18516 "::",
18517 stringify!(statfs)
18518 )
18519 );
18520 assert_eq!(
18521 unsafe { &(*(::std::ptr::null::<es_event_remount_t>())).reserved as *const _ as usize },
18522 8usize,
18523 concat!(
18524 "Offset of field: ",
18525 stringify!(es_event_remount_t),
18526 "::",
18527 stringify!(reserved)
18528 )
18529 );
18530}
18531#[repr(C)]
18532#[derive(Copy, Clone)]
18533pub struct es_event_fork_t {
18534 pub child: *mut es_process_t,
18535 pub reserved: [u8; 64usize],
18536}
18537#[test]
18538fn bindgen_test_layout_es_event_fork_t() {
18539 assert_eq!(
18540 ::std::mem::size_of::<es_event_fork_t>(),
18541 72usize,
18542 concat!("Size of: ", stringify!(es_event_fork_t))
18543 );
18544 assert_eq!(
18545 ::std::mem::align_of::<es_event_fork_t>(),
18546 8usize,
18547 concat!("Alignment of ", stringify!(es_event_fork_t))
18548 );
18549 assert_eq!(
18550 unsafe { &(*(::std::ptr::null::<es_event_fork_t>())).child as *const _ as usize },
18551 0usize,
18552 concat!(
18553 "Offset of field: ",
18554 stringify!(es_event_fork_t),
18555 "::",
18556 stringify!(child)
18557 )
18558 );
18559 assert_eq!(
18560 unsafe { &(*(::std::ptr::null::<es_event_fork_t>())).reserved as *const _ as usize },
18561 8usize,
18562 concat!(
18563 "Offset of field: ",
18564 stringify!(es_event_fork_t),
18565 "::",
18566 stringify!(reserved)
18567 )
18568 );
18569}
18570#[repr(C)]
18571#[derive(Copy, Clone)]
18572pub struct es_event_mprotect_t {
18573 pub protection: i32,
18574 pub address: user_addr_t,
18575 pub size: user_size_t,
18576 pub reserved: [u8; 64usize],
18577}
18578#[test]
18579fn bindgen_test_layout_es_event_mprotect_t() {
18580 assert_eq!(
18581 ::std::mem::size_of::<es_event_mprotect_t>(),
18582 88usize,
18583 concat!("Size of: ", stringify!(es_event_mprotect_t))
18584 );
18585 assert_eq!(
18586 ::std::mem::align_of::<es_event_mprotect_t>(),
18587 8usize,
18588 concat!("Alignment of ", stringify!(es_event_mprotect_t))
18589 );
18590 assert_eq!(
18591 unsafe { &(*(::std::ptr::null::<es_event_mprotect_t>())).protection as *const _ as usize },
18592 0usize,
18593 concat!(
18594 "Offset of field: ",
18595 stringify!(es_event_mprotect_t),
18596 "::",
18597 stringify!(protection)
18598 )
18599 );
18600 assert_eq!(
18601 unsafe { &(*(::std::ptr::null::<es_event_mprotect_t>())).address as *const _ as usize },
18602 8usize,
18603 concat!(
18604 "Offset of field: ",
18605 stringify!(es_event_mprotect_t),
18606 "::",
18607 stringify!(address)
18608 )
18609 );
18610 assert_eq!(
18611 unsafe { &(*(::std::ptr::null::<es_event_mprotect_t>())).size as *const _ as usize },
18612 16usize,
18613 concat!(
18614 "Offset of field: ",
18615 stringify!(es_event_mprotect_t),
18616 "::",
18617 stringify!(size)
18618 )
18619 );
18620 assert_eq!(
18621 unsafe { &(*(::std::ptr::null::<es_event_mprotect_t>())).reserved as *const _ as usize },
18622 24usize,
18623 concat!(
18624 "Offset of field: ",
18625 stringify!(es_event_mprotect_t),
18626 "::",
18627 stringify!(reserved)
18628 )
18629 );
18630}
18631#[repr(C)]
18632#[derive(Copy, Clone)]
18633pub struct es_event_signal_t {
18634 pub sig: ::std::os::raw::c_int,
18635 pub target: *mut es_process_t,
18636 pub reserved: [u8; 64usize],
18637}
18638#[test]
18639fn bindgen_test_layout_es_event_signal_t() {
18640 assert_eq!(
18641 ::std::mem::size_of::<es_event_signal_t>(),
18642 80usize,
18643 concat!("Size of: ", stringify!(es_event_signal_t))
18644 );
18645 assert_eq!(
18646 ::std::mem::align_of::<es_event_signal_t>(),
18647 8usize,
18648 concat!("Alignment of ", stringify!(es_event_signal_t))
18649 );
18650 assert_eq!(
18651 unsafe { &(*(::std::ptr::null::<es_event_signal_t>())).sig as *const _ as usize },
18652 0usize,
18653 concat!(
18654 "Offset of field: ",
18655 stringify!(es_event_signal_t),
18656 "::",
18657 stringify!(sig)
18658 )
18659 );
18660 assert_eq!(
18661 unsafe { &(*(::std::ptr::null::<es_event_signal_t>())).target as *const _ as usize },
18662 8usize,
18663 concat!(
18664 "Offset of field: ",
18665 stringify!(es_event_signal_t),
18666 "::",
18667 stringify!(target)
18668 )
18669 );
18670 assert_eq!(
18671 unsafe { &(*(::std::ptr::null::<es_event_signal_t>())).reserved as *const _ as usize },
18672 16usize,
18673 concat!(
18674 "Offset of field: ",
18675 stringify!(es_event_signal_t),
18676 "::",
18677 stringify!(reserved)
18678 )
18679 );
18680}
18681pub const es_destination_type_t_ES_DESTINATION_TYPE_EXISTING_FILE: es_destination_type_t = 0;
18682pub const es_destination_type_t_ES_DESTINATION_TYPE_NEW_PATH: es_destination_type_t = 1;
18683pub type es_destination_type_t = ::std::os::raw::c_uint;
18684#[repr(C)]
18685#[derive(Copy, Clone)]
18686pub struct es_event_rename_t {
18687 pub source: *mut es_file_t,
18688 pub destination_type: es_destination_type_t,
18689 pub destination: es_event_rename_t__bindgen_ty_1,
18690 pub reserved: [u8; 64usize],
18691}
18692#[repr(C)]
18693#[derive(Copy, Clone)]
18694pub union es_event_rename_t__bindgen_ty_1 {
18695 pub existing_file: *mut es_file_t,
18696 pub new_path: es_event_rename_t__bindgen_ty_1__bindgen_ty_1,
18697 _bindgen_union_align: [u64; 3usize],
18698}
18699#[repr(C)]
18700#[derive(Debug, Copy, Clone)]
18701pub struct es_event_rename_t__bindgen_ty_1__bindgen_ty_1 {
18702 pub dir: *mut es_file_t,
18703 pub filename: es_string_token_t,
18704}
18705#[test]
18706fn bindgen_test_layout_es_event_rename_t__bindgen_ty_1__bindgen_ty_1() {
18707 assert_eq!(
18708 ::std::mem::size_of::<es_event_rename_t__bindgen_ty_1__bindgen_ty_1>(),
18709 24usize,
18710 concat!(
18711 "Size of: ",
18712 stringify!(es_event_rename_t__bindgen_ty_1__bindgen_ty_1)
18713 )
18714 );
18715 assert_eq!(
18716 ::std::mem::align_of::<es_event_rename_t__bindgen_ty_1__bindgen_ty_1>(),
18717 8usize,
18718 concat!(
18719 "Alignment of ",
18720 stringify!(es_event_rename_t__bindgen_ty_1__bindgen_ty_1)
18721 )
18722 );
18723 assert_eq!(
18724 unsafe {
18725 &(*(::std::ptr::null::<es_event_rename_t__bindgen_ty_1__bindgen_ty_1>())).dir
18726 as *const _ as usize
18727 },
18728 0usize,
18729 concat!(
18730 "Offset of field: ",
18731 stringify!(es_event_rename_t__bindgen_ty_1__bindgen_ty_1),
18732 "::",
18733 stringify!(dir)
18734 )
18735 );
18736 assert_eq!(
18737 unsafe {
18738 &(*(::std::ptr::null::<es_event_rename_t__bindgen_ty_1__bindgen_ty_1>())).filename
18739 as *const _ as usize
18740 },
18741 8usize,
18742 concat!(
18743 "Offset of field: ",
18744 stringify!(es_event_rename_t__bindgen_ty_1__bindgen_ty_1),
18745 "::",
18746 stringify!(filename)
18747 )
18748 );
18749}
18750#[test]
18751fn bindgen_test_layout_es_event_rename_t__bindgen_ty_1() {
18752 assert_eq!(
18753 ::std::mem::size_of::<es_event_rename_t__bindgen_ty_1>(),
18754 24usize,
18755 concat!("Size of: ", stringify!(es_event_rename_t__bindgen_ty_1))
18756 );
18757 assert_eq!(
18758 ::std::mem::align_of::<es_event_rename_t__bindgen_ty_1>(),
18759 8usize,
18760 concat!("Alignment of ", stringify!(es_event_rename_t__bindgen_ty_1))
18761 );
18762 assert_eq!(
18763 unsafe {
18764 &(*(::std::ptr::null::<es_event_rename_t__bindgen_ty_1>())).existing_file as *const _
18765 as usize
18766 },
18767 0usize,
18768 concat!(
18769 "Offset of field: ",
18770 stringify!(es_event_rename_t__bindgen_ty_1),
18771 "::",
18772 stringify!(existing_file)
18773 )
18774 );
18775 assert_eq!(
18776 unsafe {
18777 &(*(::std::ptr::null::<es_event_rename_t__bindgen_ty_1>())).new_path as *const _
18778 as usize
18779 },
18780 0usize,
18781 concat!(
18782 "Offset of field: ",
18783 stringify!(es_event_rename_t__bindgen_ty_1),
18784 "::",
18785 stringify!(new_path)
18786 )
18787 );
18788}
18789#[test]
18790fn bindgen_test_layout_es_event_rename_t() {
18791 assert_eq!(
18792 ::std::mem::size_of::<es_event_rename_t>(),
18793 104usize,
18794 concat!("Size of: ", stringify!(es_event_rename_t))
18795 );
18796 assert_eq!(
18797 ::std::mem::align_of::<es_event_rename_t>(),
18798 8usize,
18799 concat!("Alignment of ", stringify!(es_event_rename_t))
18800 );
18801 assert_eq!(
18802 unsafe { &(*(::std::ptr::null::<es_event_rename_t>())).source as *const _ as usize },
18803 0usize,
18804 concat!(
18805 "Offset of field: ",
18806 stringify!(es_event_rename_t),
18807 "::",
18808 stringify!(source)
18809 )
18810 );
18811 assert_eq!(
18812 unsafe {
18813 &(*(::std::ptr::null::<es_event_rename_t>())).destination_type as *const _ as usize
18814 },
18815 8usize,
18816 concat!(
18817 "Offset of field: ",
18818 stringify!(es_event_rename_t),
18819 "::",
18820 stringify!(destination_type)
18821 )
18822 );
18823 assert_eq!(
18824 unsafe { &(*(::std::ptr::null::<es_event_rename_t>())).destination as *const _ as usize },
18825 16usize,
18826 concat!(
18827 "Offset of field: ",
18828 stringify!(es_event_rename_t),
18829 "::",
18830 stringify!(destination)
18831 )
18832 );
18833 assert_eq!(
18834 unsafe { &(*(::std::ptr::null::<es_event_rename_t>())).reserved as *const _ as usize },
18835 40usize,
18836 concat!(
18837 "Offset of field: ",
18838 stringify!(es_event_rename_t),
18839 "::",
18840 stringify!(reserved)
18841 )
18842 );
18843}
18844#[repr(C)]
18845#[derive(Copy, Clone)]
18846pub struct es_event_setextattr_t {
18847 pub target: *mut es_file_t,
18848 pub extattr: es_string_token_t,
18849 pub reserved: [u8; 64usize],
18850}
18851#[test]
18852fn bindgen_test_layout_es_event_setextattr_t() {
18853 assert_eq!(
18854 ::std::mem::size_of::<es_event_setextattr_t>(),
18855 88usize,
18856 concat!("Size of: ", stringify!(es_event_setextattr_t))
18857 );
18858 assert_eq!(
18859 ::std::mem::align_of::<es_event_setextattr_t>(),
18860 8usize,
18861 concat!("Alignment of ", stringify!(es_event_setextattr_t))
18862 );
18863 assert_eq!(
18864 unsafe { &(*(::std::ptr::null::<es_event_setextattr_t>())).target as *const _ as usize },
18865 0usize,
18866 concat!(
18867 "Offset of field: ",
18868 stringify!(es_event_setextattr_t),
18869 "::",
18870 stringify!(target)
18871 )
18872 );
18873 assert_eq!(
18874 unsafe { &(*(::std::ptr::null::<es_event_setextattr_t>())).extattr as *const _ as usize },
18875 8usize,
18876 concat!(
18877 "Offset of field: ",
18878 stringify!(es_event_setextattr_t),
18879 "::",
18880 stringify!(extattr)
18881 )
18882 );
18883 assert_eq!(
18884 unsafe { &(*(::std::ptr::null::<es_event_setextattr_t>())).reserved as *const _ as usize },
18885 24usize,
18886 concat!(
18887 "Offset of field: ",
18888 stringify!(es_event_setextattr_t),
18889 "::",
18890 stringify!(reserved)
18891 )
18892 );
18893}
18894#[repr(C)]
18895#[derive(Copy, Clone)]
18896pub struct es_event_getextattr_t {
18897 pub target: *mut es_file_t,
18898 pub extattr: es_string_token_t,
18899 pub reserved: [u8; 64usize],
18900}
18901#[test]
18902fn bindgen_test_layout_es_event_getextattr_t() {
18903 assert_eq!(
18904 ::std::mem::size_of::<es_event_getextattr_t>(),
18905 88usize,
18906 concat!("Size of: ", stringify!(es_event_getextattr_t))
18907 );
18908 assert_eq!(
18909 ::std::mem::align_of::<es_event_getextattr_t>(),
18910 8usize,
18911 concat!("Alignment of ", stringify!(es_event_getextattr_t))
18912 );
18913 assert_eq!(
18914 unsafe { &(*(::std::ptr::null::<es_event_getextattr_t>())).target as *const _ as usize },
18915 0usize,
18916 concat!(
18917 "Offset of field: ",
18918 stringify!(es_event_getextattr_t),
18919 "::",
18920 stringify!(target)
18921 )
18922 );
18923 assert_eq!(
18924 unsafe { &(*(::std::ptr::null::<es_event_getextattr_t>())).extattr as *const _ as usize },
18925 8usize,
18926 concat!(
18927 "Offset of field: ",
18928 stringify!(es_event_getextattr_t),
18929 "::",
18930 stringify!(extattr)
18931 )
18932 );
18933 assert_eq!(
18934 unsafe { &(*(::std::ptr::null::<es_event_getextattr_t>())).reserved as *const _ as usize },
18935 24usize,
18936 concat!(
18937 "Offset of field: ",
18938 stringify!(es_event_getextattr_t),
18939 "::",
18940 stringify!(reserved)
18941 )
18942 );
18943}
18944#[repr(C)]
18945#[derive(Copy, Clone)]
18946pub struct es_event_deleteextattr_t {
18947 pub target: *mut es_file_t,
18948 pub extattr: es_string_token_t,
18949 pub reserved: [u8; 64usize],
18950}
18951#[test]
18952fn bindgen_test_layout_es_event_deleteextattr_t() {
18953 assert_eq!(
18954 ::std::mem::size_of::<es_event_deleteextattr_t>(),
18955 88usize,
18956 concat!("Size of: ", stringify!(es_event_deleteextattr_t))
18957 );
18958 assert_eq!(
18959 ::std::mem::align_of::<es_event_deleteextattr_t>(),
18960 8usize,
18961 concat!("Alignment of ", stringify!(es_event_deleteextattr_t))
18962 );
18963 assert_eq!(
18964 unsafe { &(*(::std::ptr::null::<es_event_deleteextattr_t>())).target as *const _ as usize },
18965 0usize,
18966 concat!(
18967 "Offset of field: ",
18968 stringify!(es_event_deleteextattr_t),
18969 "::",
18970 stringify!(target)
18971 )
18972 );
18973 assert_eq!(
18974 unsafe {
18975 &(*(::std::ptr::null::<es_event_deleteextattr_t>())).extattr as *const _ as usize
18976 },
18977 8usize,
18978 concat!(
18979 "Offset of field: ",
18980 stringify!(es_event_deleteextattr_t),
18981 "::",
18982 stringify!(extattr)
18983 )
18984 );
18985 assert_eq!(
18986 unsafe {
18987 &(*(::std::ptr::null::<es_event_deleteextattr_t>())).reserved as *const _ as usize
18988 },
18989 24usize,
18990 concat!(
18991 "Offset of field: ",
18992 stringify!(es_event_deleteextattr_t),
18993 "::",
18994 stringify!(reserved)
18995 )
18996 );
18997}
18998#[repr(C)]
18999#[derive(Copy, Clone)]
19000pub struct es_event_setmode_t {
19001 pub mode: mode_t,
19002 pub target: *mut es_file_t,
19003 pub reserved: [u8; 64usize],
19004}
19005#[test]
19006fn bindgen_test_layout_es_event_setmode_t() {
19007 assert_eq!(
19008 ::std::mem::size_of::<es_event_setmode_t>(),
19009 80usize,
19010 concat!("Size of: ", stringify!(es_event_setmode_t))
19011 );
19012 assert_eq!(
19013 ::std::mem::align_of::<es_event_setmode_t>(),
19014 8usize,
19015 concat!("Alignment of ", stringify!(es_event_setmode_t))
19016 );
19017 assert_eq!(
19018 unsafe { &(*(::std::ptr::null::<es_event_setmode_t>())).mode as *const _ as usize },
19019 0usize,
19020 concat!(
19021 "Offset of field: ",
19022 stringify!(es_event_setmode_t),
19023 "::",
19024 stringify!(mode)
19025 )
19026 );
19027 assert_eq!(
19028 unsafe { &(*(::std::ptr::null::<es_event_setmode_t>())).target as *const _ as usize },
19029 8usize,
19030 concat!(
19031 "Offset of field: ",
19032 stringify!(es_event_setmode_t),
19033 "::",
19034 stringify!(target)
19035 )
19036 );
19037 assert_eq!(
19038 unsafe { &(*(::std::ptr::null::<es_event_setmode_t>())).reserved as *const _ as usize },
19039 16usize,
19040 concat!(
19041 "Offset of field: ",
19042 stringify!(es_event_setmode_t),
19043 "::",
19044 stringify!(reserved)
19045 )
19046 );
19047}
19048#[repr(C)]
19049#[derive(Copy, Clone)]
19050pub struct es_event_setflags_t {
19051 pub flags: u32,
19052 pub target: *mut es_file_t,
19053 pub reserved: [u8; 64usize],
19054}
19055#[test]
19056fn bindgen_test_layout_es_event_setflags_t() {
19057 assert_eq!(
19058 ::std::mem::size_of::<es_event_setflags_t>(),
19059 80usize,
19060 concat!("Size of: ", stringify!(es_event_setflags_t))
19061 );
19062 assert_eq!(
19063 ::std::mem::align_of::<es_event_setflags_t>(),
19064 8usize,
19065 concat!("Alignment of ", stringify!(es_event_setflags_t))
19066 );
19067 assert_eq!(
19068 unsafe { &(*(::std::ptr::null::<es_event_setflags_t>())).flags as *const _ as usize },
19069 0usize,
19070 concat!(
19071 "Offset of field: ",
19072 stringify!(es_event_setflags_t),
19073 "::",
19074 stringify!(flags)
19075 )
19076 );
19077 assert_eq!(
19078 unsafe { &(*(::std::ptr::null::<es_event_setflags_t>())).target as *const _ as usize },
19079 8usize,
19080 concat!(
19081 "Offset of field: ",
19082 stringify!(es_event_setflags_t),
19083 "::",
19084 stringify!(target)
19085 )
19086 );
19087 assert_eq!(
19088 unsafe { &(*(::std::ptr::null::<es_event_setflags_t>())).reserved as *const _ as usize },
19089 16usize,
19090 concat!(
19091 "Offset of field: ",
19092 stringify!(es_event_setflags_t),
19093 "::",
19094 stringify!(reserved)
19095 )
19096 );
19097}
19098#[repr(C)]
19099#[derive(Copy, Clone)]
19100pub struct es_event_setowner_t {
19101 pub uid: uid_t,
19102 pub gid: gid_t,
19103 pub target: *mut es_file_t,
19104 pub reserved: [u8; 64usize],
19105}
19106#[test]
19107fn bindgen_test_layout_es_event_setowner_t() {
19108 assert_eq!(
19109 ::std::mem::size_of::<es_event_setowner_t>(),
19110 80usize,
19111 concat!("Size of: ", stringify!(es_event_setowner_t))
19112 );
19113 assert_eq!(
19114 ::std::mem::align_of::<es_event_setowner_t>(),
19115 8usize,
19116 concat!("Alignment of ", stringify!(es_event_setowner_t))
19117 );
19118 assert_eq!(
19119 unsafe { &(*(::std::ptr::null::<es_event_setowner_t>())).uid as *const _ as usize },
19120 0usize,
19121 concat!(
19122 "Offset of field: ",
19123 stringify!(es_event_setowner_t),
19124 "::",
19125 stringify!(uid)
19126 )
19127 );
19128 assert_eq!(
19129 unsafe { &(*(::std::ptr::null::<es_event_setowner_t>())).gid as *const _ as usize },
19130 4usize,
19131 concat!(
19132 "Offset of field: ",
19133 stringify!(es_event_setowner_t),
19134 "::",
19135 stringify!(gid)
19136 )
19137 );
19138 assert_eq!(
19139 unsafe { &(*(::std::ptr::null::<es_event_setowner_t>())).target as *const _ as usize },
19140 8usize,
19141 concat!(
19142 "Offset of field: ",
19143 stringify!(es_event_setowner_t),
19144 "::",
19145 stringify!(target)
19146 )
19147 );
19148 assert_eq!(
19149 unsafe { &(*(::std::ptr::null::<es_event_setowner_t>())).reserved as *const _ as usize },
19150 16usize,
19151 concat!(
19152 "Offset of field: ",
19153 stringify!(es_event_setowner_t),
19154 "::",
19155 stringify!(reserved)
19156 )
19157 );
19158}
19159#[repr(C)]
19160#[derive(Copy, Clone)]
19161pub struct es_event_close_t {
19162 pub modified: bool,
19163 pub target: *mut es_file_t,
19164 pub reserved: [u8; 64usize],
19165}
19166#[test]
19167fn bindgen_test_layout_es_event_close_t() {
19168 assert_eq!(
19169 ::std::mem::size_of::<es_event_close_t>(),
19170 80usize,
19171 concat!("Size of: ", stringify!(es_event_close_t))
19172 );
19173 assert_eq!(
19174 ::std::mem::align_of::<es_event_close_t>(),
19175 8usize,
19176 concat!("Alignment of ", stringify!(es_event_close_t))
19177 );
19178 assert_eq!(
19179 unsafe { &(*(::std::ptr::null::<es_event_close_t>())).modified as *const _ as usize },
19180 0usize,
19181 concat!(
19182 "Offset of field: ",
19183 stringify!(es_event_close_t),
19184 "::",
19185 stringify!(modified)
19186 )
19187 );
19188 assert_eq!(
19189 unsafe { &(*(::std::ptr::null::<es_event_close_t>())).target as *const _ as usize },
19190 8usize,
19191 concat!(
19192 "Offset of field: ",
19193 stringify!(es_event_close_t),
19194 "::",
19195 stringify!(target)
19196 )
19197 );
19198 assert_eq!(
19199 unsafe { &(*(::std::ptr::null::<es_event_close_t>())).reserved as *const _ as usize },
19200 16usize,
19201 concat!(
19202 "Offset of field: ",
19203 stringify!(es_event_close_t),
19204 "::",
19205 stringify!(reserved)
19206 )
19207 );
19208}
19209#[repr(C)]
19210#[derive(Copy, Clone)]
19211pub struct es_event_create_t {
19212 pub destination_type: es_destination_type_t,
19213 pub destination: es_event_create_t__bindgen_ty_1,
19214 pub reserved2: [u8; 16usize],
19215 pub __bindgen_anon_1: es_event_create_t__bindgen_ty_2,
19216}
19217#[repr(C)]
19218#[derive(Copy, Clone)]
19219pub union es_event_create_t__bindgen_ty_1 {
19220 pub existing_file: *mut es_file_t,
19221 pub new_path: es_event_create_t__bindgen_ty_1__bindgen_ty_1,
19222 _bindgen_union_align: [u64; 4usize],
19223}
19224#[repr(C)]
19225#[derive(Debug, Copy, Clone)]
19226pub struct es_event_create_t__bindgen_ty_1__bindgen_ty_1 {
19227 pub dir: *mut es_file_t,
19228 pub filename: es_string_token_t,
19229 pub mode: mode_t,
19230}
19231#[test]
19232fn bindgen_test_layout_es_event_create_t__bindgen_ty_1__bindgen_ty_1() {
19233 assert_eq!(
19234 ::std::mem::size_of::<es_event_create_t__bindgen_ty_1__bindgen_ty_1>(),
19235 32usize,
19236 concat!(
19237 "Size of: ",
19238 stringify!(es_event_create_t__bindgen_ty_1__bindgen_ty_1)
19239 )
19240 );
19241 assert_eq!(
19242 ::std::mem::align_of::<es_event_create_t__bindgen_ty_1__bindgen_ty_1>(),
19243 8usize,
19244 concat!(
19245 "Alignment of ",
19246 stringify!(es_event_create_t__bindgen_ty_1__bindgen_ty_1)
19247 )
19248 );
19249 assert_eq!(
19250 unsafe {
19251 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_1__bindgen_ty_1>())).dir
19252 as *const _ as usize
19253 },
19254 0usize,
19255 concat!(
19256 "Offset of field: ",
19257 stringify!(es_event_create_t__bindgen_ty_1__bindgen_ty_1),
19258 "::",
19259 stringify!(dir)
19260 )
19261 );
19262 assert_eq!(
19263 unsafe {
19264 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_1__bindgen_ty_1>())).filename
19265 as *const _ as usize
19266 },
19267 8usize,
19268 concat!(
19269 "Offset of field: ",
19270 stringify!(es_event_create_t__bindgen_ty_1__bindgen_ty_1),
19271 "::",
19272 stringify!(filename)
19273 )
19274 );
19275 assert_eq!(
19276 unsafe {
19277 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_1__bindgen_ty_1>())).mode
19278 as *const _ as usize
19279 },
19280 24usize,
19281 concat!(
19282 "Offset of field: ",
19283 stringify!(es_event_create_t__bindgen_ty_1__bindgen_ty_1),
19284 "::",
19285 stringify!(mode)
19286 )
19287 );
19288}
19289#[test]
19290fn bindgen_test_layout_es_event_create_t__bindgen_ty_1() {
19291 assert_eq!(
19292 ::std::mem::size_of::<es_event_create_t__bindgen_ty_1>(),
19293 32usize,
19294 concat!("Size of: ", stringify!(es_event_create_t__bindgen_ty_1))
19295 );
19296 assert_eq!(
19297 ::std::mem::align_of::<es_event_create_t__bindgen_ty_1>(),
19298 8usize,
19299 concat!("Alignment of ", stringify!(es_event_create_t__bindgen_ty_1))
19300 );
19301 assert_eq!(
19302 unsafe {
19303 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_1>())).existing_file as *const _
19304 as usize
19305 },
19306 0usize,
19307 concat!(
19308 "Offset of field: ",
19309 stringify!(es_event_create_t__bindgen_ty_1),
19310 "::",
19311 stringify!(existing_file)
19312 )
19313 );
19314 assert_eq!(
19315 unsafe {
19316 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_1>())).new_path as *const _
19317 as usize
19318 },
19319 0usize,
19320 concat!(
19321 "Offset of field: ",
19322 stringify!(es_event_create_t__bindgen_ty_1),
19323 "::",
19324 stringify!(new_path)
19325 )
19326 );
19327}
19328#[repr(C)]
19329#[derive(Copy, Clone)]
19330pub union es_event_create_t__bindgen_ty_2 {
19331 pub reserved: [u8; 48usize],
19332 pub __bindgen_anon_1: es_event_create_t__bindgen_ty_2__bindgen_ty_1,
19333 _bindgen_union_align: [u64; 6usize],
19334}
19335#[repr(C)]
19336#[derive(Debug, Copy, Clone)]
19337pub struct es_event_create_t__bindgen_ty_2__bindgen_ty_1 {
19338 pub acl: acl_t,
19339}
19340#[test]
19341fn bindgen_test_layout_es_event_create_t__bindgen_ty_2__bindgen_ty_1() {
19342 assert_eq!(
19343 ::std::mem::size_of::<es_event_create_t__bindgen_ty_2__bindgen_ty_1>(),
19344 8usize,
19345 concat!(
19346 "Size of: ",
19347 stringify!(es_event_create_t__bindgen_ty_2__bindgen_ty_1)
19348 )
19349 );
19350 assert_eq!(
19351 ::std::mem::align_of::<es_event_create_t__bindgen_ty_2__bindgen_ty_1>(),
19352 8usize,
19353 concat!(
19354 "Alignment of ",
19355 stringify!(es_event_create_t__bindgen_ty_2__bindgen_ty_1)
19356 )
19357 );
19358 assert_eq!(
19359 unsafe {
19360 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_2__bindgen_ty_1>())).acl
19361 as *const _ as usize
19362 },
19363 0usize,
19364 concat!(
19365 "Offset of field: ",
19366 stringify!(es_event_create_t__bindgen_ty_2__bindgen_ty_1),
19367 "::",
19368 stringify!(acl)
19369 )
19370 );
19371}
19372#[test]
19373fn bindgen_test_layout_es_event_create_t__bindgen_ty_2() {
19374 assert_eq!(
19375 ::std::mem::size_of::<es_event_create_t__bindgen_ty_2>(),
19376 48usize,
19377 concat!("Size of: ", stringify!(es_event_create_t__bindgen_ty_2))
19378 );
19379 assert_eq!(
19380 ::std::mem::align_of::<es_event_create_t__bindgen_ty_2>(),
19381 8usize,
19382 concat!("Alignment of ", stringify!(es_event_create_t__bindgen_ty_2))
19383 );
19384 assert_eq!(
19385 unsafe {
19386 &(*(::std::ptr::null::<es_event_create_t__bindgen_ty_2>())).reserved as *const _
19387 as usize
19388 },
19389 0usize,
19390 concat!(
19391 "Offset of field: ",
19392 stringify!(es_event_create_t__bindgen_ty_2),
19393 "::",
19394 stringify!(reserved)
19395 )
19396 );
19397}
19398#[test]
19399fn bindgen_test_layout_es_event_create_t() {
19400 assert_eq!(
19401 ::std::mem::size_of::<es_event_create_t>(),
19402 104usize,
19403 concat!("Size of: ", stringify!(es_event_create_t))
19404 );
19405 assert_eq!(
19406 ::std::mem::align_of::<es_event_create_t>(),
19407 8usize,
19408 concat!("Alignment of ", stringify!(es_event_create_t))
19409 );
19410 assert_eq!(
19411 unsafe {
19412 &(*(::std::ptr::null::<es_event_create_t>())).destination_type as *const _ as usize
19413 },
19414 0usize,
19415 concat!(
19416 "Offset of field: ",
19417 stringify!(es_event_create_t),
19418 "::",
19419 stringify!(destination_type)
19420 )
19421 );
19422 assert_eq!(
19423 unsafe { &(*(::std::ptr::null::<es_event_create_t>())).destination as *const _ as usize },
19424 8usize,
19425 concat!(
19426 "Offset of field: ",
19427 stringify!(es_event_create_t),
19428 "::",
19429 stringify!(destination)
19430 )
19431 );
19432 assert_eq!(
19433 unsafe { &(*(::std::ptr::null::<es_event_create_t>())).reserved2 as *const _ as usize },
19434 40usize,
19435 concat!(
19436 "Offset of field: ",
19437 stringify!(es_event_create_t),
19438 "::",
19439 stringify!(reserved2)
19440 )
19441 );
19442}
19443#[repr(C)]
19444#[derive(Copy, Clone)]
19445pub struct es_event_exit_t {
19446 pub stat: ::std::os::raw::c_int,
19447 pub reserved: [u8; 64usize],
19448}
19449#[test]
19450fn bindgen_test_layout_es_event_exit_t() {
19451 assert_eq!(
19452 ::std::mem::size_of::<es_event_exit_t>(),
19453 68usize,
19454 concat!("Size of: ", stringify!(es_event_exit_t))
19455 );
19456 assert_eq!(
19457 ::std::mem::align_of::<es_event_exit_t>(),
19458 4usize,
19459 concat!("Alignment of ", stringify!(es_event_exit_t))
19460 );
19461 assert_eq!(
19462 unsafe { &(*(::std::ptr::null::<es_event_exit_t>())).stat as *const _ as usize },
19463 0usize,
19464 concat!(
19465 "Offset of field: ",
19466 stringify!(es_event_exit_t),
19467 "::",
19468 stringify!(stat)
19469 )
19470 );
19471 assert_eq!(
19472 unsafe { &(*(::std::ptr::null::<es_event_exit_t>())).reserved as *const _ as usize },
19473 4usize,
19474 concat!(
19475 "Offset of field: ",
19476 stringify!(es_event_exit_t),
19477 "::",
19478 stringify!(reserved)
19479 )
19480 );
19481}
19482#[repr(C)]
19483#[derive(Copy, Clone)]
19484pub struct es_event_exchangedata_t {
19485 pub file1: *mut es_file_t,
19486 pub file2: *mut es_file_t,
19487 pub reserved: [u8; 64usize],
19488}
19489#[test]
19490fn bindgen_test_layout_es_event_exchangedata_t() {
19491 assert_eq!(
19492 ::std::mem::size_of::<es_event_exchangedata_t>(),
19493 80usize,
19494 concat!("Size of: ", stringify!(es_event_exchangedata_t))
19495 );
19496 assert_eq!(
19497 ::std::mem::align_of::<es_event_exchangedata_t>(),
19498 8usize,
19499 concat!("Alignment of ", stringify!(es_event_exchangedata_t))
19500 );
19501 assert_eq!(
19502 unsafe { &(*(::std::ptr::null::<es_event_exchangedata_t>())).file1 as *const _ as usize },
19503 0usize,
19504 concat!(
19505 "Offset of field: ",
19506 stringify!(es_event_exchangedata_t),
19507 "::",
19508 stringify!(file1)
19509 )
19510 );
19511 assert_eq!(
19512 unsafe { &(*(::std::ptr::null::<es_event_exchangedata_t>())).file2 as *const _ as usize },
19513 8usize,
19514 concat!(
19515 "Offset of field: ",
19516 stringify!(es_event_exchangedata_t),
19517 "::",
19518 stringify!(file2)
19519 )
19520 );
19521 assert_eq!(
19522 unsafe {
19523 &(*(::std::ptr::null::<es_event_exchangedata_t>())).reserved as *const _ as usize
19524 },
19525 16usize,
19526 concat!(
19527 "Offset of field: ",
19528 stringify!(es_event_exchangedata_t),
19529 "::",
19530 stringify!(reserved)
19531 )
19532 );
19533}
19534#[repr(C)]
19535#[derive(Copy, Clone)]
19536pub struct es_event_write_t {
19537 pub target: *mut es_file_t,
19538 pub reserved: [u8; 64usize],
19539}
19540#[test]
19541fn bindgen_test_layout_es_event_write_t() {
19542 assert_eq!(
19543 ::std::mem::size_of::<es_event_write_t>(),
19544 72usize,
19545 concat!("Size of: ", stringify!(es_event_write_t))
19546 );
19547 assert_eq!(
19548 ::std::mem::align_of::<es_event_write_t>(),
19549 8usize,
19550 concat!("Alignment of ", stringify!(es_event_write_t))
19551 );
19552 assert_eq!(
19553 unsafe { &(*(::std::ptr::null::<es_event_write_t>())).target as *const _ as usize },
19554 0usize,
19555 concat!(
19556 "Offset of field: ",
19557 stringify!(es_event_write_t),
19558 "::",
19559 stringify!(target)
19560 )
19561 );
19562 assert_eq!(
19563 unsafe { &(*(::std::ptr::null::<es_event_write_t>())).reserved as *const _ as usize },
19564 8usize,
19565 concat!(
19566 "Offset of field: ",
19567 stringify!(es_event_write_t),
19568 "::",
19569 stringify!(reserved)
19570 )
19571 );
19572}
19573#[repr(C)]
19574#[derive(Copy, Clone)]
19575pub struct es_event_truncate_t {
19576 pub target: *mut es_file_t,
19577 pub reserved: [u8; 64usize],
19578}
19579#[test]
19580fn bindgen_test_layout_es_event_truncate_t() {
19581 assert_eq!(
19582 ::std::mem::size_of::<es_event_truncate_t>(),
19583 72usize,
19584 concat!("Size of: ", stringify!(es_event_truncate_t))
19585 );
19586 assert_eq!(
19587 ::std::mem::align_of::<es_event_truncate_t>(),
19588 8usize,
19589 concat!("Alignment of ", stringify!(es_event_truncate_t))
19590 );
19591 assert_eq!(
19592 unsafe { &(*(::std::ptr::null::<es_event_truncate_t>())).target as *const _ as usize },
19593 0usize,
19594 concat!(
19595 "Offset of field: ",
19596 stringify!(es_event_truncate_t),
19597 "::",
19598 stringify!(target)
19599 )
19600 );
19601 assert_eq!(
19602 unsafe { &(*(::std::ptr::null::<es_event_truncate_t>())).reserved as *const _ as usize },
19603 8usize,
19604 concat!(
19605 "Offset of field: ",
19606 stringify!(es_event_truncate_t),
19607 "::",
19608 stringify!(reserved)
19609 )
19610 );
19611}
19612#[repr(C)]
19613#[derive(Copy, Clone)]
19614pub struct es_event_chdir_t {
19615 pub target: *mut es_file_t,
19616 pub reserved: [u8; 64usize],
19617}
19618#[test]
19619fn bindgen_test_layout_es_event_chdir_t() {
19620 assert_eq!(
19621 ::std::mem::size_of::<es_event_chdir_t>(),
19622 72usize,
19623 concat!("Size of: ", stringify!(es_event_chdir_t))
19624 );
19625 assert_eq!(
19626 ::std::mem::align_of::<es_event_chdir_t>(),
19627 8usize,
19628 concat!("Alignment of ", stringify!(es_event_chdir_t))
19629 );
19630 assert_eq!(
19631 unsafe { &(*(::std::ptr::null::<es_event_chdir_t>())).target as *const _ as usize },
19632 0usize,
19633 concat!(
19634 "Offset of field: ",
19635 stringify!(es_event_chdir_t),
19636 "::",
19637 stringify!(target)
19638 )
19639 );
19640 assert_eq!(
19641 unsafe { &(*(::std::ptr::null::<es_event_chdir_t>())).reserved as *const _ as usize },
19642 8usize,
19643 concat!(
19644 "Offset of field: ",
19645 stringify!(es_event_chdir_t),
19646 "::",
19647 stringify!(reserved)
19648 )
19649 );
19650}
19651#[repr(C)]
19652#[derive(Copy, Clone)]
19653pub struct es_event_stat_t {
19654 pub target: *mut es_file_t,
19655 pub reserved: [u8; 64usize],
19656}
19657#[test]
19658fn bindgen_test_layout_es_event_stat_t() {
19659 assert_eq!(
19660 ::std::mem::size_of::<es_event_stat_t>(),
19661 72usize,
19662 concat!("Size of: ", stringify!(es_event_stat_t))
19663 );
19664 assert_eq!(
19665 ::std::mem::align_of::<es_event_stat_t>(),
19666 8usize,
19667 concat!("Alignment of ", stringify!(es_event_stat_t))
19668 );
19669 assert_eq!(
19670 unsafe { &(*(::std::ptr::null::<es_event_stat_t>())).target as *const _ as usize },
19671 0usize,
19672 concat!(
19673 "Offset of field: ",
19674 stringify!(es_event_stat_t),
19675 "::",
19676 stringify!(target)
19677 )
19678 );
19679 assert_eq!(
19680 unsafe { &(*(::std::ptr::null::<es_event_stat_t>())).reserved as *const _ as usize },
19681 8usize,
19682 concat!(
19683 "Offset of field: ",
19684 stringify!(es_event_stat_t),
19685 "::",
19686 stringify!(reserved)
19687 )
19688 );
19689}
19690#[repr(C)]
19691#[derive(Copy, Clone)]
19692pub struct es_event_chroot_t {
19693 pub target: *mut es_file_t,
19694 pub reserved: [u8; 64usize],
19695}
19696#[test]
19697fn bindgen_test_layout_es_event_chroot_t() {
19698 assert_eq!(
19699 ::std::mem::size_of::<es_event_chroot_t>(),
19700 72usize,
19701 concat!("Size of: ", stringify!(es_event_chroot_t))
19702 );
19703 assert_eq!(
19704 ::std::mem::align_of::<es_event_chroot_t>(),
19705 8usize,
19706 concat!("Alignment of ", stringify!(es_event_chroot_t))
19707 );
19708 assert_eq!(
19709 unsafe { &(*(::std::ptr::null::<es_event_chroot_t>())).target as *const _ as usize },
19710 0usize,
19711 concat!(
19712 "Offset of field: ",
19713 stringify!(es_event_chroot_t),
19714 "::",
19715 stringify!(target)
19716 )
19717 );
19718 assert_eq!(
19719 unsafe { &(*(::std::ptr::null::<es_event_chroot_t>())).reserved as *const _ as usize },
19720 8usize,
19721 concat!(
19722 "Offset of field: ",
19723 stringify!(es_event_chroot_t),
19724 "::",
19725 stringify!(reserved)
19726 )
19727 );
19728}
19729#[repr(C)]
19730#[derive(Copy, Clone)]
19731pub struct es_event_listextattr_t {
19732 pub target: *mut es_file_t,
19733 pub reserved: [u8; 64usize],
19734}
19735#[test]
19736fn bindgen_test_layout_es_event_listextattr_t() {
19737 assert_eq!(
19738 ::std::mem::size_of::<es_event_listextattr_t>(),
19739 72usize,
19740 concat!("Size of: ", stringify!(es_event_listextattr_t))
19741 );
19742 assert_eq!(
19743 ::std::mem::align_of::<es_event_listextattr_t>(),
19744 8usize,
19745 concat!("Alignment of ", stringify!(es_event_listextattr_t))
19746 );
19747 assert_eq!(
19748 unsafe { &(*(::std::ptr::null::<es_event_listextattr_t>())).target as *const _ as usize },
19749 0usize,
19750 concat!(
19751 "Offset of field: ",
19752 stringify!(es_event_listextattr_t),
19753 "::",
19754 stringify!(target)
19755 )
19756 );
19757 assert_eq!(
19758 unsafe { &(*(::std::ptr::null::<es_event_listextattr_t>())).reserved as *const _ as usize },
19759 8usize,
19760 concat!(
19761 "Offset of field: ",
19762 stringify!(es_event_listextattr_t),
19763 "::",
19764 stringify!(reserved)
19765 )
19766 );
19767}
19768#[repr(C)]
19769#[derive(Copy, Clone)]
19770pub struct es_event_iokit_open_t {
19771 pub user_client_type: u32,
19772 pub user_client_class: es_string_token_t,
19773 pub reserved: [u8; 64usize],
19774}
19775#[test]
19776fn bindgen_test_layout_es_event_iokit_open_t() {
19777 assert_eq!(
19778 ::std::mem::size_of::<es_event_iokit_open_t>(),
19779 88usize,
19780 concat!("Size of: ", stringify!(es_event_iokit_open_t))
19781 );
19782 assert_eq!(
19783 ::std::mem::align_of::<es_event_iokit_open_t>(),
19784 8usize,
19785 concat!("Alignment of ", stringify!(es_event_iokit_open_t))
19786 );
19787 assert_eq!(
19788 unsafe {
19789 &(*(::std::ptr::null::<es_event_iokit_open_t>())).user_client_type as *const _ as usize
19790 },
19791 0usize,
19792 concat!(
19793 "Offset of field: ",
19794 stringify!(es_event_iokit_open_t),
19795 "::",
19796 stringify!(user_client_type)
19797 )
19798 );
19799 assert_eq!(
19800 unsafe {
19801 &(*(::std::ptr::null::<es_event_iokit_open_t>())).user_client_class as *const _ as usize
19802 },
19803 8usize,
19804 concat!(
19805 "Offset of field: ",
19806 stringify!(es_event_iokit_open_t),
19807 "::",
19808 stringify!(user_client_class)
19809 )
19810 );
19811 assert_eq!(
19812 unsafe { &(*(::std::ptr::null::<es_event_iokit_open_t>())).reserved as *const _ as usize },
19813 24usize,
19814 concat!(
19815 "Offset of field: ",
19816 stringify!(es_event_iokit_open_t),
19817 "::",
19818 stringify!(reserved)
19819 )
19820 );
19821}
19822#[repr(C)]
19823#[derive(Copy, Clone)]
19824pub struct es_event_get_task_t {
19825 pub target: *mut es_process_t,
19826 pub reserved: [u8; 64usize],
19827}
19828#[test]
19829fn bindgen_test_layout_es_event_get_task_t() {
19830 assert_eq!(
19831 ::std::mem::size_of::<es_event_get_task_t>(),
19832 72usize,
19833 concat!("Size of: ", stringify!(es_event_get_task_t))
19834 );
19835 assert_eq!(
19836 ::std::mem::align_of::<es_event_get_task_t>(),
19837 8usize,
19838 concat!("Alignment of ", stringify!(es_event_get_task_t))
19839 );
19840 assert_eq!(
19841 unsafe { &(*(::std::ptr::null::<es_event_get_task_t>())).target as *const _ as usize },
19842 0usize,
19843 concat!(
19844 "Offset of field: ",
19845 stringify!(es_event_get_task_t),
19846 "::",
19847 stringify!(target)
19848 )
19849 );
19850 assert_eq!(
19851 unsafe { &(*(::std::ptr::null::<es_event_get_task_t>())).reserved as *const _ as usize },
19852 8usize,
19853 concat!(
19854 "Offset of field: ",
19855 stringify!(es_event_get_task_t),
19856 "::",
19857 stringify!(reserved)
19858 )
19859 );
19860}
19861#[repr(C)]
19862#[derive(Copy, Clone)]
19863pub struct es_event_get_task_name_t {
19864 pub target: *mut es_process_t,
19865 pub reserved: [u8; 64usize],
19866}
19867#[test]
19868fn bindgen_test_layout_es_event_get_task_name_t() {
19869 assert_eq!(
19870 ::std::mem::size_of::<es_event_get_task_name_t>(),
19871 72usize,
19872 concat!("Size of: ", stringify!(es_event_get_task_name_t))
19873 );
19874 assert_eq!(
19875 ::std::mem::align_of::<es_event_get_task_name_t>(),
19876 8usize,
19877 concat!("Alignment of ", stringify!(es_event_get_task_name_t))
19878 );
19879 assert_eq!(
19880 unsafe { &(*(::std::ptr::null::<es_event_get_task_name_t>())).target as *const _ as usize },
19881 0usize,
19882 concat!(
19883 "Offset of field: ",
19884 stringify!(es_event_get_task_name_t),
19885 "::",
19886 stringify!(target)
19887 )
19888 );
19889 assert_eq!(
19890 unsafe {
19891 &(*(::std::ptr::null::<es_event_get_task_name_t>())).reserved as *const _ as usize
19892 },
19893 8usize,
19894 concat!(
19895 "Offset of field: ",
19896 stringify!(es_event_get_task_name_t),
19897 "::",
19898 stringify!(reserved)
19899 )
19900 );
19901}
19902#[repr(C)]
19903#[derive(Copy, Clone)]
19904pub struct es_event_getattrlist_t {
19905 pub attrlist: attrlist,
19906 pub target: *mut es_file_t,
19907 pub reserved: [u8; 64usize],
19908}
19909#[test]
19910fn bindgen_test_layout_es_event_getattrlist_t() {
19911 assert_eq!(
19912 ::std::mem::size_of::<es_event_getattrlist_t>(),
19913 96usize,
19914 concat!("Size of: ", stringify!(es_event_getattrlist_t))
19915 );
19916 assert_eq!(
19917 ::std::mem::align_of::<es_event_getattrlist_t>(),
19918 8usize,
19919 concat!("Alignment of ", stringify!(es_event_getattrlist_t))
19920 );
19921 assert_eq!(
19922 unsafe { &(*(::std::ptr::null::<es_event_getattrlist_t>())).attrlist as *const _ as usize },
19923 0usize,
19924 concat!(
19925 "Offset of field: ",
19926 stringify!(es_event_getattrlist_t),
19927 "::",
19928 stringify!(attrlist)
19929 )
19930 );
19931 assert_eq!(
19932 unsafe { &(*(::std::ptr::null::<es_event_getattrlist_t>())).target as *const _ as usize },
19933 24usize,
19934 concat!(
19935 "Offset of field: ",
19936 stringify!(es_event_getattrlist_t),
19937 "::",
19938 stringify!(target)
19939 )
19940 );
19941 assert_eq!(
19942 unsafe { &(*(::std::ptr::null::<es_event_getattrlist_t>())).reserved as *const _ as usize },
19943 32usize,
19944 concat!(
19945 "Offset of field: ",
19946 stringify!(es_event_getattrlist_t),
19947 "::",
19948 stringify!(reserved)
19949 )
19950 );
19951}
19952#[repr(C)]
19953#[derive(Copy, Clone)]
19954pub struct es_event_setattrlist_t {
19955 pub attrlist: attrlist,
19956 pub target: *mut es_file_t,
19957 pub reserved: [u8; 64usize],
19958}
19959#[test]
19960fn bindgen_test_layout_es_event_setattrlist_t() {
19961 assert_eq!(
19962 ::std::mem::size_of::<es_event_setattrlist_t>(),
19963 96usize,
19964 concat!("Size of: ", stringify!(es_event_setattrlist_t))
19965 );
19966 assert_eq!(
19967 ::std::mem::align_of::<es_event_setattrlist_t>(),
19968 8usize,
19969 concat!("Alignment of ", stringify!(es_event_setattrlist_t))
19970 );
19971 assert_eq!(
19972 unsafe { &(*(::std::ptr::null::<es_event_setattrlist_t>())).attrlist as *const _ as usize },
19973 0usize,
19974 concat!(
19975 "Offset of field: ",
19976 stringify!(es_event_setattrlist_t),
19977 "::",
19978 stringify!(attrlist)
19979 )
19980 );
19981 assert_eq!(
19982 unsafe { &(*(::std::ptr::null::<es_event_setattrlist_t>())).target as *const _ as usize },
19983 24usize,
19984 concat!(
19985 "Offset of field: ",
19986 stringify!(es_event_setattrlist_t),
19987 "::",
19988 stringify!(target)
19989 )
19990 );
19991 assert_eq!(
19992 unsafe { &(*(::std::ptr::null::<es_event_setattrlist_t>())).reserved as *const _ as usize },
19993 32usize,
19994 concat!(
19995 "Offset of field: ",
19996 stringify!(es_event_setattrlist_t),
19997 "::",
19998 stringify!(reserved)
19999 )
20000 );
20001}
20002#[repr(C)]
20003#[derive(Copy, Clone)]
20004pub struct es_event_file_provider_update_t {
20005 pub source: *mut es_file_t,
20006 pub target_path: es_string_token_t,
20007 pub reserved: [u8; 64usize],
20008}
20009#[test]
20010fn bindgen_test_layout_es_event_file_provider_update_t() {
20011 assert_eq!(
20012 ::std::mem::size_of::<es_event_file_provider_update_t>(),
20013 88usize,
20014 concat!("Size of: ", stringify!(es_event_file_provider_update_t))
20015 );
20016 assert_eq!(
20017 ::std::mem::align_of::<es_event_file_provider_update_t>(),
20018 8usize,
20019 concat!("Alignment of ", stringify!(es_event_file_provider_update_t))
20020 );
20021 assert_eq!(
20022 unsafe {
20023 &(*(::std::ptr::null::<es_event_file_provider_update_t>())).source as *const _ as usize
20024 },
20025 0usize,
20026 concat!(
20027 "Offset of field: ",
20028 stringify!(es_event_file_provider_update_t),
20029 "::",
20030 stringify!(source)
20031 )
20032 );
20033 assert_eq!(
20034 unsafe {
20035 &(*(::std::ptr::null::<es_event_file_provider_update_t>())).target_path as *const _
20036 as usize
20037 },
20038 8usize,
20039 concat!(
20040 "Offset of field: ",
20041 stringify!(es_event_file_provider_update_t),
20042 "::",
20043 stringify!(target_path)
20044 )
20045 );
20046 assert_eq!(
20047 unsafe {
20048 &(*(::std::ptr::null::<es_event_file_provider_update_t>())).reserved as *const _
20049 as usize
20050 },
20051 24usize,
20052 concat!(
20053 "Offset of field: ",
20054 stringify!(es_event_file_provider_update_t),
20055 "::",
20056 stringify!(reserved)
20057 )
20058 );
20059}
20060#[repr(C)]
20061#[derive(Copy, Clone)]
20062pub struct es_event_file_provider_materialize_t {
20063 pub instigator: *mut es_process_t,
20064 pub source: *mut es_file_t,
20065 pub target: *mut es_file_t,
20066 pub reserved: [u8; 64usize],
20067}
20068#[test]
20069fn bindgen_test_layout_es_event_file_provider_materialize_t() {
20070 assert_eq!(
20071 ::std::mem::size_of::<es_event_file_provider_materialize_t>(),
20072 88usize,
20073 concat!(
20074 "Size of: ",
20075 stringify!(es_event_file_provider_materialize_t)
20076 )
20077 );
20078 assert_eq!(
20079 ::std::mem::align_of::<es_event_file_provider_materialize_t>(),
20080 8usize,
20081 concat!(
20082 "Alignment of ",
20083 stringify!(es_event_file_provider_materialize_t)
20084 )
20085 );
20086 assert_eq!(
20087 unsafe {
20088 &(*(::std::ptr::null::<es_event_file_provider_materialize_t>())).instigator as *const _
20089 as usize
20090 },
20091 0usize,
20092 concat!(
20093 "Offset of field: ",
20094 stringify!(es_event_file_provider_materialize_t),
20095 "::",
20096 stringify!(instigator)
20097 )
20098 );
20099 assert_eq!(
20100 unsafe {
20101 &(*(::std::ptr::null::<es_event_file_provider_materialize_t>())).source as *const _
20102 as usize
20103 },
20104 8usize,
20105 concat!(
20106 "Offset of field: ",
20107 stringify!(es_event_file_provider_materialize_t),
20108 "::",
20109 stringify!(source)
20110 )
20111 );
20112 assert_eq!(
20113 unsafe {
20114 &(*(::std::ptr::null::<es_event_file_provider_materialize_t>())).target as *const _
20115 as usize
20116 },
20117 16usize,
20118 concat!(
20119 "Offset of field: ",
20120 stringify!(es_event_file_provider_materialize_t),
20121 "::",
20122 stringify!(target)
20123 )
20124 );
20125 assert_eq!(
20126 unsafe {
20127 &(*(::std::ptr::null::<es_event_file_provider_materialize_t>())).reserved as *const _
20128 as usize
20129 },
20130 24usize,
20131 concat!(
20132 "Offset of field: ",
20133 stringify!(es_event_file_provider_materialize_t),
20134 "::",
20135 stringify!(reserved)
20136 )
20137 );
20138}
20139#[repr(C)]
20140#[derive(Copy, Clone)]
20141pub struct es_event_readlink_t {
20142 pub source: *mut es_file_t,
20143 pub reserved: [u8; 64usize],
20144}
20145#[test]
20146fn bindgen_test_layout_es_event_readlink_t() {
20147 assert_eq!(
20148 ::std::mem::size_of::<es_event_readlink_t>(),
20149 72usize,
20150 concat!("Size of: ", stringify!(es_event_readlink_t))
20151 );
20152 assert_eq!(
20153 ::std::mem::align_of::<es_event_readlink_t>(),
20154 8usize,
20155 concat!("Alignment of ", stringify!(es_event_readlink_t))
20156 );
20157 assert_eq!(
20158 unsafe { &(*(::std::ptr::null::<es_event_readlink_t>())).source as *const _ as usize },
20159 0usize,
20160 concat!(
20161 "Offset of field: ",
20162 stringify!(es_event_readlink_t),
20163 "::",
20164 stringify!(source)
20165 )
20166 );
20167 assert_eq!(
20168 unsafe { &(*(::std::ptr::null::<es_event_readlink_t>())).reserved as *const _ as usize },
20169 8usize,
20170 concat!(
20171 "Offset of field: ",
20172 stringify!(es_event_readlink_t),
20173 "::",
20174 stringify!(reserved)
20175 )
20176 );
20177}
20178#[repr(C)]
20179#[derive(Copy, Clone)]
20180pub struct es_event_lookup_t {
20181 pub source_dir: *mut es_file_t,
20182 pub relative_target: es_string_token_t,
20183 pub reserved: [u8; 64usize],
20184}
20185#[test]
20186fn bindgen_test_layout_es_event_lookup_t() {
20187 assert_eq!(
20188 ::std::mem::size_of::<es_event_lookup_t>(),
20189 88usize,
20190 concat!("Size of: ", stringify!(es_event_lookup_t))
20191 );
20192 assert_eq!(
20193 ::std::mem::align_of::<es_event_lookup_t>(),
20194 8usize,
20195 concat!("Alignment of ", stringify!(es_event_lookup_t))
20196 );
20197 assert_eq!(
20198 unsafe { &(*(::std::ptr::null::<es_event_lookup_t>())).source_dir as *const _ as usize },
20199 0usize,
20200 concat!(
20201 "Offset of field: ",
20202 stringify!(es_event_lookup_t),
20203 "::",
20204 stringify!(source_dir)
20205 )
20206 );
20207 assert_eq!(
20208 unsafe {
20209 &(*(::std::ptr::null::<es_event_lookup_t>())).relative_target as *const _ as usize
20210 },
20211 8usize,
20212 concat!(
20213 "Offset of field: ",
20214 stringify!(es_event_lookup_t),
20215 "::",
20216 stringify!(relative_target)
20217 )
20218 );
20219 assert_eq!(
20220 unsafe { &(*(::std::ptr::null::<es_event_lookup_t>())).reserved as *const _ as usize },
20221 24usize,
20222 concat!(
20223 "Offset of field: ",
20224 stringify!(es_event_lookup_t),
20225 "::",
20226 stringify!(reserved)
20227 )
20228 );
20229}
20230#[repr(C)]
20231#[derive(Copy, Clone)]
20232pub struct es_event_access_t {
20233 pub mode: i32,
20234 pub target: *mut es_file_t,
20235 pub reserved: [u8; 64usize],
20236}
20237#[test]
20238fn bindgen_test_layout_es_event_access_t() {
20239 assert_eq!(
20240 ::std::mem::size_of::<es_event_access_t>(),
20241 80usize,
20242 concat!("Size of: ", stringify!(es_event_access_t))
20243 );
20244 assert_eq!(
20245 ::std::mem::align_of::<es_event_access_t>(),
20246 8usize,
20247 concat!("Alignment of ", stringify!(es_event_access_t))
20248 );
20249 assert_eq!(
20250 unsafe { &(*(::std::ptr::null::<es_event_access_t>())).mode as *const _ as usize },
20251 0usize,
20252 concat!(
20253 "Offset of field: ",
20254 stringify!(es_event_access_t),
20255 "::",
20256 stringify!(mode)
20257 )
20258 );
20259 assert_eq!(
20260 unsafe { &(*(::std::ptr::null::<es_event_access_t>())).target as *const _ as usize },
20261 8usize,
20262 concat!(
20263 "Offset of field: ",
20264 stringify!(es_event_access_t),
20265 "::",
20266 stringify!(target)
20267 )
20268 );
20269 assert_eq!(
20270 unsafe { &(*(::std::ptr::null::<es_event_access_t>())).reserved as *const _ as usize },
20271 16usize,
20272 concat!(
20273 "Offset of field: ",
20274 stringify!(es_event_access_t),
20275 "::",
20276 stringify!(reserved)
20277 )
20278 );
20279}
20280#[repr(C)]
20281#[derive(Copy, Clone)]
20282pub struct es_event_utimes_t {
20283 pub target: *mut es_file_t,
20284 pub atime: timespec,
20285 pub mtime: timespec,
20286 pub reserved: [u8; 64usize],
20287}
20288#[test]
20289fn bindgen_test_layout_es_event_utimes_t() {
20290 assert_eq!(
20291 ::std::mem::size_of::<es_event_utimes_t>(),
20292 104usize,
20293 concat!("Size of: ", stringify!(es_event_utimes_t))
20294 );
20295 assert_eq!(
20296 ::std::mem::align_of::<es_event_utimes_t>(),
20297 8usize,
20298 concat!("Alignment of ", stringify!(es_event_utimes_t))
20299 );
20300 assert_eq!(
20301 unsafe { &(*(::std::ptr::null::<es_event_utimes_t>())).target as *const _ as usize },
20302 0usize,
20303 concat!(
20304 "Offset of field: ",
20305 stringify!(es_event_utimes_t),
20306 "::",
20307 stringify!(target)
20308 )
20309 );
20310 assert_eq!(
20311 unsafe { &(*(::std::ptr::null::<es_event_utimes_t>())).atime as *const _ as usize },
20312 8usize,
20313 concat!(
20314 "Offset of field: ",
20315 stringify!(es_event_utimes_t),
20316 "::",
20317 stringify!(atime)
20318 )
20319 );
20320 assert_eq!(
20321 unsafe { &(*(::std::ptr::null::<es_event_utimes_t>())).mtime as *const _ as usize },
20322 24usize,
20323 concat!(
20324 "Offset of field: ",
20325 stringify!(es_event_utimes_t),
20326 "::",
20327 stringify!(mtime)
20328 )
20329 );
20330 assert_eq!(
20331 unsafe { &(*(::std::ptr::null::<es_event_utimes_t>())).reserved as *const _ as usize },
20332 40usize,
20333 concat!(
20334 "Offset of field: ",
20335 stringify!(es_event_utimes_t),
20336 "::",
20337 stringify!(reserved)
20338 )
20339 );
20340}
20341#[repr(C)]
20342#[derive(Copy, Clone)]
20343pub struct es_event_clone_t {
20344 pub source: *mut es_file_t,
20345 pub target_dir: *mut es_file_t,
20346 pub target_name: es_string_token_t,
20347 pub reserved: [u8; 64usize],
20348}
20349#[test]
20350fn bindgen_test_layout_es_event_clone_t() {
20351 assert_eq!(
20352 ::std::mem::size_of::<es_event_clone_t>(),
20353 96usize,
20354 concat!("Size of: ", stringify!(es_event_clone_t))
20355 );
20356 assert_eq!(
20357 ::std::mem::align_of::<es_event_clone_t>(),
20358 8usize,
20359 concat!("Alignment of ", stringify!(es_event_clone_t))
20360 );
20361 assert_eq!(
20362 unsafe { &(*(::std::ptr::null::<es_event_clone_t>())).source as *const _ as usize },
20363 0usize,
20364 concat!(
20365 "Offset of field: ",
20366 stringify!(es_event_clone_t),
20367 "::",
20368 stringify!(source)
20369 )
20370 );
20371 assert_eq!(
20372 unsafe { &(*(::std::ptr::null::<es_event_clone_t>())).target_dir as *const _ as usize },
20373 8usize,
20374 concat!(
20375 "Offset of field: ",
20376 stringify!(es_event_clone_t),
20377 "::",
20378 stringify!(target_dir)
20379 )
20380 );
20381 assert_eq!(
20382 unsafe { &(*(::std::ptr::null::<es_event_clone_t>())).target_name as *const _ as usize },
20383 16usize,
20384 concat!(
20385 "Offset of field: ",
20386 stringify!(es_event_clone_t),
20387 "::",
20388 stringify!(target_name)
20389 )
20390 );
20391 assert_eq!(
20392 unsafe { &(*(::std::ptr::null::<es_event_clone_t>())).reserved as *const _ as usize },
20393 32usize,
20394 concat!(
20395 "Offset of field: ",
20396 stringify!(es_event_clone_t),
20397 "::",
20398 stringify!(reserved)
20399 )
20400 );
20401}
20402#[repr(C)]
20403#[derive(Copy, Clone)]
20404pub struct es_event_fcntl_t {
20405 pub target: *mut es_file_t,
20406 pub cmd: i32,
20407 pub reserved: [u8; 64usize],
20408}
20409#[test]
20410fn bindgen_test_layout_es_event_fcntl_t() {
20411 assert_eq!(
20412 ::std::mem::size_of::<es_event_fcntl_t>(),
20413 80usize,
20414 concat!("Size of: ", stringify!(es_event_fcntl_t))
20415 );
20416 assert_eq!(
20417 ::std::mem::align_of::<es_event_fcntl_t>(),
20418 8usize,
20419 concat!("Alignment of ", stringify!(es_event_fcntl_t))
20420 );
20421 assert_eq!(
20422 unsafe { &(*(::std::ptr::null::<es_event_fcntl_t>())).target as *const _ as usize },
20423 0usize,
20424 concat!(
20425 "Offset of field: ",
20426 stringify!(es_event_fcntl_t),
20427 "::",
20428 stringify!(target)
20429 )
20430 );
20431 assert_eq!(
20432 unsafe { &(*(::std::ptr::null::<es_event_fcntl_t>())).cmd as *const _ as usize },
20433 8usize,
20434 concat!(
20435 "Offset of field: ",
20436 stringify!(es_event_fcntl_t),
20437 "::",
20438 stringify!(cmd)
20439 )
20440 );
20441 assert_eq!(
20442 unsafe { &(*(::std::ptr::null::<es_event_fcntl_t>())).reserved as *const _ as usize },
20443 12usize,
20444 concat!(
20445 "Offset of field: ",
20446 stringify!(es_event_fcntl_t),
20447 "::",
20448 stringify!(reserved)
20449 )
20450 );
20451}
20452#[repr(C)]
20453#[derive(Copy, Clone)]
20454pub struct es_event_readdir_t {
20455 pub target: *mut es_file_t,
20456 pub reserved: [u8; 64usize],
20457}
20458#[test]
20459fn bindgen_test_layout_es_event_readdir_t() {
20460 assert_eq!(
20461 ::std::mem::size_of::<es_event_readdir_t>(),
20462 72usize,
20463 concat!("Size of: ", stringify!(es_event_readdir_t))
20464 );
20465 assert_eq!(
20466 ::std::mem::align_of::<es_event_readdir_t>(),
20467 8usize,
20468 concat!("Alignment of ", stringify!(es_event_readdir_t))
20469 );
20470 assert_eq!(
20471 unsafe { &(*(::std::ptr::null::<es_event_readdir_t>())).target as *const _ as usize },
20472 0usize,
20473 concat!(
20474 "Offset of field: ",
20475 stringify!(es_event_readdir_t),
20476 "::",
20477 stringify!(target)
20478 )
20479 );
20480 assert_eq!(
20481 unsafe { &(*(::std::ptr::null::<es_event_readdir_t>())).reserved as *const _ as usize },
20482 8usize,
20483 concat!(
20484 "Offset of field: ",
20485 stringify!(es_event_readdir_t),
20486 "::",
20487 stringify!(reserved)
20488 )
20489 );
20490}
20491#[repr(C)]
20492#[derive(Copy, Clone)]
20493pub struct es_event_fsgetpath_t {
20494 pub target: *mut es_file_t,
20495 pub reserved: [u8; 64usize],
20496}
20497#[test]
20498fn bindgen_test_layout_es_event_fsgetpath_t() {
20499 assert_eq!(
20500 ::std::mem::size_of::<es_event_fsgetpath_t>(),
20501 72usize,
20502 concat!("Size of: ", stringify!(es_event_fsgetpath_t))
20503 );
20504 assert_eq!(
20505 ::std::mem::align_of::<es_event_fsgetpath_t>(),
20506 8usize,
20507 concat!("Alignment of ", stringify!(es_event_fsgetpath_t))
20508 );
20509 assert_eq!(
20510 unsafe { &(*(::std::ptr::null::<es_event_fsgetpath_t>())).target as *const _ as usize },
20511 0usize,
20512 concat!(
20513 "Offset of field: ",
20514 stringify!(es_event_fsgetpath_t),
20515 "::",
20516 stringify!(target)
20517 )
20518 );
20519 assert_eq!(
20520 unsafe { &(*(::std::ptr::null::<es_event_fsgetpath_t>())).reserved as *const _ as usize },
20521 8usize,
20522 concat!(
20523 "Offset of field: ",
20524 stringify!(es_event_fsgetpath_t),
20525 "::",
20526 stringify!(reserved)
20527 )
20528 );
20529}
20530#[repr(C)]
20531#[derive(Copy, Clone)]
20532pub struct es_event_settime_t {
20533 pub reserved: [u8; 64usize],
20534}
20535#[test]
20536fn bindgen_test_layout_es_event_settime_t() {
20537 assert_eq!(
20538 ::std::mem::size_of::<es_event_settime_t>(),
20539 64usize,
20540 concat!("Size of: ", stringify!(es_event_settime_t))
20541 );
20542 assert_eq!(
20543 ::std::mem::align_of::<es_event_settime_t>(),
20544 1usize,
20545 concat!("Alignment of ", stringify!(es_event_settime_t))
20546 );
20547 assert_eq!(
20548 unsafe { &(*(::std::ptr::null::<es_event_settime_t>())).reserved as *const _ as usize },
20549 0usize,
20550 concat!(
20551 "Offset of field: ",
20552 stringify!(es_event_settime_t),
20553 "::",
20554 stringify!(reserved)
20555 )
20556 );
20557}
20558#[repr(C)]
20559#[derive(Copy, Clone)]
20560pub struct es_event_dup_t {
20561 pub target: *mut es_file_t,
20562 pub reserved: [u8; 64usize],
20563}
20564#[test]
20565fn bindgen_test_layout_es_event_dup_t() {
20566 assert_eq!(
20567 ::std::mem::size_of::<es_event_dup_t>(),
20568 72usize,
20569 concat!("Size of: ", stringify!(es_event_dup_t))
20570 );
20571 assert_eq!(
20572 ::std::mem::align_of::<es_event_dup_t>(),
20573 8usize,
20574 concat!("Alignment of ", stringify!(es_event_dup_t))
20575 );
20576 assert_eq!(
20577 unsafe { &(*(::std::ptr::null::<es_event_dup_t>())).target as *const _ as usize },
20578 0usize,
20579 concat!(
20580 "Offset of field: ",
20581 stringify!(es_event_dup_t),
20582 "::",
20583 stringify!(target)
20584 )
20585 );
20586 assert_eq!(
20587 unsafe { &(*(::std::ptr::null::<es_event_dup_t>())).reserved as *const _ as usize },
20588 8usize,
20589 concat!(
20590 "Offset of field: ",
20591 stringify!(es_event_dup_t),
20592 "::",
20593 stringify!(reserved)
20594 )
20595 );
20596}
20597#[repr(C)]
20598#[derive(Copy, Clone)]
20599pub struct es_event_uipc_bind_t {
20600 pub dir: *mut es_file_t,
20601 pub filename: es_string_token_t,
20602 pub mode: mode_t,
20603 pub reserved: [u8; 64usize],
20604}
20605#[test]
20606fn bindgen_test_layout_es_event_uipc_bind_t() {
20607 assert_eq!(
20608 ::std::mem::size_of::<es_event_uipc_bind_t>(),
20609 96usize,
20610 concat!("Size of: ", stringify!(es_event_uipc_bind_t))
20611 );
20612 assert_eq!(
20613 ::std::mem::align_of::<es_event_uipc_bind_t>(),
20614 8usize,
20615 concat!("Alignment of ", stringify!(es_event_uipc_bind_t))
20616 );
20617 assert_eq!(
20618 unsafe { &(*(::std::ptr::null::<es_event_uipc_bind_t>())).dir as *const _ as usize },
20619 0usize,
20620 concat!(
20621 "Offset of field: ",
20622 stringify!(es_event_uipc_bind_t),
20623 "::",
20624 stringify!(dir)
20625 )
20626 );
20627 assert_eq!(
20628 unsafe { &(*(::std::ptr::null::<es_event_uipc_bind_t>())).filename as *const _ as usize },
20629 8usize,
20630 concat!(
20631 "Offset of field: ",
20632 stringify!(es_event_uipc_bind_t),
20633 "::",
20634 stringify!(filename)
20635 )
20636 );
20637 assert_eq!(
20638 unsafe { &(*(::std::ptr::null::<es_event_uipc_bind_t>())).mode as *const _ as usize },
20639 24usize,
20640 concat!(
20641 "Offset of field: ",
20642 stringify!(es_event_uipc_bind_t),
20643 "::",
20644 stringify!(mode)
20645 )
20646 );
20647 assert_eq!(
20648 unsafe { &(*(::std::ptr::null::<es_event_uipc_bind_t>())).reserved as *const _ as usize },
20649 26usize,
20650 concat!(
20651 "Offset of field: ",
20652 stringify!(es_event_uipc_bind_t),
20653 "::",
20654 stringify!(reserved)
20655 )
20656 );
20657}
20658#[repr(C)]
20659#[derive(Copy, Clone)]
20660pub struct es_event_uipc_connect_t {
20661 pub file: *mut es_file_t,
20662 pub domain: ::std::os::raw::c_int,
20663 pub type_: ::std::os::raw::c_int,
20664 pub protocol: ::std::os::raw::c_int,
20665 pub reserved: [u8; 64usize],
20666}
20667#[test]
20668fn bindgen_test_layout_es_event_uipc_connect_t() {
20669 assert_eq!(
20670 ::std::mem::size_of::<es_event_uipc_connect_t>(),
20671 88usize,
20672 concat!("Size of: ", stringify!(es_event_uipc_connect_t))
20673 );
20674 assert_eq!(
20675 ::std::mem::align_of::<es_event_uipc_connect_t>(),
20676 8usize,
20677 concat!("Alignment of ", stringify!(es_event_uipc_connect_t))
20678 );
20679 assert_eq!(
20680 unsafe { &(*(::std::ptr::null::<es_event_uipc_connect_t>())).file as *const _ as usize },
20681 0usize,
20682 concat!(
20683 "Offset of field: ",
20684 stringify!(es_event_uipc_connect_t),
20685 "::",
20686 stringify!(file)
20687 )
20688 );
20689 assert_eq!(
20690 unsafe { &(*(::std::ptr::null::<es_event_uipc_connect_t>())).domain as *const _ as usize },
20691 8usize,
20692 concat!(
20693 "Offset of field: ",
20694 stringify!(es_event_uipc_connect_t),
20695 "::",
20696 stringify!(domain)
20697 )
20698 );
20699 assert_eq!(
20700 unsafe { &(*(::std::ptr::null::<es_event_uipc_connect_t>())).type_ as *const _ as usize },
20701 12usize,
20702 concat!(
20703 "Offset of field: ",
20704 stringify!(es_event_uipc_connect_t),
20705 "::",
20706 stringify!(type_)
20707 )
20708 );
20709 assert_eq!(
20710 unsafe {
20711 &(*(::std::ptr::null::<es_event_uipc_connect_t>())).protocol as *const _ as usize
20712 },
20713 16usize,
20714 concat!(
20715 "Offset of field: ",
20716 stringify!(es_event_uipc_connect_t),
20717 "::",
20718 stringify!(protocol)
20719 )
20720 );
20721 assert_eq!(
20722 unsafe {
20723 &(*(::std::ptr::null::<es_event_uipc_connect_t>())).reserved as *const _ as usize
20724 },
20725 20usize,
20726 concat!(
20727 "Offset of field: ",
20728 stringify!(es_event_uipc_connect_t),
20729 "::",
20730 stringify!(reserved)
20731 )
20732 );
20733}
20734#[repr(C)]
20735#[derive(Copy, Clone)]
20736pub struct es_event_setacl_t {
20737 pub target: *mut es_file_t,
20738 pub set_or_clear: es_set_or_clear_t,
20739 pub acl: es_event_setacl_t__bindgen_ty_1,
20740 pub reserved: [u8; 64usize],
20741}
20742#[repr(C)]
20743#[derive(Copy, Clone)]
20744pub union es_event_setacl_t__bindgen_ty_1 {
20745 pub set: acl_t,
20746 _bindgen_union_align: u64,
20747}
20748#[test]
20749fn bindgen_test_layout_es_event_setacl_t__bindgen_ty_1() {
20750 assert_eq!(
20751 ::std::mem::size_of::<es_event_setacl_t__bindgen_ty_1>(),
20752 8usize,
20753 concat!("Size of: ", stringify!(es_event_setacl_t__bindgen_ty_1))
20754 );
20755 assert_eq!(
20756 ::std::mem::align_of::<es_event_setacl_t__bindgen_ty_1>(),
20757 8usize,
20758 concat!("Alignment of ", stringify!(es_event_setacl_t__bindgen_ty_1))
20759 );
20760 assert_eq!(
20761 unsafe {
20762 &(*(::std::ptr::null::<es_event_setacl_t__bindgen_ty_1>())).set as *const _ as usize
20763 },
20764 0usize,
20765 concat!(
20766 "Offset of field: ",
20767 stringify!(es_event_setacl_t__bindgen_ty_1),
20768 "::",
20769 stringify!(set)
20770 )
20771 );
20772}
20773#[test]
20774fn bindgen_test_layout_es_event_setacl_t() {
20775 assert_eq!(
20776 ::std::mem::size_of::<es_event_setacl_t>(),
20777 88usize,
20778 concat!("Size of: ", stringify!(es_event_setacl_t))
20779 );
20780 assert_eq!(
20781 ::std::mem::align_of::<es_event_setacl_t>(),
20782 8usize,
20783 concat!("Alignment of ", stringify!(es_event_setacl_t))
20784 );
20785 assert_eq!(
20786 unsafe { &(*(::std::ptr::null::<es_event_setacl_t>())).target as *const _ as usize },
20787 0usize,
20788 concat!(
20789 "Offset of field: ",
20790 stringify!(es_event_setacl_t),
20791 "::",
20792 stringify!(target)
20793 )
20794 );
20795 assert_eq!(
20796 unsafe { &(*(::std::ptr::null::<es_event_setacl_t>())).set_or_clear as *const _ as usize },
20797 8usize,
20798 concat!(
20799 "Offset of field: ",
20800 stringify!(es_event_setacl_t),
20801 "::",
20802 stringify!(set_or_clear)
20803 )
20804 );
20805 assert_eq!(
20806 unsafe { &(*(::std::ptr::null::<es_event_setacl_t>())).acl as *const _ as usize },
20807 16usize,
20808 concat!(
20809 "Offset of field: ",
20810 stringify!(es_event_setacl_t),
20811 "::",
20812 stringify!(acl)
20813 )
20814 );
20815 assert_eq!(
20816 unsafe { &(*(::std::ptr::null::<es_event_setacl_t>())).reserved as *const _ as usize },
20817 24usize,
20818 concat!(
20819 "Offset of field: ",
20820 stringify!(es_event_setacl_t),
20821 "::",
20822 stringify!(reserved)
20823 )
20824 );
20825}
20826#[repr(C)]
20827#[derive(Copy, Clone)]
20828pub struct es_event_pty_grant_t {
20829 pub dev: dev_t,
20830 pub reserved: [u8; 64usize],
20831}
20832#[test]
20833fn bindgen_test_layout_es_event_pty_grant_t() {
20834 assert_eq!(
20835 ::std::mem::size_of::<es_event_pty_grant_t>(),
20836 68usize,
20837 concat!("Size of: ", stringify!(es_event_pty_grant_t))
20838 );
20839 assert_eq!(
20840 ::std::mem::align_of::<es_event_pty_grant_t>(),
20841 4usize,
20842 concat!("Alignment of ", stringify!(es_event_pty_grant_t))
20843 );
20844 assert_eq!(
20845 unsafe { &(*(::std::ptr::null::<es_event_pty_grant_t>())).dev as *const _ as usize },
20846 0usize,
20847 concat!(
20848 "Offset of field: ",
20849 stringify!(es_event_pty_grant_t),
20850 "::",
20851 stringify!(dev)
20852 )
20853 );
20854 assert_eq!(
20855 unsafe { &(*(::std::ptr::null::<es_event_pty_grant_t>())).reserved as *const _ as usize },
20856 4usize,
20857 concat!(
20858 "Offset of field: ",
20859 stringify!(es_event_pty_grant_t),
20860 "::",
20861 stringify!(reserved)
20862 )
20863 );
20864}
20865#[repr(C)]
20866#[derive(Copy, Clone)]
20867pub struct es_event_pty_close_t {
20868 pub dev: dev_t,
20869 pub reserved: [u8; 64usize],
20870}
20871#[test]
20872fn bindgen_test_layout_es_event_pty_close_t() {
20873 assert_eq!(
20874 ::std::mem::size_of::<es_event_pty_close_t>(),
20875 68usize,
20876 concat!("Size of: ", stringify!(es_event_pty_close_t))
20877 );
20878 assert_eq!(
20879 ::std::mem::align_of::<es_event_pty_close_t>(),
20880 4usize,
20881 concat!("Alignment of ", stringify!(es_event_pty_close_t))
20882 );
20883 assert_eq!(
20884 unsafe { &(*(::std::ptr::null::<es_event_pty_close_t>())).dev as *const _ as usize },
20885 0usize,
20886 concat!(
20887 "Offset of field: ",
20888 stringify!(es_event_pty_close_t),
20889 "::",
20890 stringify!(dev)
20891 )
20892 );
20893 assert_eq!(
20894 unsafe { &(*(::std::ptr::null::<es_event_pty_close_t>())).reserved as *const _ as usize },
20895 4usize,
20896 concat!(
20897 "Offset of field: ",
20898 stringify!(es_event_pty_close_t),
20899 "::",
20900 stringify!(reserved)
20901 )
20902 );
20903}
20904pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_LISTPIDS: es_proc_check_type_t = 1;
20905pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_PIDINFO: es_proc_check_type_t = 2;
20906pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_PIDFDINFO: es_proc_check_type_t = 3;
20907pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_KERNMSGBUF: es_proc_check_type_t = 4;
20908pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_SETCONTROL: es_proc_check_type_t = 5;
20909pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_PIDFILEPORTINFO: es_proc_check_type_t = 6;
20910pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_TERMINATE: es_proc_check_type_t = 7;
20911pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_DIRTYCONTROL: es_proc_check_type_t = 8;
20912pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_PIDRUSAGE: es_proc_check_type_t = 9;
20913pub const es_proc_check_type_t_ES_PROC_CHECK_TYPE_UDATA_INFO: es_proc_check_type_t = 14;
20914pub type es_proc_check_type_t = ::std::os::raw::c_uint;
20915#[repr(C)]
20916#[derive(Copy, Clone)]
20917pub struct es_event_proc_check_t {
20918 pub target: *mut es_process_t,
20919 pub type_: es_proc_check_type_t,
20920 pub flavor: ::std::os::raw::c_int,
20921 pub reserved: [u8; 64usize],
20922}
20923#[test]
20924fn bindgen_test_layout_es_event_proc_check_t() {
20925 assert_eq!(
20926 ::std::mem::size_of::<es_event_proc_check_t>(),
20927 80usize,
20928 concat!("Size of: ", stringify!(es_event_proc_check_t))
20929 );
20930 assert_eq!(
20931 ::std::mem::align_of::<es_event_proc_check_t>(),
20932 8usize,
20933 concat!("Alignment of ", stringify!(es_event_proc_check_t))
20934 );
20935 assert_eq!(
20936 unsafe { &(*(::std::ptr::null::<es_event_proc_check_t>())).target as *const _ as usize },
20937 0usize,
20938 concat!(
20939 "Offset of field: ",
20940 stringify!(es_event_proc_check_t),
20941 "::",
20942 stringify!(target)
20943 )
20944 );
20945 assert_eq!(
20946 unsafe { &(*(::std::ptr::null::<es_event_proc_check_t>())).type_ as *const _ as usize },
20947 8usize,
20948 concat!(
20949 "Offset of field: ",
20950 stringify!(es_event_proc_check_t),
20951 "::",
20952 stringify!(type_)
20953 )
20954 );
20955 assert_eq!(
20956 unsafe { &(*(::std::ptr::null::<es_event_proc_check_t>())).flavor as *const _ as usize },
20957 12usize,
20958 concat!(
20959 "Offset of field: ",
20960 stringify!(es_event_proc_check_t),
20961 "::",
20962 stringify!(flavor)
20963 )
20964 );
20965 assert_eq!(
20966 unsafe { &(*(::std::ptr::null::<es_event_proc_check_t>())).reserved as *const _ as usize },
20967 16usize,
20968 concat!(
20969 "Offset of field: ",
20970 stringify!(es_event_proc_check_t),
20971 "::",
20972 stringify!(reserved)
20973 )
20974 );
20975}
20976#[repr(C)]
20977#[derive(Copy, Clone)]
20978pub struct es_event_searchfs_t {
20979 pub attrlist: attrlist,
20980 pub target: *mut es_file_t,
20981 pub reserved: [u8; 64usize],
20982}
20983#[test]
20984fn bindgen_test_layout_es_event_searchfs_t() {
20985 assert_eq!(
20986 ::std::mem::size_of::<es_event_searchfs_t>(),
20987 96usize,
20988 concat!("Size of: ", stringify!(es_event_searchfs_t))
20989 );
20990 assert_eq!(
20991 ::std::mem::align_of::<es_event_searchfs_t>(),
20992 8usize,
20993 concat!("Alignment of ", stringify!(es_event_searchfs_t))
20994 );
20995 assert_eq!(
20996 unsafe { &(*(::std::ptr::null::<es_event_searchfs_t>())).attrlist as *const _ as usize },
20997 0usize,
20998 concat!(
20999 "Offset of field: ",
21000 stringify!(es_event_searchfs_t),
21001 "::",
21002 stringify!(attrlist)
21003 )
21004 );
21005 assert_eq!(
21006 unsafe { &(*(::std::ptr::null::<es_event_searchfs_t>())).target as *const _ as usize },
21007 24usize,
21008 concat!(
21009 "Offset of field: ",
21010 stringify!(es_event_searchfs_t),
21011 "::",
21012 stringify!(target)
21013 )
21014 );
21015 assert_eq!(
21016 unsafe { &(*(::std::ptr::null::<es_event_searchfs_t>())).reserved as *const _ as usize },
21017 32usize,
21018 concat!(
21019 "Offset of field: ",
21020 stringify!(es_event_searchfs_t),
21021 "::",
21022 stringify!(reserved)
21023 )
21024 );
21025}
21026pub const es_proc_suspend_resume_type_t_ES_PROC_SUSPEND_RESUME_TYPE_SUSPEND:
21027 es_proc_suspend_resume_type_t = 0;
21028pub const es_proc_suspend_resume_type_t_ES_PROC_SUSPEND_RESUME_TYPE_RESUME:
21029 es_proc_suspend_resume_type_t = 1;
21030pub const es_proc_suspend_resume_type_t_ES_PROC_SUSPEND_RESUME_TYPE_SHUTDOWN_SOCKETS:
21031 es_proc_suspend_resume_type_t = 3;
21032pub type es_proc_suspend_resume_type_t = ::std::os::raw::c_uint;
21033#[repr(C)]
21034#[derive(Copy, Clone)]
21035pub struct es_event_proc_suspend_resume_t {
21036 pub target: *mut es_process_t,
21037 pub type_: es_proc_suspend_resume_type_t,
21038 pub reserved: [u8; 64usize],
21039}
21040#[test]
21041fn bindgen_test_layout_es_event_proc_suspend_resume_t() {
21042 assert_eq!(
21043 ::std::mem::size_of::<es_event_proc_suspend_resume_t>(),
21044 80usize,
21045 concat!("Size of: ", stringify!(es_event_proc_suspend_resume_t))
21046 );
21047 assert_eq!(
21048 ::std::mem::align_of::<es_event_proc_suspend_resume_t>(),
21049 8usize,
21050 concat!("Alignment of ", stringify!(es_event_proc_suspend_resume_t))
21051 );
21052 assert_eq!(
21053 unsafe {
21054 &(*(::std::ptr::null::<es_event_proc_suspend_resume_t>())).target as *const _ as usize
21055 },
21056 0usize,
21057 concat!(
21058 "Offset of field: ",
21059 stringify!(es_event_proc_suspend_resume_t),
21060 "::",
21061 stringify!(target)
21062 )
21063 );
21064 assert_eq!(
21065 unsafe {
21066 &(*(::std::ptr::null::<es_event_proc_suspend_resume_t>())).type_ as *const _ as usize
21067 },
21068 8usize,
21069 concat!(
21070 "Offset of field: ",
21071 stringify!(es_event_proc_suspend_resume_t),
21072 "::",
21073 stringify!(type_)
21074 )
21075 );
21076 assert_eq!(
21077 unsafe {
21078 &(*(::std::ptr::null::<es_event_proc_suspend_resume_t>())).reserved as *const _ as usize
21079 },
21080 12usize,
21081 concat!(
21082 "Offset of field: ",
21083 stringify!(es_event_proc_suspend_resume_t),
21084 "::",
21085 stringify!(reserved)
21086 )
21087 );
21088}
21089#[repr(C)]
21090#[derive(Copy, Clone)]
21091pub struct es_event_cs_invalidated_t {
21092 pub reserved: [u8; 64usize],
21093}
21094#[test]
21095fn bindgen_test_layout_es_event_cs_invalidated_t() {
21096 assert_eq!(
21097 ::std::mem::size_of::<es_event_cs_invalidated_t>(),
21098 64usize,
21099 concat!("Size of: ", stringify!(es_event_cs_invalidated_t))
21100 );
21101 assert_eq!(
21102 ::std::mem::align_of::<es_event_cs_invalidated_t>(),
21103 1usize,
21104 concat!("Alignment of ", stringify!(es_event_cs_invalidated_t))
21105 );
21106 assert_eq!(
21107 unsafe {
21108 &(*(::std::ptr::null::<es_event_cs_invalidated_t>())).reserved as *const _ as usize
21109 },
21110 0usize,
21111 concat!(
21112 "Offset of field: ",
21113 stringify!(es_event_cs_invalidated_t),
21114 "::",
21115 stringify!(reserved)
21116 )
21117 );
21118}
21119#[repr(C)]
21120#[derive(Copy, Clone)]
21121pub struct es_event_trace_t {
21122 pub target: *mut es_process_t,
21123 pub reserved: [u8; 64usize],
21124}
21125#[test]
21126fn bindgen_test_layout_es_event_trace_t() {
21127 assert_eq!(
21128 ::std::mem::size_of::<es_event_trace_t>(),
21129 72usize,
21130 concat!("Size of: ", stringify!(es_event_trace_t))
21131 );
21132 assert_eq!(
21133 ::std::mem::align_of::<es_event_trace_t>(),
21134 8usize,
21135 concat!("Alignment of ", stringify!(es_event_trace_t))
21136 );
21137 assert_eq!(
21138 unsafe { &(*(::std::ptr::null::<es_event_trace_t>())).target as *const _ as usize },
21139 0usize,
21140 concat!(
21141 "Offset of field: ",
21142 stringify!(es_event_trace_t),
21143 "::",
21144 stringify!(target)
21145 )
21146 );
21147 assert_eq!(
21148 unsafe { &(*(::std::ptr::null::<es_event_trace_t>())).reserved as *const _ as usize },
21149 8usize,
21150 concat!(
21151 "Offset of field: ",
21152 stringify!(es_event_trace_t),
21153 "::",
21154 stringify!(reserved)
21155 )
21156 );
21157}
21158#[repr(C)]
21159#[derive(Copy, Clone)]
21160pub struct es_event_remote_thread_create_t {
21161 pub target: *mut es_process_t,
21162 pub thread_state: *mut es_thread_state_t,
21163 pub reserved: [u8; 64usize],
21164}
21165#[test]
21166fn bindgen_test_layout_es_event_remote_thread_create_t() {
21167 assert_eq!(
21168 ::std::mem::size_of::<es_event_remote_thread_create_t>(),
21169 80usize,
21170 concat!("Size of: ", stringify!(es_event_remote_thread_create_t))
21171 );
21172 assert_eq!(
21173 ::std::mem::align_of::<es_event_remote_thread_create_t>(),
21174 8usize,
21175 concat!("Alignment of ", stringify!(es_event_remote_thread_create_t))
21176 );
21177 assert_eq!(
21178 unsafe {
21179 &(*(::std::ptr::null::<es_event_remote_thread_create_t>())).target as *const _ as usize
21180 },
21181 0usize,
21182 concat!(
21183 "Offset of field: ",
21184 stringify!(es_event_remote_thread_create_t),
21185 "::",
21186 stringify!(target)
21187 )
21188 );
21189 assert_eq!(
21190 unsafe {
21191 &(*(::std::ptr::null::<es_event_remote_thread_create_t>())).thread_state as *const _
21192 as usize
21193 },
21194 8usize,
21195 concat!(
21196 "Offset of field: ",
21197 stringify!(es_event_remote_thread_create_t),
21198 "::",
21199 stringify!(thread_state)
21200 )
21201 );
21202 assert_eq!(
21203 unsafe {
21204 &(*(::std::ptr::null::<es_event_remote_thread_create_t>())).reserved as *const _
21205 as usize
21206 },
21207 16usize,
21208 concat!(
21209 "Offset of field: ",
21210 stringify!(es_event_remote_thread_create_t),
21211 "::",
21212 stringify!(reserved)
21213 )
21214 );
21215}
21216#[repr(C)]
21217#[derive(Copy, Clone)]
21218pub union es_events_t {
21219 pub access: es_event_access_t,
21220 pub chdir: es_event_chdir_t,
21221 pub chroot: es_event_chroot_t,
21222 pub clone: es_event_clone_t,
21223 pub close: es_event_close_t,
21224 pub create: es_event_create_t,
21225 pub cs_invalidated: es_event_cs_invalidated_t,
21226 pub deleteextattr: es_event_deleteextattr_t,
21227 pub dup: es_event_dup_t,
21228 pub exchangedata: es_event_exchangedata_t,
21229 pub exec: es_event_exec_t,
21230 pub exit: es_event_exit_t,
21231 pub file_provider_materialize: es_event_file_provider_materialize_t,
21232 pub file_provider_update: es_event_file_provider_update_t,
21233 pub fcntl: es_event_fcntl_t,
21234 pub fork: es_event_fork_t,
21235 pub fsgetpath: es_event_fsgetpath_t,
21236 pub get_task: es_event_get_task_t,
21237 pub get_task_name: es_event_get_task_name_t,
21238 pub getattrlist: es_event_getattrlist_t,
21239 pub getextattr: es_event_getextattr_t,
21240 pub iokit_open: es_event_iokit_open_t,
21241 pub kextload: es_event_kextload_t,
21242 pub kextunload: es_event_kextunload_t,
21243 pub link: es_event_link_t,
21244 pub listextattr: es_event_listextattr_t,
21245 pub lookup: es_event_lookup_t,
21246 pub mmap: es_event_mmap_t,
21247 pub mount: es_event_mount_t,
21248 pub mprotect: es_event_mprotect_t,
21249 pub open: es_event_open_t,
21250 pub proc_check: es_event_proc_check_t,
21251 pub proc_suspend_resume: es_event_proc_suspend_resume_t,
21252 pub pty_close: es_event_pty_close_t,
21253 pub pty_grant: es_event_pty_grant_t,
21254 pub readdir: es_event_readdir_t,
21255 pub readlink: es_event_readlink_t,
21256 pub remote_thread_create: es_event_remote_thread_create_t,
21257 pub remount: es_event_remount_t,
21258 pub rename: es_event_rename_t,
21259 pub searchfs: es_event_searchfs_t,
21260 pub setacl: es_event_setacl_t,
21261 pub setattrlist: es_event_setattrlist_t,
21262 pub setextattr: es_event_setextattr_t,
21263 pub setflags: es_event_setflags_t,
21264 pub setmode: es_event_setmode_t,
21265 pub setowner: es_event_setowner_t,
21266 pub settime: es_event_settime_t,
21267 pub signal: es_event_signal_t,
21268 pub stat: es_event_stat_t,
21269 pub trace: es_event_trace_t,
21270 pub truncate: es_event_truncate_t,
21271 pub uipc_bind: es_event_uipc_bind_t,
21272 pub uipc_connect: es_event_uipc_connect_t,
21273 pub unlink: es_event_unlink_t,
21274 pub unmount: es_event_unmount_t,
21275 pub utimes: es_event_utimes_t,
21276 pub write: es_event_write_t,
21277 _bindgen_union_align: [u64; 13usize],
21278}
21279#[test]
21280fn bindgen_test_layout_es_events_t() {
21281 assert_eq!(
21282 ::std::mem::size_of::<es_events_t>(),
21283 104usize,
21284 concat!("Size of: ", stringify!(es_events_t))
21285 );
21286 assert_eq!(
21287 ::std::mem::align_of::<es_events_t>(),
21288 8usize,
21289 concat!("Alignment of ", stringify!(es_events_t))
21290 );
21291 assert_eq!(
21292 unsafe { &(*(::std::ptr::null::<es_events_t>())).access as *const _ as usize },
21293 0usize,
21294 concat!(
21295 "Offset of field: ",
21296 stringify!(es_events_t),
21297 "::",
21298 stringify!(access)
21299 )
21300 );
21301 assert_eq!(
21302 unsafe { &(*(::std::ptr::null::<es_events_t>())).chdir as *const _ as usize },
21303 0usize,
21304 concat!(
21305 "Offset of field: ",
21306 stringify!(es_events_t),
21307 "::",
21308 stringify!(chdir)
21309 )
21310 );
21311 assert_eq!(
21312 unsafe { &(*(::std::ptr::null::<es_events_t>())).chroot as *const _ as usize },
21313 0usize,
21314 concat!(
21315 "Offset of field: ",
21316 stringify!(es_events_t),
21317 "::",
21318 stringify!(chroot)
21319 )
21320 );
21321 assert_eq!(
21322 unsafe { &(*(::std::ptr::null::<es_events_t>())).clone as *const _ as usize },
21323 0usize,
21324 concat!(
21325 "Offset of field: ",
21326 stringify!(es_events_t),
21327 "::",
21328 stringify!(clone)
21329 )
21330 );
21331 assert_eq!(
21332 unsafe { &(*(::std::ptr::null::<es_events_t>())).close as *const _ as usize },
21333 0usize,
21334 concat!(
21335 "Offset of field: ",
21336 stringify!(es_events_t),
21337 "::",
21338 stringify!(close)
21339 )
21340 );
21341 assert_eq!(
21342 unsafe { &(*(::std::ptr::null::<es_events_t>())).create as *const _ as usize },
21343 0usize,
21344 concat!(
21345 "Offset of field: ",
21346 stringify!(es_events_t),
21347 "::",
21348 stringify!(create)
21349 )
21350 );
21351 assert_eq!(
21352 unsafe { &(*(::std::ptr::null::<es_events_t>())).cs_invalidated as *const _ as usize },
21353 0usize,
21354 concat!(
21355 "Offset of field: ",
21356 stringify!(es_events_t),
21357 "::",
21358 stringify!(cs_invalidated)
21359 )
21360 );
21361 assert_eq!(
21362 unsafe { &(*(::std::ptr::null::<es_events_t>())).deleteextattr as *const _ as usize },
21363 0usize,
21364 concat!(
21365 "Offset of field: ",
21366 stringify!(es_events_t),
21367 "::",
21368 stringify!(deleteextattr)
21369 )
21370 );
21371 assert_eq!(
21372 unsafe { &(*(::std::ptr::null::<es_events_t>())).dup as *const _ as usize },
21373 0usize,
21374 concat!(
21375 "Offset of field: ",
21376 stringify!(es_events_t),
21377 "::",
21378 stringify!(dup)
21379 )
21380 );
21381 assert_eq!(
21382 unsafe { &(*(::std::ptr::null::<es_events_t>())).exchangedata as *const _ as usize },
21383 0usize,
21384 concat!(
21385 "Offset of field: ",
21386 stringify!(es_events_t),
21387 "::",
21388 stringify!(exchangedata)
21389 )
21390 );
21391 assert_eq!(
21392 unsafe { &(*(::std::ptr::null::<es_events_t>())).exec as *const _ as usize },
21393 0usize,
21394 concat!(
21395 "Offset of field: ",
21396 stringify!(es_events_t),
21397 "::",
21398 stringify!(exec)
21399 )
21400 );
21401 assert_eq!(
21402 unsafe { &(*(::std::ptr::null::<es_events_t>())).exit as *const _ as usize },
21403 0usize,
21404 concat!(
21405 "Offset of field: ",
21406 stringify!(es_events_t),
21407 "::",
21408 stringify!(exit)
21409 )
21410 );
21411 assert_eq!(
21412 unsafe {
21413 &(*(::std::ptr::null::<es_events_t>())).file_provider_materialize as *const _ as usize
21414 },
21415 0usize,
21416 concat!(
21417 "Offset of field: ",
21418 stringify!(es_events_t),
21419 "::",
21420 stringify!(file_provider_materialize)
21421 )
21422 );
21423 assert_eq!(
21424 unsafe {
21425 &(*(::std::ptr::null::<es_events_t>())).file_provider_update as *const _ as usize
21426 },
21427 0usize,
21428 concat!(
21429 "Offset of field: ",
21430 stringify!(es_events_t),
21431 "::",
21432 stringify!(file_provider_update)
21433 )
21434 );
21435 assert_eq!(
21436 unsafe { &(*(::std::ptr::null::<es_events_t>())).fcntl as *const _ as usize },
21437 0usize,
21438 concat!(
21439 "Offset of field: ",
21440 stringify!(es_events_t),
21441 "::",
21442 stringify!(fcntl)
21443 )
21444 );
21445 assert_eq!(
21446 unsafe { &(*(::std::ptr::null::<es_events_t>())).fork as *const _ as usize },
21447 0usize,
21448 concat!(
21449 "Offset of field: ",
21450 stringify!(es_events_t),
21451 "::",
21452 stringify!(fork)
21453 )
21454 );
21455 assert_eq!(
21456 unsafe { &(*(::std::ptr::null::<es_events_t>())).fsgetpath as *const _ as usize },
21457 0usize,
21458 concat!(
21459 "Offset of field: ",
21460 stringify!(es_events_t),
21461 "::",
21462 stringify!(fsgetpath)
21463 )
21464 );
21465 assert_eq!(
21466 unsafe { &(*(::std::ptr::null::<es_events_t>())).get_task as *const _ as usize },
21467 0usize,
21468 concat!(
21469 "Offset of field: ",
21470 stringify!(es_events_t),
21471 "::",
21472 stringify!(get_task)
21473 )
21474 );
21475 assert_eq!(
21476 unsafe { &(*(::std::ptr::null::<es_events_t>())).get_task_name as *const _ as usize },
21477 0usize,
21478 concat!(
21479 "Offset of field: ",
21480 stringify!(es_events_t),
21481 "::",
21482 stringify!(get_task_name)
21483 )
21484 );
21485 assert_eq!(
21486 unsafe { &(*(::std::ptr::null::<es_events_t>())).getattrlist as *const _ as usize },
21487 0usize,
21488 concat!(
21489 "Offset of field: ",
21490 stringify!(es_events_t),
21491 "::",
21492 stringify!(getattrlist)
21493 )
21494 );
21495 assert_eq!(
21496 unsafe { &(*(::std::ptr::null::<es_events_t>())).getextattr as *const _ as usize },
21497 0usize,
21498 concat!(
21499 "Offset of field: ",
21500 stringify!(es_events_t),
21501 "::",
21502 stringify!(getextattr)
21503 )
21504 );
21505 assert_eq!(
21506 unsafe { &(*(::std::ptr::null::<es_events_t>())).iokit_open as *const _ as usize },
21507 0usize,
21508 concat!(
21509 "Offset of field: ",
21510 stringify!(es_events_t),
21511 "::",
21512 stringify!(iokit_open)
21513 )
21514 );
21515 assert_eq!(
21516 unsafe { &(*(::std::ptr::null::<es_events_t>())).kextload as *const _ as usize },
21517 0usize,
21518 concat!(
21519 "Offset of field: ",
21520 stringify!(es_events_t),
21521 "::",
21522 stringify!(kextload)
21523 )
21524 );
21525 assert_eq!(
21526 unsafe { &(*(::std::ptr::null::<es_events_t>())).kextunload as *const _ as usize },
21527 0usize,
21528 concat!(
21529 "Offset of field: ",
21530 stringify!(es_events_t),
21531 "::",
21532 stringify!(kextunload)
21533 )
21534 );
21535 assert_eq!(
21536 unsafe { &(*(::std::ptr::null::<es_events_t>())).link as *const _ as usize },
21537 0usize,
21538 concat!(
21539 "Offset of field: ",
21540 stringify!(es_events_t),
21541 "::",
21542 stringify!(link)
21543 )
21544 );
21545 assert_eq!(
21546 unsafe { &(*(::std::ptr::null::<es_events_t>())).listextattr as *const _ as usize },
21547 0usize,
21548 concat!(
21549 "Offset of field: ",
21550 stringify!(es_events_t),
21551 "::",
21552 stringify!(listextattr)
21553 )
21554 );
21555 assert_eq!(
21556 unsafe { &(*(::std::ptr::null::<es_events_t>())).lookup as *const _ as usize },
21557 0usize,
21558 concat!(
21559 "Offset of field: ",
21560 stringify!(es_events_t),
21561 "::",
21562 stringify!(lookup)
21563 )
21564 );
21565 assert_eq!(
21566 unsafe { &(*(::std::ptr::null::<es_events_t>())).mmap as *const _ as usize },
21567 0usize,
21568 concat!(
21569 "Offset of field: ",
21570 stringify!(es_events_t),
21571 "::",
21572 stringify!(mmap)
21573 )
21574 );
21575 assert_eq!(
21576 unsafe { &(*(::std::ptr::null::<es_events_t>())).mount as *const _ as usize },
21577 0usize,
21578 concat!(
21579 "Offset of field: ",
21580 stringify!(es_events_t),
21581 "::",
21582 stringify!(mount)
21583 )
21584 );
21585 assert_eq!(
21586 unsafe { &(*(::std::ptr::null::<es_events_t>())).mprotect as *const _ as usize },
21587 0usize,
21588 concat!(
21589 "Offset of field: ",
21590 stringify!(es_events_t),
21591 "::",
21592 stringify!(mprotect)
21593 )
21594 );
21595 assert_eq!(
21596 unsafe { &(*(::std::ptr::null::<es_events_t>())).open as *const _ as usize },
21597 0usize,
21598 concat!(
21599 "Offset of field: ",
21600 stringify!(es_events_t),
21601 "::",
21602 stringify!(open)
21603 )
21604 );
21605 assert_eq!(
21606 unsafe { &(*(::std::ptr::null::<es_events_t>())).proc_check as *const _ as usize },
21607 0usize,
21608 concat!(
21609 "Offset of field: ",
21610 stringify!(es_events_t),
21611 "::",
21612 stringify!(proc_check)
21613 )
21614 );
21615 assert_eq!(
21616 unsafe { &(*(::std::ptr::null::<es_events_t>())).proc_suspend_resume as *const _ as usize },
21617 0usize,
21618 concat!(
21619 "Offset of field: ",
21620 stringify!(es_events_t),
21621 "::",
21622 stringify!(proc_suspend_resume)
21623 )
21624 );
21625 assert_eq!(
21626 unsafe { &(*(::std::ptr::null::<es_events_t>())).pty_close as *const _ as usize },
21627 0usize,
21628 concat!(
21629 "Offset of field: ",
21630 stringify!(es_events_t),
21631 "::",
21632 stringify!(pty_close)
21633 )
21634 );
21635 assert_eq!(
21636 unsafe { &(*(::std::ptr::null::<es_events_t>())).pty_grant as *const _ as usize },
21637 0usize,
21638 concat!(
21639 "Offset of field: ",
21640 stringify!(es_events_t),
21641 "::",
21642 stringify!(pty_grant)
21643 )
21644 );
21645 assert_eq!(
21646 unsafe { &(*(::std::ptr::null::<es_events_t>())).readdir as *const _ as usize },
21647 0usize,
21648 concat!(
21649 "Offset of field: ",
21650 stringify!(es_events_t),
21651 "::",
21652 stringify!(readdir)
21653 )
21654 );
21655 assert_eq!(
21656 unsafe { &(*(::std::ptr::null::<es_events_t>())).readlink as *const _ as usize },
21657 0usize,
21658 concat!(
21659 "Offset of field: ",
21660 stringify!(es_events_t),
21661 "::",
21662 stringify!(readlink)
21663 )
21664 );
21665 assert_eq!(
21666 unsafe {
21667 &(*(::std::ptr::null::<es_events_t>())).remote_thread_create as *const _ as usize
21668 },
21669 0usize,
21670 concat!(
21671 "Offset of field: ",
21672 stringify!(es_events_t),
21673 "::",
21674 stringify!(remote_thread_create)
21675 )
21676 );
21677 assert_eq!(
21678 unsafe { &(*(::std::ptr::null::<es_events_t>())).remount as *const _ as usize },
21679 0usize,
21680 concat!(
21681 "Offset of field: ",
21682 stringify!(es_events_t),
21683 "::",
21684 stringify!(remount)
21685 )
21686 );
21687 assert_eq!(
21688 unsafe { &(*(::std::ptr::null::<es_events_t>())).rename as *const _ as usize },
21689 0usize,
21690 concat!(
21691 "Offset of field: ",
21692 stringify!(es_events_t),
21693 "::",
21694 stringify!(rename)
21695 )
21696 );
21697 assert_eq!(
21698 unsafe { &(*(::std::ptr::null::<es_events_t>())).searchfs as *const _ as usize },
21699 0usize,
21700 concat!(
21701 "Offset of field: ",
21702 stringify!(es_events_t),
21703 "::",
21704 stringify!(searchfs)
21705 )
21706 );
21707 assert_eq!(
21708 unsafe { &(*(::std::ptr::null::<es_events_t>())).setacl as *const _ as usize },
21709 0usize,
21710 concat!(
21711 "Offset of field: ",
21712 stringify!(es_events_t),
21713 "::",
21714 stringify!(setacl)
21715 )
21716 );
21717 assert_eq!(
21718 unsafe { &(*(::std::ptr::null::<es_events_t>())).setattrlist as *const _ as usize },
21719 0usize,
21720 concat!(
21721 "Offset of field: ",
21722 stringify!(es_events_t),
21723 "::",
21724 stringify!(setattrlist)
21725 )
21726 );
21727 assert_eq!(
21728 unsafe { &(*(::std::ptr::null::<es_events_t>())).setextattr as *const _ as usize },
21729 0usize,
21730 concat!(
21731 "Offset of field: ",
21732 stringify!(es_events_t),
21733 "::",
21734 stringify!(setextattr)
21735 )
21736 );
21737 assert_eq!(
21738 unsafe { &(*(::std::ptr::null::<es_events_t>())).setflags as *const _ as usize },
21739 0usize,
21740 concat!(
21741 "Offset of field: ",
21742 stringify!(es_events_t),
21743 "::",
21744 stringify!(setflags)
21745 )
21746 );
21747 assert_eq!(
21748 unsafe { &(*(::std::ptr::null::<es_events_t>())).setmode as *const _ as usize },
21749 0usize,
21750 concat!(
21751 "Offset of field: ",
21752 stringify!(es_events_t),
21753 "::",
21754 stringify!(setmode)
21755 )
21756 );
21757 assert_eq!(
21758 unsafe { &(*(::std::ptr::null::<es_events_t>())).setowner as *const _ as usize },
21759 0usize,
21760 concat!(
21761 "Offset of field: ",
21762 stringify!(es_events_t),
21763 "::",
21764 stringify!(setowner)
21765 )
21766 );
21767 assert_eq!(
21768 unsafe { &(*(::std::ptr::null::<es_events_t>())).settime as *const _ as usize },
21769 0usize,
21770 concat!(
21771 "Offset of field: ",
21772 stringify!(es_events_t),
21773 "::",
21774 stringify!(settime)
21775 )
21776 );
21777 assert_eq!(
21778 unsafe { &(*(::std::ptr::null::<es_events_t>())).signal as *const _ as usize },
21779 0usize,
21780 concat!(
21781 "Offset of field: ",
21782 stringify!(es_events_t),
21783 "::",
21784 stringify!(signal)
21785 )
21786 );
21787 assert_eq!(
21788 unsafe { &(*(::std::ptr::null::<es_events_t>())).stat as *const _ as usize },
21789 0usize,
21790 concat!(
21791 "Offset of field: ",
21792 stringify!(es_events_t),
21793 "::",
21794 stringify!(stat)
21795 )
21796 );
21797 assert_eq!(
21798 unsafe { &(*(::std::ptr::null::<es_events_t>())).trace as *const _ as usize },
21799 0usize,
21800 concat!(
21801 "Offset of field: ",
21802 stringify!(es_events_t),
21803 "::",
21804 stringify!(trace)
21805 )
21806 );
21807 assert_eq!(
21808 unsafe { &(*(::std::ptr::null::<es_events_t>())).truncate as *const _ as usize },
21809 0usize,
21810 concat!(
21811 "Offset of field: ",
21812 stringify!(es_events_t),
21813 "::",
21814 stringify!(truncate)
21815 )
21816 );
21817 assert_eq!(
21818 unsafe { &(*(::std::ptr::null::<es_events_t>())).uipc_bind as *const _ as usize },
21819 0usize,
21820 concat!(
21821 "Offset of field: ",
21822 stringify!(es_events_t),
21823 "::",
21824 stringify!(uipc_bind)
21825 )
21826 );
21827 assert_eq!(
21828 unsafe { &(*(::std::ptr::null::<es_events_t>())).uipc_connect as *const _ as usize },
21829 0usize,
21830 concat!(
21831 "Offset of field: ",
21832 stringify!(es_events_t),
21833 "::",
21834 stringify!(uipc_connect)
21835 )
21836 );
21837 assert_eq!(
21838 unsafe { &(*(::std::ptr::null::<es_events_t>())).unlink as *const _ as usize },
21839 0usize,
21840 concat!(
21841 "Offset of field: ",
21842 stringify!(es_events_t),
21843 "::",
21844 stringify!(unlink)
21845 )
21846 );
21847 assert_eq!(
21848 unsafe { &(*(::std::ptr::null::<es_events_t>())).unmount as *const _ as usize },
21849 0usize,
21850 concat!(
21851 "Offset of field: ",
21852 stringify!(es_events_t),
21853 "::",
21854 stringify!(unmount)
21855 )
21856 );
21857 assert_eq!(
21858 unsafe { &(*(::std::ptr::null::<es_events_t>())).utimes as *const _ as usize },
21859 0usize,
21860 concat!(
21861 "Offset of field: ",
21862 stringify!(es_events_t),
21863 "::",
21864 stringify!(utimes)
21865 )
21866 );
21867 assert_eq!(
21868 unsafe { &(*(::std::ptr::null::<es_events_t>())).write as *const _ as usize },
21869 0usize,
21870 concat!(
21871 "Offset of field: ",
21872 stringify!(es_events_t),
21873 "::",
21874 stringify!(write)
21875 )
21876 );
21877}
21878#[repr(C)]
21879#[derive(Copy, Clone)]
21880pub struct es_result_t {
21881 pub result_type: es_result_type_t,
21882 pub result: es_result_t__bindgen_ty_1,
21883}
21884#[repr(C)]
21885#[derive(Copy, Clone)]
21886pub union es_result_t__bindgen_ty_1 {
21887 pub auth: es_auth_result_t,
21888 pub flags: u32,
21889 pub reserved: [u8; 32usize],
21890 _bindgen_union_align: [u32; 8usize],
21891}
21892#[test]
21893fn bindgen_test_layout_es_result_t__bindgen_ty_1() {
21894 assert_eq!(
21895 ::std::mem::size_of::<es_result_t__bindgen_ty_1>(),
21896 32usize,
21897 concat!("Size of: ", stringify!(es_result_t__bindgen_ty_1))
21898 );
21899 assert_eq!(
21900 ::std::mem::align_of::<es_result_t__bindgen_ty_1>(),
21901 4usize,
21902 concat!("Alignment of ", stringify!(es_result_t__bindgen_ty_1))
21903 );
21904 assert_eq!(
21905 unsafe { &(*(::std::ptr::null::<es_result_t__bindgen_ty_1>())).auth as *const _ as usize },
21906 0usize,
21907 concat!(
21908 "Offset of field: ",
21909 stringify!(es_result_t__bindgen_ty_1),
21910 "::",
21911 stringify!(auth)
21912 )
21913 );
21914 assert_eq!(
21915 unsafe { &(*(::std::ptr::null::<es_result_t__bindgen_ty_1>())).flags as *const _ as usize },
21916 0usize,
21917 concat!(
21918 "Offset of field: ",
21919 stringify!(es_result_t__bindgen_ty_1),
21920 "::",
21921 stringify!(flags)
21922 )
21923 );
21924 assert_eq!(
21925 unsafe {
21926 &(*(::std::ptr::null::<es_result_t__bindgen_ty_1>())).reserved as *const _ as usize
21927 },
21928 0usize,
21929 concat!(
21930 "Offset of field: ",
21931 stringify!(es_result_t__bindgen_ty_1),
21932 "::",
21933 stringify!(reserved)
21934 )
21935 );
21936}
21937#[test]
21938fn bindgen_test_layout_es_result_t() {
21939 assert_eq!(
21940 ::std::mem::size_of::<es_result_t>(),
21941 36usize,
21942 concat!("Size of: ", stringify!(es_result_t))
21943 );
21944 assert_eq!(
21945 ::std::mem::align_of::<es_result_t>(),
21946 4usize,
21947 concat!("Alignment of ", stringify!(es_result_t))
21948 );
21949 assert_eq!(
21950 unsafe { &(*(::std::ptr::null::<es_result_t>())).result_type as *const _ as usize },
21951 0usize,
21952 concat!(
21953 "Offset of field: ",
21954 stringify!(es_result_t),
21955 "::",
21956 stringify!(result_type)
21957 )
21958 );
21959 assert_eq!(
21960 unsafe { &(*(::std::ptr::null::<es_result_t>())).result as *const _ as usize },
21961 4usize,
21962 concat!(
21963 "Offset of field: ",
21964 stringify!(es_result_t),
21965 "::",
21966 stringify!(result)
21967 )
21968 );
21969}
21970#[repr(C)]
21971pub struct es_message_t {
21972 pub version: u32,
21973 pub time: timespec,
21974 pub mach_time: u64,
21975 pub deadline: u64,
21976 pub process: *mut es_process_t,
21977 pub seq_num: u64,
21978 pub action_type: es_action_type_t,
21979 pub action: es_message_t__bindgen_ty_1,
21980 pub event_type: es_event_type_t,
21981 pub event: es_events_t,
21982 pub opaque: __IncompleteArrayField<u64>,
21983}
21984#[repr(C)]
21985#[derive(Copy, Clone)]
21986pub union es_message_t__bindgen_ty_1 {
21987 pub auth: es_event_id_t,
21988 pub notify: es_result_t,
21989 _bindgen_union_align: [u32; 9usize],
21990}
21991#[test]
21992fn bindgen_test_layout_es_message_t__bindgen_ty_1() {
21993 assert_eq!(
21994 ::std::mem::size_of::<es_message_t__bindgen_ty_1>(),
21995 36usize,
21996 concat!("Size of: ", stringify!(es_message_t__bindgen_ty_1))
21997 );
21998 assert_eq!(
21999 ::std::mem::align_of::<es_message_t__bindgen_ty_1>(),
22000 4usize,
22001 concat!("Alignment of ", stringify!(es_message_t__bindgen_ty_1))
22002 );
22003 assert_eq!(
22004 unsafe { &(*(::std::ptr::null::<es_message_t__bindgen_ty_1>())).auth as *const _ as usize },
22005 0usize,
22006 concat!(
22007 "Offset of field: ",
22008 stringify!(es_message_t__bindgen_ty_1),
22009 "::",
22010 stringify!(auth)
22011 )
22012 );
22013 assert_eq!(
22014 unsafe {
22015 &(*(::std::ptr::null::<es_message_t__bindgen_ty_1>())).notify as *const _ as usize
22016 },
22017 0usize,
22018 concat!(
22019 "Offset of field: ",
22020 stringify!(es_message_t__bindgen_ty_1),
22021 "::",
22022 stringify!(notify)
22023 )
22024 );
22025}
22026#[test]
22027fn bindgen_test_layout_es_message_t() {
22028 assert_eq!(
22029 ::std::mem::size_of::<es_message_t>(),
22030 208usize,
22031 concat!("Size of: ", stringify!(es_message_t))
22032 );
22033 assert_eq!(
22034 ::std::mem::align_of::<es_message_t>(),
22035 8usize,
22036 concat!("Alignment of ", stringify!(es_message_t))
22037 );
22038 assert_eq!(
22039 unsafe { &(*(::std::ptr::null::<es_message_t>())).version as *const _ as usize },
22040 0usize,
22041 concat!(
22042 "Offset of field: ",
22043 stringify!(es_message_t),
22044 "::",
22045 stringify!(version)
22046 )
22047 );
22048 assert_eq!(
22049 unsafe { &(*(::std::ptr::null::<es_message_t>())).time as *const _ as usize },
22050 8usize,
22051 concat!(
22052 "Offset of field: ",
22053 stringify!(es_message_t),
22054 "::",
22055 stringify!(time)
22056 )
22057 );
22058 assert_eq!(
22059 unsafe { &(*(::std::ptr::null::<es_message_t>())).mach_time as *const _ as usize },
22060 24usize,
22061 concat!(
22062 "Offset of field: ",
22063 stringify!(es_message_t),
22064 "::",
22065 stringify!(mach_time)
22066 )
22067 );
22068 assert_eq!(
22069 unsafe { &(*(::std::ptr::null::<es_message_t>())).deadline as *const _ as usize },
22070 32usize,
22071 concat!(
22072 "Offset of field: ",
22073 stringify!(es_message_t),
22074 "::",
22075 stringify!(deadline)
22076 )
22077 );
22078 assert_eq!(
22079 unsafe { &(*(::std::ptr::null::<es_message_t>())).process as *const _ as usize },
22080 40usize,
22081 concat!(
22082 "Offset of field: ",
22083 stringify!(es_message_t),
22084 "::",
22085 stringify!(process)
22086 )
22087 );
22088 assert_eq!(
22089 unsafe { &(*(::std::ptr::null::<es_message_t>())).seq_num as *const _ as usize },
22090 48usize,
22091 concat!(
22092 "Offset of field: ",
22093 stringify!(es_message_t),
22094 "::",
22095 stringify!(seq_num)
22096 )
22097 );
22098 assert_eq!(
22099 unsafe { &(*(::std::ptr::null::<es_message_t>())).action_type as *const _ as usize },
22100 56usize,
22101 concat!(
22102 "Offset of field: ",
22103 stringify!(es_message_t),
22104 "::",
22105 stringify!(action_type)
22106 )
22107 );
22108 assert_eq!(
22109 unsafe { &(*(::std::ptr::null::<es_message_t>())).action as *const _ as usize },
22110 60usize,
22111 concat!(
22112 "Offset of field: ",
22113 stringify!(es_message_t),
22114 "::",
22115 stringify!(action)
22116 )
22117 );
22118 assert_eq!(
22119 unsafe { &(*(::std::ptr::null::<es_message_t>())).event_type as *const _ as usize },
22120 96usize,
22121 concat!(
22122 "Offset of field: ",
22123 stringify!(es_message_t),
22124 "::",
22125 stringify!(event_type)
22126 )
22127 );
22128 assert_eq!(
22129 unsafe { &(*(::std::ptr::null::<es_message_t>())).event as *const _ as usize },
22130 104usize,
22131 concat!(
22132 "Offset of field: ",
22133 stringify!(es_message_t),
22134 "::",
22135 stringify!(event)
22136 )
22137 );
22138 assert_eq!(
22139 unsafe { &(*(::std::ptr::null::<es_message_t>())).opaque as *const _ as usize },
22140 208usize,
22141 concat!(
22142 "Offset of field: ",
22143 stringify!(es_message_t),
22144 "::",
22145 stringify!(opaque)
22146 )
22147 );
22148}
22149extern "C" {
22150 pub fn es_message_size(msg: *const es_message_t) -> size_t;
22151}
22152extern "C" {
22153 pub fn es_copy_message(msg: *const es_message_t) -> *mut es_message_t;
22154}
22155extern "C" {
22156 pub fn es_free_message(msg: *mut es_message_t);
22157}
22158extern "C" {
22159 pub fn es_exec_arg_count(event: *const es_event_exec_t) -> u32;
22160}
22161extern "C" {
22162 pub fn es_exec_env_count(event: *const es_event_exec_t) -> u32;
22163}
22164extern "C" {
22165 pub fn es_exec_fd_count(event: *const es_event_exec_t) -> u32;
22166}
22167extern "C" {
22168 pub fn es_exec_arg(event: *const es_event_exec_t, index: u32) -> es_string_token_t;
22169}
22170extern "C" {
22171 pub fn es_exec_env(event: *const es_event_exec_t, index: u32) -> es_string_token_t;
22172}
22173extern "C" {
22174 pub fn es_exec_fd(event: *const es_event_exec_t, index: u32) -> *const es_fd_t;
22175}
22176#[repr(C)]
22177#[derive(Debug, Copy, Clone)]
22178pub struct es_client_s {
22179 pub _unused: [u8; 0],
22180}
22181pub type es_client_t = es_client_s;
22182extern "C" {
22183 pub fn es_subscribe(
22184 client: *mut es_client_t,
22185 events: *const es_event_type_t,
22186 event_count: u32,
22187 ) -> es_return_t;
22188}
22189extern "C" {
22190 pub fn es_unsubscribe(
22191 client: *mut es_client_t,
22192 events: *const es_event_type_t,
22193 event_count: u32,
22194 ) -> es_return_t;
22195}
22196extern "C" {
22197 pub fn es_unsubscribe_all(client: *mut es_client_t) -> es_return_t;
22198}
22199extern "C" {
22200 pub fn es_subscriptions(
22201 client: *mut es_client_t,
22202 count: *mut size_t,
22203 subscriptions: *mut *mut es_event_type_t,
22204 ) -> es_return_t;
22205}
22206extern "C" {
22207 pub fn es_respond_auth_result(
22208 client: *mut es_client_t,
22209 message: *const es_message_t,
22210 result: es_auth_result_t,
22211 cache: bool,
22212 ) -> es_respond_result_t;
22213}
22214extern "C" {
22215 pub fn es_respond_flags_result(
22216 client: *mut es_client_t,
22217 message: *const es_message_t,
22218 authorized_flags: u32,
22219 cache: bool,
22220 ) -> es_respond_result_t;
22221}
22222extern "C" {
22223 pub fn es_mute_process(
22224 client: *mut es_client_t,
22225 audit_token: *const audit_token_t,
22226 ) -> es_return_t;
22227}
22228extern "C" {
22229 pub fn es_unmute_process(
22230 client: *mut es_client_t,
22231 audit_token: *const audit_token_t,
22232 ) -> es_return_t;
22233}
22234extern "C" {
22235 pub fn es_muted_processes(
22236 client: *mut es_client_t,
22237 count: *mut size_t,
22238 audit_tokens: *mut *mut audit_token_t,
22239 ) -> es_return_t;
22240}
22241extern "C" {
22242 pub fn es_mute_path_prefix(
22243 client: *mut es_client_t,
22244 path_prefix: *const ::std::os::raw::c_char,
22245 ) -> es_return_t;
22246}
22247extern "C" {
22248 pub fn es_mute_path_literal(
22249 client: *mut es_client_t,
22250 path_literal: *const ::std::os::raw::c_char,
22251 ) -> es_return_t;
22252}
22253extern "C" {
22254 pub fn es_unmute_all_paths(client: *mut es_client_t) -> es_return_t;
22255}
22256extern "C" {
22257 pub fn es_clear_cache(client: *mut es_client_t) -> es_clear_cache_result_t;
22258}
22259pub type es_handler_block_t = *const ::std::os::raw::c_void;
22261extern "C" {
22263 pub fn es_new_client(
22264 client: *mut *mut es_client_t,
22265 handler: es_handler_block_t,
22266 ) -> es_new_client_result_t;
22267}
22268extern "C" {
22269 pub fn es_delete_client(client: *mut es_client_t) -> es_return_t;
22270}
22271pub type __builtin_va_list = [__va_list_tag; 1usize];
22272#[repr(C)]
22273#[derive(Debug, Copy, Clone)]
22274pub struct __va_list_tag {
22275 pub gp_offset: ::std::os::raw::c_uint,
22276 pub fp_offset: ::std::os::raw::c_uint,
22277 pub overflow_arg_area: *mut ::std::os::raw::c_void,
22278 pub reg_save_area: *mut ::std::os::raw::c_void,
22279}
22280#[test]
22281fn bindgen_test_layout___va_list_tag() {
22282 assert_eq!(
22283 ::std::mem::size_of::<__va_list_tag>(),
22284 24usize,
22285 concat!("Size of: ", stringify!(__va_list_tag))
22286 );
22287 assert_eq!(
22288 ::std::mem::align_of::<__va_list_tag>(),
22289 8usize,
22290 concat!("Alignment of ", stringify!(__va_list_tag))
22291 );
22292 assert_eq!(
22293 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
22294 0usize,
22295 concat!(
22296 "Offset of field: ",
22297 stringify!(__va_list_tag),
22298 "::",
22299 stringify!(gp_offset)
22300 )
22301 );
22302 assert_eq!(
22303 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
22304 4usize,
22305 concat!(
22306 "Offset of field: ",
22307 stringify!(__va_list_tag),
22308 "::",
22309 stringify!(fp_offset)
22310 )
22311 );
22312 assert_eq!(
22313 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
22314 8usize,
22315 concat!(
22316 "Offset of field: ",
22317 stringify!(__va_list_tag),
22318 "::",
22319 stringify!(overflow_arg_area)
22320 )
22321 );
22322 assert_eq!(
22323 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
22324 16usize,
22325 concat!(
22326 "Offset of field: ",
22327 stringify!(__va_list_tag),
22328 "::",
22329 stringify!(reg_save_area)
22330 )
22331 );
22332}