#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
fn extract_bit(byte: u8, index: usize) -> bool {
let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
Self::extract_bit(byte, index)
}
#[inline]
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
Self::extract_bit(byte, index)
}
#[inline]
fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
let mask = 1 << bit_index;
if val {
byte | mask
} else {
byte & !mask
}
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte =
(core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index =
if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
val |= 1 << index;
}
}
val
}
#[inline]
pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
let mut val = 0;
for i in 0..(bit_width as usize) {
if Self::raw_get_bit(this, i + bit_offset) {
let index =
if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
#[inline]
pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
}
}
}
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __WORDSIZE: u32 = 64;
pub const __has_safe_buffers: u32 = 1;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const __DARWIN_NO_LONG_LONG: u32 = 0;
pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __has_ptrcheck: u32 = 0;
pub const USE_CLANG_TYPES: u32 = 0;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const UINTPTR_MAX: i32 = -1;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const __API_TO_BE_DEPRECATED: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_KERNELKIT: u32 = 100000;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __MAC_10_13: u32 = 101300;
pub const __MAC_10_13_1: u32 = 101301;
pub const __MAC_10_13_2: u32 = 101302;
pub const __MAC_10_13_4: u32 = 101304;
pub const __MAC_10_14: u32 = 101400;
pub const __MAC_10_14_1: u32 = 101401;
pub const __MAC_10_14_4: u32 = 101404;
pub const __MAC_10_14_5: u32 = 101405;
pub const __MAC_10_14_6: u32 = 101406;
pub const __MAC_10_15: u32 = 101500;
pub const __MAC_10_15_1: u32 = 101501;
pub const __MAC_10_15_4: u32 = 101504;
pub const __MAC_10_16: u32 = 101600;
pub const __MAC_11_0: u32 = 110000;
pub const __MAC_11_1: u32 = 110100;
pub const __MAC_11_3: u32 = 110300;
pub const __MAC_11_4: u32 = 110400;
pub const __MAC_11_5: u32 = 110500;
pub const __MAC_11_6: u32 = 110600;
pub const __MAC_12_0: u32 = 120000;
pub const __MAC_12_1: u32 = 120100;
pub const __MAC_12_2: u32 = 120200;
pub const __MAC_12_3: u32 = 120300;
pub const __MAC_12_4: u32 = 120400;
pub const __MAC_12_5: u32 = 120500;
pub const __MAC_12_6: u32 = 120600;
pub const __MAC_12_7: u32 = 120700;
pub const __MAC_13_0: u32 = 130000;
pub const __MAC_13_1: u32 = 130100;
pub const __MAC_13_2: u32 = 130200;
pub const __MAC_13_3: u32 = 130300;
pub const __MAC_13_4: u32 = 130400;
pub const __MAC_13_5: u32 = 130500;
pub const __MAC_13_6: u32 = 130600;
pub const __MAC_13_7: u32 = 130700;
pub const __MAC_14_0: u32 = 140000;
pub const __MAC_14_1: u32 = 140100;
pub const __MAC_14_2: u32 = 140200;
pub const __MAC_14_3: u32 = 140300;
pub const __MAC_14_4: u32 = 140400;
pub const __MAC_14_5: u32 = 140500;
pub const __MAC_14_6: u32 = 140600;
pub const __MAC_14_7: u32 = 140700;
pub const __MAC_15_0: u32 = 150000;
pub const __MAC_15_1: u32 = 150100;
pub const __MAC_15_2: u32 = 150200;
pub const __MAC_15_3: u32 = 150300;
pub const __MAC_15_4: u32 = 150400;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __IPHONE_11_0: u32 = 110000;
pub const __IPHONE_11_1: u32 = 110100;
pub const __IPHONE_11_2: u32 = 110200;
pub const __IPHONE_11_3: u32 = 110300;
pub const __IPHONE_11_4: u32 = 110400;
pub const __IPHONE_12_0: u32 = 120000;
pub const __IPHONE_12_1: u32 = 120100;
pub const __IPHONE_12_2: u32 = 120200;
pub const __IPHONE_12_3: u32 = 120300;
pub const __IPHONE_12_4: u32 = 120400;
pub const __IPHONE_13_0: u32 = 130000;
pub const __IPHONE_13_1: u32 = 130100;
pub const __IPHONE_13_2: u32 = 130200;
pub const __IPHONE_13_3: u32 = 130300;
pub const __IPHONE_13_4: u32 = 130400;
pub const __IPHONE_13_5: u32 = 130500;
pub const __IPHONE_13_6: u32 = 130600;
pub const __IPHONE_13_7: u32 = 130700;
pub const __IPHONE_14_0: u32 = 140000;
pub const __IPHONE_14_1: u32 = 140100;
pub const __IPHONE_14_2: u32 = 140200;
pub const __IPHONE_14_3: u32 = 140300;
pub const __IPHONE_14_5: u32 = 140500;
pub const __IPHONE_14_4: u32 = 140400;
pub const __IPHONE_14_6: u32 = 140600;
pub const __IPHONE_14_7: u32 = 140700;
pub const __IPHONE_14_8: u32 = 140800;
pub const __IPHONE_15_0: u32 = 150000;
pub const __IPHONE_15_1: u32 = 150100;
pub const __IPHONE_15_2: u32 = 150200;
pub const __IPHONE_15_3: u32 = 150300;
pub const __IPHONE_15_4: u32 = 150400;
pub const __IPHONE_15_5: u32 = 150500;
pub const __IPHONE_15_6: u32 = 150600;
pub const __IPHONE_15_7: u32 = 150700;
pub const __IPHONE_15_8: u32 = 150800;
pub const __IPHONE_16_0: u32 = 160000;
pub const __IPHONE_16_1: u32 = 160100;
pub const __IPHONE_16_2: u32 = 160200;
pub const __IPHONE_16_3: u32 = 160300;
pub const __IPHONE_16_4: u32 = 160400;
pub const __IPHONE_16_5: u32 = 160500;
pub const __IPHONE_16_6: u32 = 160600;
pub const __IPHONE_16_7: u32 = 160700;
pub const __IPHONE_17_0: u32 = 170000;
pub const __IPHONE_17_1: u32 = 170100;
pub const __IPHONE_17_2: u32 = 170200;
pub const __IPHONE_17_3: u32 = 170300;
pub const __IPHONE_17_4: u32 = 170400;
pub const __IPHONE_17_5: u32 = 170500;
pub const __IPHONE_17_6: u32 = 170600;
pub const __IPHONE_17_7: u32 = 170700;
pub const __IPHONE_18_0: u32 = 180000;
pub const __IPHONE_18_1: u32 = 180100;
pub const __IPHONE_18_2: u32 = 180200;
pub const __IPHONE_18_3: u32 = 180300;
pub const __IPHONE_18_4: u32 = 180400;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __WATCHOS_4_0: u32 = 40000;
pub const __WATCHOS_4_1: u32 = 40100;
pub const __WATCHOS_4_2: u32 = 40200;
pub const __WATCHOS_4_3: u32 = 40300;
pub const __WATCHOS_5_0: u32 = 50000;
pub const __WATCHOS_5_1: u32 = 50100;
pub const __WATCHOS_5_2: u32 = 50200;
pub const __WATCHOS_5_3: u32 = 50300;
pub const __WATCHOS_6_0: u32 = 60000;
pub const __WATCHOS_6_1: u32 = 60100;
pub const __WATCHOS_6_2: u32 = 60200;
pub const __WATCHOS_7_0: u32 = 70000;
pub const __WATCHOS_7_1: u32 = 70100;
pub const __WATCHOS_7_2: u32 = 70200;
pub const __WATCHOS_7_3: u32 = 70300;
pub const __WATCHOS_7_4: u32 = 70400;
pub const __WATCHOS_7_5: u32 = 70500;
pub const __WATCHOS_7_6: u32 = 70600;
pub const __WATCHOS_8_0: u32 = 80000;
pub const __WATCHOS_8_1: u32 = 80100;
pub const __WATCHOS_8_3: u32 = 80300;
pub const __WATCHOS_8_4: u32 = 80400;
pub const __WATCHOS_8_5: u32 = 80500;
pub const __WATCHOS_8_6: u32 = 80600;
pub const __WATCHOS_8_7: u32 = 80700;
pub const __WATCHOS_8_8: u32 = 80800;
pub const __WATCHOS_9_0: u32 = 90000;
pub const __WATCHOS_9_1: u32 = 90100;
pub const __WATCHOS_9_2: u32 = 90200;
pub const __WATCHOS_9_3: u32 = 90300;
pub const __WATCHOS_9_4: u32 = 90400;
pub const __WATCHOS_9_5: u32 = 90500;
pub const __WATCHOS_9_6: u32 = 90600;
pub const __WATCHOS_10_0: u32 = 100000;
pub const __WATCHOS_10_1: u32 = 100100;
pub const __WATCHOS_10_2: u32 = 100200;
pub const __WATCHOS_10_3: u32 = 100300;
pub const __WATCHOS_10_4: u32 = 100400;
pub const __WATCHOS_10_5: u32 = 100500;
pub const __WATCHOS_10_6: u32 = 100600;
pub const __WATCHOS_10_7: u32 = 100700;
pub const __WATCHOS_11_0: u32 = 110000;
pub const __WATCHOS_11_1: u32 = 110100;
pub const __WATCHOS_11_2: u32 = 110200;
pub const __WATCHOS_11_3: u32 = 110300;
pub const __WATCHOS_11_4: u32 = 110400;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __TVOS_11_0: u32 = 110000;
pub const __TVOS_11_1: u32 = 110100;
pub const __TVOS_11_2: u32 = 110200;
pub const __TVOS_11_3: u32 = 110300;
pub const __TVOS_11_4: u32 = 110400;
pub const __TVOS_12_0: u32 = 120000;
pub const __TVOS_12_1: u32 = 120100;
pub const __TVOS_12_2: u32 = 120200;
pub const __TVOS_12_3: u32 = 120300;
pub const __TVOS_12_4: u32 = 120400;
pub const __TVOS_13_0: u32 = 130000;
pub const __TVOS_13_2: u32 = 130200;
pub const __TVOS_13_3: u32 = 130300;
pub const __TVOS_13_4: u32 = 130400;
pub const __TVOS_14_0: u32 = 140000;
pub const __TVOS_14_1: u32 = 140100;
pub const __TVOS_14_2: u32 = 140200;
pub const __TVOS_14_3: u32 = 140300;
pub const __TVOS_14_5: u32 = 140500;
pub const __TVOS_14_6: u32 = 140600;
pub const __TVOS_14_7: u32 = 140700;
pub const __TVOS_15_0: u32 = 150000;
pub const __TVOS_15_1: u32 = 150100;
pub const __TVOS_15_2: u32 = 150200;
pub const __TVOS_15_3: u32 = 150300;
pub const __TVOS_15_4: u32 = 150400;
pub const __TVOS_15_5: u32 = 150500;
pub const __TVOS_15_6: u32 = 150600;
pub const __TVOS_16_0: u32 = 160000;
pub const __TVOS_16_1: u32 = 160100;
pub const __TVOS_16_2: u32 = 160200;
pub const __TVOS_16_3: u32 = 160300;
pub const __TVOS_16_4: u32 = 160400;
pub const __TVOS_16_5: u32 = 160500;
pub const __TVOS_16_6: u32 = 160600;
pub const __TVOS_17_0: u32 = 170000;
pub const __TVOS_17_1: u32 = 170100;
pub const __TVOS_17_2: u32 = 170200;
pub const __TVOS_17_3: u32 = 170300;
pub const __TVOS_17_4: u32 = 170400;
pub const __TVOS_17_5: u32 = 170500;
pub const __TVOS_17_6: u32 = 170600;
pub const __TVOS_18_0: u32 = 180000;
pub const __TVOS_18_1: u32 = 180100;
pub const __TVOS_18_2: u32 = 180200;
pub const __TVOS_18_3: u32 = 180300;
pub const __TVOS_18_4: u32 = 180400;
pub const __BRIDGEOS_2_0: u32 = 20000;
pub const __BRIDGEOS_3_0: u32 = 30000;
pub const __BRIDGEOS_3_1: u32 = 30100;
pub const __BRIDGEOS_3_4: u32 = 30400;
pub const __BRIDGEOS_4_0: u32 = 40000;
pub const __BRIDGEOS_4_1: u32 = 40100;
pub const __BRIDGEOS_5_0: u32 = 50000;
pub const __BRIDGEOS_5_1: u32 = 50100;
pub const __BRIDGEOS_5_3: u32 = 50300;
pub const __BRIDGEOS_6_0: u32 = 60000;
pub const __BRIDGEOS_6_2: u32 = 60200;
pub const __BRIDGEOS_6_4: u32 = 60400;
pub const __BRIDGEOS_6_5: u32 = 60500;
pub const __BRIDGEOS_6_6: u32 = 60600;
pub const __BRIDGEOS_7_0: u32 = 70000;
pub const __BRIDGEOS_7_1: u32 = 70100;
pub const __BRIDGEOS_7_2: u32 = 70200;
pub const __BRIDGEOS_7_3: u32 = 70300;
pub const __BRIDGEOS_7_4: u32 = 70400;
pub const __BRIDGEOS_7_6: u32 = 70600;
pub const __BRIDGEOS_8_0: u32 = 80000;
pub const __BRIDGEOS_8_1: u32 = 80100;
pub const __BRIDGEOS_8_2: u32 = 80200;
pub const __BRIDGEOS_8_3: u32 = 80300;
pub const __BRIDGEOS_8_4: u32 = 80400;
pub const __BRIDGEOS_8_5: u32 = 80500;
pub const __BRIDGEOS_8_6: u32 = 80600;
pub const __BRIDGEOS_9_0: u32 = 90000;
pub const __BRIDGEOS_9_1: u32 = 90100;
pub const __BRIDGEOS_9_2: u32 = 90200;
pub const __BRIDGEOS_9_3: u32 = 90300;
pub const __BRIDGEOS_9_4: u32 = 90400;
pub const __DRIVERKIT_19_0: u32 = 190000;
pub const __DRIVERKIT_20_0: u32 = 200000;
pub const __DRIVERKIT_21_0: u32 = 210000;
pub const __DRIVERKIT_22_0: u32 = 220000;
pub const __DRIVERKIT_22_4: u32 = 220400;
pub const __DRIVERKIT_22_5: u32 = 220500;
pub const __DRIVERKIT_22_6: u32 = 220600;
pub const __DRIVERKIT_23_0: u32 = 230000;
pub const __DRIVERKIT_23_1: u32 = 230100;
pub const __DRIVERKIT_23_2: u32 = 230200;
pub const __DRIVERKIT_23_3: u32 = 230300;
pub const __DRIVERKIT_23_4: u32 = 230400;
pub const __DRIVERKIT_23_5: u32 = 230500;
pub const __DRIVERKIT_23_6: u32 = 230600;
pub const __DRIVERKIT_24_0: u32 = 240000;
pub const __DRIVERKIT_24_1: u32 = 240100;
pub const __DRIVERKIT_24_2: u32 = 240200;
pub const __DRIVERKIT_24_3: u32 = 240300;
pub const __DRIVERKIT_24_4: u32 = 240400;
pub const __VISIONOS_1_0: u32 = 10000;
pub const __VISIONOS_1_1: u32 = 10100;
pub const __VISIONOS_1_2: u32 = 10200;
pub const __VISIONOS_1_3: u32 = 10300;
pub const __VISIONOS_2_0: u32 = 20000;
pub const __VISIONOS_2_1: u32 = 20100;
pub const __VISIONOS_2_2: u32 = 20200;
pub const __VISIONOS_2_3: u32 = 20300;
pub const __VISIONOS_2_4: u32 = 20400;
pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
pub const MAC_OS_VERSION_11_0: u32 = 110000;
pub const MAC_OS_VERSION_11_1: u32 = 110100;
pub const MAC_OS_VERSION_11_3: u32 = 110300;
pub const MAC_OS_VERSION_11_4: u32 = 110400;
pub const MAC_OS_VERSION_11_5: u32 = 110500;
pub const MAC_OS_VERSION_11_6: u32 = 110600;
pub const MAC_OS_VERSION_12_0: u32 = 120000;
pub const MAC_OS_VERSION_12_1: u32 = 120100;
pub const MAC_OS_VERSION_12_2: u32 = 120200;
pub const MAC_OS_VERSION_12_3: u32 = 120300;
pub const MAC_OS_VERSION_12_4: u32 = 120400;
pub const MAC_OS_VERSION_12_5: u32 = 120500;
pub const MAC_OS_VERSION_12_6: u32 = 120600;
pub const MAC_OS_VERSION_12_7: u32 = 120700;
pub const MAC_OS_VERSION_13_0: u32 = 130000;
pub const MAC_OS_VERSION_13_1: u32 = 130100;
pub const MAC_OS_VERSION_13_2: u32 = 130200;
pub const MAC_OS_VERSION_13_3: u32 = 130300;
pub const MAC_OS_VERSION_13_4: u32 = 130400;
pub const MAC_OS_VERSION_13_5: u32 = 130500;
pub const MAC_OS_VERSION_13_6: u32 = 130600;
pub const MAC_OS_VERSION_13_7: u32 = 130700;
pub const MAC_OS_VERSION_14_0: u32 = 140000;
pub const MAC_OS_VERSION_14_1: u32 = 140100;
pub const MAC_OS_VERSION_14_2: u32 = 140200;
pub const MAC_OS_VERSION_14_3: u32 = 140300;
pub const MAC_OS_VERSION_14_4: u32 = 140400;
pub const MAC_OS_VERSION_14_5: u32 = 140500;
pub const MAC_OS_VERSION_14_6: u32 = 140600;
pub const MAC_OS_VERSION_14_7: u32 = 140700;
pub const MAC_OS_VERSION_15_0: u32 = 150000;
pub const MAC_OS_VERSION_15_1: u32 = 150100;
pub const MAC_OS_VERSION_15_2: u32 = 150200;
pub const MAC_OS_VERSION_15_3: u32 = 150300;
pub const MAC_OS_VERSION_15_4: u32 = 150400;
pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900;
pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0";
pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0";
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 150400;
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 2;
pub const __DARWIN_NSIG: u32 = 32;
pub const NSIG: u32 = 32;
pub const _ARM_SIGNAL_: u32 = 1;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGEMT: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGIO: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGINFO: u32 = 29;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const __DARWIN_OPAQUE_ARM_THREAD_STATE64: u32 = 0;
pub const USE_CLANG_STDDEF: u32 = 0;
pub const SIGEV_NONE: u32 = 0;
pub const SIGEV_SIGNAL: u32 = 1;
pub const SIGEV_THREAD: u32 = 3;
pub const ILL_NOOP: u32 = 0;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLTRP: u32 = 2;
pub const ILL_PRVOPC: u32 = 3;
pub const ILL_ILLOPN: u32 = 4;
pub const ILL_ILLADR: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const FPE_NOOP: u32 = 0;
pub const FPE_FLTDIV: u32 = 1;
pub const FPE_FLTOVF: u32 = 2;
pub const FPE_FLTUND: u32 = 3;
pub const FPE_FLTRES: u32 = 4;
pub const FPE_FLTINV: u32 = 5;
pub const FPE_FLTSUB: u32 = 6;
pub const FPE_INTDIV: u32 = 7;
pub const FPE_INTOVF: u32 = 8;
pub const SEGV_NOOP: u32 = 0;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const BUS_NOOP: u32 = 0;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const CLD_NOOP: u32 = 0;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SA_ONSTACK: u32 = 1;
pub const SA_RESTART: u32 = 2;
pub const SA_RESETHAND: u32 = 4;
pub const SA_NOCLDSTOP: u32 = 8;
pub const SA_NODEFER: u32 = 16;
pub const SA_NOCLDWAIT: u32 = 32;
pub const SA_SIGINFO: u32 = 64;
pub const SA_USERTRAMP: u32 = 256;
pub const SA_64REGSET: u32 = 512;
pub const SA_USERSPACE_MASK: u32 = 127;
pub const SIG_BLOCK: u32 = 1;
pub const SIG_UNBLOCK: u32 = 2;
pub const SIG_SETMASK: u32 = 3;
pub const SI_USER: u32 = 65537;
pub const SI_QUEUE: u32 = 65538;
pub const SI_TIMER: u32 = 65539;
pub const SI_ASYNCIO: u32 = 65540;
pub const SI_MESGQ: u32 = 65541;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 4;
pub const MINSIGSTKSZ: u32 = 32768;
pub const SIGSTKSZ: u32 = 131072;
pub const SV_ONSTACK: u32 = 1;
pub const SV_INTERRUPT: u32 = 2;
pub const SV_RESETHAND: u32 = 4;
pub const SV_NODEFER: u32 = 16;
pub const SV_NOCLDSTOP: u32 = 8;
pub const SV_SIGINFO: u32 = 64;
pub const PRIO_PROCESS: u32 = 0;
pub const PRIO_PGRP: u32 = 1;
pub const PRIO_USER: u32 = 2;
pub const PRIO_DARWIN_THREAD: u32 = 3;
pub const PRIO_DARWIN_PROCESS: u32 = 4;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: u32 = 20;
pub const PRIO_DARWIN_BG: u32 = 4096;
pub const PRIO_DARWIN_NONUI: u32 = 4097;
pub const RUSAGE_SELF: u32 = 0;
pub const RUSAGE_CHILDREN: i32 = -1;
pub const RUSAGE_INFO_V0: u32 = 0;
pub const RUSAGE_INFO_V1: u32 = 1;
pub const RUSAGE_INFO_V2: u32 = 2;
pub const RUSAGE_INFO_V3: u32 = 3;
pub const RUSAGE_INFO_V4: u32 = 4;
pub const RUSAGE_INFO_V5: u32 = 5;
pub const RUSAGE_INFO_V6: u32 = 6;
pub const RUSAGE_INFO_CURRENT: u32 = 6;
pub const RU_PROC_RUNS_RESLIDE: u32 = 1;
pub const RLIMIT_CPU: u32 = 0;
pub const RLIMIT_FSIZE: u32 = 1;
pub const RLIMIT_DATA: u32 = 2;
pub const RLIMIT_STACK: u32 = 3;
pub const RLIMIT_CORE: u32 = 4;
pub const RLIMIT_AS: u32 = 5;
pub const RLIMIT_RSS: u32 = 5;
pub const RLIMIT_MEMLOCK: u32 = 6;
pub const RLIMIT_NPROC: u32 = 7;
pub const RLIMIT_NOFILE: u32 = 8;
pub const RLIM_NLIMITS: u32 = 9;
pub const _RLIMIT_POSIX_FLAG: u32 = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2;
pub const RLIMIT_THREAD_CPULIMITS: u32 = 3;
pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4;
pub const WAKEMON_ENABLE: u32 = 1;
pub const WAKEMON_DISABLE: u32 = 2;
pub const WAKEMON_GET_PARAMS: u32 = 4;
pub const WAKEMON_SET_DEFAULTS: u32 = 8;
pub const WAKEMON_MAKE_FATAL: u32 = 16;
pub const CPUMON_MAKE_FATAL: u32 = 4096;
pub const FOOTPRINT_INTERVAL_RESET: u32 = 1;
pub const IOPOL_TYPE_DISK: u32 = 0;
pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2;
pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3;
pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4;
pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5;
pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6;
pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7;
pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8;
pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9;
pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10;
pub const IOPOL_SCOPE_PROCESS: u32 = 0;
pub const IOPOL_SCOPE_THREAD: u32 = 1;
pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2;
pub const IOPOL_DEFAULT: u32 = 0;
pub const IOPOL_IMPORTANT: u32 = 1;
pub const IOPOL_PASSIVE: u32 = 2;
pub const IOPOL_THROTTLE: u32 = 3;
pub const IOPOL_UTILITY: u32 = 4;
pub const IOPOL_STANDARD: u32 = 5;
pub const IOPOL_APPLICATION: u32 = 5;
pub const IOPOL_NORMAL: u32 = 1;
pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0;
pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2;
pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0;
pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1;
pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1;
pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0;
pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE: u32 = 2;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WCOREFLAG: u32 = 128;
pub const _WSTOPPED: u32 = 127;
pub const WEXITED: u32 = 4;
pub const WSTOPPED: u32 = 8;
pub const WCONTINUED: u32 = 16;
pub const WNOWAIT: u32 = 32;
pub const WAIT_ANY: i32 = -1;
pub const WAIT_MYPGRP: u32 = 0;
pub const _QUAD_HIGHWORD: u32 = 1;
pub const _QUAD_LOWWORD: u32 = 0;
pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const __DARWIN_BYTE_ORDER: u32 = 1234;
pub const BYTE_ORDER: u32 = 1234;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __builtin_va_list;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
pub __mbstate8: [::std::os::raw::c_char; 128usize],
pub _mbstateL: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout___mbstate_t() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__mbstate_t>(), 128usize, "Size of __mbstate_t");
assert_eq!(::std::mem::align_of::<__mbstate_t>(), 8usize, "Alignment of __mbstate_t");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__mbstate8) as usize - ptr as usize },
0usize,
"Offset of field: __mbstate_t::__mbstate8"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._mbstateL) as usize - ptr as usize },
0usize,
"Offset of field: __mbstate_t::_mbstateL"
);
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __next: *mut __darwin_pthread_handler_rec,
}
#[test]
fn bindgen_test_layout___darwin_pthread_handler_rec() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_pthread_handler_rec> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_pthread_handler_rec>(),
24usize,
"Size of __darwin_pthread_handler_rec"
);
assert_eq!(
::std::mem::align_of::<__darwin_pthread_handler_rec>(),
8usize,
"Alignment of __darwin_pthread_handler_rec"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__routine) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_pthread_handler_rec::__routine"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__arg) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_pthread_handler_rec::__arg"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
16usize,
"Offset of field: __darwin_pthread_handler_rec::__next"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_attr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_attr_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_attr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_attr_t>(),
64usize,
"Size of _opaque_pthread_attr_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_attr_t>(),
8usize,
"Alignment of _opaque_pthread_attr_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_attr_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_attr_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_cond_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 40usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_cond_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_cond_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_cond_t>(),
48usize,
"Size of _opaque_pthread_cond_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_cond_t>(),
8usize,
"Alignment of _opaque_pthread_cond_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_cond_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_cond_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_condattr_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_condattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_condattr_t>(),
16usize,
"Size of _opaque_pthread_condattr_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_condattr_t>(),
8usize,
"Alignment of _opaque_pthread_condattr_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_condattr_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_condattr_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutex_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_mutex_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_mutex_t>(),
64usize,
"Size of _opaque_pthread_mutex_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_mutex_t>(),
8usize,
"Alignment of _opaque_pthread_mutex_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_mutex_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_mutex_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_mutexattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
16usize,
"Size of _opaque_pthread_mutexattr_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
8usize,
"Alignment of _opaque_pthread_mutexattr_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_mutexattr_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_mutexattr_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_once_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_once_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_once_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_once_t>(),
16usize,
"Size of _opaque_pthread_once_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_once_t>(),
8usize,
"Alignment of _opaque_pthread_once_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_once_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_once_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 192usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlock_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_rwlock_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
200usize,
"Size of _opaque_pthread_rwlock_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
8usize,
"Alignment of _opaque_pthread_rwlock_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_rwlock_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_rwlock_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 16usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_rwlockattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
24usize,
"Size of _opaque_pthread_rwlockattr_t"
);
assert_eq!(
::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
8usize,
"Alignment of _opaque_pthread_rwlockattr_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_rwlockattr_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_rwlockattr_t::__opaque"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_t {
pub __sig: ::std::os::raw::c_long,
pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
pub __opaque: [::std::os::raw::c_char; 8176usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_t() {
const UNINIT: ::std::mem::MaybeUninit<_opaque_pthread_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<_opaque_pthread_t>(), 8192usize, "Size of _opaque_pthread_t");
assert_eq!(
::std::mem::align_of::<_opaque_pthread_t>(),
8usize,
"Alignment of _opaque_pthread_t"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize },
0usize,
"Offset of field: _opaque_pthread_t::__sig"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cleanup_stack) as usize - ptr as usize },
8usize,
"Offset of field: _opaque_pthread_t::__cleanup_stack"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize },
16usize,
"Offset of field: _opaque_pthread_t::__opaque"
);
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = ::std::os::raw::c_uint;
pub type pid_t = __darwin_pid_t;
pub type id_t = __darwin_id_t;
pub type sig_atomic_t = ::std::os::raw::c_int;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulonglong;
pub type register_t = i64;
pub type user_addr_t = u_int64_t;
pub type user_size_t = u_int64_t;
pub type user_ssize_t = i64;
pub type user_long_t = i64;
pub type user_ulong_t = u_int64_t;
pub type user_time_t = i64;
pub type user_off_t = i64;
pub type syscall_arg_t = u_int64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state {
pub __exception: __uint32_t,
pub __fsr: __uint32_t,
pub __far: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_exception_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_exception_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_exception_state>(),
12usize,
"Size of __darwin_arm_exception_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_exception_state>(),
4usize,
"Alignment of __darwin_arm_exception_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__exception) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_exception_state::__exception"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fsr) as usize - ptr as usize },
4usize,
"Offset of field: __darwin_arm_exception_state::__fsr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__far) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_arm_exception_state::__far"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state64 {
pub __far: __uint64_t,
pub __esr: __uint32_t,
pub __exception: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_exception_state64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_exception_state64> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_exception_state64>(),
16usize,
"Size of __darwin_arm_exception_state64"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_exception_state64>(),
8usize,
"Alignment of __darwin_arm_exception_state64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__far) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_exception_state64::__far"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__esr) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_arm_exception_state64::__esr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__exception) as usize - ptr as usize },
12usize,
"Offset of field: __darwin_arm_exception_state64::__exception"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state64_v2 {
pub __far: __uint64_t,
pub __esr: __uint64_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_exception_state64_v2() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_exception_state64_v2> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_exception_state64_v2>(),
16usize,
"Size of __darwin_arm_exception_state64_v2"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_exception_state64_v2>(),
8usize,
"Alignment of __darwin_arm_exception_state64_v2"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__far) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_exception_state64_v2::__far"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__esr) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_arm_exception_state64_v2::__esr"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_thread_state {
pub __r: [__uint32_t; 13usize],
pub __sp: __uint32_t,
pub __lr: __uint32_t,
pub __pc: __uint32_t,
pub __cpsr: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_thread_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_thread_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_thread_state>(),
68usize,
"Size of __darwin_arm_thread_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_thread_state>(),
4usize,
"Alignment of __darwin_arm_thread_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__r) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_thread_state::__r"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sp) as usize - ptr as usize },
52usize,
"Offset of field: __darwin_arm_thread_state::__sp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__lr) as usize - ptr as usize },
56usize,
"Offset of field: __darwin_arm_thread_state::__lr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pc) as usize - ptr as usize },
60usize,
"Offset of field: __darwin_arm_thread_state::__pc"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cpsr) as usize - ptr as usize },
64usize,
"Offset of field: __darwin_arm_thread_state::__cpsr"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_thread_state64 {
pub __x: [__uint64_t; 29usize],
pub __fp: __uint64_t,
pub __lr: __uint64_t,
pub __sp: __uint64_t,
pub __pc: __uint64_t,
pub __cpsr: __uint32_t,
pub __pad: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_thread_state64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_thread_state64> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_thread_state64>(),
272usize,
"Size of __darwin_arm_thread_state64"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_thread_state64>(),
8usize,
"Alignment of __darwin_arm_thread_state64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__x) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_thread_state64::__x"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fp) as usize - ptr as usize },
232usize,
"Offset of field: __darwin_arm_thread_state64::__fp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__lr) as usize - ptr as usize },
240usize,
"Offset of field: __darwin_arm_thread_state64::__lr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sp) as usize - ptr as usize },
248usize,
"Offset of field: __darwin_arm_thread_state64::__sp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pc) as usize - ptr as usize },
256usize,
"Offset of field: __darwin_arm_thread_state64::__pc"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cpsr) as usize - ptr as usize },
264usize,
"Offset of field: __darwin_arm_thread_state64::__cpsr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad) as usize - ptr as usize },
268usize,
"Offset of field: __darwin_arm_thread_state64::__pad"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_vfp_state {
pub __r: [__uint32_t; 64usize],
pub __fpscr: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_vfp_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_vfp_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_vfp_state>(),
260usize,
"Size of __darwin_arm_vfp_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_vfp_state>(),
4usize,
"Alignment of __darwin_arm_vfp_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__r) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_vfp_state::__r"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fpscr) as usize - ptr as usize },
256usize,
"Offset of field: __darwin_arm_vfp_state::__fpscr"
);
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_neon_state64 {
pub __v: [__uint128_t; 32usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_neon_state64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_neon_state64> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_neon_state64>(),
528usize,
"Size of __darwin_arm_neon_state64"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_neon_state64>(),
16usize,
"Alignment of __darwin_arm_neon_state64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__v) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_neon_state64::__v"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fpsr) as usize - ptr as usize },
512usize,
"Offset of field: __darwin_arm_neon_state64::__fpsr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fpcr) as usize - ptr as usize },
516usize,
"Offset of field: __darwin_arm_neon_state64::__fpcr"
);
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_neon_state {
pub __v: [__uint128_t; 16usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_neon_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_neon_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_neon_state>(),
272usize,
"Size of __darwin_arm_neon_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_neon_state>(),
16usize,
"Alignment of __darwin_arm_neon_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__v) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_neon_state::__v"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fpsr) as usize - ptr as usize },
256usize,
"Offset of field: __darwin_arm_neon_state::__fpsr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fpcr) as usize - ptr as usize },
260usize,
"Offset of field: __darwin_arm_neon_state::__fpcr"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __arm_pagein_state {
pub __pagein_error: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___arm_pagein_state() {
const UNINIT: ::std::mem::MaybeUninit<__arm_pagein_state> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__arm_pagein_state>(), 4usize, "Size of __arm_pagein_state");
assert_eq!(
::std::mem::align_of::<__arm_pagein_state>(),
4usize,
"Alignment of __arm_pagein_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pagein_error) as usize - ptr as usize },
0usize,
"Offset of field: __arm_pagein_state::__pagein_error"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme_state {
pub __svcr: __uint64_t,
pub __tpidr2_el0: __uint64_t,
pub __svl_b: __uint16_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_sme_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_sme_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_sme_state>(),
24usize,
"Size of __darwin_arm_sme_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_sme_state>(),
8usize,
"Alignment of __darwin_arm_sme_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__svcr) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_sme_state::__svcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__tpidr2_el0) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_arm_sme_state::__tpidr2_el0"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__svl_b) as usize - ptr as usize },
16usize,
"Offset of field: __darwin_arm_sme_state::__svl_b"
);
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sve_z_state {
pub __z: [[::std::os::raw::c_char; 256usize]; 16usize],
}
#[test]
fn bindgen_test_layout___darwin_arm_sve_z_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_sve_z_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_sve_z_state>(),
4096usize,
"Size of __darwin_arm_sve_z_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_sve_z_state>(),
4usize,
"Alignment of __darwin_arm_sve_z_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__z) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_sve_z_state::__z"
);
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sve_p_state {
pub __p: [[::std::os::raw::c_char; 32usize]; 16usize],
}
#[test]
fn bindgen_test_layout___darwin_arm_sve_p_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_sve_p_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_sve_p_state>(),
512usize,
"Size of __darwin_arm_sve_p_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_sve_p_state>(),
4usize,
"Alignment of __darwin_arm_sve_p_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__p) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_sve_p_state::__p"
);
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme_za_state {
pub __za: [::std::os::raw::c_char; 4096usize],
}
#[test]
fn bindgen_test_layout___darwin_arm_sme_za_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_sme_za_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_sme_za_state>(),
4096usize,
"Size of __darwin_arm_sme_za_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_sme_za_state>(),
4usize,
"Alignment of __darwin_arm_sme_za_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__za) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_sme_za_state::__za"
);
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme2_state {
pub __zt0: [::std::os::raw::c_char; 64usize],
}
#[test]
fn bindgen_test_layout___darwin_arm_sme2_state() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_sme2_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_sme2_state>(),
64usize,
"Size of __darwin_arm_sme2_state"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_sme2_state>(),
4usize,
"Alignment of __darwin_arm_sme2_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__zt0) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_sme2_state::__zt0"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __arm_legacy_debug_state {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
}
#[test]
fn bindgen_test_layout___arm_legacy_debug_state() {
const UNINIT: ::std::mem::MaybeUninit<__arm_legacy_debug_state> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__arm_legacy_debug_state>(),
256usize,
"Size of __arm_legacy_debug_state"
);
assert_eq!(
::std::mem::align_of::<__arm_legacy_debug_state>(),
4usize,
"Alignment of __arm_legacy_debug_state"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bvr) as usize - ptr as usize },
0usize,
"Offset of field: __arm_legacy_debug_state::__bvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bcr) as usize - ptr as usize },
64usize,
"Offset of field: __arm_legacy_debug_state::__bcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wvr) as usize - ptr as usize },
128usize,
"Offset of field: __arm_legacy_debug_state::__wvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wcr) as usize - ptr as usize },
192usize,
"Offset of field: __arm_legacy_debug_state::__wcr"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_debug_state32 {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_debug_state32() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_debug_state32> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_debug_state32>(),
264usize,
"Size of __darwin_arm_debug_state32"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_debug_state32>(),
8usize,
"Alignment of __darwin_arm_debug_state32"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bvr) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_debug_state32::__bvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bcr) as usize - ptr as usize },
64usize,
"Offset of field: __darwin_arm_debug_state32::__bcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wvr) as usize - ptr as usize },
128usize,
"Offset of field: __darwin_arm_debug_state32::__wvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wcr) as usize - ptr as usize },
192usize,
"Offset of field: __darwin_arm_debug_state32::__wcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__mdscr_el1) as usize - ptr as usize },
256usize,
"Offset of field: __darwin_arm_debug_state32::__mdscr_el1"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_debug_state64 {
pub __bvr: [__uint64_t; 16usize],
pub __bcr: [__uint64_t; 16usize],
pub __wvr: [__uint64_t; 16usize],
pub __wcr: [__uint64_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[test]
fn bindgen_test_layout___darwin_arm_debug_state64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_debug_state64> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_debug_state64>(),
520usize,
"Size of __darwin_arm_debug_state64"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_debug_state64>(),
8usize,
"Alignment of __darwin_arm_debug_state64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bvr) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_debug_state64::__bvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__bcr) as usize - ptr as usize },
128usize,
"Offset of field: __darwin_arm_debug_state64::__bcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wvr) as usize - ptr as usize },
256usize,
"Offset of field: __darwin_arm_debug_state64::__wvr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wcr) as usize - ptr as usize },
384usize,
"Offset of field: __darwin_arm_debug_state64::__wcr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__mdscr_el1) as usize - ptr as usize },
512usize,
"Offset of field: __darwin_arm_debug_state64::__mdscr_el1"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_cpmu_state64 {
pub __ctrs: [__uint64_t; 16usize],
}
#[test]
fn bindgen_test_layout___darwin_arm_cpmu_state64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_arm_cpmu_state64> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_arm_cpmu_state64>(),
128usize,
"Size of __darwin_arm_cpmu_state64"
);
assert_eq!(
::std::mem::align_of::<__darwin_arm_cpmu_state64>(),
8usize,
"Alignment of __darwin_arm_cpmu_state64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctrs) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_arm_cpmu_state64::__ctrs"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext32 {
pub __es: __darwin_arm_exception_state,
pub __ss: __darwin_arm_thread_state,
pub __fs: __darwin_arm_vfp_state,
}
#[test]
fn bindgen_test_layout___darwin_mcontext32() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_mcontext32> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_mcontext32>(),
340usize,
"Size of __darwin_mcontext32"
);
assert_eq!(
::std::mem::align_of::<__darwin_mcontext32>(),
4usize,
"Alignment of __darwin_mcontext32"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__es) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_mcontext32::__es"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ss) as usize - ptr as usize },
12usize,
"Offset of field: __darwin_mcontext32::__ss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fs) as usize - ptr as usize },
80usize,
"Offset of field: __darwin_mcontext32::__fs"
);
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext64 {
pub __es: __darwin_arm_exception_state64,
pub __ss: __darwin_arm_thread_state64,
pub __ns: __darwin_arm_neon_state64,
}
#[test]
fn bindgen_test_layout___darwin_mcontext64() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_mcontext64> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_mcontext64>(),
816usize,
"Size of __darwin_mcontext64"
);
assert_eq!(
::std::mem::align_of::<__darwin_mcontext64>(),
16usize,
"Alignment of __darwin_mcontext64"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__es) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_mcontext64::__es"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ss) as usize - ptr as usize },
16usize,
"Offset of field: __darwin_mcontext64::__ss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ns) as usize - ptr as usize },
288usize,
"Offset of field: __darwin_mcontext64::__ns"
);
}
pub type mcontext_t = *mut __darwin_mcontext64;
pub type pthread_attr_t = __darwin_pthread_attr_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_sigaltstack {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_size: __darwin_size_t,
pub ss_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___darwin_sigaltstack() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_sigaltstack> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__darwin_sigaltstack>(),
24usize,
"Size of __darwin_sigaltstack"
);
assert_eq!(
::std::mem::align_of::<__darwin_sigaltstack>(),
8usize,
"Alignment of __darwin_sigaltstack"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_sigaltstack::ss_sp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_sigaltstack::ss_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize },
16usize,
"Offset of field: __darwin_sigaltstack::ss_flags"
);
}
pub type stack_t = __darwin_sigaltstack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_ucontext {
pub uc_onstack: ::std::os::raw::c_int,
pub uc_sigmask: __darwin_sigset_t,
pub uc_stack: __darwin_sigaltstack,
pub uc_link: *mut __darwin_ucontext,
pub uc_mcsize: __darwin_size_t,
pub uc_mcontext: *mut __darwin_mcontext64,
}
#[test]
fn bindgen_test_layout___darwin_ucontext() {
const UNINIT: ::std::mem::MaybeUninit<__darwin_ucontext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__darwin_ucontext>(), 56usize, "Size of __darwin_ucontext");
assert_eq!(
::std::mem::align_of::<__darwin_ucontext>(),
8usize,
"Alignment of __darwin_ucontext"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_onstack) as usize - ptr as usize },
0usize,
"Offset of field: __darwin_ucontext::uc_onstack"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize },
4usize,
"Offset of field: __darwin_ucontext::uc_sigmask"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize },
8usize,
"Offset of field: __darwin_ucontext::uc_stack"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize },
32usize,
"Offset of field: __darwin_ucontext::uc_link"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_mcsize) as usize - ptr as usize },
40usize,
"Offset of field: __darwin_ucontext::uc_mcsize"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize },
48usize,
"Offset of field: __darwin_ucontext::uc_mcontext"
);
}
pub type ucontext_t = __darwin_ucontext;
pub type sigset_t = __darwin_sigset_t;
pub type uid_t = __darwin_uid_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
pub sival_int: ::std::os::raw::c_int,
pub sival_ptr: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_sigval() {
const UNINIT: ::std::mem::MaybeUninit<sigval> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<sigval>(), 8usize, "Size of sigval");
assert_eq!(::std::mem::align_of::<sigval>(), 8usize, "Alignment of sigval");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize },
0usize,
"Offset of field: sigval::sival_int"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize },
0usize,
"Offset of field: sigval::sival_ptr"
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_notify: ::std::os::raw::c_int,
pub sigev_signo: ::std::os::raw::c_int,
pub sigev_value: sigval,
pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
pub sigev_notify_attributes: *mut pthread_attr_t,
}
#[test]
fn bindgen_test_layout_sigevent() {
const UNINIT: ::std::mem::MaybeUninit<sigevent> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<sigevent>(), 32usize, "Size of sigevent");
assert_eq!(::std::mem::align_of::<sigevent>(), 8usize, "Alignment of sigevent");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize },
0usize,
"Offset of field: sigevent::sigev_notify"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize },
4usize,
"Offset of field: sigevent::sigev_signo"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize },
8usize,
"Offset of field: sigevent::sigev_value"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify_function) as usize - ptr as usize },
16usize,
"Offset of field: sigevent::sigev_notify_function"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify_attributes) as usize - ptr as usize },
24usize,
"Offset of field: sigevent::sigev_notify_attributes"
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __siginfo {
pub si_signo: ::std::os::raw::c_int,
pub si_errno: ::std::os::raw::c_int,
pub si_code: ::std::os::raw::c_int,
pub si_pid: pid_t,
pub si_uid: uid_t,
pub si_status: ::std::os::raw::c_int,
pub si_addr: *mut ::std::os::raw::c_void,
pub si_value: sigval,
pub si_band: ::std::os::raw::c_long,
pub __pad: [::std::os::raw::c_ulong; 7usize],
}
#[test]
fn bindgen_test_layout___siginfo() {
const UNINIT: ::std::mem::MaybeUninit<__siginfo> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__siginfo>(), 104usize, "Size of __siginfo");
assert_eq!(::std::mem::align_of::<__siginfo>(), 8usize, "Alignment of __siginfo");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize },
0usize,
"Offset of field: __siginfo::si_signo"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize },
4usize,
"Offset of field: __siginfo::si_errno"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize },
8usize,
"Offset of field: __siginfo::si_code"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_pid) as usize - ptr as usize },
12usize,
"Offset of field: __siginfo::si_pid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_uid) as usize - ptr as usize },
16usize,
"Offset of field: __siginfo::si_uid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_status) as usize - ptr as usize },
20usize,
"Offset of field: __siginfo::si_status"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_addr) as usize - ptr as usize },
24usize,
"Offset of field: __siginfo::si_addr"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_value) as usize - ptr as usize },
32usize,
"Offset of field: __siginfo::si_value"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).si_band) as usize - ptr as usize },
40usize,
"Offset of field: __siginfo::si_band"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad) as usize - ptr as usize },
48usize,
"Offset of field: __siginfo::__pad"
);
}
pub type siginfo_t = __siginfo;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __sigaction_u {
pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub __sa_sigaction: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: *mut __siginfo,
arg3: *mut ::std::os::raw::c_void,
),
>,
}
#[test]
fn bindgen_test_layout___sigaction_u() {
const UNINIT: ::std::mem::MaybeUninit<__sigaction_u> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__sigaction_u>(), 8usize, "Size of __sigaction_u");
assert_eq!(::std::mem::align_of::<__sigaction_u>(), 8usize, "Alignment of __sigaction_u");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sa_handler) as usize - ptr as usize },
0usize,
"Offset of field: __sigaction_u::__sa_handler"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sa_sigaction) as usize - ptr as usize },
0usize,
"Offset of field: __sigaction_u::__sa_sigaction"
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_tramp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut siginfo_t,
arg5: *mut ::std::os::raw::c_void,
),
>,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___sigaction() {
const UNINIT: ::std::mem::MaybeUninit<__sigaction> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<__sigaction>(), 24usize, "Size of __sigaction");
assert_eq!(::std::mem::align_of::<__sigaction>(), 8usize, "Alignment of __sigaction");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sigaction_u) as usize - ptr as usize },
0usize,
"Offset of field: __sigaction::__sigaction_u"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sa_tramp) as usize - ptr as usize },
8usize,
"Offset of field: __sigaction::sa_tramp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize },
16usize,
"Offset of field: __sigaction::sa_mask"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize },
20usize,
"Offset of field: __sigaction::sa_flags"
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sigaction() {
const UNINIT: ::std::mem::MaybeUninit<sigaction> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<sigaction>(), 16usize, "Size of sigaction");
assert_eq!(::std::mem::align_of::<sigaction>(), 8usize, "Alignment of sigaction");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__sigaction_u) as usize - ptr as usize },
0usize,
"Offset of field: sigaction::__sigaction_u"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize },
8usize,
"Offset of field: sigaction::sa_mask"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize },
12usize,
"Offset of field: sigaction::sa_flags"
);
}
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigvec {
pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub sv_mask: ::std::os::raw::c_int,
pub sv_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sigvec() {
const UNINIT: ::std::mem::MaybeUninit<sigvec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<sigvec>(), 16usize, "Size of sigvec");
assert_eq!(::std::mem::align_of::<sigvec>(), 8usize, "Alignment of sigvec");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sv_handler) as usize - ptr as usize },
0usize,
"Offset of field: sigvec::sv_handler"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sv_mask) as usize - ptr as usize },
8usize,
"Offset of field: sigvec::sv_mask"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sv_flags) as usize - ptr as usize },
12usize,
"Offset of field: sigvec::sv_flags"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
pub ss_sp: *mut ::std::os::raw::c_char,
pub ss_onstack: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sigstack() {
const UNINIT: ::std::mem::MaybeUninit<sigstack> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<sigstack>(), 16usize, "Size of sigstack");
assert_eq!(::std::mem::align_of::<sigstack>(), 8usize, "Alignment of sigstack");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize },
0usize,
"Offset of field: sigstack::ss_sp"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ss_onstack) as usize - ptr as usize },
8usize,
"Offset of field: sigstack::ss_onstack"
);
}
extern "C" {
pub fn signal(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __darwin_time_t,
pub tv_usec: __darwin_suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
const UNINIT: ::std::mem::MaybeUninit<timeval> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<timeval>(), 16usize, "Size of timeval");
assert_eq!(::std::mem::align_of::<timeval>(), 8usize, "Alignment of timeval");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
"Offset of field: timeval::tv_sec"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize },
8usize,
"Offset of field: timeval::tv_usec"
);
}
pub type rlim_t = __uint64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage {
pub ru_utime: timeval,
pub ru_stime: timeval,
pub ru_maxrss: ::std::os::raw::c_long,
pub ru_ixrss: ::std::os::raw::c_long,
pub ru_idrss: ::std::os::raw::c_long,
pub ru_isrss: ::std::os::raw::c_long,
pub ru_minflt: ::std::os::raw::c_long,
pub ru_majflt: ::std::os::raw::c_long,
pub ru_nswap: ::std::os::raw::c_long,
pub ru_inblock: ::std::os::raw::c_long,
pub ru_oublock: ::std::os::raw::c_long,
pub ru_msgsnd: ::std::os::raw::c_long,
pub ru_msgrcv: ::std::os::raw::c_long,
pub ru_nsignals: ::std::os::raw::c_long,
pub ru_nvcsw: ::std::os::raw::c_long,
pub ru_nivcsw: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_rusage() {
const UNINIT: ::std::mem::MaybeUninit<rusage> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage>(), 144usize, "Size of rusage");
assert_eq!(::std::mem::align_of::<rusage>(), 8usize, "Alignment of rusage");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_utime) as usize - ptr as usize },
0usize,
"Offset of field: rusage::ru_utime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_stime) as usize - ptr as usize },
16usize,
"Offset of field: rusage::ru_stime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_maxrss) as usize - ptr as usize },
32usize,
"Offset of field: rusage::ru_maxrss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_ixrss) as usize - ptr as usize },
40usize,
"Offset of field: rusage::ru_ixrss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_idrss) as usize - ptr as usize },
48usize,
"Offset of field: rusage::ru_idrss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_isrss) as usize - ptr as usize },
56usize,
"Offset of field: rusage::ru_isrss"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_minflt) as usize - ptr as usize },
64usize,
"Offset of field: rusage::ru_minflt"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_majflt) as usize - ptr as usize },
72usize,
"Offset of field: rusage::ru_majflt"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_nswap) as usize - ptr as usize },
80usize,
"Offset of field: rusage::ru_nswap"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_inblock) as usize - ptr as usize },
88usize,
"Offset of field: rusage::ru_inblock"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_oublock) as usize - ptr as usize },
96usize,
"Offset of field: rusage::ru_oublock"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_msgsnd) as usize - ptr as usize },
104usize,
"Offset of field: rusage::ru_msgsnd"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_msgrcv) as usize - ptr as usize },
112usize,
"Offset of field: rusage::ru_msgrcv"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_nsignals) as usize - ptr as usize },
120usize,
"Offset of field: rusage::ru_nsignals"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_nvcsw) as usize - ptr as usize },
128usize,
"Offset of field: rusage::ru_nvcsw"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ru_nivcsw) as usize - ptr as usize },
136usize,
"Offset of field: rusage::ru_nivcsw"
);
}
pub type rusage_info_t = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v0 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v0() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v0> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v0>(), 96usize, "Size of rusage_info_v0");
assert_eq!(::std::mem::align_of::<rusage_info_v0>(), 8usize, "Alignment of rusage_info_v0");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v0::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v0::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v0::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v0::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v0::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v0::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v0::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v0::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v0::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v0::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v0::ri_proc_exit_abstime"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v1 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v1() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v1> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v1>(), 144usize, "Size of rusage_info_v1");
assert_eq!(::std::mem::align_of::<rusage_info_v1>(), 8usize, "Alignment of rusage_info_v1");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v1::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v1::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v1::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v1::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v1::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v1::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v1::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v1::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v1::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v1::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v1::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v1::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v1::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v1::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v1::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v1::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v1::ri_child_elapsed_abstime"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v2 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v2() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v2> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v2>(), 160usize, "Size of rusage_info_v2");
assert_eq!(::std::mem::align_of::<rusage_info_v2>(), 8usize, "Alignment of rusage_info_v2");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v2::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v2::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v2::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v2::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v2::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v2::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v2::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v2::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v2::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v2::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v2::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v2::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v2::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v2::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v2::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v2::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v2::ri_child_elapsed_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize },
144usize,
"Offset of field: rusage_info_v2::ri_diskio_bytesread"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize },
152usize,
"Offset of field: rusage_info_v2::ri_diskio_byteswritten"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v3 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v3() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v3> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v3>(), 232usize, "Size of rusage_info_v3");
assert_eq!(::std::mem::align_of::<rusage_info_v3>(), 8usize, "Alignment of rusage_info_v3");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v3::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v3::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v3::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v3::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v3::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v3::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v3::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v3::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v3::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v3::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v3::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v3::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v3::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v3::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v3::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v3::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v3::ri_child_elapsed_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize },
144usize,
"Offset of field: rusage_info_v3::ri_diskio_bytesread"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize },
152usize,
"Offset of field: rusage_info_v3::ri_diskio_byteswritten"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_default) as usize - ptr as usize },
160usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_default"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_maintenance) as usize - ptr as usize },
168usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_maintenance"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_background) as usize - ptr as usize },
176usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_background"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_utility) as usize - ptr as usize },
184usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_utility"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_legacy) as usize - ptr as usize },
192usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_legacy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_initiated) as usize - ptr as usize
},
200usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_user_initiated"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_interactive) as usize - ptr as usize
},
208usize,
"Offset of field: rusage_info_v3::ri_cpu_time_qos_user_interactive"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_system_time) as usize - ptr as usize },
216usize,
"Offset of field: rusage_info_v3::ri_billed_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_system_time) as usize - ptr as usize },
224usize,
"Offset of field: rusage_info_v3::ri_serviced_system_time"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v4 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v4() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v4> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v4>(), 296usize, "Size of rusage_info_v4");
assert_eq!(::std::mem::align_of::<rusage_info_v4>(), 8usize, "Alignment of rusage_info_v4");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v4::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v4::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v4::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v4::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v4::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v4::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v4::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v4::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v4::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v4::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v4::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v4::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v4::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v4::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v4::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v4::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v4::ri_child_elapsed_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize },
144usize,
"Offset of field: rusage_info_v4::ri_diskio_bytesread"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize },
152usize,
"Offset of field: rusage_info_v4::ri_diskio_byteswritten"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_default) as usize - ptr as usize },
160usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_default"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_maintenance) as usize - ptr as usize },
168usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_maintenance"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_background) as usize - ptr as usize },
176usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_background"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_utility) as usize - ptr as usize },
184usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_utility"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_legacy) as usize - ptr as usize },
192usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_legacy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_initiated) as usize - ptr as usize
},
200usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_user_initiated"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_interactive) as usize - ptr as usize
},
208usize,
"Offset of field: rusage_info_v4::ri_cpu_time_qos_user_interactive"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_system_time) as usize - ptr as usize },
216usize,
"Offset of field: rusage_info_v4::ri_billed_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_system_time) as usize - ptr as usize },
224usize,
"Offset of field: rusage_info_v4::ri_serviced_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_logical_writes) as usize - ptr as usize },
232usize,
"Offset of field: rusage_info_v4::ri_logical_writes"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_lifetime_max_phys_footprint) as usize - ptr as usize
},
240usize,
"Offset of field: rusage_info_v4::ri_lifetime_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_instructions) as usize - ptr as usize },
248usize,
"Offset of field: rusage_info_v4::ri_instructions"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cycles) as usize - ptr as usize },
256usize,
"Offset of field: rusage_info_v4::ri_cycles"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_energy) as usize - ptr as usize },
264usize,
"Offset of field: rusage_info_v4::ri_billed_energy"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_energy) as usize - ptr as usize },
272usize,
"Offset of field: rusage_info_v4::ri_serviced_energy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_interval_max_phys_footprint) as usize - ptr as usize
},
280usize,
"Offset of field: rusage_info_v4::ri_interval_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_runnable_time) as usize - ptr as usize },
288usize,
"Offset of field: rusage_info_v4::ri_runnable_time"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v5 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
}
#[test]
fn bindgen_test_layout_rusage_info_v5() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v5> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v5>(), 304usize, "Size of rusage_info_v5");
assert_eq!(::std::mem::align_of::<rusage_info_v5>(), 8usize, "Alignment of rusage_info_v5");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v5::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v5::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v5::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v5::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v5::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v5::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v5::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v5::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v5::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v5::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v5::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v5::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v5::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v5::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v5::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v5::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v5::ri_child_elapsed_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize },
144usize,
"Offset of field: rusage_info_v5::ri_diskio_bytesread"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize },
152usize,
"Offset of field: rusage_info_v5::ri_diskio_byteswritten"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_default) as usize - ptr as usize },
160usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_default"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_maintenance) as usize - ptr as usize },
168usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_maintenance"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_background) as usize - ptr as usize },
176usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_background"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_utility) as usize - ptr as usize },
184usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_utility"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_legacy) as usize - ptr as usize },
192usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_legacy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_initiated) as usize - ptr as usize
},
200usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_user_initiated"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_interactive) as usize - ptr as usize
},
208usize,
"Offset of field: rusage_info_v5::ri_cpu_time_qos_user_interactive"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_system_time) as usize - ptr as usize },
216usize,
"Offset of field: rusage_info_v5::ri_billed_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_system_time) as usize - ptr as usize },
224usize,
"Offset of field: rusage_info_v5::ri_serviced_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_logical_writes) as usize - ptr as usize },
232usize,
"Offset of field: rusage_info_v5::ri_logical_writes"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_lifetime_max_phys_footprint) as usize - ptr as usize
},
240usize,
"Offset of field: rusage_info_v5::ri_lifetime_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_instructions) as usize - ptr as usize },
248usize,
"Offset of field: rusage_info_v5::ri_instructions"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cycles) as usize - ptr as usize },
256usize,
"Offset of field: rusage_info_v5::ri_cycles"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_energy) as usize - ptr as usize },
264usize,
"Offset of field: rusage_info_v5::ri_billed_energy"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_energy) as usize - ptr as usize },
272usize,
"Offset of field: rusage_info_v5::ri_serviced_energy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_interval_max_phys_footprint) as usize - ptr as usize
},
280usize,
"Offset of field: rusage_info_v5::ri_interval_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_runnable_time) as usize - ptr as usize },
288usize,
"Offset of field: rusage_info_v5::ri_runnable_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_flags) as usize - ptr as usize },
296usize,
"Offset of field: rusage_info_v5::ri_flags"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v6 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
pub ri_user_ptime: u64,
pub ri_system_ptime: u64,
pub ri_pinstructions: u64,
pub ri_pcycles: u64,
pub ri_energy_nj: u64,
pub ri_penergy_nj: u64,
pub ri_secure_time_in_system: u64,
pub ri_secure_ptime_in_system: u64,
pub ri_neural_footprint: u64,
pub ri_lifetime_max_neural_footprint: u64,
pub ri_interval_max_neural_footprint: u64,
pub ri_reserved: [u64; 9usize],
}
#[test]
fn bindgen_test_layout_rusage_info_v6() {
const UNINIT: ::std::mem::MaybeUninit<rusage_info_v6> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rusage_info_v6>(), 464usize, "Size of rusage_info_v6");
assert_eq!(::std::mem::align_of::<rusage_info_v6>(), 8usize, "Alignment of rusage_info_v6");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize },
0usize,
"Offset of field: rusage_info_v6::ri_uuid"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize },
16usize,
"Offset of field: rusage_info_v6::ri_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize },
24usize,
"Offset of field: rusage_info_v6::ri_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize },
32usize,
"Offset of field: rusage_info_v6::ri_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize },
40usize,
"Offset of field: rusage_info_v6::ri_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize },
48usize,
"Offset of field: rusage_info_v6::ri_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize },
56usize,
"Offset of field: rusage_info_v6::ri_wired_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize },
64usize,
"Offset of field: rusage_info_v6::ri_resident_size"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize },
72usize,
"Offset of field: rusage_info_v6::ri_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize },
80usize,
"Offset of field: rusage_info_v6::ri_proc_start_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize },
88usize,
"Offset of field: rusage_info_v6::ri_proc_exit_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize },
96usize,
"Offset of field: rusage_info_v6::ri_child_user_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize },
104usize,
"Offset of field: rusage_info_v6::ri_child_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize },
112usize,
"Offset of field: rusage_info_v6::ri_child_pkg_idle_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize },
120usize,
"Offset of field: rusage_info_v6::ri_child_interrupt_wkups"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize },
128usize,
"Offset of field: rusage_info_v6::ri_child_pageins"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize },
136usize,
"Offset of field: rusage_info_v6::ri_child_elapsed_abstime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize },
144usize,
"Offset of field: rusage_info_v6::ri_diskio_bytesread"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize },
152usize,
"Offset of field: rusage_info_v6::ri_diskio_byteswritten"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_default) as usize - ptr as usize },
160usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_default"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_maintenance) as usize - ptr as usize },
168usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_maintenance"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_background) as usize - ptr as usize },
176usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_background"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_utility) as usize - ptr as usize },
184usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_utility"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_legacy) as usize - ptr as usize },
192usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_legacy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_initiated) as usize - ptr as usize
},
200usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_user_initiated"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_interactive) as usize - ptr as usize
},
208usize,
"Offset of field: rusage_info_v6::ri_cpu_time_qos_user_interactive"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_system_time) as usize - ptr as usize },
216usize,
"Offset of field: rusage_info_v6::ri_billed_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_system_time) as usize - ptr as usize },
224usize,
"Offset of field: rusage_info_v6::ri_serviced_system_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_logical_writes) as usize - ptr as usize },
232usize,
"Offset of field: rusage_info_v6::ri_logical_writes"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_lifetime_max_phys_footprint) as usize - ptr as usize
},
240usize,
"Offset of field: rusage_info_v6::ri_lifetime_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_instructions) as usize - ptr as usize },
248usize,
"Offset of field: rusage_info_v6::ri_instructions"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_cycles) as usize - ptr as usize },
256usize,
"Offset of field: rusage_info_v6::ri_cycles"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_energy) as usize - ptr as usize },
264usize,
"Offset of field: rusage_info_v6::ri_billed_energy"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_energy) as usize - ptr as usize },
272usize,
"Offset of field: rusage_info_v6::ri_serviced_energy"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_interval_max_phys_footprint) as usize - ptr as usize
},
280usize,
"Offset of field: rusage_info_v6::ri_interval_max_phys_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_runnable_time) as usize - ptr as usize },
288usize,
"Offset of field: rusage_info_v6::ri_runnable_time"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_flags) as usize - ptr as usize },
296usize,
"Offset of field: rusage_info_v6::ri_flags"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_user_ptime) as usize - ptr as usize },
304usize,
"Offset of field: rusage_info_v6::ri_user_ptime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_system_ptime) as usize - ptr as usize },
312usize,
"Offset of field: rusage_info_v6::ri_system_ptime"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pinstructions) as usize - ptr as usize },
320usize,
"Offset of field: rusage_info_v6::ri_pinstructions"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_pcycles) as usize - ptr as usize },
328usize,
"Offset of field: rusage_info_v6::ri_pcycles"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_energy_nj) as usize - ptr as usize },
336usize,
"Offset of field: rusage_info_v6::ri_energy_nj"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_penergy_nj) as usize - ptr as usize },
344usize,
"Offset of field: rusage_info_v6::ri_penergy_nj"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_secure_time_in_system) as usize - ptr as usize },
352usize,
"Offset of field: rusage_info_v6::ri_secure_time_in_system"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_secure_ptime_in_system) as usize - ptr as usize },
360usize,
"Offset of field: rusage_info_v6::ri_secure_ptime_in_system"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_neural_footprint) as usize - ptr as usize },
368usize,
"Offset of field: rusage_info_v6::ri_neural_footprint"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_lifetime_max_neural_footprint) as usize - ptr as usize
},
376usize,
"Offset of field: rusage_info_v6::ri_lifetime_max_neural_footprint"
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).ri_interval_max_neural_footprint) as usize - ptr as usize
},
384usize,
"Offset of field: rusage_info_v6::ri_interval_max_neural_footprint"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ri_reserved) as usize - ptr as usize },
392usize,
"Offset of field: rusage_info_v6::ri_reserved"
);
}
pub type rusage_info_current = rusage_info_v6;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rlimit {
pub rlim_cur: rlim_t,
pub rlim_max: rlim_t,
}
#[test]
fn bindgen_test_layout_rlimit() {
const UNINIT: ::std::mem::MaybeUninit<rlimit> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<rlimit>(), 16usize, "Size of rlimit");
assert_eq!(::std::mem::align_of::<rlimit>(), 8usize, "Alignment of rlimit");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rlim_cur) as usize - ptr as usize },
0usize,
"Offset of field: rlimit::rlim_cur"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rlim_max) as usize - ptr as usize },
8usize,
"Offset of field: rlimit::rlim_max"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct proc_rlimit_control_wakeupmon {
pub wm_flags: u32,
pub wm_rate: i32,
}
#[test]
fn bindgen_test_layout_proc_rlimit_control_wakeupmon() {
const UNINIT: ::std::mem::MaybeUninit<proc_rlimit_control_wakeupmon> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<proc_rlimit_control_wakeupmon>(),
8usize,
"Size of proc_rlimit_control_wakeupmon"
);
assert_eq!(
::std::mem::align_of::<proc_rlimit_control_wakeupmon>(),
4usize,
"Alignment of proc_rlimit_control_wakeupmon"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wm_flags) as usize - ptr as usize },
0usize,
"Offset of field: proc_rlimit_control_wakeupmon::wm_flags"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wm_rate) as usize - ptr as usize },
4usize,
"Offset of field: proc_rlimit_control_wakeupmon::wm_rate"
);
}
extern "C" {
pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setpriority(
arg1: ::std::os::raw::c_int,
arg2: id_t,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union wait {
pub w_status: ::std::os::raw::c_int,
pub w_T: wait__bindgen_ty_1,
pub w_S: wait__bindgen_ty_2,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct wait__bindgen_ty_1 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[test]
fn bindgen_test_layout_wait__bindgen_ty_1() {
assert_eq!(::std::mem::size_of::<wait__bindgen_ty_1>(), 4usize, "Size of wait__bindgen_ty_1");
assert_eq!(
::std::mem::align_of::<wait__bindgen_ty_1>(),
4usize,
"Alignment of wait__bindgen_ty_1"
);
}
impl wait__bindgen_ty_1 {
#[inline]
pub fn w_Termsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) }
}
#[inline]
pub fn set_w_Termsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 7u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Termsig_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
7u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Termsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
7u8,
val as u64,
)
}
}
#[inline]
pub fn w_Coredump(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
}
#[inline]
pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Coredump_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
7usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Coredump_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
7usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn w_Retcode(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Retcode_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Retcode_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Termsig: ::std::os::raw::c_uint,
w_Coredump: ::std::os::raw::c_uint,
w_Retcode: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 7u8, {
let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) };
w_Termsig as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) };
w_Coredump as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) };
w_Retcode as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct wait__bindgen_ty_2 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[test]
fn bindgen_test_layout_wait__bindgen_ty_2() {
assert_eq!(::std::mem::size_of::<wait__bindgen_ty_2>(), 4usize, "Size of wait__bindgen_ty_2");
assert_eq!(
::std::mem::align_of::<wait__bindgen_ty_2>(),
4usize,
"Alignment of wait__bindgen_ty_2"
);
}
impl wait__bindgen_ty_2 {
#[inline]
pub fn w_Stopval(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopval(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopval_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopval_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopsig_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Stopval: ::std::os::raw::c_uint,
w_Stopsig: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) };
w_Stopval as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) };
w_Stopsig as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[test]
fn bindgen_test_layout_wait() {
const UNINIT: ::std::mem::MaybeUninit<wait> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<wait>(), 4usize, "Size of wait");
assert_eq!(::std::mem::align_of::<wait>(), 4usize, "Alignment of wait");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w_status) as usize - ptr as usize },
0usize,
"Offset of field: wait::w_status"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w_T) as usize - ptr as usize },
0usize,
"Offset of field: wait::w_T"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w_S) as usize - ptr as usize },
0usize,
"Offset of field: wait::w_S"
);
}
extern "C" {
pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t;
}
extern "C" {
pub fn waitpid(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> pid_t;
}
extern "C" {
pub fn waitid(
arg1: idtype_t,
arg2: id_t,
arg3: *mut siginfo_t,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wait3(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: *mut rusage,
) -> pid_t;
}
extern "C" {
pub fn wait4(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut rusage,
) -> pid_t;
}
extern "C" {
pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
pub type ct_rune_t = __darwin_ct_rune_t;
pub type rune_t = __darwin_rune_t;
pub type wchar_t = __darwin_wchar_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
const UNINIT: ::std::mem::MaybeUninit<div_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<div_t>(), 8usize, "Size of div_t");
assert_eq!(::std::mem::align_of::<div_t>(), 4usize, "Alignment of div_t");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
"Offset of field: div_t::quot"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
4usize,
"Offset of field: div_t::rem"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<ldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<ldiv_t>(), 16usize, "Size of ldiv_t");
assert_eq!(::std::mem::align_of::<ldiv_t>(), 8usize, "Alignment of ldiv_t");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
"Offset of field: ldiv_t::quot"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
"Offset of field: ldiv_t::rem"
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<lldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(::std::mem::size_of::<lldiv_t>(), 16usize, "Size of lldiv_t");
assert_eq!(::std::mem::align_of::<lldiv_t>(), 8usize, "Alignment of lldiv_t");
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
"Offset of field: lldiv_t::quot"
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
"Offset of field: lldiv_t::rem"
);
}
extern "C" {
pub static mut __mb_cur_max: ::std::os::raw::c_int;
}
pub type malloc_type_id_t = ::std::os::raw::c_ulonglong;
extern "C" {
pub fn malloc_type_malloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_calloc(
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_free(ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t);
}
extern "C" {
pub fn malloc_type_realloc(
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_valloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_aligned_alloc(
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_posix_memalign(
memptr: *mut *mut ::std::os::raw::c_void,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _malloc_zone_t {
_unused: [u8; 0],
}
pub type malloc_zone_t = _malloc_zone_t;
extern "C" {
pub fn malloc_type_zone_malloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_calloc(
zone: *mut malloc_zone_t,
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_free(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
type_id: malloc_type_id_t,
);
}
extern "C" {
pub fn malloc_type_zone_realloc(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_valloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_memalign(
zone: *mut malloc_zone_t,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__count: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(arg1: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn reallocf(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn aligned_alloc(
__alignment: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn abort() -> !;
}
extern "C" {
pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn at_quick_exit(
arg1: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn mbtowc(
arg1: *mut wchar_t,
arg2: *const ::std::os::raw::c_char,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn quick_exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(arg1: ::std::os::raw::c_uint);
}
extern "C" {
pub fn strtod(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtof(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
extern "C" {
pub fn strtol(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn strtold(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtoll(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoul(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtoull(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _Exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn ecvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn fcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getsubopt(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate(
arg1: ::std::os::raw::c_uint,
arg2: *mut ::std::os::raw::c_char,
__size: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort);
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ptsname_r(
fildes: ::std::os::raw::c_int,
buffer: *mut ::std::os::raw::c_char,
buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_realpath$DARWIN_EXTSN"]
pub fn realpath(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__overwrite: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setkey(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn srand48(arg1: ::std::os::raw::c_long);
}
extern "C" {
pub fn srandom(arg1: ::std::os::raw::c_uint);
}
extern "C" {
pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
pub type dev_t = __darwin_dev_t;
pub type mode_t = __darwin_mode_t;
extern "C" {
pub fn arc4random() -> u32;
}
extern "C" {
pub fn arc4random_addrandom(
arg1: *mut ::std::os::raw::c_uchar,
__datlen: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize);
}
extern "C" {
pub fn arc4random_stir();
}
extern "C" {
pub fn arc4random_uniform(__upper_bound: u32) -> u32;
}
extern "C" {
pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bsearch_b(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn cgetcap(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn cgetclose() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetent(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetfirst(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetmatch(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetnext(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetnum(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetstr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetustr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn daemon(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn devname_r(
arg1: dev_t,
arg2: mode_t,
buf: *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getbsize(
arg1: *mut ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_long,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getloadavg(arg1: *mut f64, __nelem: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getprogname() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn setprogname(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn heapsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn heapsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mergesort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mergesort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn psort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn psort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn psort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn qsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn qsort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn radixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sradixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sranddev();
}
extern "C" {
pub fn srandomdev();
}
extern "C" {
pub fn strtonum(
__numstr: *const ::std::os::raw::c_char,
__minval: ::std::os::raw::c_longlong,
__maxval: ::std::os::raw::c_longlong,
__errstrp: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtouq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub static mut suboptarg: *mut ::std::os::raw::c_char;
}
pub const DatumType_TRACT_DATUM_TYPE_BOOL: DatumType = 1;
pub const DatumType_TRACT_DATUM_TYPE_U8: DatumType = 17;
pub const DatumType_TRACT_DATUM_TYPE_U16: DatumType = 18;
pub const DatumType_TRACT_DATUM_TYPE_U32: DatumType = 20;
pub const DatumType_TRACT_DATUM_TYPE_U64: DatumType = 24;
pub const DatumType_TRACT_DATUM_TYPE_I8: DatumType = 33;
pub const DatumType_TRACT_DATUM_TYPE_I16: DatumType = 34;
pub const DatumType_TRACT_DATUM_TYPE_I32: DatumType = 36;
pub const DatumType_TRACT_DATUM_TYPE_I64: DatumType = 40;
pub const DatumType_TRACT_DATUM_TYPE_F16: DatumType = 50;
pub const DatumType_TRACT_DATUM_TYPE_F32: DatumType = 52;
pub const DatumType_TRACT_DATUM_TYPE_F64: DatumType = 56;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_I16: DatumType = 66;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_I32: DatumType = 68;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_I64: DatumType = 72;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_F16: DatumType = 82;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_F32: DatumType = 84;
pub const DatumType_TRACT_DATUM_TYPE_COMPLEX_F64: DatumType = 88;
pub type DatumType = ::std::os::raw::c_uint;
#[doc = " The function returned successfully"]
pub const TRACT_RESULT_TRACT_RESULT_OK: TRACT_RESULT = 0;
#[doc = " The function returned an error"]
pub const TRACT_RESULT_TRACT_RESULT_KO: TRACT_RESULT = 1;
#[doc = " Used as a return type of functions that can encounter errors.\n If the function encountered an error, you can retrieve it using the `tract_get_last_error`\n function"]
pub type TRACT_RESULT = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractFact {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractInferenceFact {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractInferenceModel {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractModel {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractNnef {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractOnnx {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractRunnable {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractState {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TractValue {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Retrieve the last error that happened in this thread. A function encountered an error if\n its return type is of type `TRACT_RESULT` and it returned `TRACT_RESULT_KO`.\n\n # Return value\n It returns a pointer to a null-terminated UTF-8 string that will contain the error description.\n Rust side keeps ownership of the buffer. It will be valid as long as no other tract calls is\n performed by the thread.\n If no error occured, null is returned."]
pub fn tract_get_last_error() -> *const ::std::os::raw::c_char;
}
extern "C" {
#[doc = " Returns a pointer to a static buffer containing a null-terminated version string.\n\n The returned pointer must not be freed."]
pub fn tract_version() -> *const ::std::os::raw::c_char;
}
extern "C" {
#[doc = " Frees a string allocated by libtract."]
pub fn tract_free_cstring(ptr: *mut ::std::os::raw::c_char);
}
extern "C" {
#[doc = " Creates an instance of an NNEF framework and parser that can be used to load and dump NNEF models.\n\n The returned object should be destroyed with `tract_nnef_destroy` once the model\n has been loaded."]
pub fn tract_nnef_create(nnef: *mut *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_transform_model(
nnef: *const TractNnef,
model: *mut TractModel,
transform_spec: *const i8,
) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_tract_core(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_tract_extra(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_tract_transformers(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_onnx(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_pulse(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_nnef_enable_extended_identifier_syntax(nnef: *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded."]
pub fn tract_nnef_destroy(nnef: *mut *mut TractNnef) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Parse and load an NNEF model as a tract TypedModel.\n\n `path` is a null-terminated utf-8 string pointer. It can be an archive (tar or tar.gz file) or a\n directory."]
pub fn tract_nnef_model_for_path(
nnef: *const TractNnef,
path: *const ::std::os::raw::c_char,
model: *mut *mut TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Dump a TypedModel as a NNEF tar file.\n\n `path` is a null-terminated utf-8 string pointer to the `.tar` file to be created.\n\n This function creates a plain, non-compressed, archive."]
pub fn tract_nnef_write_model_to_tar(
nnef: *const TractNnef,
path: *const ::std::os::raw::c_char,
model: *const TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Dump a TypedModel as a NNEF .tar.gz file.\n\n `path` is a null-terminated utf-8 string pointer to the `.tar.gz` file to be created."]
pub fn tract_nnef_write_model_to_tar_gz(
nnef: *const TractNnef,
path: *const ::std::os::raw::c_char,
model: *const TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Dump a TypedModel as a NNEF directory.\n\n `path` is a null-terminated utf-8 string pointer to the directory to be created.\n\n This function creates a plain, non-compressed, archive."]
pub fn tract_nnef_write_model_to_dir(
nnef: *const TractNnef,
path: *const ::std::os::raw::c_char,
model: *const TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Creates an instance of an ONNX framework and parser that can be used to load models.\n\n The returned object should be destroyed with `tract_nnef_destroy` once the model\n has been loaded."]
pub fn tract_onnx_create(onnx: *mut *mut TractOnnx) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded."]
pub fn tract_onnx_destroy(onnx: *mut *mut TractOnnx) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Parse and load an ONNX model as a tract InferenceModel.\n\n `path` is a null-terminated utf-8 string pointer. It must point to a `.onnx` model file."]
pub fn tract_onnx_model_for_path(
onnx: *const TractOnnx,
path: *const ::std::os::raw::c_char,
model: *mut *mut TractInferenceModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an InferenceModel input counts."]
pub fn tract_inference_model_input_count(
model: *const TractInferenceModel,
inputs: *mut usize,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an InferenceModel output counts."]
pub fn tract_inference_model_output_count(
model: *const TractInferenceModel,
outputs: *mut usize,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the name of a model input.\n\n The returned name must be freed by the caller using tract_free_cstring."]
pub fn tract_inference_model_input_name(
model: *const TractInferenceModel,
input: usize,
name: *mut *mut ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the name of a model output.\n\n The returned name must be freed by the caller using tract_free_cstring."]
pub fn tract_inference_model_output_name(
model: *const TractInferenceModel,
output: usize,
name: *mut *mut i8,
) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_inference_model_input_fact(
model: *const TractInferenceModel,
input_id: usize,
fact: *mut *mut TractInferenceFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Set an input fact of an InferenceModel.\n\n The `fact` argument is only borrowed by this function, it still must be destroyed.\n `fact` can be set to NULL to erase the current output fact of the model."]
pub fn tract_inference_model_set_input_fact(
model: *mut TractInferenceModel,
input_id: usize,
fact: *const TractInferenceFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Change the model outputs nodes (by name).\n\n `names` is an array containing `len` pointers to null terminated strings."]
pub fn tract_inference_model_set_output_names(
model: *mut TractInferenceModel,
len: usize,
names: *const *const ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an output fact for an InferenceModel.\n\n The return model must be freed using `tract_inference_fact_destroy`."]
pub fn tract_inference_model_output_fact(
model: *const TractInferenceModel,
output_id: usize,
fact: *mut *mut TractInferenceFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Set an output fact of an InferenceModel.\n\n The `fact` argument is only borrowed by this function, it still must be destroyed.\n `fact` can be set to NULL to erase the current output fact of the model."]
pub fn tract_inference_model_set_output_fact(
model: *mut TractInferenceModel,
output_id: usize,
fact: *const TractInferenceFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Analyse an InferencedModel in-place."]
pub fn tract_inference_model_analyse(model: *mut TractInferenceModel) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Convenience function to obtain an optimized TypedModel from an InferenceModel.\n\n This function takes ownership of the InferenceModel `model` whether it succeeds\n or not. `tract_inference_model_destroy` must not be used on `model`.\n\n On the other hand, caller will be owning the newly created `optimized` model."]
pub fn tract_inference_model_into_optimized(
model: *mut *mut TractInferenceModel,
optimized: *mut *mut TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Transform a fully analysed InferenceModel to a TypedModel.\n\n This function takes ownership of the InferenceModel `model` whether it succeeds\n or not. `tract_inference_model_destroy` must not be used on `model`.\n\n On the other hand, caller will be owning the newly created `optimized` model."]
pub fn tract_inference_model_into_typed(
model: *mut *mut TractInferenceModel,
typed: *mut *mut TractModel,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy an InferenceModel."]
pub fn tract_inference_model_destroy(model: *mut *mut TractInferenceModel) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an InferenceModel input counts."]
pub fn tract_model_input_count(model: *const TractModel, inputs: *mut usize) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an InferenceModel output counts."]
pub fn tract_model_output_count(model: *const TractModel, outputs: *mut usize) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the name of a model input.\n\n The returned name must be freed by the caller using tract_free_cstring."]
pub fn tract_model_input_name(
model: *const TractModel,
input: usize,
name: *mut *mut ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the input fact of a model.\n\n Thre returned fact must be freed with tract_fact_destroy."]
pub fn tract_model_input_fact(
model: *const TractModel,
input_id: usize,
fact: *mut *mut TractFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the name of a model output.\n\n The returned name must be freed by the caller using tract_free_cstring."]
pub fn tract_model_output_name(
model: *const TractModel,
output: usize,
name: *mut *mut ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the output fact of a model.\n\n Thre returned fact must be freed with tract_fact_destroy."]
pub fn tract_model_output_fact(
model: *const TractModel,
input_id: usize,
fact: *mut *mut TractFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Change the model outputs nodes (by name).\n\n `names` is an array containing `len` pointers to null terminated strings."]
pub fn tract_model_set_output_names(
model: *mut TractModel,
len: usize,
names: *const *const ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Give value one or more symbols used in the model.\n\n * symbols is an array of `nb_symbols` pointers to null-terminated UTF-8 string for the symbols\n names to substitue\n * values is an array of `nb_symbols` integer values"]
pub fn tract_model_concretize_symbols(
model: *mut TractModel,
nb_symbols: usize,
symbols: *const *const i8,
values: *const i64,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Pulsify the model\n\n * stream_symbol is the name of the stream symbol\n * pulse expression is a dim to use as the pulse size (like \"8\", \"P\" or \"3*p\")."]
pub fn tract_model_pulse_simple(
model: *mut *mut TractModel,
stream_symbol: *const i8,
pulse_expr: *const i8,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Apply a transform to the model."]
pub fn tract_model_transform(model: *mut TractModel, transform: *const i8) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Declutter a TypedModel in-place."]
pub fn tract_model_declutter(model: *mut TractModel) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Optimize a TypedModel in-place."]
pub fn tract_model_optimize(model: *mut TractModel) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Perform a profile of the model using the provided inputs."]
pub fn tract_model_profile_json(
model: *mut TractModel,
inputs: *mut *mut TractValue,
json: *mut *mut i8,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Convert a TypedModel into a TypedRunnableModel.\n\n This function transfers ownership of the `model` argument to the newly-created `runnable` model.\n\n Runnable are reference counted. When done, it should be released with `tract_runnable_release`."]
pub fn tract_model_into_runnable(
model: *mut *mut TractModel,
runnable: *mut *mut TractRunnable,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the number of properties in a model."]
pub fn tract_model_property_count(model: *const TractModel, count: *mut usize) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query the properties names of a model.\n\n The \"names\" array should be big enough to fit `tract_model_property_count` string pointers.\n\n Each name will have to be freed using `tract_free_cstring`."]
pub fn tract_model_property_names(
model: *const TractModel,
names: *mut *mut i8,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query a property value in a model."]
pub fn tract_model_property(
model: *const TractModel,
name: *const i8,
value: *mut *mut TractValue,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy a TypedModel."]
pub fn tract_model_destroy(model: *mut *mut TractModel) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Spawn a session state from a runnable model.\n\n This function does not take ownership of the `runnable` object, it can be used again to spawn\n other state instances. The runnable object is internally reference counted, it will be\n kept alive as long as any associated `State` exists (or as long as the `runnable` is not\n explicitely release with `tract_runnable_release`).\n\n `state` is a newly-created object. It should ultimately be detroyed with `tract_state_destroy`."]
pub fn tract_runnable_spawn_state(
runnable: *mut TractRunnable,
state: *mut *mut TractState,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Convenience function to run a stateless model.\n\n `inputs` is a pointer to an pre-existing array of input TractValue. Its length *must* be equal\n to the number of inputs of the models. The function does not take ownership of the input\n values.\n `outputs` is a pointer to a pre-existing array of TractValue pointers that will be overwritten\n with pointers to outputs values. These values are under the responsiblity of the caller, it\n will have to release them with `tract_value_destroy`."]
pub fn tract_runnable_run(
runnable: *mut TractRunnable,
inputs: *mut *mut TractValue,
outputs: *mut *mut TractValue,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query a Runnable input counts."]
pub fn tract_runnable_input_count(
model: *const TractRunnable,
inputs: *mut usize,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an Runnable output counts."]
pub fn tract_runnable_output_count(
model: *const TractRunnable,
outputs: *mut usize,
) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_runnable_release(runnable: *mut *mut TractRunnable) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Create a TractValue (aka tensor) from caller data and metadata.\n\n This call copies the data into tract space. All the pointers only need to be alive for the\n duration of the call.\n\n rank is the number of dimensions of the tensor (i.e. the length of the shape vector).\n\n The returned value must be destroyed by `tract_value_destroy`."]
pub fn tract_value_from_bytes(
datum_type: DatumType,
rank: usize,
shape: *const usize,
data: *mut ::std::os::raw::c_void,
value: *mut *mut TractValue,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy a value."]
pub fn tract_value_destroy(value: *mut *mut TractValue) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Inspect part of a value. Except `value`, all argument pointers can be null if only some specific bits\n are required."]
pub fn tract_value_as_bytes(
value: *mut TractValue,
datum_type: *mut DatumType,
rank: *mut usize,
shape: *mut *const usize,
data: *mut *const ::std::os::raw::c_void,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Run a turn on a model state\n\n `inputs` is a pointer to an pre-existing array of input TractValue. Its length *must* be equal\n to the number of inputs of the models. The function does not take ownership of the input\n values.\n `outputs` is a pointer to a pre-existing array of TractValue pointers that will be overwritten\n with pointers to outputs values. These values are under the responsiblity of the caller, it\n will have to release them with `tract_value_destroy`."]
pub fn tract_state_run(
state: *mut TractState,
inputs: *mut *mut TractValue,
outputs: *mut *mut TractValue,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query a State input counts."]
pub fn tract_state_input_count(state: *const TractState, inputs: *mut usize) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Query an State output counts."]
pub fn tract_state_output_count(state: *const TractState, outputs: *mut usize) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_state_destroy(state: *mut *mut TractState) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Parse a fact specification string into an Fact.\n\n The returned fact must be free with `tract_fact_destroy`."]
pub fn tract_fact_parse(
model: *mut TractModel,
spec: *const ::std::os::raw::c_char,
fact: *mut *mut TractFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Write a fact as its specification string.\n\n The returned string must be freed by the caller using tract_free_cstring."]
pub fn tract_fact_dump(
fact: *const TractFact,
spec: *mut *mut ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
pub fn tract_fact_destroy(fact: *mut *mut TractFact) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Parse a fact specification string into an InferenceFact.\n\n The returned fact must be free with `tract_inference_fact_destroy`."]
pub fn tract_inference_fact_parse(
model: *mut TractInferenceModel,
spec: *const ::std::os::raw::c_char,
fact: *mut *mut TractInferenceFact,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Creates an empty inference fact.\n\n The returned fact must be freed by the caller using tract_inference_fact_destroy"]
pub fn tract_inference_fact_empty(fact: *mut *mut TractInferenceFact) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Write an inference fact as its specification string.\n\n The returned string must be freed by the caller using tract_free_cstring."]
pub fn tract_inference_fact_dump(
fact: *const TractInferenceFact,
spec: *mut *mut ::std::os::raw::c_char,
) -> TRACT_RESULT;
}
extern "C" {
#[doc = " Destroy a fact."]
pub fn tract_inference_fact_destroy(fact: *mut *mut TractInferenceFact) -> TRACT_RESULT;
}
pub type __builtin_va_list = *mut ::std::os::raw::c_char;
pub type __uint128_t = u128;