Created
February 12, 2018 09:16
-
-
Save daschl/b198f21e34e51d4ccde5a2e4cb1dec07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen */ | |
#[repr(C)] | |
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] | |
pub struct __BindgenBitfieldUnit<Storage, Align> | |
where | |
Storage: AsRef<[u8]> + AsMut<[u8]>, | |
{ | |
storage: Storage, | |
align: [Align; 0], | |
} | |
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> | |
where | |
Storage: AsRef<[u8]> + AsMut<[u8]>, | |
{ | |
#[inline] | |
pub fn new(storage: Storage) -> Self { | |
Self { storage, align: [] } | |
} | |
#[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]; | |
let bit_index = index % 8; | |
let mask = 1 << bit_index; | |
byte & mask == 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]; | |
let bit_index = index % 8; | |
let mask = 1 << bit_index; | |
if val { | |
*byte |= mask; | |
} else { | |
*byte &= !mask; | |
} | |
} | |
#[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) { | |
val |= 1 << i; | |
} | |
} | |
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; | |
self.set_bit(i + bit_offset, val_bit_is_set); | |
} | |
} | |
} | |
pub const __DARWIN_ONLY_64_BIT_INO_T: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_ONLY_VERS_1050: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 1; | |
pub const __DARWIN_UNIX03: ::std::os::raw::c_uint = 1; | |
pub const __DARWIN_64_BIT_INO_T: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_VERS_1050: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_NON_CANCELABLE: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0"; | |
pub const __DARWIN_C_ANSI: ::std::os::raw::c_uint = 4096; | |
pub const __DARWIN_C_FULL: ::std::os::raw::c_uint = 900000; | |
pub const __DARWIN_C_LEVEL: ::std::os::raw::c_uint = 900000; | |
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 1; | |
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: ::std::os::raw::c_uint = 3; | |
pub const __MAC_10_0: ::std::os::raw::c_uint = 1000; | |
pub const __MAC_10_1: ::std::os::raw::c_uint = 1010; | |
pub const __MAC_10_2: ::std::os::raw::c_uint = 1020; | |
pub const __MAC_10_3: ::std::os::raw::c_uint = 1030; | |
pub const __MAC_10_4: ::std::os::raw::c_uint = 1040; | |
pub const __MAC_10_5: ::std::os::raw::c_uint = 1050; | |
pub const __MAC_10_6: ::std::os::raw::c_uint = 1060; | |
pub const __MAC_10_7: ::std::os::raw::c_uint = 1070; | |
pub const __MAC_10_8: ::std::os::raw::c_uint = 1080; | |
pub const __MAC_10_9: ::std::os::raw::c_uint = 1090; | |
pub const __MAC_10_10: ::std::os::raw::c_uint = 101000; | |
pub const __MAC_10_10_2: ::std::os::raw::c_uint = 101002; | |
pub const __MAC_10_10_3: ::std::os::raw::c_uint = 101003; | |
pub const __MAC_10_11: ::std::os::raw::c_uint = 101100; | |
pub const __MAC_10_11_2: ::std::os::raw::c_uint = 101102; | |
pub const __MAC_10_11_3: ::std::os::raw::c_uint = 101103; | |
pub const __MAC_10_11_4: ::std::os::raw::c_uint = 101104; | |
pub const __IPHONE_2_0: ::std::os::raw::c_uint = 20000; | |
pub const __IPHONE_2_1: ::std::os::raw::c_uint = 20100; | |
pub const __IPHONE_2_2: ::std::os::raw::c_uint = 20200; | |
pub const __IPHONE_3_0: ::std::os::raw::c_uint = 30000; | |
pub const __IPHONE_3_1: ::std::os::raw::c_uint = 30100; | |
pub const __IPHONE_3_2: ::std::os::raw::c_uint = 30200; | |
pub const __IPHONE_4_0: ::std::os::raw::c_uint = 40000; | |
pub const __IPHONE_4_1: ::std::os::raw::c_uint = 40100; | |
pub const __IPHONE_4_2: ::std::os::raw::c_uint = 40200; | |
pub const __IPHONE_4_3: ::std::os::raw::c_uint = 40300; | |
pub const __IPHONE_5_0: ::std::os::raw::c_uint = 50000; | |
pub const __IPHONE_5_1: ::std::os::raw::c_uint = 50100; | |
pub const __IPHONE_6_0: ::std::os::raw::c_uint = 60000; | |
pub const __IPHONE_6_1: ::std::os::raw::c_uint = 60100; | |
pub const __IPHONE_7_0: ::std::os::raw::c_uint = 70000; | |
pub const __IPHONE_7_1: ::std::os::raw::c_uint = 70100; | |
pub const __IPHONE_8_0: ::std::os::raw::c_uint = 80000; | |
pub const __IPHONE_8_1: ::std::os::raw::c_uint = 80100; | |
pub const __IPHONE_8_2: ::std::os::raw::c_uint = 80200; | |
pub const __IPHONE_8_3: ::std::os::raw::c_uint = 80300; | |
pub const __IPHONE_8_4: ::std::os::raw::c_uint = 80400; | |
pub const __IPHONE_9_0: ::std::os::raw::c_uint = 90000; | |
pub const __IPHONE_9_1: ::std::os::raw::c_uint = 90100; | |
pub const __IPHONE_9_2: ::std::os::raw::c_uint = 90200; | |
pub const __IPHONE_9_3: ::std::os::raw::c_uint = 90300; | |
pub const __TVOS_9_0: ::std::os::raw::c_uint = 90000; | |
pub const __TVOS_9_1: ::std::os::raw::c_uint = 90100; | |
pub const __TVOS_9_2: ::std::os::raw::c_uint = 90200; | |
pub const __WATCHOS_1_0: ::std::os::raw::c_uint = 10000; | |
pub const __WATCHOS_2_0: ::std::os::raw::c_uint = 20000; | |
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: ::std::os::raw::c_uint = 101104; | |
pub const __PTHREAD_SIZE__: ::std::os::raw::c_uint = 8176; | |
pub const __PTHREAD_ATTR_SIZE__: ::std::os::raw::c_uint = 56; | |
pub const __PTHREAD_MUTEXATTR_SIZE__: ::std::os::raw::c_uint = 8; | |
pub const __PTHREAD_MUTEX_SIZE__: ::std::os::raw::c_uint = 56; | |
pub const __PTHREAD_CONDATTR_SIZE__: ::std::os::raw::c_uint = 8; | |
pub const __PTHREAD_COND_SIZE__: ::std::os::raw::c_uint = 40; | |
pub const __PTHREAD_ONCE_SIZE__: ::std::os::raw::c_uint = 8; | |
pub const __PTHREAD_RWLOCK_SIZE__: ::std::os::raw::c_uint = 192; | |
pub const __PTHREAD_RWLOCKATTR_SIZE__: ::std::os::raw::c_uint = 16; | |
pub const __DARWIN_WCHAR_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const _FORTIFY_SOURCE: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_NSIG: ::std::os::raw::c_uint = 32; | |
pub const NSIG: ::std::os::raw::c_uint = 32; | |
pub const _I386_SIGNAL_H_: ::std::os::raw::c_uint = 1; | |
pub const SIGHUP: ::std::os::raw::c_uint = 1; | |
pub const SIGINT: ::std::os::raw::c_uint = 2; | |
pub const SIGQUIT: ::std::os::raw::c_uint = 3; | |
pub const SIGILL: ::std::os::raw::c_uint = 4; | |
pub const SIGTRAP: ::std::os::raw::c_uint = 5; | |
pub const SIGABRT: ::std::os::raw::c_uint = 6; | |
pub const SIGIOT: ::std::os::raw::c_uint = 6; | |
pub const SIGEMT: ::std::os::raw::c_uint = 7; | |
pub const SIGFPE: ::std::os::raw::c_uint = 8; | |
pub const SIGKILL: ::std::os::raw::c_uint = 9; | |
pub const SIGBUS: ::std::os::raw::c_uint = 10; | |
pub const SIGSEGV: ::std::os::raw::c_uint = 11; | |
pub const SIGSYS: ::std::os::raw::c_uint = 12; | |
pub const SIGPIPE: ::std::os::raw::c_uint = 13; | |
pub const SIGALRM: ::std::os::raw::c_uint = 14; | |
pub const SIGTERM: ::std::os::raw::c_uint = 15; | |
pub const SIGURG: ::std::os::raw::c_uint = 16; | |
pub const SIGSTOP: ::std::os::raw::c_uint = 17; | |
pub const SIGTSTP: ::std::os::raw::c_uint = 18; | |
pub const SIGCONT: ::std::os::raw::c_uint = 19; | |
pub const SIGCHLD: ::std::os::raw::c_uint = 20; | |
pub const SIGTTIN: ::std::os::raw::c_uint = 21; | |
pub const SIGTTOU: ::std::os::raw::c_uint = 22; | |
pub const SIGIO: ::std::os::raw::c_uint = 23; | |
pub const SIGXCPU: ::std::os::raw::c_uint = 24; | |
pub const SIGXFSZ: ::std::os::raw::c_uint = 25; | |
pub const SIGVTALRM: ::std::os::raw::c_uint = 26; | |
pub const SIGPROF: ::std::os::raw::c_uint = 27; | |
pub const SIGWINCH: ::std::os::raw::c_uint = 28; | |
pub const SIGINFO: ::std::os::raw::c_uint = 29; | |
pub const SIGUSR1: ::std::os::raw::c_uint = 30; | |
pub const SIGUSR2: ::std::os::raw::c_uint = 31; | |
pub const FP_PREC_24B: ::std::os::raw::c_uint = 0; | |
pub const FP_PREC_53B: ::std::os::raw::c_uint = 2; | |
pub const FP_PREC_64B: ::std::os::raw::c_uint = 3; | |
pub const FP_RND_NEAR: ::std::os::raw::c_uint = 0; | |
pub const FP_RND_DOWN: ::std::os::raw::c_uint = 1; | |
pub const FP_RND_UP: ::std::os::raw::c_uint = 2; | |
pub const FP_CHOP: ::std::os::raw::c_uint = 3; | |
pub const FP_STATE_BYTES: ::std::os::raw::c_uint = 512; | |
pub const SIGEV_NONE: ::std::os::raw::c_uint = 0; | |
pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 1; | |
pub const SIGEV_THREAD: ::std::os::raw::c_uint = 3; | |
pub const ILL_NOOP: ::std::os::raw::c_uint = 0; | |
pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; | |
pub const ILL_ILLTRP: ::std::os::raw::c_uint = 2; | |
pub const ILL_PRVOPC: ::std::os::raw::c_uint = 3; | |
pub const ILL_ILLOPN: ::std::os::raw::c_uint = 4; | |
pub const ILL_ILLADR: ::std::os::raw::c_uint = 5; | |
pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; | |
pub const ILL_COPROC: ::std::os::raw::c_uint = 7; | |
pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; | |
pub const FPE_NOOP: ::std::os::raw::c_uint = 0; | |
pub const FPE_FLTDIV: ::std::os::raw::c_uint = 1; | |
pub const FPE_FLTOVF: ::std::os::raw::c_uint = 2; | |
pub const FPE_FLTUND: ::std::os::raw::c_uint = 3; | |
pub const FPE_FLTRES: ::std::os::raw::c_uint = 4; | |
pub const FPE_FLTINV: ::std::os::raw::c_uint = 5; | |
pub const FPE_FLTSUB: ::std::os::raw::c_uint = 6; | |
pub const FPE_INTDIV: ::std::os::raw::c_uint = 7; | |
pub const FPE_INTOVF: ::std::os::raw::c_uint = 8; | |
pub const SEGV_NOOP: ::std::os::raw::c_uint = 0; | |
pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; | |
pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; | |
pub const BUS_NOOP: ::std::os::raw::c_uint = 0; | |
pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; | |
pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; | |
pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; | |
pub const TRAP_BRKPT: ::std::os::raw::c_uint = 1; | |
pub const TRAP_TRACE: ::std::os::raw::c_uint = 2; | |
pub const CLD_NOOP: ::std::os::raw::c_uint = 0; | |
pub const CLD_EXITED: ::std::os::raw::c_uint = 1; | |
pub const CLD_KILLED: ::std::os::raw::c_uint = 2; | |
pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; | |
pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; | |
pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; | |
pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; | |
pub const POLL_IN: ::std::os::raw::c_uint = 1; | |
pub const POLL_OUT: ::std::os::raw::c_uint = 2; | |
pub const POLL_MSG: ::std::os::raw::c_uint = 3; | |
pub const POLL_ERR: ::std::os::raw::c_uint = 4; | |
pub const POLL_PRI: ::std::os::raw::c_uint = 5; | |
pub const POLL_HUP: ::std::os::raw::c_uint = 6; | |
pub const SA_ONSTACK: ::std::os::raw::c_uint = 1; | |
pub const SA_RESTART: ::std::os::raw::c_uint = 2; | |
pub const SA_RESETHAND: ::std::os::raw::c_uint = 4; | |
pub const SA_NOCLDSTOP: ::std::os::raw::c_uint = 8; | |
pub const SA_NODEFER: ::std::os::raw::c_uint = 16; | |
pub const SA_NOCLDWAIT: ::std::os::raw::c_uint = 32; | |
pub const SA_SIGINFO: ::std::os::raw::c_uint = 64; | |
pub const SA_USERTRAMP: ::std::os::raw::c_uint = 256; | |
pub const SA_64REGSET: ::std::os::raw::c_uint = 512; | |
pub const SA_USERSPACE_MASK: ::std::os::raw::c_uint = 127; | |
pub const SIG_BLOCK: ::std::os::raw::c_uint = 1; | |
pub const SIG_UNBLOCK: ::std::os::raw::c_uint = 2; | |
pub const SIG_SETMASK: ::std::os::raw::c_uint = 3; | |
pub const SI_USER: ::std::os::raw::c_uint = 65537; | |
pub const SI_QUEUE: ::std::os::raw::c_uint = 65538; | |
pub const SI_TIMER: ::std::os::raw::c_uint = 65539; | |
pub const SI_ASYNCIO: ::std::os::raw::c_uint = 65540; | |
pub const SI_MESGQ: ::std::os::raw::c_uint = 65541; | |
pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; | |
pub const SS_DISABLE: ::std::os::raw::c_uint = 4; | |
pub const MINSIGSTKSZ: ::std::os::raw::c_uint = 32768; | |
pub const SIGSTKSZ: ::std::os::raw::c_uint = 131072; | |
pub const SV_ONSTACK: ::std::os::raw::c_uint = 1; | |
pub const SV_INTERRUPT: ::std::os::raw::c_uint = 2; | |
pub const SV_RESETHAND: ::std::os::raw::c_uint = 4; | |
pub const SV_NODEFER: ::std::os::raw::c_uint = 16; | |
pub const SV_NOCLDSTOP: ::std::os::raw::c_uint = 8; | |
pub const SV_SIGINFO: ::std::os::raw::c_uint = 64; | |
pub const __WORDSIZE: ::std::os::raw::c_uint = 64; | |
pub const INT8_MAX: ::std::os::raw::c_uint = 127; | |
pub const INT16_MAX: ::std::os::raw::c_uint = 32767; | |
pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const INT64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const INT8_MIN: ::std::os::raw::c_int = -128; | |
pub const INT16_MIN: ::std::os::raw::c_int = -32768; | |
pub const INT32_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const INT64_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const UINT8_MAX: ::std::os::raw::c_uint = 255; | |
pub const UINT16_MAX: ::std::os::raw::c_uint = 65535; | |
pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295; | |
pub const UINT64_MAX: ::std::os::raw::c_int = -1; | |
pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128; | |
pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768; | |
pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const INT_LEAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127; | |
pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767; | |
pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const INT_LEAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255; | |
pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535; | |
pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295; | |
pub const UINT_LEAST64_MAX: ::std::os::raw::c_int = -1; | |
pub const INT_FAST8_MIN: ::std::os::raw::c_int = -128; | |
pub const INT_FAST16_MIN: ::std::os::raw::c_int = -32768; | |
pub const INT_FAST32_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const INT_FAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const INT_FAST8_MAX: ::std::os::raw::c_uint = 127; | |
pub const INT_FAST16_MAX: ::std::os::raw::c_uint = 32767; | |
pub const INT_FAST32_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const INT_FAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const UINT_FAST8_MAX: ::std::os::raw::c_uint = 255; | |
pub const UINT_FAST16_MAX: ::std::os::raw::c_uint = 65535; | |
pub const UINT_FAST32_MAX: ::std::os::raw::c_uint = 4294967295; | |
pub const UINT_FAST64_MAX: ::std::os::raw::c_int = -1; | |
pub const INTPTR_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const INTPTR_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const UINTPTR_MAX: ::std::os::raw::c_int = -1; | |
pub const INTMAX_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const INTMAX_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const UINTMAX_MAX: ::std::os::raw::c_int = -1; | |
pub const PTRDIFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const PTRDIFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const SIZE_MAX: ::std::os::raw::c_int = -1; | |
pub const WINT_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const WINT_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const SIG_ATOMIC_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const SIG_ATOMIC_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const PRIO_PROCESS: ::std::os::raw::c_uint = 0; | |
pub const PRIO_PGRP: ::std::os::raw::c_uint = 1; | |
pub const PRIO_USER: ::std::os::raw::c_uint = 2; | |
pub const PRIO_DARWIN_THREAD: ::std::os::raw::c_uint = 3; | |
pub const PRIO_DARWIN_PROCESS: ::std::os::raw::c_uint = 4; | |
pub const PRIO_MIN: ::std::os::raw::c_int = -20; | |
pub const PRIO_MAX: ::std::os::raw::c_uint = 20; | |
pub const PRIO_DARWIN_BG: ::std::os::raw::c_uint = 4096; | |
pub const PRIO_DARWIN_NONUI: ::std::os::raw::c_uint = 4097; | |
pub const RUSAGE_SELF: ::std::os::raw::c_uint = 0; | |
pub const RUSAGE_CHILDREN: ::std::os::raw::c_int = -1; | |
pub const RUSAGE_INFO_V0: ::std::os::raw::c_uint = 0; | |
pub const RUSAGE_INFO_V1: ::std::os::raw::c_uint = 1; | |
pub const RUSAGE_INFO_V2: ::std::os::raw::c_uint = 2; | |
pub const RUSAGE_INFO_V3: ::std::os::raw::c_uint = 3; | |
pub const RUSAGE_INFO_CURRENT: ::std::os::raw::c_uint = 3; | |
pub const RLIMIT_CPU: ::std::os::raw::c_uint = 0; | |
pub const RLIMIT_FSIZE: ::std::os::raw::c_uint = 1; | |
pub const RLIMIT_DATA: ::std::os::raw::c_uint = 2; | |
pub const RLIMIT_STACK: ::std::os::raw::c_uint = 3; | |
pub const RLIMIT_CORE: ::std::os::raw::c_uint = 4; | |
pub const RLIMIT_AS: ::std::os::raw::c_uint = 5; | |
pub const RLIMIT_RSS: ::std::os::raw::c_uint = 5; | |
pub const RLIMIT_MEMLOCK: ::std::os::raw::c_uint = 6; | |
pub const RLIMIT_NPROC: ::std::os::raw::c_uint = 7; | |
pub const RLIMIT_NOFILE: ::std::os::raw::c_uint = 8; | |
pub const RLIM_NLIMITS: ::std::os::raw::c_uint = 9; | |
pub const _RLIMIT_POSIX_FLAG: ::std::os::raw::c_uint = 4096; | |
pub const RLIMIT_WAKEUPS_MONITOR: ::std::os::raw::c_uint = 1; | |
pub const RLIMIT_CPU_USAGE_MONITOR: ::std::os::raw::c_uint = 2; | |
pub const RLIMIT_THREAD_CPULIMITS: ::std::os::raw::c_uint = 3; | |
pub const WAKEMON_ENABLE: ::std::os::raw::c_uint = 1; | |
pub const WAKEMON_DISABLE: ::std::os::raw::c_uint = 2; | |
pub const WAKEMON_GET_PARAMS: ::std::os::raw::c_uint = 4; | |
pub const WAKEMON_SET_DEFAULTS: ::std::os::raw::c_uint = 8; | |
pub const WAKEMON_MAKE_FATAL: ::std::os::raw::c_uint = 16; | |
pub const CPUMON_MAKE_FATAL: ::std::os::raw::c_uint = 4096; | |
pub const IOPOL_TYPE_DISK: ::std::os::raw::c_uint = 0; | |
pub const IOPOL_SCOPE_PROCESS: ::std::os::raw::c_uint = 0; | |
pub const IOPOL_SCOPE_THREAD: ::std::os::raw::c_uint = 1; | |
pub const IOPOL_SCOPE_DARWIN_BG: ::std::os::raw::c_uint = 2; | |
pub const IOPOL_DEFAULT: ::std::os::raw::c_uint = 0; | |
pub const IOPOL_IMPORTANT: ::std::os::raw::c_uint = 1; | |
pub const IOPOL_PASSIVE: ::std::os::raw::c_uint = 2; | |
pub const IOPOL_THROTTLE: ::std::os::raw::c_uint = 3; | |
pub const IOPOL_UTILITY: ::std::os::raw::c_uint = 4; | |
pub const IOPOL_STANDARD: ::std::os::raw::c_uint = 5; | |
pub const IOPOL_APPLICATION: ::std::os::raw::c_uint = 5; | |
pub const IOPOL_NORMAL: ::std::os::raw::c_uint = 1; | |
pub const WNOHANG: ::std::os::raw::c_uint = 1; | |
pub const WUNTRACED: ::std::os::raw::c_uint = 2; | |
pub const WCOREFLAG: ::std::os::raw::c_uint = 128; | |
pub const _WSTOPPED: ::std::os::raw::c_uint = 127; | |
pub const WEXITED: ::std::os::raw::c_uint = 4; | |
pub const WSTOPPED: ::std::os::raw::c_uint = 8; | |
pub const WCONTINUED: ::std::os::raw::c_uint = 16; | |
pub const WNOWAIT: ::std::os::raw::c_uint = 32; | |
pub const WAIT_ANY: ::std::os::raw::c_int = -1; | |
pub const WAIT_MYPGRP: ::std::os::raw::c_uint = 0; | |
pub const _QUAD_HIGHWORD: ::std::os::raw::c_uint = 1; | |
pub const _QUAD_LOWWORD: ::std::os::raw::c_uint = 0; | |
pub const __DARWIN_LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234; | |
pub const __DARWIN_BIG_ENDIAN: ::std::os::raw::c_uint = 4321; | |
pub const __DARWIN_PDP_ENDIAN: ::std::os::raw::c_uint = 3412; | |
pub const __DARWIN_BYTE_ORDER: ::std::os::raw::c_uint = 1234; | |
pub const LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234; | |
pub const BIG_ENDIAN: ::std::os::raw::c_uint = 4321; | |
pub const PDP_ENDIAN: ::std::os::raw::c_uint = 3412; | |
pub const BYTE_ORDER: ::std::os::raw::c_uint = 1234; | |
pub const EXIT_FAILURE: ::std::os::raw::c_uint = 1; | |
pub const EXIT_SUCCESS: ::std::os::raw::c_uint = 0; | |
pub const RAND_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const _LIBCPP_VERSION: ::std::os::raw::c_uint = 3700; | |
pub const _LIBCPP_ABI_VERSION: ::std::os::raw::c_uint = 1; | |
pub const _LIBCPP_LITTLE_ENDIAN: ::std::os::raw::c_uint = 1; | |
pub const _LIBCPP_BIG_ENDIAN: ::std::os::raw::c_uint = 0; | |
pub const _LIBCPP_LOCALE__L_EXTENSIONS: ::std::os::raw::c_uint = 1; | |
pub const _LIBCPP_HAS_CATOPEN: ::std::os::raw::c_uint = 1; | |
pub const _LIBCPP_TRIVIAL_PAIR_COPY_CTOR: ::std::os::raw::c_uint = 1; | |
pub const _LIBCPP_STD_VER: ::std::os::raw::c_uint = 14; | |
pub const __GNUC_VA_LIST: ::std::os::raw::c_uint = 1; | |
pub const __SLBF: ::std::os::raw::c_uint = 1; | |
pub const __SNBF: ::std::os::raw::c_uint = 2; | |
pub const __SRD: ::std::os::raw::c_uint = 4; | |
pub const __SWR: ::std::os::raw::c_uint = 8; | |
pub const __SRW: ::std::os::raw::c_uint = 16; | |
pub const __SEOF: ::std::os::raw::c_uint = 32; | |
pub const __SERR: ::std::os::raw::c_uint = 64; | |
pub const __SMBF: ::std::os::raw::c_uint = 128; | |
pub const __SAPP: ::std::os::raw::c_uint = 256; | |
pub const __SSTR: ::std::os::raw::c_uint = 512; | |
pub const __SOPT: ::std::os::raw::c_uint = 1024; | |
pub const __SNPT: ::std::os::raw::c_uint = 2048; | |
pub const __SOFF: ::std::os::raw::c_uint = 4096; | |
pub const __SMOD: ::std::os::raw::c_uint = 8192; | |
pub const __SALC: ::std::os::raw::c_uint = 16384; | |
pub const __SIGN: ::std::os::raw::c_uint = 32768; | |
pub const _IOFBF: ::std::os::raw::c_uint = 0; | |
pub const _IOLBF: ::std::os::raw::c_uint = 1; | |
pub const _IONBF: ::std::os::raw::c_uint = 2; | |
pub const BUFSIZ: ::std::os::raw::c_uint = 1024; | |
pub const EOF: ::std::os::raw::c_int = -1; | |
pub const FOPEN_MAX: ::std::os::raw::c_uint = 20; | |
pub const FILENAME_MAX: ::std::os::raw::c_uint = 1024; | |
pub const P_tmpdir: &'static [u8; 10usize] = b"/var/tmp/\0"; | |
pub const L_tmpnam: ::std::os::raw::c_uint = 1024; | |
pub const TMP_MAX: ::std::os::raw::c_uint = 308915776; | |
pub const SEEK_SET: ::std::os::raw::c_uint = 0; | |
pub const SEEK_CUR: ::std::os::raw::c_uint = 1; | |
pub const SEEK_END: ::std::os::raw::c_uint = 2; | |
pub const L_ctermid: ::std::os::raw::c_uint = 1024; | |
pub const __CTERMID_DEFINED: ::std::os::raw::c_uint = 1; | |
pub const CLOCKS_PER_SEC: ::std::os::raw::c_uint = 1000000; | |
pub const _CACHED_RUNES: ::std::os::raw::c_uint = 256; | |
pub const _CRMASK: ::std::os::raw::c_int = -256; | |
pub const _RUNE_MAGIC_A: &'static [u8; 9usize] = b"RuneMagA\0"; | |
pub const _CTYPE_A: ::std::os::raw::c_uint = 256; | |
pub const _CTYPE_C: ::std::os::raw::c_uint = 512; | |
pub const _CTYPE_D: ::std::os::raw::c_uint = 1024; | |
pub const _CTYPE_G: ::std::os::raw::c_uint = 2048; | |
pub const _CTYPE_L: ::std::os::raw::c_uint = 4096; | |
pub const _CTYPE_P: ::std::os::raw::c_uint = 8192; | |
pub const _CTYPE_S: ::std::os::raw::c_uint = 16384; | |
pub const _CTYPE_U: ::std::os::raw::c_uint = 32768; | |
pub const _CTYPE_X: ::std::os::raw::c_uint = 65536; | |
pub const _CTYPE_B: ::std::os::raw::c_uint = 131072; | |
pub const _CTYPE_R: ::std::os::raw::c_uint = 262144; | |
pub const _CTYPE_I: ::std::os::raw::c_uint = 524288; | |
pub const _CTYPE_T: ::std::os::raw::c_uint = 1048576; | |
pub const _CTYPE_Q: ::std::os::raw::c_uint = 2097152; | |
pub const _CTYPE_SW0: ::std::os::raw::c_uint = 536870912; | |
pub const _CTYPE_SW1: ::std::os::raw::c_uint = 1073741824; | |
pub const _CTYPE_SW2: ::std::os::raw::c_uint = 2147483648; | |
pub const _CTYPE_SW3: ::std::os::raw::c_uint = 3221225472; | |
pub const _CTYPE_SWM: ::std::os::raw::c_uint = 3758096384; | |
pub const _CTYPE_SWS: ::std::os::raw::c_uint = 30; | |
pub const __DARWIN_CLK_TCK: ::std::os::raw::c_uint = 100; | |
pub const CHAR_BIT: ::std::os::raw::c_uint = 8; | |
pub const MB_LEN_MAX: ::std::os::raw::c_uint = 6; | |
pub const CLK_TCK: ::std::os::raw::c_uint = 100; | |
pub const SCHAR_MAX: ::std::os::raw::c_uint = 127; | |
pub const SCHAR_MIN: ::std::os::raw::c_int = -128; | |
pub const UCHAR_MAX: ::std::os::raw::c_uint = 255; | |
pub const CHAR_MAX: ::std::os::raw::c_uint = 127; | |
pub const CHAR_MIN: ::std::os::raw::c_int = -128; | |
pub const USHRT_MAX: ::std::os::raw::c_uint = 65535; | |
pub const SHRT_MAX: ::std::os::raw::c_uint = 32767; | |
pub const SHRT_MIN: ::std::os::raw::c_int = -32768; | |
pub const UINT_MAX: ::std::os::raw::c_uint = 4294967295; | |
pub const INT_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const INT_MIN: ::std::os::raw::c_int = -2147483648; | |
pub const ULONG_MAX: ::std::os::raw::c_int = -1; | |
pub const LONG_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const LONG_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const ULLONG_MAX: ::std::os::raw::c_int = -1; | |
pub const LLONG_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const LLONG_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const LONG_BIT: ::std::os::raw::c_uint = 64; | |
pub const SSIZE_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const WORD_BIT: ::std::os::raw::c_uint = 32; | |
pub const SIZE_T_MAX: ::std::os::raw::c_int = -1; | |
pub const UQUAD_MAX: ::std::os::raw::c_int = -1; | |
pub const QUAD_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const QUAD_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const ARG_MAX: ::std::os::raw::c_uint = 262144; | |
pub const CHILD_MAX: ::std::os::raw::c_uint = 266; | |
pub const GID_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const LINK_MAX: ::std::os::raw::c_uint = 32767; | |
pub const MAX_CANON: ::std::os::raw::c_uint = 1024; | |
pub const MAX_INPUT: ::std::os::raw::c_uint = 1024; | |
pub const NAME_MAX: ::std::os::raw::c_uint = 255; | |
pub const NGROUPS_MAX: ::std::os::raw::c_uint = 16; | |
pub const UID_MAX: ::std::os::raw::c_uint = 2147483647; | |
pub const OPEN_MAX: ::std::os::raw::c_uint = 10240; | |
pub const PATH_MAX: ::std::os::raw::c_uint = 1024; | |
pub const PIPE_BUF: ::std::os::raw::c_uint = 512; | |
pub const BC_BASE_MAX: ::std::os::raw::c_uint = 99; | |
pub const BC_DIM_MAX: ::std::os::raw::c_uint = 2048; | |
pub const BC_SCALE_MAX: ::std::os::raw::c_uint = 99; | |
pub const BC_STRING_MAX: ::std::os::raw::c_uint = 1000; | |
pub const CHARCLASS_NAME_MAX: ::std::os::raw::c_uint = 14; | |
pub const COLL_WEIGHTS_MAX: ::std::os::raw::c_uint = 2; | |
pub const EQUIV_CLASS_MAX: ::std::os::raw::c_uint = 2; | |
pub const EXPR_NEST_MAX: ::std::os::raw::c_uint = 32; | |
pub const LINE_MAX: ::std::os::raw::c_uint = 2048; | |
pub const RE_DUP_MAX: ::std::os::raw::c_uint = 255; | |
pub const NZERO: ::std::os::raw::c_uint = 20; | |
pub const _POSIX_ARG_MAX: ::std::os::raw::c_uint = 4096; | |
pub const _POSIX_CHILD_MAX: ::std::os::raw::c_uint = 25; | |
pub const _POSIX_LINK_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_MAX_CANON: ::std::os::raw::c_uint = 255; | |
pub const _POSIX_MAX_INPUT: ::std::os::raw::c_uint = 255; | |
pub const _POSIX_NAME_MAX: ::std::os::raw::c_uint = 14; | |
pub const _POSIX_NGROUPS_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_OPEN_MAX: ::std::os::raw::c_uint = 20; | |
pub const _POSIX_PATH_MAX: ::std::os::raw::c_uint = 256; | |
pub const _POSIX_PIPE_BUF: ::std::os::raw::c_uint = 512; | |
pub const _POSIX_SSIZE_MAX: ::std::os::raw::c_uint = 32767; | |
pub const _POSIX_STREAM_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_TZNAME_MAX: ::std::os::raw::c_uint = 6; | |
pub const _POSIX2_BC_BASE_MAX: ::std::os::raw::c_uint = 99; | |
pub const _POSIX2_BC_DIM_MAX: ::std::os::raw::c_uint = 2048; | |
pub const _POSIX2_BC_SCALE_MAX: ::std::os::raw::c_uint = 99; | |
pub const _POSIX2_BC_STRING_MAX: ::std::os::raw::c_uint = 1000; | |
pub const _POSIX2_EQUIV_CLASS_MAX: ::std::os::raw::c_uint = 2; | |
pub const _POSIX2_EXPR_NEST_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX2_LINE_MAX: ::std::os::raw::c_uint = 2048; | |
pub const _POSIX2_RE_DUP_MAX: ::std::os::raw::c_uint = 255; | |
pub const _POSIX_AIO_LISTIO_MAX: ::std::os::raw::c_uint = 2; | |
pub const _POSIX_AIO_MAX: ::std::os::raw::c_uint = 1; | |
pub const _POSIX_DELAYTIMER_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX_MQ_OPEN_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_MQ_PRIO_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX_RTSIG_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_SEM_NSEMS_MAX: ::std::os::raw::c_uint = 256; | |
pub const _POSIX_SEM_VALUE_MAX: ::std::os::raw::c_uint = 32767; | |
pub const _POSIX_SIGQUEUE_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX_TIMER_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: ::std::os::raw::c_uint = 4; | |
pub const _POSIX_THREAD_KEYS_MAX: ::std::os::raw::c_uint = 128; | |
pub const _POSIX_THREAD_THREADS_MAX: ::std::os::raw::c_uint = 64; | |
pub const PTHREAD_DESTRUCTOR_ITERATIONS: ::std::os::raw::c_uint = 4; | |
pub const PTHREAD_KEYS_MAX: ::std::os::raw::c_uint = 512; | |
pub const PTHREAD_STACK_MIN: ::std::os::raw::c_uint = 8192; | |
pub const _POSIX_HOST_NAME_MAX: ::std::os::raw::c_uint = 255; | |
pub const _POSIX_LOGIN_NAME_MAX: ::std::os::raw::c_uint = 9; | |
pub const _POSIX_SS_REPL_MAX: ::std::os::raw::c_uint = 4; | |
pub const _POSIX_SYMLINK_MAX: ::std::os::raw::c_uint = 255; | |
pub const _POSIX_SYMLOOP_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_TRACE_EVENT_NAME_MAX: ::std::os::raw::c_uint = 30; | |
pub const _POSIX_TRACE_NAME_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_TRACE_SYS_MAX: ::std::os::raw::c_uint = 8; | |
pub const _POSIX_TRACE_USER_EVENT_MAX: ::std::os::raw::c_uint = 32; | |
pub const _POSIX_TTY_NAME_MAX: ::std::os::raw::c_uint = 9; | |
pub const _POSIX2_CHARCLASS_NAME_MAX: ::std::os::raw::c_uint = 14; | |
pub const _POSIX2_COLL_WEIGHTS_MAX: ::std::os::raw::c_uint = 2; | |
pub const _POSIX_RE_DUP_MAX: ::std::os::raw::c_uint = 255; | |
pub const OFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808; | |
pub const OFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807; | |
pub const PASS_MAX: ::std::os::raw::c_uint = 128; | |
pub const NL_ARGMAX: ::std::os::raw::c_uint = 9; | |
pub const NL_LANGMAX: ::std::os::raw::c_uint = 14; | |
pub const NL_MSGMAX: ::std::os::raw::c_uint = 32767; | |
pub const NL_NMAX: ::std::os::raw::c_uint = 1; | |
pub const NL_SETMAX: ::std::os::raw::c_uint = 255; | |
pub const NL_TEXTMAX: ::std::os::raw::c_uint = 2048; | |
pub const _XOPEN_IOV_MAX: ::std::os::raw::c_uint = 16; | |
pub const IOV_MAX: ::std::os::raw::c_uint = 1024; | |
pub const _XOPEN_NAME_MAX: ::std::os::raw::c_uint = 255; | |
pub const _XOPEN_PATH_MAX: ::std::os::raw::c_uint = 1024; | |
pub const FLATBUFFERS_LITTLEENDIAN: ::std::os::raw::c_uint = 1; | |
pub const FLATBUFFERS_VERSION_MAJOR: ::std::os::raw::c_uint = 1; | |
pub const FLATBUFFERS_VERSION_MINOR: ::std::os::raw::c_uint = 8; | |
pub const FLATBUFFERS_VERSION_REVISION: ::std::os::raw::c_uint = 0; | |
pub const FLATBUFFERS_MAX_ALIGNMENT: ::std::os::raw::c_uint = 16; | |
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, | |
_bindgen_union_align: [u64; 16usize], | |
} | |
#[test] | |
fn bindgen_test_layout___mbstate_t() { | |
assert_eq!( | |
::std::mem::size_of::<__mbstate_t>(), | |
128usize, | |
concat!("Size of: ", stringify!(__mbstate_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__mbstate_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__mbstate_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t), | |
"::", | |
stringify!(__mbstate8) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t), | |
"::", | |
stringify!(_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 = __uint32_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() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_pthread_handler_rec>(), | |
24usize, | |
concat!("Size of: ", stringify!(__darwin_pthread_handler_rec)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_pthread_handler_rec>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_pthread_handler_rec), | |
"::", | |
stringify!(__routine) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_pthread_handler_rec), | |
"::", | |
stringify!(__arg) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_pthread_handler_rec), | |
"::", | |
stringify!(__next) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_attr_t>(), | |
64usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_attr_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_attr_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_attr_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_attr_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_attr_t), | |
"::", | |
stringify!(__opaque) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_cond_t>(), | |
48usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_cond_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_cond_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_cond_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_cond_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_cond_t), | |
"::", | |
stringify!(__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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_condattr_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_condattr_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_condattr_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_condattr_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_condattr_t), | |
"::", | |
stringify!(__opaque) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_mutex_t>(), | |
64usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_mutex_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_mutex_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_mutex_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_mutex_t), | |
"::", | |
stringify!(__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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_mutexattr_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_mutexattr_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_mutexattr_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_mutexattr_t), | |
"::", | |
stringify!(__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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_once_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_once_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_once_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_once_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_once_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_once_t), | |
"::", | |
stringify!(__opaque) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_rwlock_t>(), | |
200usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_rwlock_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_rwlock_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_rwlock_t), | |
"::", | |
stringify!(__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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(), | |
24usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_rwlockattr_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_rwlockattr_t), | |
"::", | |
stringify!(__opaque) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(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() { | |
assert_eq!( | |
::std::mem::size_of::<_opaque_pthread_t>(), | |
8192usize, | |
concat!("Size of: ", stringify!(_opaque_pthread_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_opaque_pthread_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_opaque_pthread_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_t), | |
"::", | |
stringify!(__sig) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_t), | |
"::", | |
stringify!(__cleanup_stack) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_opaque_pthread_t), | |
"::", | |
stringify!(__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 __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 = u32; | |
pub type pid_t = __darwin_pid_t; | |
pub type id_t = __darwin_id_t; | |
pub type sig_atomic_t = ::std::os::raw::c_int; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_i386_thread_state { | |
pub __eax: ::std::os::raw::c_uint, | |
pub __ebx: ::std::os::raw::c_uint, | |
pub __ecx: ::std::os::raw::c_uint, | |
pub __edx: ::std::os::raw::c_uint, | |
pub __edi: ::std::os::raw::c_uint, | |
pub __esi: ::std::os::raw::c_uint, | |
pub __ebp: ::std::os::raw::c_uint, | |
pub __esp: ::std::os::raw::c_uint, | |
pub __ss: ::std::os::raw::c_uint, | |
pub __eflags: ::std::os::raw::c_uint, | |
pub __eip: ::std::os::raw::c_uint, | |
pub __cs: ::std::os::raw::c_uint, | |
pub __ds: ::std::os::raw::c_uint, | |
pub __es: ::std::os::raw::c_uint, | |
pub __fs: ::std::os::raw::c_uint, | |
pub __gs: ::std::os::raw::c_uint, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_i386_thread_state() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_i386_thread_state>(), | |
64usize, | |
concat!("Size of: ", stringify!(__darwin_i386_thread_state)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_i386_thread_state>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_i386_thread_state)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eax as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__eax) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebx as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__ebx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ecx as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__ecx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edx as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__edx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edi as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__edi) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esi as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__esi) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__ebp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esp as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__esp) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ss as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__ss) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eflags as *const _ as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__eflags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eip as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__eip) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__cs as *const _ as usize }, | |
44usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__cs) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ds as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__ds) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__es as *const _ as usize }, | |
52usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__es) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__fs as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__gs as *const _ as usize }, | |
60usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_thread_state), | |
"::", | |
stringify!(__gs) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_fp_control { | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, | |
pub __bindgen_align: [u16; 0usize], | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_fp_control() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_fp_control>(), | |
2usize, | |
concat!("Size of: ", stringify!(__darwin_fp_control)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_fp_control>(), | |
2usize, | |
concat!("Alignment of ", stringify!(__darwin_fp_control)) | |
); | |
} | |
impl __darwin_fp_control { | |
#[inline] | |
pub fn __invalid(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(0usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __denorm(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(1usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(2usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(3usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __undfl(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(4usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __precis(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(5usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __pc(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) } | |
} | |
#[inline] | |
pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(8usize, 2u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __rc(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) } | |
} | |
#[inline] | |
pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(10usize, 2u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn new_bitfield_1( | |
__invalid: ::std::os::raw::c_ushort, | |
__denorm: ::std::os::raw::c_ushort, | |
__zdiv: ::std::os::raw::c_ushort, | |
__ovrfl: ::std::os::raw::c_ushort, | |
__undfl: ::std::os::raw::c_ushort, | |
__precis: ::std::os::raw::c_ushort, | |
__pc: ::std::os::raw::c_ushort, | |
__rc: ::std::os::raw::c_ushort, | |
) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = | |
Default::default(); | |
__bindgen_bitfield_unit.set(0usize, 1u8, { | |
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; | |
__invalid as u64 | |
}); | |
__bindgen_bitfield_unit.set(1usize, 1u8, { | |
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; | |
__denorm as u64 | |
}); | |
__bindgen_bitfield_unit.set(2usize, 1u8, { | |
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; | |
__zdiv as u64 | |
}); | |
__bindgen_bitfield_unit.set(3usize, 1u8, { | |
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; | |
__ovrfl as u64 | |
}); | |
__bindgen_bitfield_unit.set(4usize, 1u8, { | |
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; | |
__undfl as u64 | |
}); | |
__bindgen_bitfield_unit.set(5usize, 1u8, { | |
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; | |
__precis as u64 | |
}); | |
__bindgen_bitfield_unit.set(8usize, 2u8, { | |
let __pc: u16 = unsafe { ::std::mem::transmute(__pc) }; | |
__pc as u64 | |
}); | |
__bindgen_bitfield_unit.set(10usize, 2u8, { | |
let __rc: u16 = unsafe { ::std::mem::transmute(__rc) }; | |
__rc as u64 | |
}); | |
__bindgen_bitfield_unit | |
} | |
} | |
pub type __darwin_fp_control_t = __darwin_fp_control; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_fp_status { | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, | |
pub __bindgen_align: [u16; 0usize], | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_fp_status() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_fp_status>(), | |
2usize, | |
concat!("Size of: ", stringify!(__darwin_fp_status)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_fp_status>(), | |
2usize, | |
concat!("Alignment of ", stringify!(__darwin_fp_status)) | |
); | |
} | |
impl __darwin_fp_status { | |
#[inline] | |
pub fn __invalid(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(0usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __denorm(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(1usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(2usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(3usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __undfl(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(4usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __precis(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(5usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __stkflt(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(6usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __errsumm(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(7usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __c0(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(8usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __c1(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(9usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __c2(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(10usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __tos(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) } | |
} | |
#[inline] | |
pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(11usize, 3u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __c3(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(14usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn __busy(&self) -> ::std::os::raw::c_ushort { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(15usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn new_bitfield_1( | |
__invalid: ::std::os::raw::c_ushort, | |
__denorm: ::std::os::raw::c_ushort, | |
__zdiv: ::std::os::raw::c_ushort, | |
__ovrfl: ::std::os::raw::c_ushort, | |
__undfl: ::std::os::raw::c_ushort, | |
__precis: ::std::os::raw::c_ushort, | |
__stkflt: ::std::os::raw::c_ushort, | |
__errsumm: ::std::os::raw::c_ushort, | |
__c0: ::std::os::raw::c_ushort, | |
__c1: ::std::os::raw::c_ushort, | |
__c2: ::std::os::raw::c_ushort, | |
__tos: ::std::os::raw::c_ushort, | |
__c3: ::std::os::raw::c_ushort, | |
__busy: ::std::os::raw::c_ushort, | |
) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = | |
Default::default(); | |
__bindgen_bitfield_unit.set(0usize, 1u8, { | |
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; | |
__invalid as u64 | |
}); | |
__bindgen_bitfield_unit.set(1usize, 1u8, { | |
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; | |
__denorm as u64 | |
}); | |
__bindgen_bitfield_unit.set(2usize, 1u8, { | |
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; | |
__zdiv as u64 | |
}); | |
__bindgen_bitfield_unit.set(3usize, 1u8, { | |
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; | |
__ovrfl as u64 | |
}); | |
__bindgen_bitfield_unit.set(4usize, 1u8, { | |
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; | |
__undfl as u64 | |
}); | |
__bindgen_bitfield_unit.set(5usize, 1u8, { | |
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; | |
__precis as u64 | |
}); | |
__bindgen_bitfield_unit.set(6usize, 1u8, { | |
let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) }; | |
__stkflt as u64 | |
}); | |
__bindgen_bitfield_unit.set(7usize, 1u8, { | |
let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) }; | |
__errsumm as u64 | |
}); | |
__bindgen_bitfield_unit.set(8usize, 1u8, { | |
let __c0: u16 = unsafe { ::std::mem::transmute(__c0) }; | |
__c0 as u64 | |
}); | |
__bindgen_bitfield_unit.set(9usize, 1u8, { | |
let __c1: u16 = unsafe { ::std::mem::transmute(__c1) }; | |
__c1 as u64 | |
}); | |
__bindgen_bitfield_unit.set(10usize, 1u8, { | |
let __c2: u16 = unsafe { ::std::mem::transmute(__c2) }; | |
__c2 as u64 | |
}); | |
__bindgen_bitfield_unit.set(11usize, 3u8, { | |
let __tos: u16 = unsafe { ::std::mem::transmute(__tos) }; | |
__tos as u64 | |
}); | |
__bindgen_bitfield_unit.set(14usize, 1u8, { | |
let __c3: u16 = unsafe { ::std::mem::transmute(__c3) }; | |
__c3 as u64 | |
}); | |
__bindgen_bitfield_unit.set(15usize, 1u8, { | |
let __busy: u16 = unsafe { ::std::mem::transmute(__busy) }; | |
__busy as u64 | |
}); | |
__bindgen_bitfield_unit | |
} | |
} | |
pub type __darwin_fp_status_t = __darwin_fp_status; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_mmst_reg { | |
pub __mmst_reg: [::std::os::raw::c_char; 10usize], | |
pub __mmst_rsrv: [::std::os::raw::c_char; 6usize], | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_mmst_reg() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_mmst_reg>(), | |
16usize, | |
concat!("Size of: ", stringify!(__darwin_mmst_reg)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_mmst_reg>(), | |
1usize, | |
concat!("Alignment of ", stringify!(__darwin_mmst_reg)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_reg as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mmst_reg), | |
"::", | |
stringify!(__mmst_reg) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_rsrv as *const _ as usize }, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mmst_reg), | |
"::", | |
stringify!(__mmst_rsrv) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_xmm_reg { | |
pub __xmm_reg: [::std::os::raw::c_char; 16usize], | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_xmm_reg() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_xmm_reg>(), | |
16usize, | |
concat!("Size of: ", stringify!(__darwin_xmm_reg)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_xmm_reg>(), | |
1usize, | |
concat!("Alignment of ", stringify!(__darwin_xmm_reg)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_xmm_reg>())).__xmm_reg as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_xmm_reg), | |
"::", | |
stringify!(__xmm_reg) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_i386_float_state { | |
pub __fpu_reserved: [::std::os::raw::c_int; 2usize], | |
pub __fpu_fcw: __darwin_fp_control, | |
pub __fpu_fsw: __darwin_fp_status, | |
pub __fpu_ftw: __uint8_t, | |
pub __fpu_rsrv1: __uint8_t, | |
pub __fpu_fop: __uint16_t, | |
pub __fpu_ip: __uint32_t, | |
pub __fpu_cs: __uint16_t, | |
pub __fpu_rsrv2: __uint16_t, | |
pub __fpu_dp: __uint32_t, | |
pub __fpu_ds: __uint16_t, | |
pub __fpu_rsrv3: __uint16_t, | |
pub __fpu_mxcsr: __uint32_t, | |
pub __fpu_mxcsrmask: __uint32_t, | |
pub __fpu_stmm0: __darwin_mmst_reg, | |
pub __fpu_stmm1: __darwin_mmst_reg, | |
pub __fpu_stmm2: __darwin_mmst_reg, | |
pub __fpu_stmm3: __darwin_mmst_reg, | |
pub __fpu_stmm4: __darwin_mmst_reg, | |
pub __fpu_stmm5: __darwin_mmst_reg, | |
pub __fpu_stmm6: __darwin_mmst_reg, | |
pub __fpu_stmm7: __darwin_mmst_reg, | |
pub __fpu_xmm0: __darwin_xmm_reg, | |
pub __fpu_xmm1: __darwin_xmm_reg, | |
pub __fpu_xmm2: __darwin_xmm_reg, | |
pub __fpu_xmm3: __darwin_xmm_reg, | |
pub __fpu_xmm4: __darwin_xmm_reg, | |
pub __fpu_xmm5: __darwin_xmm_reg, | |
pub __fpu_xmm6: __darwin_xmm_reg, | |
pub __fpu_xmm7: __darwin_xmm_reg, | |
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], | |
pub __fpu_reserved1: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_i386_float_state() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_i386_float_state>(), | |
524usize, | |
concat!("Size of: ", stringify!(__darwin_i386_float_state)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_i386_float_state>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_i386_float_state)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved as *const _ | |
as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_reserved) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fcw as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_fcw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fsw as *const _ as usize | |
}, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_fsw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ftw as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_ftw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv1 as *const _ as usize | |
}, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_rsrv1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fop as *const _ as usize | |
}, | |
14usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_fop) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ip as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_ip) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_cs as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_cs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv2 as *const _ as usize | |
}, | |
22usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_rsrv2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_dp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_dp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ds as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_ds) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv3 as *const _ as usize | |
}, | |
30usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_rsrv3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsr as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_mxcsr) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsrmask as *const _ | |
as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_mxcsrmask) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm0 as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm1 as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm2 as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm3 as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm4 as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm5 as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm6 as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm7 as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_stmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm0 as *const _ as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm1 as *const _ as usize | |
}, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm2 as *const _ as usize | |
}, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm3 as *const _ as usize | |
}, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm4 as *const _ as usize | |
}, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm5 as *const _ as usize | |
}, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm6 as *const _ as usize | |
}, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm7 as *const _ as usize | |
}, | |
280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_xmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv4 as *const _ as usize | |
}, | |
296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_rsrv4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved1 as *const _ | |
as usize | |
}, | |
520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_float_state), | |
"::", | |
stringify!(__fpu_reserved1) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_i386_avx_state { | |
pub __fpu_reserved: [::std::os::raw::c_int; 2usize], | |
pub __fpu_fcw: __darwin_fp_control, | |
pub __fpu_fsw: __darwin_fp_status, | |
pub __fpu_ftw: __uint8_t, | |
pub __fpu_rsrv1: __uint8_t, | |
pub __fpu_fop: __uint16_t, | |
pub __fpu_ip: __uint32_t, | |
pub __fpu_cs: __uint16_t, | |
pub __fpu_rsrv2: __uint16_t, | |
pub __fpu_dp: __uint32_t, | |
pub __fpu_ds: __uint16_t, | |
pub __fpu_rsrv3: __uint16_t, | |
pub __fpu_mxcsr: __uint32_t, | |
pub __fpu_mxcsrmask: __uint32_t, | |
pub __fpu_stmm0: __darwin_mmst_reg, | |
pub __fpu_stmm1: __darwin_mmst_reg, | |
pub __fpu_stmm2: __darwin_mmst_reg, | |
pub __fpu_stmm3: __darwin_mmst_reg, | |
pub __fpu_stmm4: __darwin_mmst_reg, | |
pub __fpu_stmm5: __darwin_mmst_reg, | |
pub __fpu_stmm6: __darwin_mmst_reg, | |
pub __fpu_stmm7: __darwin_mmst_reg, | |
pub __fpu_xmm0: __darwin_xmm_reg, | |
pub __fpu_xmm1: __darwin_xmm_reg, | |
pub __fpu_xmm2: __darwin_xmm_reg, | |
pub __fpu_xmm3: __darwin_xmm_reg, | |
pub __fpu_xmm4: __darwin_xmm_reg, | |
pub __fpu_xmm5: __darwin_xmm_reg, | |
pub __fpu_xmm6: __darwin_xmm_reg, | |
pub __fpu_xmm7: __darwin_xmm_reg, | |
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], | |
pub __fpu_reserved1: ::std::os::raw::c_int, | |
pub __avx_reserved1: [::std::os::raw::c_char; 64usize], | |
pub __fpu_ymmh0: __darwin_xmm_reg, | |
pub __fpu_ymmh1: __darwin_xmm_reg, | |
pub __fpu_ymmh2: __darwin_xmm_reg, | |
pub __fpu_ymmh3: __darwin_xmm_reg, | |
pub __fpu_ymmh4: __darwin_xmm_reg, | |
pub __fpu_ymmh5: __darwin_xmm_reg, | |
pub __fpu_ymmh6: __darwin_xmm_reg, | |
pub __fpu_ymmh7: __darwin_xmm_reg, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_i386_avx_state() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_i386_avx_state>(), | |
716usize, | |
concat!("Size of: ", stringify!(__darwin_i386_avx_state)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_i386_avx_state>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_i386_avx_state)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_reserved) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fcw as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_fcw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fsw as *const _ as usize | |
}, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_fsw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ftw as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ftw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv1 as *const _ as usize | |
}, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_rsrv1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fop as *const _ as usize | |
}, | |
14usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_fop) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ip as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ip) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_cs as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_cs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv2 as *const _ as usize | |
}, | |
22usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_rsrv2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_dp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_dp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ds as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ds) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv3 as *const _ as usize | |
}, | |
30usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_rsrv3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsr as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_mxcsr) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsrmask as *const _ as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_mxcsrmask) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm0 as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm1 as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm2 as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm3 as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm4 as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm5 as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm6 as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm7 as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_stmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm0 as *const _ as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm1 as *const _ as usize | |
}, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm2 as *const _ as usize | |
}, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm3 as *const _ as usize | |
}, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm4 as *const _ as usize | |
}, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm5 as *const _ as usize | |
}, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm6 as *const _ as usize | |
}, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm7 as *const _ as usize | |
}, | |
280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_xmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv4 as *const _ as usize | |
}, | |
296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_rsrv4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved1 as *const _ as usize | |
}, | |
520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_reserved1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__avx_reserved1 as *const _ as usize | |
}, | |
524usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__avx_reserved1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh0 as *const _ as usize | |
}, | |
588usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh1 as *const _ as usize | |
}, | |
604usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh2 as *const _ as usize | |
}, | |
620usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh3 as *const _ as usize | |
}, | |
636usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh4 as *const _ as usize | |
}, | |
652usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh5 as *const _ as usize | |
}, | |
668usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh6 as *const _ as usize | |
}, | |
684usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh7 as *const _ as usize | |
}, | |
700usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_avx_state), | |
"::", | |
stringify!(__fpu_ymmh7) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_i386_exception_state { | |
pub __trapno: __uint16_t, | |
pub __cpu: __uint16_t, | |
pub __err: __uint32_t, | |
pub __faultvaddr: __uint32_t, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_i386_exception_state() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_i386_exception_state>(), | |
12usize, | |
concat!("Size of: ", stringify!(__darwin_i386_exception_state)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_i386_exception_state>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_i386_exception_state)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__trapno as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_exception_state), | |
"::", | |
stringify!(__trapno) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__cpu as *const _ as usize | |
}, | |
2usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_exception_state), | |
"::", | |
stringify!(__cpu) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__err as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_exception_state), | |
"::", | |
stringify!(__err) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_i386_exception_state>())).__faultvaddr as *const _ | |
as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_i386_exception_state), | |
"::", | |
stringify!(__faultvaddr) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_x86_debug_state32 { | |
pub __dr0: ::std::os::raw::c_uint, | |
pub __dr1: ::std::os::raw::c_uint, | |
pub __dr2: ::std::os::raw::c_uint, | |
pub __dr3: ::std::os::raw::c_uint, | |
pub __dr4: ::std::os::raw::c_uint, | |
pub __dr5: ::std::os::raw::c_uint, | |
pub __dr6: ::std::os::raw::c_uint, | |
pub __dr7: ::std::os::raw::c_uint, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_debug_state32() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_debug_state32>(), | |
32usize, | |
concat!("Size of: ", stringify!(__darwin_x86_debug_state32)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_debug_state32>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_debug_state32)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr0 as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr1 as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr2 as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr3 as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr4 as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr5 as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr6 as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr7 as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state32), | |
"::", | |
stringify!(__dr7) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_x86_thread_state64 { | |
pub __rax: __uint64_t, | |
pub __rbx: __uint64_t, | |
pub __rcx: __uint64_t, | |
pub __rdx: __uint64_t, | |
pub __rdi: __uint64_t, | |
pub __rsi: __uint64_t, | |
pub __rbp: __uint64_t, | |
pub __rsp: __uint64_t, | |
pub __r8: __uint64_t, | |
pub __r9: __uint64_t, | |
pub __r10: __uint64_t, | |
pub __r11: __uint64_t, | |
pub __r12: __uint64_t, | |
pub __r13: __uint64_t, | |
pub __r14: __uint64_t, | |
pub __r15: __uint64_t, | |
pub __rip: __uint64_t, | |
pub __rflags: __uint64_t, | |
pub __cs: __uint64_t, | |
pub __fs: __uint64_t, | |
pub __gs: __uint64_t, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_thread_state64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_thread_state64>(), | |
168usize, | |
concat!("Size of: ", stringify!(__darwin_x86_thread_state64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_thread_state64>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_thread_state64)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rax as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rax) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbx as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rbx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rcx as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rcx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdx as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rdx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdi as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rdi) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsi as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rsi) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbp as *const _ as usize | |
}, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rbp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsp as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rsp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r8 as *const _ as usize | |
}, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r8) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r9 as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r9) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r10 as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r10) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r11 as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r11) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r12 as *const _ as usize | |
}, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r12) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r13 as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r13) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r14 as *const _ as usize | |
}, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r14) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r15 as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__r15) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rip as *const _ as usize | |
}, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rip) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rflags as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__rflags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__cs as *const _ as usize | |
}, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__cs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__fs as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__gs as *const _ as usize | |
}, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_thread_state64), | |
"::", | |
stringify!(__gs) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_x86_float_state64 { | |
pub __fpu_reserved: [::std::os::raw::c_int; 2usize], | |
pub __fpu_fcw: __darwin_fp_control, | |
pub __fpu_fsw: __darwin_fp_status, | |
pub __fpu_ftw: __uint8_t, | |
pub __fpu_rsrv1: __uint8_t, | |
pub __fpu_fop: __uint16_t, | |
pub __fpu_ip: __uint32_t, | |
pub __fpu_cs: __uint16_t, | |
pub __fpu_rsrv2: __uint16_t, | |
pub __fpu_dp: __uint32_t, | |
pub __fpu_ds: __uint16_t, | |
pub __fpu_rsrv3: __uint16_t, | |
pub __fpu_mxcsr: __uint32_t, | |
pub __fpu_mxcsrmask: __uint32_t, | |
pub __fpu_stmm0: __darwin_mmst_reg, | |
pub __fpu_stmm1: __darwin_mmst_reg, | |
pub __fpu_stmm2: __darwin_mmst_reg, | |
pub __fpu_stmm3: __darwin_mmst_reg, | |
pub __fpu_stmm4: __darwin_mmst_reg, | |
pub __fpu_stmm5: __darwin_mmst_reg, | |
pub __fpu_stmm6: __darwin_mmst_reg, | |
pub __fpu_stmm7: __darwin_mmst_reg, | |
pub __fpu_xmm0: __darwin_xmm_reg, | |
pub __fpu_xmm1: __darwin_xmm_reg, | |
pub __fpu_xmm2: __darwin_xmm_reg, | |
pub __fpu_xmm3: __darwin_xmm_reg, | |
pub __fpu_xmm4: __darwin_xmm_reg, | |
pub __fpu_xmm5: __darwin_xmm_reg, | |
pub __fpu_xmm6: __darwin_xmm_reg, | |
pub __fpu_xmm7: __darwin_xmm_reg, | |
pub __fpu_xmm8: __darwin_xmm_reg, | |
pub __fpu_xmm9: __darwin_xmm_reg, | |
pub __fpu_xmm10: __darwin_xmm_reg, | |
pub __fpu_xmm11: __darwin_xmm_reg, | |
pub __fpu_xmm12: __darwin_xmm_reg, | |
pub __fpu_xmm13: __darwin_xmm_reg, | |
pub __fpu_xmm14: __darwin_xmm_reg, | |
pub __fpu_xmm15: __darwin_xmm_reg, | |
pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], | |
pub __fpu_reserved1: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_float_state64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_float_state64>(), | |
524usize, | |
concat!("Size of: ", stringify!(__darwin_x86_float_state64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_float_state64>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_float_state64)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved as *const _ | |
as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_reserved) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fcw as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_fcw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fsw as *const _ as usize | |
}, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_fsw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ftw as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_ftw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv1 as *const _ as usize | |
}, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_rsrv1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fop as *const _ as usize | |
}, | |
14usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_fop) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ip as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_ip) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_cs as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_cs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv2 as *const _ as usize | |
}, | |
22usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_rsrv2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_dp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_dp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ds as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_ds) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv3 as *const _ as usize | |
}, | |
30usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_rsrv3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsr as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_mxcsr) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsrmask as *const _ | |
as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_mxcsrmask) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm0 as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm1 as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm2 as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm3 as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm4 as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm5 as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm6 as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm7 as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_stmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm0 as *const _ as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm1 as *const _ as usize | |
}, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm2 as *const _ as usize | |
}, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm3 as *const _ as usize | |
}, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm4 as *const _ as usize | |
}, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm5 as *const _ as usize | |
}, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm6 as *const _ as usize | |
}, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm7 as *const _ as usize | |
}, | |
280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm8 as *const _ as usize | |
}, | |
296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm8) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm9 as *const _ as usize | |
}, | |
312usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm9) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm10 as *const _ as usize | |
}, | |
328usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm10) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm11 as *const _ as usize | |
}, | |
344usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm11) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm12 as *const _ as usize | |
}, | |
360usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm12) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm13 as *const _ as usize | |
}, | |
376usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm13) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm14 as *const _ as usize | |
}, | |
392usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm14) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm15 as *const _ as usize | |
}, | |
408usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_xmm15) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv4 as *const _ as usize | |
}, | |
424usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_rsrv4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved1 as *const _ | |
as usize | |
}, | |
520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_float_state64), | |
"::", | |
stringify!(__fpu_reserved1) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_x86_avx_state64 { | |
pub __fpu_reserved: [::std::os::raw::c_int; 2usize], | |
pub __fpu_fcw: __darwin_fp_control, | |
pub __fpu_fsw: __darwin_fp_status, | |
pub __fpu_ftw: __uint8_t, | |
pub __fpu_rsrv1: __uint8_t, | |
pub __fpu_fop: __uint16_t, | |
pub __fpu_ip: __uint32_t, | |
pub __fpu_cs: __uint16_t, | |
pub __fpu_rsrv2: __uint16_t, | |
pub __fpu_dp: __uint32_t, | |
pub __fpu_ds: __uint16_t, | |
pub __fpu_rsrv3: __uint16_t, | |
pub __fpu_mxcsr: __uint32_t, | |
pub __fpu_mxcsrmask: __uint32_t, | |
pub __fpu_stmm0: __darwin_mmst_reg, | |
pub __fpu_stmm1: __darwin_mmst_reg, | |
pub __fpu_stmm2: __darwin_mmst_reg, | |
pub __fpu_stmm3: __darwin_mmst_reg, | |
pub __fpu_stmm4: __darwin_mmst_reg, | |
pub __fpu_stmm5: __darwin_mmst_reg, | |
pub __fpu_stmm6: __darwin_mmst_reg, | |
pub __fpu_stmm7: __darwin_mmst_reg, | |
pub __fpu_xmm0: __darwin_xmm_reg, | |
pub __fpu_xmm1: __darwin_xmm_reg, | |
pub __fpu_xmm2: __darwin_xmm_reg, | |
pub __fpu_xmm3: __darwin_xmm_reg, | |
pub __fpu_xmm4: __darwin_xmm_reg, | |
pub __fpu_xmm5: __darwin_xmm_reg, | |
pub __fpu_xmm6: __darwin_xmm_reg, | |
pub __fpu_xmm7: __darwin_xmm_reg, | |
pub __fpu_xmm8: __darwin_xmm_reg, | |
pub __fpu_xmm9: __darwin_xmm_reg, | |
pub __fpu_xmm10: __darwin_xmm_reg, | |
pub __fpu_xmm11: __darwin_xmm_reg, | |
pub __fpu_xmm12: __darwin_xmm_reg, | |
pub __fpu_xmm13: __darwin_xmm_reg, | |
pub __fpu_xmm14: __darwin_xmm_reg, | |
pub __fpu_xmm15: __darwin_xmm_reg, | |
pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], | |
pub __fpu_reserved1: ::std::os::raw::c_int, | |
pub __avx_reserved1: [::std::os::raw::c_char; 64usize], | |
pub __fpu_ymmh0: __darwin_xmm_reg, | |
pub __fpu_ymmh1: __darwin_xmm_reg, | |
pub __fpu_ymmh2: __darwin_xmm_reg, | |
pub __fpu_ymmh3: __darwin_xmm_reg, | |
pub __fpu_ymmh4: __darwin_xmm_reg, | |
pub __fpu_ymmh5: __darwin_xmm_reg, | |
pub __fpu_ymmh6: __darwin_xmm_reg, | |
pub __fpu_ymmh7: __darwin_xmm_reg, | |
pub __fpu_ymmh8: __darwin_xmm_reg, | |
pub __fpu_ymmh9: __darwin_xmm_reg, | |
pub __fpu_ymmh10: __darwin_xmm_reg, | |
pub __fpu_ymmh11: __darwin_xmm_reg, | |
pub __fpu_ymmh12: __darwin_xmm_reg, | |
pub __fpu_ymmh13: __darwin_xmm_reg, | |
pub __fpu_ymmh14: __darwin_xmm_reg, | |
pub __fpu_ymmh15: __darwin_xmm_reg, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_avx_state64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_avx_state64>(), | |
844usize, | |
concat!("Size of: ", stringify!(__darwin_x86_avx_state64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_avx_state64>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_avx_state64)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_reserved) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fcw as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_fcw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fsw as *const _ as usize | |
}, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_fsw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ftw as *const _ as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ftw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv1 as *const _ as usize | |
}, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_rsrv1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fop as *const _ as usize | |
}, | |
14usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_fop) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ip as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ip) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_cs as *const _ as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_cs) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv2 as *const _ as usize | |
}, | |
22usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_rsrv2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_dp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_dp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ds as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ds) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv3 as *const _ as usize | |
}, | |
30usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_rsrv3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsr as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_mxcsr) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsrmask as *const _ | |
as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_mxcsrmask) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm0 as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm1 as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm2 as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm3 as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm4 as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm5 as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm6 as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm7 as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_stmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm0 as *const _ as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm1 as *const _ as usize | |
}, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm2 as *const _ as usize | |
}, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm3 as *const _ as usize | |
}, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm4 as *const _ as usize | |
}, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm5 as *const _ as usize | |
}, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm6 as *const _ as usize | |
}, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm7 as *const _ as usize | |
}, | |
280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm8 as *const _ as usize | |
}, | |
296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm8) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm9 as *const _ as usize | |
}, | |
312usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm9) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm10 as *const _ as usize | |
}, | |
328usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm10) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm11 as *const _ as usize | |
}, | |
344usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm11) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm12 as *const _ as usize | |
}, | |
360usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm12) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm13 as *const _ as usize | |
}, | |
376usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm13) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm14 as *const _ as usize | |
}, | |
392usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm14) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm15 as *const _ as usize | |
}, | |
408usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_xmm15) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv4 as *const _ as usize | |
}, | |
424usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_rsrv4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved1 as *const _ | |
as usize | |
}, | |
520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_reserved1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__avx_reserved1 as *const _ | |
as usize | |
}, | |
524usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__avx_reserved1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh0 as *const _ as usize | |
}, | |
588usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh1 as *const _ as usize | |
}, | |
604usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh2 as *const _ as usize | |
}, | |
620usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh3 as *const _ as usize | |
}, | |
636usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh4 as *const _ as usize | |
}, | |
652usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh5 as *const _ as usize | |
}, | |
668usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh6 as *const _ as usize | |
}, | |
684usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh7 as *const _ as usize | |
}, | |
700usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh7) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh8 as *const _ as usize | |
}, | |
716usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh8) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh9 as *const _ as usize | |
}, | |
732usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh9) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh10 as *const _ as usize | |
}, | |
748usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh10) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh11 as *const _ as usize | |
}, | |
764usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh11) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh12 as *const _ as usize | |
}, | |
780usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh12) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh13 as *const _ as usize | |
}, | |
796usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh13) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh14 as *const _ as usize | |
}, | |
812usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh14) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh15 as *const _ as usize | |
}, | |
828usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_avx_state64), | |
"::", | |
stringify!(__fpu_ymmh15) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_x86_exception_state64 { | |
pub __trapno: __uint16_t, | |
pub __cpu: __uint16_t, | |
pub __err: __uint32_t, | |
pub __faultvaddr: __uint64_t, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_exception_state64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_exception_state64>(), | |
16usize, | |
concat!("Size of: ", stringify!(__darwin_x86_exception_state64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_exception_state64>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_exception_state64)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__trapno as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_exception_state64), | |
"::", | |
stringify!(__trapno) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__cpu as *const _ as usize | |
}, | |
2usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_exception_state64), | |
"::", | |
stringify!(__cpu) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__err as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_exception_state64), | |
"::", | |
stringify!(__err) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__faultvaddr as *const _ | |
as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_exception_state64), | |
"::", | |
stringify!(__faultvaddr) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __darwin_x86_debug_state64 { | |
pub __dr0: __uint64_t, | |
pub __dr1: __uint64_t, | |
pub __dr2: __uint64_t, | |
pub __dr3: __uint64_t, | |
pub __dr4: __uint64_t, | |
pub __dr5: __uint64_t, | |
pub __dr6: __uint64_t, | |
pub __dr7: __uint64_t, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_x86_debug_state64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_x86_debug_state64>(), | |
64usize, | |
concat!("Size of: ", stringify!(__darwin_x86_debug_state64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_x86_debug_state64>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_x86_debug_state64)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr0 as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr0) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr1 as *const _ as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr1) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr2 as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr3 as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr3) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr4 as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr4) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr5 as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr5) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr6 as *const _ as usize | |
}, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr6) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr7 as *const _ as usize | |
}, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_x86_debug_state64), | |
"::", | |
stringify!(__dr7) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_mcontext32 { | |
pub __es: __darwin_i386_exception_state, | |
pub __ss: __darwin_i386_thread_state, | |
pub __fs: __darwin_i386_float_state, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_mcontext32() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_mcontext32>(), | |
600usize, | |
concat!("Size of: ", stringify!(__darwin_mcontext32)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_mcontext32>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_mcontext32)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__es as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext32), | |
"::", | |
stringify!(__es) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__ss as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext32), | |
"::", | |
stringify!(__ss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__fs as *const _ as usize }, | |
76usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext32), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_mcontext_avx32 { | |
pub __es: __darwin_i386_exception_state, | |
pub __ss: __darwin_i386_thread_state, | |
pub __fs: __darwin_i386_avx_state, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_mcontext_avx32() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_mcontext_avx32>(), | |
792usize, | |
concat!("Size of: ", stringify!(__darwin_mcontext_avx32)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_mcontext_avx32>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__darwin_mcontext_avx32)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__es as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx32), | |
"::", | |
stringify!(__es) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__ss as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx32), | |
"::", | |
stringify!(__ss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__fs as *const _ as usize }, | |
76usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx32), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_mcontext64 { | |
pub __es: __darwin_x86_exception_state64, | |
pub __ss: __darwin_x86_thread_state64, | |
pub __fs: __darwin_x86_float_state64, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_mcontext64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_mcontext64>(), | |
712usize, | |
concat!("Size of: ", stringify!(__darwin_mcontext64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_mcontext64>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_mcontext64)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__es as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext64), | |
"::", | |
stringify!(__es) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__ss as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext64), | |
"::", | |
stringify!(__ss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__fs as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext64), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct __darwin_mcontext_avx64 { | |
pub __es: __darwin_x86_exception_state64, | |
pub __ss: __darwin_x86_thread_state64, | |
pub __fs: __darwin_x86_avx_state64, | |
} | |
#[test] | |
fn bindgen_test_layout___darwin_mcontext_avx64() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_mcontext_avx64>(), | |
1032usize, | |
concat!("Size of: ", stringify!(__darwin_mcontext_avx64)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_mcontext_avx64>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_mcontext_avx64)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__es as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx64), | |
"::", | |
stringify!(__es) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__ss as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx64), | |
"::", | |
stringify!(__ss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__fs as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_mcontext_avx64), | |
"::", | |
stringify!(__fs) | |
) | |
); | |
} | |
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() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_sigaltstack>(), | |
24usize, | |
concat!("Size of: ", stringify!(__darwin_sigaltstack)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_sigaltstack>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_sigaltstack)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_sp as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_sigaltstack), | |
"::", | |
stringify!(ss_sp) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_size as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_sigaltstack), | |
"::", | |
stringify!(ss_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_flags as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_sigaltstack), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<__darwin_ucontext>(), | |
56usize, | |
concat!("Size of: ", stringify!(__darwin_ucontext)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__darwin_ucontext>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__darwin_ucontext)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_onstack as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(uc_onstack) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_sigmask as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(uc_sigmask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_stack as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(uc_stack) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_link as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(uc_link) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcsize as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(uc_mcsize) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcontext as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__darwin_ucontext), | |
"::", | |
stringify!(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, | |
_bindgen_union_align: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_sigval() { | |
assert_eq!( | |
::std::mem::size_of::<sigval>(), | |
8usize, | |
concat!("Size of: ", stringify!(sigval)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<sigval>(), | |
8usize, | |
concat!("Alignment of ", stringify!(sigval)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigval>())).sival_int as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigval), | |
"::", | |
stringify!(sival_int) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigval>())).sival_ptr as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigval), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<sigevent>(), | |
32usize, | |
concat!("Size of: ", stringify!(sigevent)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<sigevent>(), | |
8usize, | |
concat!("Alignment of ", stringify!(sigevent)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_notify as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigevent), | |
"::", | |
stringify!(sigev_notify) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_signo as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigevent), | |
"::", | |
stringify!(sigev_signo) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_value as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigevent), | |
"::", | |
stringify!(sigev_value) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_notify_function as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigevent), | |
"::", | |
stringify!(sigev_notify_function) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<sigevent>())).sigev_notify_attributes as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigevent), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<__siginfo>(), | |
104usize, | |
concat!("Size of: ", stringify!(__siginfo)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__siginfo>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__siginfo)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_signo as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_signo) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_errno as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_errno) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_code as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_code) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_pid as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_pid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_uid as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_uid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_status as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_status) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_addr as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_addr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_value as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_value) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).si_band as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(si_band) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__siginfo>())).__pad as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__siginfo), | |
"::", | |
stringify!(__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, | |
), | |
>, | |
_bindgen_union_align: u64, | |
} | |
#[test] | |
fn bindgen_test_layout___sigaction_u() { | |
assert_eq!( | |
::std::mem::size_of::<__sigaction_u>(), | |
8usize, | |
concat!("Size of: ", stringify!(__sigaction_u)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__sigaction_u>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__sigaction_u)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_handler as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction_u), | |
"::", | |
stringify!(__sa_handler) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_sigaction as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction_u), | |
"::", | |
stringify!(__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() { | |
assert_eq!( | |
::std::mem::size_of::<__sigaction>(), | |
24usize, | |
concat!("Size of: ", stringify!(__sigaction)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__sigaction>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__sigaction)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction>())).__sigaction_u as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction), | |
"::", | |
stringify!(__sigaction_u) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_tramp as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction), | |
"::", | |
stringify!(sa_tramp) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_mask as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction), | |
"::", | |
stringify!(sa_mask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_flags as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sigaction), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<sigaction>(), | |
16usize, | |
concat!("Size of: ", stringify!(sigaction)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<sigaction>(), | |
8usize, | |
concat!("Alignment of ", stringify!(sigaction)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigaction>())).__sigaction_u as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigaction), | |
"::", | |
stringify!(__sigaction_u) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigaction>())).sa_mask as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigaction), | |
"::", | |
stringify!(sa_mask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigaction>())).sa_flags as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigaction), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<sigvec>(), | |
16usize, | |
concat!("Size of: ", stringify!(sigvec)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<sigvec>(), | |
8usize, | |
concat!("Alignment of ", stringify!(sigvec)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigvec>())).sv_handler as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigvec), | |
"::", | |
stringify!(sv_handler) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigvec>())).sv_mask as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigvec), | |
"::", | |
stringify!(sv_mask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigvec>())).sv_flags as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigvec), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<sigstack>(), | |
16usize, | |
concat!("Size of: ", stringify!(sigstack)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<sigstack>(), | |
8usize, | |
concat!("Alignment of ", stringify!(sigstack)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigstack>())).ss_sp as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigstack), | |
"::", | |
stringify!(ss_sp) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<sigstack>())).ss_onstack as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(sigstack), | |
"::", | |
stringify!(ss_onstack) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_signal"] | |
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), | |
>, | |
), | |
>; | |
} | |
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 intmax_t = ::std::os::raw::c_long; | |
pub type uintmax_t = ::std::os::raw::c_ulong; | |
#[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() { | |
assert_eq!( | |
::std::mem::size_of::<timeval>(), | |
16usize, | |
concat!("Size of: ", stringify!(timeval)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<timeval>(), | |
8usize, | |
concat!("Alignment of ", stringify!(timeval)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timeval), | |
"::", | |
stringify!(tv_sec) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timeval), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<rusage>(), | |
144usize, | |
concat!("Size of: ", stringify!(rusage)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rusage>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rusage)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_utime as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_utime) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_stime as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_stime) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_maxrss as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_maxrss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_ixrss as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_ixrss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_idrss as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_idrss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_isrss as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_isrss) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_minflt as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_minflt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_majflt as *const _ as usize }, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_majflt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_nswap as *const _ as usize }, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_nswap) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_inblock as *const _ as usize }, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_inblock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_oublock as *const _ as usize }, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_oublock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_msgsnd as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_msgsnd) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_msgrcv as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_msgrcv) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_nsignals as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_nsignals) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_nvcsw as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(ru_nvcsw) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage>())).ru_nivcsw as *const _ as usize }, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<rusage_info_v0>(), | |
96usize, | |
concat!("Size of: ", stringify!(rusage_info_v0)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rusage_info_v0>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rusage_info_v0)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_uuid as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_uuid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_user_time as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_system_time as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v0>())).ri_pkg_idle_wkups as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v0>())).ri_interrupt_wkups as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_pageins as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_wired_size as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_wired_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v0>())).ri_resident_size as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_resident_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v0>())).ri_phys_footprint as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_phys_footprint) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v0>())).ri_proc_start_abstime as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(ri_proc_start_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v0>())).ri_proc_exit_abstime as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v0), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<rusage_info_v1>(), | |
144usize, | |
concat!("Size of: ", stringify!(rusage_info_v1)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rusage_info_v1>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rusage_info_v1)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_uuid as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_uuid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_user_time as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_system_time as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_pkg_idle_wkups as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_interrupt_wkups as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_pageins as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_wired_size as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_wired_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_resident_size as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_resident_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_phys_footprint as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_phys_footprint) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_proc_start_abstime as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_proc_start_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_proc_exit_abstime as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_proc_exit_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_child_user_time as *const _ as usize | |
}, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_child_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_child_system_time as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_child_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_child_pkg_idle_wkups as *const _ as usize | |
}, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_child_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_child_interrupt_wkups as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_child_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v1>())).ri_child_pageins as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(ri_child_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v1>())).ri_child_elapsed_abstime as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v1), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<rusage_info_v2>(), | |
160usize, | |
concat!("Size of: ", stringify!(rusage_info_v2)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rusage_info_v2>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rusage_info_v2)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_uuid as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_uuid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_user_time as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_system_time as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_pkg_idle_wkups as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_interrupt_wkups as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_pageins as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_wired_size as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_wired_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_resident_size as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_resident_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_phys_footprint as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_phys_footprint) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_proc_start_abstime as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_proc_start_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_proc_exit_abstime as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_proc_exit_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_child_user_time as *const _ as usize | |
}, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_child_system_time as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_child_pkg_idle_wkups as *const _ as usize | |
}, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_child_interrupt_wkups as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v2>())).ri_child_pageins as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_child_elapsed_abstime as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_child_elapsed_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_diskio_bytesread as *const _ as usize | |
}, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(ri_diskio_bytesread) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v2>())).ri_diskio_byteswritten as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v2), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<rusage_info_v3>(), | |
232usize, | |
concat!("Size of: ", stringify!(rusage_info_v3)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rusage_info_v3>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rusage_info_v3)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_uuid as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_uuid) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_user_time as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_system_time as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_pkg_idle_wkups as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_interrupt_wkups as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_pageins as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_wired_size as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_wired_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_resident_size as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_resident_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_phys_footprint as *const _ as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_phys_footprint) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_proc_start_abstime as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_proc_start_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_proc_exit_abstime as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_proc_exit_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_child_user_time as *const _ as usize | |
}, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_user_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_child_system_time as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_child_pkg_idle_wkups as *const _ as usize | |
}, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_pkg_idle_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_child_interrupt_wkups as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_interrupt_wkups) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rusage_info_v3>())).ri_child_pageins as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_pageins) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_child_elapsed_abstime as *const _ as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_child_elapsed_abstime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_diskio_bytesread as *const _ as usize | |
}, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_diskio_bytesread) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_diskio_byteswritten as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_diskio_byteswritten) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_default as *const _ as usize | |
}, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_default) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_maintenance as *const _ | |
as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_maintenance) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_background as *const _ | |
as usize | |
}, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_background) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_utility as *const _ as usize | |
}, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_utility) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_legacy as *const _ as usize | |
}, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_legacy) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_user_initiated as *const _ | |
as usize | |
}, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_user_initiated) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_cpu_time_qos_user_interactive as *const _ | |
as usize | |
}, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_cpu_time_qos_user_interactive) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_billed_system_time as *const _ as usize | |
}, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_billed_system_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<rusage_info_v3>())).ri_serviced_system_time as *const _ as usize | |
}, | |
224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rusage_info_v3), | |
"::", | |
stringify!(ri_serviced_system_time) | |
) | |
); | |
} | |
pub type rusage_info_current = rusage_info_v3; | |
#[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() { | |
assert_eq!( | |
::std::mem::size_of::<rlimit>(), | |
16usize, | |
concat!("Size of: ", stringify!(rlimit)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<rlimit>(), | |
8usize, | |
concat!("Alignment of ", stringify!(rlimit)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rlimit>())).rlim_cur as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rlimit), | |
"::", | |
stringify!(rlim_cur) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<rlimit>())).rlim_max as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(rlimit), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<proc_rlimit_control_wakeupmon>(), | |
8usize, | |
concat!("Size of: ", stringify!(proc_rlimit_control_wakeupmon)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<proc_rlimit_control_wakeupmon>(), | |
4usize, | |
concat!("Alignment of ", stringify!(proc_rlimit_control_wakeupmon)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<proc_rlimit_control_wakeupmon>())).wm_flags as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(proc_rlimit_control_wakeupmon), | |
"::", | |
stringify!(wm_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<proc_rlimit_control_wakeupmon>())).wm_rate as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(proc_rlimit_control_wakeupmon), | |
"::", | |
stringify!(wm_rate) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getpriority"] | |
pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getiopolicy_np"] | |
pub fn getiopolicy_np( | |
arg1: ::std::os::raw::c_int, | |
arg2: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getrlimit"] | |
pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getrusage"] | |
pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setpriority"] | |
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" { | |
#[link_name = "\u{1}_setiopolicy_np"] | |
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" { | |
#[link_name = "\u{1}_setrlimit"] | |
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, | |
_bindgen_union_align: u32, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct wait__bindgen_ty_1 { | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, | |
pub __bindgen_align: [u32; 0usize], | |
} | |
#[test] | |
fn bindgen_test_layout_wait__bindgen_ty_1() { | |
assert_eq!( | |
::std::mem::size_of::<wait__bindgen_ty_1>(), | |
4usize, | |
concat!("Size of: ", stringify!(wait__bindgen_ty_1)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<wait__bindgen_ty_1>(), | |
4usize, | |
concat!("Alignment of ", stringify!(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 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 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 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 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], u16> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = | |
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)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct wait__bindgen_ty_2 { | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, | |
pub __bindgen_align: [u32; 0usize], | |
} | |
#[test] | |
fn bindgen_test_layout_wait__bindgen_ty_2() { | |
assert_eq!( | |
::std::mem::size_of::<wait__bindgen_ty_2>(), | |
4usize, | |
concat!("Size of: ", stringify!(wait__bindgen_ty_2)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<wait__bindgen_ty_2>(), | |
4usize, | |
concat!("Alignment of ", stringify!(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 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 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 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], u16> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = | |
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() { | |
assert_eq!( | |
::std::mem::size_of::<wait>(), | |
4usize, | |
concat!("Size of: ", stringify!(wait)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<wait>(), | |
4usize, | |
concat!("Alignment of ", stringify!(wait)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<wait>())).w_status as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(wait), | |
"::", | |
stringify!(w_status) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<wait>())).w_T as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_T)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<wait>())).w_S as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_S)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wait"] | |
pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_waitpid"] | |
pub fn waitpid( | |
arg1: pid_t, | |
arg2: *mut ::std::os::raw::c_int, | |
arg3: ::std::os::raw::c_int, | |
) -> pid_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_waitid"] | |
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" { | |
#[link_name = "\u{1}_wait3"] | |
pub fn wait3( | |
arg1: *mut ::std::os::raw::c_int, | |
arg2: ::std::os::raw::c_int, | |
arg3: *mut rusage, | |
) -> pid_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wait4"] | |
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" { | |
#[link_name = "\u{1}_alloca"] | |
pub fn alloca(arg1: usize) -> *mut ::std::os::raw::c_void; | |
} | |
pub type ct_rune_t = __darwin_ct_rune_t; | |
pub type rune_t = __darwin_rune_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() { | |
assert_eq!( | |
::std::mem::size_of::<div_t>(), | |
8usize, | |
concat!("Size of: ", stringify!(div_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<div_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(div_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<div_t>())).quot as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(div_t), | |
"::", | |
stringify!(quot) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<div_t>())).rem as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(div_t), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<ldiv_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(ldiv_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ldiv_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ldiv_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ldiv_t>())).quot as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ldiv_t), | |
"::", | |
stringify!(quot) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ldiv_t>())).rem as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ldiv_t), | |
"::", | |
stringify!(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() { | |
assert_eq!( | |
::std::mem::size_of::<lldiv_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(lldiv_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<lldiv_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(lldiv_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<lldiv_t>())).quot as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(lldiv_t), | |
"::", | |
stringify!(quot) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<lldiv_t>())).rem as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(lldiv_t), | |
"::", | |
stringify!(rem) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}___mb_cur_max"] | |
pub static mut __mb_cur_max: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_abort"] | |
pub fn abort(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_abs"] | |
pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atexit"] | |
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atof"] | |
pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atoi"] | |
pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atol"] | |
pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atoll"] | |
pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_bsearch"] | |
pub fn bsearch( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
arg4: usize, | |
arg5: ::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" { | |
#[link_name = "\u{1}_calloc"] | |
pub fn calloc(arg1: usize, arg2: usize) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_div"] | |
pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_exit"] | |
pub fn exit(arg1: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_free"] | |
pub fn free(arg1: *mut ::std::os::raw::c_void); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getenv"] | |
pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_labs"] | |
pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ldiv"] | |
pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_llabs"] | |
pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_lldiv"] | |
pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_malloc"] | |
pub fn malloc(arg1: usize) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mblen"] | |
pub fn mblen(arg1: *const ::std::os::raw::c_char, arg2: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbstowcs"] | |
pub fn mbstowcs(arg1: *mut u16, arg2: *const ::std::os::raw::c_char, arg3: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbtowc"] | |
pub fn mbtowc( | |
arg1: *mut u16, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_posix_memalign"] | |
pub fn posix_memalign( | |
arg1: *mut *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_qsort"] | |
pub fn qsort( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: ::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" { | |
#[link_name = "\u{1}_rand"] | |
pub fn rand() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_realloc"] | |
pub fn realloc(arg1: *mut ::std::os::raw::c_void, arg2: usize) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_srand"] | |
pub fn srand(arg1: ::std::os::raw::c_uint); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtod"] | |
pub fn strtod( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtof"] | |
pub fn strtof( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
) -> f32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtol"] | |
pub fn strtol( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtold"] | |
pub fn strtold( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtoll"] | |
pub fn strtoll( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_longlong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtoul"] | |
pub fn strtoul( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_ulong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtoull"] | |
pub fn strtoull( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_ulonglong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_system"] | |
pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstombs"] | |
pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const u16, arg3: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wctomb"] | |
pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: u16) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__Exit"] | |
pub fn _Exit(arg1: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_a64l"] | |
pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_drand48"] | |
pub fn drand48() -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ecvt"] | |
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" { | |
#[link_name = "\u{1}_erand48"] | |
pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fcvt"] | |
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" { | |
#[link_name = "\u{1}_gcvt"] | |
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" { | |
#[link_name = "\u{1}_getsubopt"] | |
pub fn getsubopt( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *const *const ::std::os::raw::c_char, | |
arg3: *mut *mut ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_grantpt"] | |
pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_initstate"] | |
pub fn initstate( | |
arg1: ::std::os::raw::c_uint, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_jrand48"] | |
pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_l64a"] | |
pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_lcong48"] | |
pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_lrand48"] | |
pub fn lrand48() -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mktemp"] | |
pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mkstemp"] | |
pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mrand48"] | |
pub fn mrand48() -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_nrand48"] | |
pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_posix_openpt"] | |
pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ptsname"] | |
pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putenv"] | |
pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_random"] | |
pub fn random() -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_rand_r"] | |
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" { | |
#[link_name = "\u{1}_seed48"] | |
pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setenv"] | |
pub fn setenv( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setkey"] | |
pub fn setkey(arg1: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setstate"] | |
pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_srand48"] | |
pub fn srand48(arg1: ::std::os::raw::c_long); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_srandom"] | |
pub fn srandom(arg1: ::std::os::raw::c_uint); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_unlockpt"] | |
pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_unsetenv"] | |
pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::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; | |
pub type dev_t = __darwin_dev_t; | |
pub type mode_t = __darwin_mode_t; | |
extern "C" { | |
#[link_name = "\u{1}_arc4random"] | |
pub fn arc4random() -> u_int32_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_arc4random_addrandom"] | |
pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_arc4random_buf"] | |
pub fn arc4random_buf(arg1: *mut ::std::os::raw::c_void, arg2: usize); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_arc4random_stir"] | |
pub fn arc4random_stir(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_arc4random_uniform"] | |
pub fn arc4random_uniform(arg1: u_int32_t) -> u_int32_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_atexit_b"] | |
pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_bsearch_b"] | |
pub fn bsearch_b( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
arg4: usize, | |
arg5: *mut ::std::os::raw::c_void, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_cgetcap"] | |
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" { | |
#[link_name = "\u{1}_cgetclose"] | |
pub fn cgetclose() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_cgetent"] | |
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" { | |
#[link_name = "\u{1}_cgetfirst"] | |
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" { | |
#[link_name = "\u{1}_cgetmatch"] | |
pub fn cgetmatch( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_cgetnext"] | |
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" { | |
#[link_name = "\u{1}_cgetnum"] | |
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" { | |
#[link_name = "\u{1}_cgetset"] | |
pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_cgetstr"] | |
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" { | |
#[link_name = "\u{1}_cgetustr"] | |
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" { | |
#[link_name = "\u{1}_daemon"] | |
pub fn daemon( | |
arg1: ::std::os::raw::c_int, | |
arg2: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_devname"] | |
pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_devname_r"] | |
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" { | |
#[link_name = "\u{1}_getbsize"] | |
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" { | |
#[link_name = "\u{1}_getloadavg"] | |
pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getprogname"] | |
pub fn getprogname() -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_heapsort"] | |
pub fn heapsort( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: ::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" { | |
#[link_name = "\u{1}_heapsort_b"] | |
pub fn heapsort_b( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mergesort"] | |
pub fn mergesort( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: ::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" { | |
#[link_name = "\u{1}_mergesort_b"] | |
pub fn mergesort_b( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_psort"] | |
pub fn psort( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: ::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" { | |
#[link_name = "\u{1}_psort_b"] | |
pub fn psort_b( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_psort_r"] | |
pub fn psort_r( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
arg5: ::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" { | |
#[link_name = "\u{1}_qsort_b"] | |
pub fn qsort_b( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_qsort_r"] | |
pub fn qsort_r( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut ::std::os::raw::c_void, | |
arg5: ::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" { | |
#[link_name = "\u{1}_radixsort"] | |
pub fn radixsort( | |
arg1: *mut *const ::std::os::raw::c_uchar, | |
arg2: ::std::os::raw::c_int, | |
arg3: *const ::std::os::raw::c_uchar, | |
arg4: ::std::os::raw::c_uint, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setprogname"] | |
pub fn setprogname(arg1: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sradixsort"] | |
pub fn sradixsort( | |
arg1: *mut *const ::std::os::raw::c_uchar, | |
arg2: ::std::os::raw::c_int, | |
arg3: *const ::std::os::raw::c_uchar, | |
arg4: ::std::os::raw::c_uint, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sranddev"] | |
pub fn sranddev(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_srandomdev"] | |
pub fn srandomdev(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_reallocf"] | |
pub fn reallocf(arg1: *mut ::std::os::raw::c_void, arg2: usize) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtoq"] | |
pub fn strtoq( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_longlong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtouq"] | |
pub fn strtouq( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_ulonglong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_suboptarg"] | |
pub static mut suboptarg: *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_valloc"] | |
pub fn valloc(arg1: usize) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___assert_rtn"] | |
pub fn __assert_rtn( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
arg4: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}___eprintf"] | |
pub fn __eprintf( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_uint, | |
arg4: *const ::std::os::raw::c_char, | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___void_t { | |
pub _address: u8, | |
} | |
pub type std___void_t_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___identity { | |
pub _address: u8, | |
} | |
pub type std___identity_type = u8; | |
pub type std_conditional_type = u8; | |
pub type std_conditional_t = u8; | |
pub type std_enable_if_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___two { | |
pub _bindgen_opaque_blob: [u8; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std___two() { | |
assert_eq!( | |
::std::mem::size_of::<std___two>(), | |
2usize, | |
concat!("Size of: ", stringify!(std___two)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___two>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___two)) | |
); | |
} | |
pub type std_integral_constant_value_type = u8; | |
pub type std_integral_constant_type = u8; | |
extern "C" { | |
#[link_name = "\u{1}value"] | |
pub static mut std_value: _Tp; | |
} | |
pub type std_true_type = u8; | |
pub type std_false_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_const { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_volatile { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_const { | |
pub _address: u8, | |
} | |
pub type std_remove_const_type = u8; | |
pub type std_remove_const_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_volatile { | |
pub _address: u8, | |
} | |
pub type std_remove_volatile_type = u8; | |
pub type std_remove_volatile_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_cv { | |
pub _address: u8, | |
} | |
pub type std_remove_cv_type = u8; | |
pub type std_remove_cv_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_void { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_void { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_nullptr_t_impl { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_nullptr_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_null_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_integral { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_integral { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_floating_point { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_floating_point { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_array { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_lvalue_reference { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_rvalue_reference { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_reference { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_union { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_class { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_same { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_function_imp___dummy_type { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std___libcpp_is_function_imp___dummy_type() { | |
assert_eq!( | |
::std::mem::size_of::<std___libcpp_is_function_imp___dummy_type>(), | |
1usize, | |
concat!( | |
"Size of: ", | |
stringify!(std___libcpp_is_function_imp___dummy_type) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___libcpp_is_function_imp___dummy_type>(), | |
1usize, | |
concat!( | |
"Alignment of ", | |
stringify!(std___libcpp_is_function_imp___dummy_type) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_member_function_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_member_function_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_member_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_member_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_member_object_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_enum { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_arithmetic { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_fundamental { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_scalar { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_object { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_compound { | |
pub _address: u8, | |
} | |
pub type std___add_const_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_const { | |
pub _address: u8, | |
} | |
pub type std_add_const_type = u8; | |
pub type std_add_const_t = u8; | |
pub type std___add_volatile_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_volatile { | |
pub _address: u8, | |
} | |
pub type std_add_volatile_type = u8; | |
pub type std_add_volatile_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_cv { | |
pub _address: u8, | |
} | |
pub type std_add_cv_type = u8; | |
pub type std_add_cv_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_reference { | |
pub _address: u8, | |
} | |
pub type std_remove_reference_type = u8; | |
pub type std_remove_reference_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_lvalue_reference { | |
pub _address: u8, | |
} | |
pub type std_add_lvalue_reference_type = u8; | |
pub type std_add_lvalue_reference_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_rvalue_reference { | |
pub _address: u8, | |
} | |
pub type std_add_rvalue_reference_type = u8; | |
pub type std_add_rvalue_reference_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___any { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std___any() { | |
assert_eq!( | |
::std::mem::size_of::<std___any>(), | |
1usize, | |
concat!("Size of: ", stringify!(std___any)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___any>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___any)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__15__anyC1Ez"] | |
pub fn std___any___any(this: *mut std___any, ...); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_pointer { | |
pub _address: u8, | |
} | |
pub type std_remove_pointer_type = u8; | |
pub type std_remove_pointer_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_add_pointer { | |
pub _address: u8, | |
} | |
pub type std_add_pointer_type = u8; | |
pub type std_add_pointer_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_signed { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_unsigned { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_rank { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_extent { | |
pub _address: u8, | |
} | |
pub type std_remove_extent_type = u8; | |
pub type std_remove_extent_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_remove_all_extents { | |
pub _address: u8, | |
} | |
pub type std_remove_all_extents_type = u8; | |
pub type std_remove_all_extents_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_decay { | |
pub _address: u8, | |
} | |
pub type std_decay__Up = u8; | |
pub type std_decay_type = u8; | |
pub type std_decay_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_abstract { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_final { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_final { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_base_of { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_convertible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_empty { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_polymorphic { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_has_virtual_destructor { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_alignment_of { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___type_list { | |
pub _address: u8, | |
} | |
pub type std___type_list__Head = u8; | |
pub type std___type_list__Tail = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___nat { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std___nat() { | |
assert_eq!( | |
::std::mem::size_of::<std___nat>(), | |
1usize, | |
concat!("Size of: ", stringify!(std___nat)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___nat>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___nat)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___align_type { | |
pub _address: u8, | |
} | |
pub type std___align_type_type = u8; | |
#[repr(C)] | |
pub struct std___struct_double { | |
pub _bindgen_opaque_blob: [u8; 16usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std___struct_double() { | |
assert_eq!( | |
::std::mem::size_of::<std___struct_double>(), | |
16usize, | |
concat!("Size of: ", stringify!(std___struct_double)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___struct_double4 { | |
pub _bindgen_opaque_blob: [u64; 4usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std___struct_double4() { | |
assert_eq!( | |
::std::mem::size_of::<std___struct_double4>(), | |
32usize, | |
concat!("Size of: ", stringify!(std___struct_double4)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___struct_double4>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___struct_double4)) | |
); | |
} | |
pub type std___all_types = u8; | |
extern "C" { | |
#[link_name = "\u{1}__min"] | |
pub static mut std___select_align___min: usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__max"] | |
pub static mut std___select_align___max: usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}value"] | |
pub static mut std___select_align_value: usize; | |
} | |
pub type std_aligned_storage__Aligner = u8; | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub union std_aligned_storage_type { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_aligned_storage_type() { | |
assert_eq!( | |
::std::mem::size_of::<std_aligned_storage_type>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_aligned_storage_type)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_aligned_storage_type>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_aligned_storage_type)) | |
); | |
} | |
pub type std_aligned_storage_t = u8; | |
pub type std_aligned_union_type = u8; | |
pub type std_aligned_union_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___numeric_type { | |
pub _address: u8, | |
} | |
pub type std___numeric_type_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___promote { | |
pub _address: u8, | |
} | |
pub type std___signed_types = u8; | |
pub type std___unsigned_types = u8; | |
pub type std___apply_cv_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_make_signed { | |
pub _address: u8, | |
} | |
pub type std_make_signed_type = u8; | |
pub type std_make_signed_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_make_unsigned { | |
pub _address: u8, | |
} | |
pub type std_make_unsigned_type = u8; | |
pub type std_make_unsigned_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_common_type { | |
pub _address: u8, | |
} | |
pub type std_common_type_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___select_2nd { | |
pub _address: u8, | |
} | |
pub type std___select_2nd_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_copy_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_move_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_destructible_apply { | |
pub _address: u8, | |
} | |
pub type std___is_destructible_apply_type = u32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_destructor_wellformed { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_destructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___member_pointer_traits { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_result_of { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_construct___nat { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std___is_construct___nat() { | |
assert_eq!( | |
::std::mem::size_of::<std___is_construct___nat>(), | |
1usize, | |
concat!("Size of: ", stringify!(std___is_construct___nat)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___is_construct___nat>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___is_construct___nat)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_default_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_copy_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_move_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_default_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_copy_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_move_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_copy_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_move_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_destructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_default_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_copy_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_move_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_copy_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_move_assignable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_nothrow_destructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_pod { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_literal_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_standard_layout { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivially_copyable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_trivial { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___check_complete { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___invokable_imp { | |
pub _address: u8, | |
} | |
pub type std___invokable_imp_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___invokable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___invoke_of { | |
pub _address: u8, | |
} | |
pub type std_result_of_t = u8; | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__18__detail4swapENS_5__anyES1_"] | |
pub fn std___detail_swap(arg1: std___any, arg2: std___any) -> std___nat; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___detail___swappable { | |
pub _address: u8, | |
} | |
pub type std___detail___swappable_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___detail___convert { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___detail___convert___result { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_swappable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_nothrow_swappable { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_underlying_type { | |
pub _address: u8, | |
} | |
pub type std_underlying_type_type = u8; | |
pub type std_underlying_type_t = u8; | |
pub type std___sfinae_underlying_type_type = u8; | |
pub type std___sfinae_underlying_type___promoted_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_operator_addressof_member_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_operator_addressof_free_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_operator_addressof { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_tuple_size { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_like { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___lazy_and { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___lazy_not { | |
pub _address: u8, | |
} | |
pub type std___make_tuple_indices_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_types { | |
pub _address: u8, | |
} | |
pub type std___make_tuple_types_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_convertible_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_constructible_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_assignable_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_piecewise_construct_t { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_piecewise_construct_t() { | |
assert_eq!( | |
::std::mem::size_of::<std_piecewise_construct_t>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_piecewise_construct_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_piecewise_construct_t>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_piecewise_construct_t)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__1L19piecewise_constructE"] | |
pub static mut std_piecewise_construct: std_piecewise_construct_t; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pair { | |
pub _address: u8, | |
} | |
pub type std_pair_first_type = u8; | |
pub type std_pair_second_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___make_pair_return_impl { | |
pub _address: u8, | |
} | |
pub type std___make_pair_return_impl_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___make_pair_return { | |
pub _address: u8, | |
} | |
pub type std___make_pair_return_type = u8; | |
pub type std_integer_sequence_value_type = u8; | |
pub type std_index_sequence = u8; | |
pub type std___make_integer_sequence_unchecked = u8; | |
pub type std___make_integer_sequence_type = u8; | |
pub type std_make_integer_sequence = u8; | |
pub type std_make_index_sequence = u8; | |
pub type std_index_sequence_for = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_ios_base { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_ios { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_streambuf { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_istream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_ostream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_iostream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_stringbuf { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_istringstream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_ostringstream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_stringstream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_filebuf { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_ifstream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_ofstream { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_fstream { | |
pub _address: u8, | |
} | |
pub type std_ios = u8; | |
pub type std_wios = u8; | |
pub type std_streambuf = u8; | |
pub type std_istream = u8; | |
pub type std_ostream = u8; | |
pub type std_iostream = u8; | |
pub type std_stringbuf = u8; | |
pub type std_istringstream = u8; | |
pub type std_ostringstream = u8; | |
pub type std_stringstream = u8; | |
pub type std_filebuf = u8; | |
pub type std_ifstream = u8; | |
pub type std_ofstream = u8; | |
pub type std_fstream = u8; | |
pub type std_wstreambuf = u8; | |
pub type std_wistream = u8; | |
pub type std_wostream = u8; | |
pub type std_wiostream = u8; | |
pub type std_wstringbuf = u8; | |
pub type std_wistringstream = u8; | |
pub type std_wostringstream = u8; | |
pub type std_wstringstream = u8; | |
pub type std_wfilebuf = u8; | |
pub type std_wifstream = u8; | |
pub type std_wofstream = u8; | |
pub type std_wfstream = u8; | |
pub type std_streampos = u8; | |
pub type std_wstreampos = u8; | |
pub type std_u16streampos = u8; | |
pub type std_u32streampos = u8; | |
pub type std_streamoff = u64; | |
pub type std_string = [u64; 3usize]; | |
pub type std_wstring = [u64; 3usize]; | |
pub const std_float_round_style_round_indeterminate: std_float_round_style = -1; | |
pub const std_float_round_style_round_toward_zero: std_float_round_style = 0; | |
pub const std_float_round_style_round_to_nearest: std_float_round_style = 1; | |
pub const std_float_round_style_round_toward_infinity: std_float_round_style = 2; | |
pub const std_float_round_style_round_toward_neg_infinity: std_float_round_style = 3; | |
pub type std_float_round_style = i32; | |
pub const std_float_denorm_style_denorm_indeterminate: std_float_denorm_style = -1; | |
pub const std_float_denorm_style_denorm_absent: std_float_denorm_style = 0; | |
pub const std_float_denorm_style_denorm_present: std_float_denorm_style = 1; | |
pub type std_float_denorm_style = i32; | |
pub type std___libcpp_numeric_limits_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_numeric_limits { | |
pub _address: u8, | |
} | |
pub type std_numeric_limits___base = u8; | |
pub type std_numeric_limits_type = u8; | |
extern "C" { | |
#[link_name = "\u{1}is_specialized"] | |
pub static mut std_is_specialized: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}digits"] | |
pub static mut std_digits: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}digits10"] | |
pub static mut std_digits10: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}max_digits10"] | |
pub static mut std_max_digits10: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_signed"] | |
pub static mut std_is_signed: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_integer"] | |
pub static mut std_is_integer: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_exact"] | |
pub static mut std_is_exact: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}radix"] | |
pub static mut std_radix: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}min_exponent"] | |
pub static mut std_min_exponent: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}min_exponent10"] | |
pub static mut std_min_exponent10: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}max_exponent"] | |
pub static mut std_max_exponent: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}max_exponent10"] | |
pub static mut std_max_exponent10: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}has_infinity"] | |
pub static mut std_has_infinity: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}has_quiet_NaN"] | |
pub static mut std_has_quiet_NaN: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}has_signaling_NaN"] | |
pub static mut std_has_signaling_NaN: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}has_denorm"] | |
pub static mut std_has_denorm: std_float_denorm_style; | |
} | |
extern "C" { | |
#[link_name = "\u{1}has_denorm_loss"] | |
pub static mut std_has_denorm_loss: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_iec559"] | |
pub static mut std_is_iec559: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_bounded"] | |
pub static mut std_is_bounded: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}is_modulo"] | |
pub static mut std_is_modulo: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}traps"] | |
pub static mut std_traps: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}tinyness_before"] | |
pub static mut std_tinyness_before: bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}round_style"] | |
pub static mut std_round_style: std_float_round_style; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_unary_function { | |
pub _address: u8, | |
} | |
pub type std_unary_function_argument_type = u8; | |
pub type std_unary_function_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_binary_function { | |
pub _address: u8, | |
} | |
pub type std_binary_function_first_argument_type = u8; | |
pub type std_binary_function_second_argument_type = u8; | |
pub type std_binary_function_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_result_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_result_type___two { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_less { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___derives_from_unary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___derives_from_unary_function___two { | |
pub _address: u8, | |
} | |
pub type std___derives_from_unary_function_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___derives_from_binary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___derives_from_binary_function___two { | |
pub _address: u8, | |
} | |
pub type std___derives_from_binary_function_type = u8; | |
pub type std___weak_result_type_imp_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___weak_result_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___invoke_return { | |
pub _address: u8, | |
} | |
pub type std___invoke_return_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___invoke_void_return_wrapper { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_reference_wrapper { | |
pub _address: u8, | |
} | |
pub type std_reference_wrapper_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_reference_wrapper_impl { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_reference_wrapper { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_transparent { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_transparent___two { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_allocator_arg_t { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_allocator_arg_t() { | |
assert_eq!( | |
::std::mem::size_of::<std_allocator_arg_t>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_allocator_arg_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_allocator_arg_t>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_allocator_arg_t)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__1L13allocator_argE"] | |
pub static mut std_allocator_arg: std_allocator_arg_t; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_allocator_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_allocator_type___two { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_uses_allocator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___uses_alloc_ctor_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___uses_alloc_ctor { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_input_iterator_tag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_input_iterator_tag() { | |
assert_eq!( | |
::std::mem::size_of::<std_input_iterator_tag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_input_iterator_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_input_iterator_tag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_input_iterator_tag)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_output_iterator_tag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_output_iterator_tag() { | |
assert_eq!( | |
::std::mem::size_of::<std_output_iterator_tag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_output_iterator_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_output_iterator_tag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_output_iterator_tag)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_forward_iterator_tag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_forward_iterator_tag() { | |
assert_eq!( | |
::std::mem::size_of::<std_forward_iterator_tag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_forward_iterator_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_forward_iterator_tag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_forward_iterator_tag)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bidirectional_iterator_tag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bidirectional_iterator_tag() { | |
assert_eq!( | |
::std::mem::size_of::<std_bidirectional_iterator_tag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_bidirectional_iterator_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bidirectional_iterator_tag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_bidirectional_iterator_tag)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_random_access_iterator_tag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_random_access_iterator_tag() { | |
assert_eq!( | |
::std::mem::size_of::<std_random_access_iterator_tag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_random_access_iterator_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_random_access_iterator_tag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_random_access_iterator_tag)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_iterator_category { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_iterator_category___two { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_iterator_traits { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_input_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_forward_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_bidirectional_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_random_access_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_iterator { | |
pub _address: u8, | |
} | |
pub type std_iterator_value_type = u8; | |
pub type std_iterator_difference_type = u8; | |
pub type std_iterator_pointer = u8; | |
pub type std_iterator_reference = u8; | |
pub type std_iterator_iterator_category = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_reverse_iterator { | |
pub _address: u8, | |
} | |
pub type std_reverse_iterator_iterator_type = u8; | |
pub type std_reverse_iterator_difference_type = u8; | |
pub type std_reverse_iterator_reference = u8; | |
pub type std_reverse_iterator_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_back_insert_iterator { | |
pub _address: u8, | |
} | |
pub type std_back_insert_iterator_container_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_front_insert_iterator { | |
pub _address: u8, | |
} | |
pub type std_front_insert_iterator_container_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_insert_iterator { | |
pub _address: u8, | |
} | |
pub type std_insert_iterator_container_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_istream_iterator { | |
pub _address: u8, | |
} | |
pub type std_istream_iterator_char_type = u8; | |
pub type std_istream_iterator_traits_type = u8; | |
pub type std_istream_iterator_istream_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_ostream_iterator { | |
pub _address: u8, | |
} | |
pub type std_ostream_iterator_char_type = u8; | |
pub type std_ostream_iterator_traits_type = u8; | |
pub type std_ostream_iterator_ostream_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_istreambuf_iterator { | |
pub _address: u8, | |
} | |
pub type std_istreambuf_iterator_char_type = u8; | |
pub type std_istreambuf_iterator_traits_type = u8; | |
pub type std_istreambuf_iterator_int_type = u8; | |
pub type std_istreambuf_iterator_streambuf_type = u8; | |
pub type std_istreambuf_iterator_istream_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_istreambuf_iterator___proxy { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_ostreambuf_iterator { | |
pub _address: u8, | |
} | |
pub type std_ostreambuf_iterator_char_type = u8; | |
pub type std_ostreambuf_iterator_traits_type = u8; | |
pub type std_ostreambuf_iterator_streambuf_type = u8; | |
pub type std_ostreambuf_iterator_ostream_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_move_iterator { | |
pub _address: u8, | |
} | |
pub type std_move_iterator_iterator_type = u8; | |
pub type std_move_iterator_iterator_category = u8; | |
pub type std_move_iterator_value_type = u8; | |
pub type std_move_iterator_difference_type = u8; | |
pub type std_move_iterator_pointer = u8; | |
pub type std_move_iterator_reference = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___wrap_iter { | |
pub _address: u8, | |
} | |
pub type std___wrap_iter_iterator_type = u8; | |
pub type std___wrap_iter_iterator_category = u8; | |
pub type std___wrap_iter_value_type = u8; | |
pub type std___wrap_iter_difference_type = u8; | |
pub type std___wrap_iter_pointer = u8; | |
pub type std___wrap_iter_reference = u8; | |
pub type std_tuple_element_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___all_default_constructible { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_impl { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_tuple { | |
pub _address: u8, | |
} | |
pub type std_tuple_base = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___find_exactly_one_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___ignore_t { | |
pub _address: u8, | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112_GLOBAL__N_1L6ignoreE"] | |
pub static mut std__bindgen_mod_id_16017_ignore: u8; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___make_tuple_return_impl { | |
pub _address: u8, | |
} | |
pub type std___make_tuple_return_impl_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___make_tuple_return { | |
pub _address: u8, | |
} | |
pub type std___make_tuple_return_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_cat_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_cat_return { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_cat_return_ref_imp { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_cat_return_ref { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tuple_cat { | |
pub _address: u8, | |
} | |
pub const std_memory_order_memory_order_relaxed: std_memory_order = 0; | |
pub const std_memory_order_memory_order_consume: std_memory_order = 1; | |
pub const std_memory_order_memory_order_acquire: std_memory_order = 2; | |
pub const std_memory_order_memory_order_release: std_memory_order = 3; | |
pub const std_memory_order_memory_order_acq_rel: std_memory_order = 4; | |
pub const std_memory_order_memory_order_seq_cst: std_memory_order = 5; | |
pub type std_memory_order = u32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_atomic { | |
pub _address: u8, | |
} | |
pub type std_atomic___base = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_atomic_flag { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_atomic_flag() { | |
assert_eq!( | |
::std::mem::size_of::<std_atomic_flag>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_atomic_flag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_atomic_flag>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_atomic_flag)) | |
); | |
} | |
pub type std_atomic_bool = u8; | |
pub type std_atomic_char = u8; | |
pub type std_atomic_schar = u8; | |
pub type std_atomic_uchar = u8; | |
pub type std_atomic_short = u8; | |
pub type std_atomic_ushort = u8; | |
pub type std_atomic_int = u8; | |
pub type std_atomic_uint = u8; | |
pub type std_atomic_long = u8; | |
pub type std_atomic_ulong = u8; | |
pub type std_atomic_llong = u8; | |
pub type std_atomic_ullong = u8; | |
pub type std_atomic_char16_t = u8; | |
pub type std_atomic_char32_t = u8; | |
pub type std_atomic_wchar_t = u8; | |
pub type std_atomic_int_least8_t = u8; | |
pub type std_atomic_uint_least8_t = u8; | |
pub type std_atomic_int_least16_t = u8; | |
pub type std_atomic_uint_least16_t = u8; | |
pub type std_atomic_int_least32_t = u8; | |
pub type std_atomic_uint_least32_t = u8; | |
pub type std_atomic_int_least64_t = u8; | |
pub type std_atomic_uint_least64_t = u8; | |
pub type std_atomic_int_fast8_t = u8; | |
pub type std_atomic_uint_fast8_t = u8; | |
pub type std_atomic_int_fast16_t = u8; | |
pub type std_atomic_uint_fast16_t = u8; | |
pub type std_atomic_int_fast32_t = u8; | |
pub type std_atomic_uint_fast32_t = u8; | |
pub type std_atomic_int_fast64_t = u8; | |
pub type std_atomic_uint_fast64_t = u8; | |
pub type std_atomic_intptr_t = u8; | |
pub type std_atomic_uintptr_t = u8; | |
pub type std_atomic_size_t = u8; | |
pub type std_atomic_ptrdiff_t = u8; | |
pub type std_atomic_intmax_t = u8; | |
pub type std_atomic_uintmax_t = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_element_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_element_type___two { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_difference_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_difference_type___two { | |
pub _address: u8, | |
} | |
pub type std___pointer_traits_difference_type_type = u64; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_rebind { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_rebind___two { | |
pub _address: u8, | |
} | |
pub type std___pointer_traits_rebind_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pointer_traits { | |
pub _address: u8, | |
} | |
pub type std_pointer_traits_pointer = u8; | |
pub type std_pointer_traits_element_type = u8; | |
pub type std_pointer_traits_difference_type = u8; | |
pub type std_pointer_traits_rebind = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pointer_traits___nat { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_pointer_type { | |
pub _address: u8, | |
} | |
pub type std___pointer_type_imp___pointer_type_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___pointer_type { | |
pub _address: u8, | |
} | |
pub type std___pointer_type_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_const_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_const_pointer___two { | |
pub _address: u8, | |
} | |
pub type std___const_pointer_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_void_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_void_pointer___two { | |
pub _address: u8, | |
} | |
pub type std___void_pointer_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_const_void_pointer { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_const_void_pointer___two { | |
pub _address: u8, | |
} | |
pub type std___const_void_pointer_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_size_type { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_size_type___two { | |
pub _address: u8, | |
} | |
pub type std___size_type_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_copy_assignment { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_copy_assignment___two { | |
pub _address: u8, | |
} | |
pub type std___propagate_on_container_copy_assignment_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_move_assignment { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_move_assignment___two { | |
pub _address: u8, | |
} | |
pub type std___propagate_on_container_move_assignment_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_swap { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_propagate_on_container_swap___two { | |
pub _address: u8, | |
} | |
pub type std___propagate_on_container_swap_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_is_always_equal { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_is_always_equal___two { | |
pub _address: u8, | |
} | |
pub type std___is_always_equal_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_rebind_other___two { | |
pub _address: u8, | |
} | |
pub type std___allocator_traits_rebind_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_allocate_hint { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_construct { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_destroy { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_max_size { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_select_on_container_copy_construction { | |
pub _address: u8, | |
} | |
pub type std___alloc_traits_difference_type_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_allocator_traits { | |
pub _address: u8, | |
} | |
pub type std_allocator_traits_allocator_type = u8; | |
pub type std_allocator_traits_value_type = u8; | |
pub type std_allocator_traits_pointer = u8; | |
pub type std_allocator_traits_const_pointer = u8; | |
pub type std_allocator_traits_void_pointer = u8; | |
pub type std_allocator_traits_const_void_pointer = u8; | |
pub type std_allocator_traits_difference_type = u8; | |
pub type std_allocator_traits_size_type = u8; | |
pub type std_allocator_traits_propagate_on_container_copy_assignment = u8; | |
pub type std_allocator_traits_propagate_on_container_move_assignment = u8; | |
pub type std_allocator_traits_propagate_on_container_swap = u8; | |
pub type std_allocator_traits_is_always_equal = u8; | |
pub type std_allocator_traits_rebind_alloc = u8; | |
pub type std_allocator_traits_rebind_traits = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___rebind_alloc_helper { | |
pub _address: u8, | |
} | |
pub type std___rebind_alloc_helper_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_allocator { | |
pub _address: u8, | |
} | |
pub type std_allocator_size_type = u64; | |
pub type std_allocator_difference_type = u64; | |
pub type std_allocator_pointer = u8; | |
pub type std_allocator_const_pointer = u8; | |
pub type std_allocator_reference = u8; | |
pub type std_allocator_const_reference = u8; | |
pub type std_allocator_value_type = u8; | |
pub type std_allocator_propagate_on_container_move_assignment = u8; | |
pub type std_allocator_is_always_equal = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_allocator_rebind { | |
pub _address: u8, | |
} | |
pub type std_allocator_rebind_other = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_raw_storage_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_auto_ptr_ref { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_auto_ptr { | |
pub _address: u8, | |
} | |
pub type std_auto_ptr_element_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___compressed_pair { | |
pub _address: u8, | |
} | |
pub type std___compressed_pair_base = u8; | |
pub type std___compressed_pair__T1_param = u8; | |
pub type std___compressed_pair__T2_param = u8; | |
pub type std___compressed_pair__T1_reference = u8; | |
pub type std___compressed_pair__T2_reference = u8; | |
pub type std___compressed_pair__T1_const_reference = u8; | |
pub type std___compressed_pair__T2_const_reference = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_default_delete { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_unique_ptr { | |
pub _address: u8, | |
} | |
pub type std_unique_ptr_element_type = u8; | |
pub type std_unique_ptr_deleter_type = u8; | |
pub type std_unique_ptr_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_unique_ptr___nat { | |
pub _address: u8, | |
} | |
pub type std_unique_ptr__Dp_reference = u8; | |
pub type std_unique_ptr__Dp_const_reference = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___unique_if { | |
pub _address: u8, | |
} | |
pub type std___unique_if___unique_single = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___destruct_n { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std___destruct_n() { | |
assert_eq!( | |
::std::mem::size_of::<std___destruct_n>(), | |
8usize, | |
concat!("Size of: ", stringify!(std___destruct_n)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___destruct_n>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___destruct_n)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___allocator_destructor { | |
pub _address: u8, | |
} | |
pub type std___allocator_destructor___alloc_traits = u8; | |
pub type std___allocator_destructor_pointer = u8; | |
pub type std___allocator_destructor_size_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_weak_ptr { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_weak_ptr() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_weak_ptr>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_weak_ptr)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_weak_ptr>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_weak_ptr)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112bad_weak_ptrD0Ev"] | |
pub fn std_bad_weak_ptr_bad_weak_ptr_destructor(this: *mut std_bad_weak_ptr); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt3__112bad_weak_ptr4whatEv"] | |
pub fn std_bad_weak_ptr_what( | |
this: *mut ::std::os::raw::c_void, | |
) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___shared_count { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std___shared_count() { | |
assert_eq!( | |
::std::mem::size_of::<std___shared_count>(), | |
16usize, | |
concat!("Size of: ", stringify!(std___shared_count)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___shared_count>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___shared_count)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__114__shared_count12__add_sharedEv"] | |
pub fn std___shared_count___add_shared(this: *mut std___shared_count); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__114__shared_count16__release_sharedEv"] | |
pub fn std___shared_count___release_shared(this: *mut std___shared_count) -> bool; | |
} | |
impl std___shared_count { | |
#[inline] | |
pub unsafe fn __add_shared(&mut self) { | |
std___shared_count___add_shared(self) | |
} | |
#[inline] | |
pub unsafe fn __release_shared(&mut self) -> bool { | |
std___shared_count___release_shared(self) | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__114__shared_countD0Ev"] | |
pub fn std___shared_count___shared_count_destructor(this: *mut std___shared_count); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___shared_weak_count { | |
pub _bindgen_opaque_blob: [u64; 3usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std___shared_weak_count() { | |
assert_eq!( | |
::std::mem::size_of::<std___shared_weak_count>(), | |
24usize, | |
concat!("Size of: ", stringify!(std___shared_weak_count)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___shared_weak_count>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___shared_weak_count)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_count12__add_sharedEv"] | |
pub fn std___shared_weak_count___add_shared(this: *mut std___shared_weak_count); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_count10__add_weakEv"] | |
pub fn std___shared_weak_count___add_weak(this: *mut std___shared_weak_count); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_count16__release_sharedEv"] | |
pub fn std___shared_weak_count___release_shared(this: *mut std___shared_weak_count); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_count14__release_weakEv"] | |
pub fn std___shared_weak_count___release_weak(this: *mut std___shared_weak_count); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_count4lockEv"] | |
pub fn std___shared_weak_count_lock( | |
this: *mut std___shared_weak_count, | |
) -> *mut std___shared_weak_count; | |
} | |
impl std___shared_weak_count { | |
#[inline] | |
pub unsafe fn __add_shared(&mut self) { | |
std___shared_weak_count___add_shared(self) | |
} | |
#[inline] | |
pub unsafe fn __add_weak(&mut self) { | |
std___shared_weak_count___add_weak(self) | |
} | |
#[inline] | |
pub unsafe fn __release_shared(&mut self) { | |
std___shared_weak_count___release_shared(self) | |
} | |
#[inline] | |
pub unsafe fn __release_weak(&mut self) { | |
std___shared_weak_count___release_weak(self) | |
} | |
#[inline] | |
pub unsafe fn lock(&mut self) -> *mut std___shared_weak_count { | |
std___shared_weak_count_lock(self) | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119__shared_weak_countD0Ev"] | |
pub fn std___shared_weak_count___shared_weak_count_destructor( | |
this: *mut std___shared_weak_count, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt3__119__shared_weak_count13__get_deleterERKSt9type_info"] | |
pub fn std___shared_weak_count___get_deleter( | |
this: *mut ::std::os::raw::c_void, | |
arg1: *const std_type_info, | |
) -> *const ::std::os::raw::c_void; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___shared_ptr_pointer {} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___shared_ptr_emplace {} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_shared_ptr { | |
pub _address: u8, | |
} | |
pub type std_shared_ptr_element_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_shared_ptr___nat { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_weak_ptr { | |
pub _address: u8, | |
} | |
pub type std_weak_ptr_element_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_owner_less { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_enable_shared_from_this { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___sp_mut { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std___sp_mut() { | |
assert_eq!( | |
::std::mem::size_of::<std___sp_mut>(), | |
8usize, | |
concat!("Size of: ", stringify!(std___sp_mut)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___sp_mut>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___sp_mut)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__18__sp_mut4lockEv"] | |
pub fn std___sp_mut_lock(this: *mut std___sp_mut); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__18__sp_mut6unlockEv"] | |
pub fn std___sp_mut_unlock(this: *mut std___sp_mut); | |
} | |
impl std___sp_mut { | |
#[inline] | |
pub unsafe fn lock(&mut self) { | |
std___sp_mut_lock(self) | |
} | |
#[inline] | |
pub unsafe fn unlock(&mut self) { | |
std___sp_mut_unlock(self) | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112__get_sp_mutEPKv"] | |
pub fn std___get_sp_mut(arg1: *const ::std::os::raw::c_void) -> *mut std___sp_mut; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pointer_safety { | |
pub _bindgen_opaque_blob: u32, | |
} | |
pub const std_pointer_safety___lx_relaxed: std_pointer_safety___lx = 0; | |
pub const std_pointer_safety___lx_preferred: std_pointer_safety___lx = 1; | |
pub const std_pointer_safety___lx_strict: std_pointer_safety___lx = 2; | |
pub type std_pointer_safety___lx = u32; | |
#[test] | |
fn bindgen_test_layout_std_pointer_safety() { | |
assert_eq!( | |
::std::mem::size_of::<std_pointer_safety>(), | |
4usize, | |
concat!("Size of: ", stringify!(std_pointer_safety)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_pointer_safety>(), | |
4usize, | |
concat!("Alignment of ", stringify!(std_pointer_safety)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__117declare_reachableEPv"] | |
pub fn std_declare_reachable(__p: *mut ::std::os::raw::c_void); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__119declare_no_pointersEPcm"] | |
pub fn std_declare_no_pointers(__p: *mut ::std::os::raw::c_char, __n: usize); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__121undeclare_no_pointersEPcm"] | |
pub fn std_undeclare_no_pointers(__p: *mut ::std::os::raw::c_char, __n: usize); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__118get_pointer_safetyEv"] | |
pub fn std_get_pointer_safety() -> std_pointer_safety; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__121__undeclare_reachableEPv"] | |
pub fn std___undeclare_reachable( | |
__p: *mut ::std::os::raw::c_void, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__15alignEmmRPvRm"] | |
pub fn std_align( | |
__align: usize, | |
__sz: usize, | |
__ptr: *mut *mut ::std::os::raw::c_void, | |
__space: *mut usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___equal_to { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___less { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___negate { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_is_trivial_iterator { | |
pub _address: u8, | |
} | |
extern "C" { | |
#[link_name = "\u{1}value"] | |
pub static mut std___log2_imp_value: usize; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___independent_bits_engine { | |
pub _address: u8, | |
} | |
pub type std___independent_bits_engine_result_type = u8; | |
pub type std___independent_bits_engine__Engine_result_type = u8; | |
pub type std___independent_bits_engine__Working_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_uniform_int_distribution { | |
pub _address: u8, | |
} | |
pub type std_uniform_int_distribution_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_uniform_int_distribution_param_type { | |
pub _address: u8, | |
} | |
pub type std_uniform_int_distribution_param_type_distribution_type = u8; | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__18__rs_getEv"] | |
pub fn std___rs_get() -> std___rs_default; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___rs_default { | |
pub _bindgen_opaque_blob: u8, | |
} | |
pub type std___rs_default_result_type = u32; | |
#[test] | |
fn bindgen_test_layout_std___rs_default() { | |
assert_eq!( | |
::std::mem::size_of::<std___rs_default>(), | |
1usize, | |
concat!("Size of: ", stringify!(std___rs_default)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___rs_default>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___rs_default)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112__rs_defaultC1ERKS0_"] | |
pub fn std___rs_default___rs_default( | |
this: *mut std___rs_default, | |
arg1: *const std___rs_default, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112__rs_defaultD1Ev"] | |
pub fn std___rs_default___rs_default_destructor(this: *mut std___rs_default); | |
} | |
impl std___rs_default { | |
#[inline] | |
pub unsafe fn new(arg1: *const std___rs_default) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std___rs_default___rs_default(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
std___rs_default___rs_default_destructor(self) | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112__rs_default4__c_E"] | |
pub static mut std___rs_default___c_: ::std::os::raw::c_uint; | |
} | |
pub const std___rs_default__Min: std___rs_default_result_type = 0; | |
pub const std___rs_default__Max: std___rs_default_result_type = 4294967295; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___return_temporary_buffer { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std___return_temporary_buffer() { | |
assert_eq!( | |
::std::mem::size_of::<std___return_temporary_buffer>(), | |
1usize, | |
concat!("Size of: ", stringify!(std___return_temporary_buffer)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___return_temporary_buffer>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std___return_temporary_buffer)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___stable_sort_switch { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___libcpp_refstring { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std___libcpp_refstring() { | |
assert_eq!( | |
::std::mem::size_of::<std___libcpp_refstring>(), | |
8usize, | |
concat!("Size of: ", stringify!(std___libcpp_refstring)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std___libcpp_refstring>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std___libcpp_refstring)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_fpos { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_char_traits { | |
pub _address: u8, | |
} | |
pub type std_char_traits_char_type = u8; | |
pub type std_char_traits_int_type = u32; | |
pub type std_char_traits_off_type = u64; | |
pub type std_char_traits_pos_type = u8; | |
pub type std_char_traits_state_type = [u64; 16usize]; | |
extern "C" { | |
#[link_name = "\u{1}__throw_length_error"] | |
pub fn std___basic_string_common___throw_length_error(this: *const u8); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__throw_out_of_range"] | |
pub fn std___basic_string_common___throw_out_of_range(this: *const u8); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_string { | |
pub _address: u8, | |
} | |
pub type std_basic_string___self = u8; | |
pub type std_basic_string_traits_type = u8; | |
pub type std_basic_string_value_type = u8; | |
pub type std_basic_string_allocator_type = u8; | |
pub type std_basic_string___alloc_traits = u8; | |
pub type std_basic_string_size_type = u8; | |
pub type std_basic_string_difference_type = u8; | |
pub type std_basic_string_reference = u8; | |
pub type std_basic_string_const_reference = u8; | |
pub type std_basic_string_pointer = u8; | |
pub type std_basic_string_const_pointer = u8; | |
pub type std_basic_string_iterator = u8; | |
pub type std_basic_string_const_iterator = u8; | |
pub type std_basic_string_reverse_iterator = u8; | |
pub type std_basic_string_const_reverse_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_string___long { | |
pub _address: u8, | |
} | |
pub const std_basic_string___short_mask: std_basic_string__bindgen_ty_1 = 0; | |
pub type std_basic_string__bindgen_ty_1 = i32; | |
pub const std_basic_string___long_mask: std_basic_string__bindgen_ty_2 = 0; | |
pub type std_basic_string__bindgen_ty_2 = i32; | |
pub const std_basic_string___min_cap: std_basic_string__bindgen_ty_3 = 0; | |
pub type std_basic_string__bindgen_ty_3 = i32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_string___short { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub union std_basic_string___short__bindgen_ty_1 { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[repr(C)] | |
pub union std_basic_string___ulx { | |
pub _bindgen_opaque_blob: [u8; 0usize], | |
} | |
pub const std_basic_string___n_words: std_basic_string__bindgen_ty_4 = 0; | |
pub type std_basic_string__bindgen_ty_4 = i32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_string___raw { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_basic_string___rep { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
pub union std_basic_string___rep__bindgen_ty_1 { | |
pub _bindgen_opaque_blob: [u8; 0usize], | |
} | |
pub const std_basic_string___alignment: std_basic_string__bindgen_ty_5 = 0; | |
pub type std_basic_string__bindgen_ty_5 = i32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___traits_eq { | |
pub _address: u8, | |
} | |
pub type std___traits_eq_char_type = u8; | |
pub type std_u16string = [u64; 3usize]; | |
pub type std_u32string = [u64; 3usize]; | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stoiERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi" ] pub fn std_stoi ( __str : * const std_string , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stolERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi" ] pub fn std_stol ( __str : * const std_string , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_long ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stoulERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi" ] pub fn std_stoul ( __str : * const std_string , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_ulong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi" ] pub fn std_stoll ( __str : * const std_string , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_longlong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__16stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi" ] pub fn std_stoull ( __str : * const std_string , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_ulonglong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stofERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPm" ] pub fn std_stof ( __str : * const std_string , __idx : * mut usize ) -> f32 ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stodERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPm" ] pub fn std_stod ( __str : * const std_string , __idx : * mut usize ) -> f64 ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stoldERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPm" ] pub fn std_stold ( __str : * const std_string , __idx : * mut usize ) -> f64 ; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEi"] | |
pub fn std_to_string(__val: ::std::os::raw::c_int) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEj"] | |
pub fn std_to_string1(__val: ::std::os::raw::c_uint) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEl"] | |
pub fn std_to_string2(__val: ::std::os::raw::c_long) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEm"] | |
pub fn std_to_string3(__val: ::std::os::raw::c_ulong) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEx"] | |
pub fn std_to_string4(__val: ::std::os::raw::c_longlong) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEy"] | |
pub fn std_to_string5(__val: ::std::os::raw::c_ulonglong) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEf"] | |
pub fn std_to_string6(__val: f32) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEd"] | |
pub fn std_to_string7(__val: f64) -> std_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__19to_stringEe"] | |
pub fn std_to_string8(__val: f64) -> std_string; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stoiERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi" ] pub fn std_stoi1 ( __str : * const std_wstring , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stolERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi" ] pub fn std_stol1 ( __str : * const std_wstring , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_long ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stoulERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi" ] pub fn std_stoul1 ( __str : * const std_wstring , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_ulong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi" ] pub fn std_stoll1 ( __str : * const std_wstring , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_longlong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__16stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi" ] pub fn std_stoull1 ( __str : * const std_wstring , __idx : * mut usize , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_ulonglong ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stofERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPm" ] pub fn std_stof1 ( __str : * const std_wstring , __idx : * mut usize ) -> f32 ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__14stodERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPm" ] pub fn std_stod1 ( __str : * const std_wstring , __idx : * mut usize ) -> f64 ; | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt3__15stoldERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPm" ] pub fn std_stold1 ( __str : * const std_wstring , __idx : * mut usize ) -> f64 ; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEi"] | |
pub fn std_to_wstring(__val: ::std::os::raw::c_int) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEj"] | |
pub fn std_to_wstring1(__val: ::std::os::raw::c_uint) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEl"] | |
pub fn std_to_wstring2(__val: ::std::os::raw::c_long) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEm"] | |
pub fn std_to_wstring3(__val: ::std::os::raw::c_ulong) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEx"] | |
pub fn std_to_wstring4(__val: ::std::os::raw::c_longlong) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEy"] | |
pub fn std_to_wstring5(__val: ::std::os::raw::c_ulonglong) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEf"] | |
pub fn std_to_wstring6(__val: f32) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEd"] | |
pub fn std_to_wstring7(__val: f64) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__110to_wstringEe"] | |
pub fn std_to_wstring8(__val: f64) -> std_wstring; | |
} | |
extern "C" { | |
#[link_name = "\u{1}npos"] | |
pub static mut std_npos: std_basic_string_size_type; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___has_storage_type { | |
pub _address: u8, | |
} | |
pub type std___bit_reference___storage_type = u8; | |
pub type std___bit_reference___storage_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___bit_const_reference { | |
pub _address: u8, | |
} | |
pub type std___bit_const_reference___storage_type = u8; | |
pub type std___bit_const_reference___storage_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___bit_array { | |
pub _address: u8, | |
} | |
pub type std___bit_array_difference_type = u8; | |
pub type std___bit_array___storage_type = u8; | |
pub type std___bit_array___storage_pointer = u8; | |
pub type std___bit_array_iterator = u8; | |
pub type std___bit_iterator_difference_type = u8; | |
pub type std___bit_iterator_value_type = u8; | |
pub type std___bit_iterator_pointer = u8; | |
pub type std___bit_iterator_reference = u8; | |
pub type std___bit_iterator_iterator_category = u8; | |
pub type std___bit_iterator___storage_type = u8; | |
pub type std___bit_iterator___storage_pointer = u8; | |
extern "C" { | |
#[link_name = "\u{1}__throw_length_error"] | |
pub fn std___split_buffer_common___throw_length_error(this: *const u8); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__throw_out_of_range"] | |
pub fn std___split_buffer_common___throw_out_of_range(this: *const u8); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___split_buffer { | |
pub _address: u8, | |
} | |
pub type std___split_buffer_value_type = u8; | |
pub type std___split_buffer_allocator_type = u8; | |
pub type std___split_buffer___alloc_rr = u8; | |
pub type std___split_buffer___alloc_traits = u8; | |
pub type std___split_buffer_reference = u8; | |
pub type std___split_buffer_const_reference = u8; | |
pub type std___split_buffer_size_type = u8; | |
pub type std___split_buffer_difference_type = u8; | |
pub type std___split_buffer_pointer = u8; | |
pub type std___split_buffer_const_pointer = u8; | |
pub type std___split_buffer_iterator = u8; | |
pub type std___split_buffer_const_iterator = u8; | |
pub type std___split_buffer___alloc_ref = u8; | |
pub type std___split_buffer___alloc_const_ref = u8; | |
extern "C" { | |
#[link_name = "\u{1}__throw_length_error"] | |
pub fn std___vector_base_common___throw_length_error(this: *const u8); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__throw_out_of_range"] | |
pub fn std___vector_base_common___throw_out_of_range(this: *const u8); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___vector_base { | |
pub _address: u8, | |
} | |
pub type std___vector_base_value_type = u8; | |
pub type std___vector_base_allocator_type = u8; | |
pub type std___vector_base___alloc_traits = u8; | |
pub type std___vector_base_reference = u8; | |
pub type std___vector_base_const_reference = u8; | |
pub type std___vector_base_size_type = u8; | |
pub type std___vector_base_difference_type = u8; | |
pub type std___vector_base_pointer = u8; | |
pub type std___vector_base_const_pointer = u8; | |
pub type std___vector_base_iterator = u8; | |
pub type std___vector_base_const_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_vector { | |
pub _address: u8, | |
} | |
pub type std_vector___base = u8; | |
pub type std_vector___default_allocator_type = u8; | |
pub type std_vector___self = u8; | |
pub type std_vector_value_type = u8; | |
pub type std_vector_allocator_type = u8; | |
pub type std_vector___alloc_traits = u8; | |
pub type std_vector_reference = u8; | |
pub type std_vector_const_reference = u8; | |
pub type std_vector_size_type = u8; | |
pub type std_vector_difference_type = u8; | |
pub type std_vector_pointer = u8; | |
pub type std_vector_const_pointer = u8; | |
pub type std_vector_iterator = u8; | |
pub type std_vector_const_iterator = u8; | |
pub type std_vector_reverse_iterator = u8; | |
pub type std_vector_const_reverse_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_vector___RAII_IncreaseAnnotator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___map_node_destructor { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_node_destructor { | |
pub _address: u8, | |
} | |
pub type std___tree_node_destructor_allocator_type = u8; | |
pub type std___tree_node_destructor___alloc_traits = u8; | |
pub type std___tree_node_destructor_value_type = u8; | |
pub type std___tree_node_destructor_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_end_node { | |
pub _address: u8, | |
} | |
pub type std___tree_end_node_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_node_base { | |
pub _address: u8, | |
} | |
pub type std___tree_node_base_pointer = u8; | |
pub type std___tree_node_base_const_pointer = u8; | |
pub type std___tree_node_base_base = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_node { | |
pub _address: u8, | |
} | |
pub type std___tree_node_value_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___map_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___map_const_iterator { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_iterator { | |
pub _address: u8, | |
} | |
pub type std___tree_iterator___node_pointer = u8; | |
pub type std___tree_iterator___node = u8; | |
pub type std___tree_iterator___pointer_traits = u8; | |
pub type std___tree_iterator_iterator_category = u8; | |
pub type std___tree_iterator_value_type = u8; | |
pub type std___tree_iterator_difference_type = u8; | |
pub type std___tree_iterator_reference = u8; | |
pub type std___tree_iterator_pointer = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree_const_iterator { | |
pub _address: u8, | |
} | |
pub type std___tree_const_iterator___node_pointer = u8; | |
pub type std___tree_const_iterator___node = u8; | |
pub type std___tree_const_iterator___pointer_traits = u8; | |
pub type std___tree_const_iterator_iterator_category = u8; | |
pub type std___tree_const_iterator_value_type = u8; | |
pub type std___tree_const_iterator_difference_type = u8; | |
pub type std___tree_const_iterator_reference = u8; | |
pub type std___tree_const_iterator_pointer = u8; | |
pub type std___tree_const_iterator___non_const_node = u8; | |
pub type std___tree_const_iterator___non_const_node_pointer = u8; | |
pub type std___tree_const_iterator___non_const_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___tree { | |
pub _address: u8, | |
} | |
pub type std___tree_value_type = u8; | |
pub type std___tree_value_compare = u8; | |
pub type std___tree_allocator_type = u8; | |
pub type std___tree___alloc_traits = u8; | |
pub type std___tree_pointer = u8; | |
pub type std___tree_const_pointer = u8; | |
pub type std___tree_size_type = u8; | |
pub type std___tree_difference_type = u8; | |
pub type std___tree___void_pointer = u8; | |
pub type std___tree___node = u8; | |
pub type std___tree___node_base = u8; | |
pub type std___tree___node_allocator = u8; | |
pub type std___tree___node_traits = u8; | |
pub type std___tree___node_pointer = u8; | |
pub type std___tree___node_const_pointer = u8; | |
pub type std___tree___node_base_pointer = u8; | |
pub type std___tree___node_base_const_pointer = u8; | |
pub type std___tree___end_node_t = u8; | |
pub type std___tree___end_node_ptr = u8; | |
pub type std___tree___end_node_const_ptr = u8; | |
pub type std___tree__Dp = u8; | |
pub type std___tree___node_holder = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_plus { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_minus { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_multiplies { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_divides { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_modulus { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_negate { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_equal_to { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_not_equal_to { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_greater { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_greater_equal { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_less_equal { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_logical_and { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_logical_or { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_logical_not { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bit_and { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bit_or { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bit_xor { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bit_not { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_unary_negate { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_binary_negate { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_binder1st { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_binder2nd { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pointer_to_unary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_pointer_to_binary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_mem_fun_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_mem_fun1_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_mem_fun_ref_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_mem_fun1_ref_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_const_mem_fun_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_const_mem_fun1_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_const_mem_fun_ref_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_const_mem_fun1_ref_t { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___mem_fn { | |
pub _address: u8, | |
} | |
pub type std___mem_fn_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_function_call { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_function_call() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_function_call>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_function_call)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_function_call>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_function_call)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___function___maybe_derive_from_unary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___function___maybe_derive_from_binary_function { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___function___base { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___function___func { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_bind_expression { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_bind_expression { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_placeholder { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_is_placeholder { | |
pub _address: u8, | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_1E"] | |
pub static mut std_placeholders__1: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_2E"] | |
pub static mut std_placeholders__2: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_3E"] | |
pub static mut std_placeholders__3: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_4E"] | |
pub static mut std_placeholders__4: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_5E"] | |
pub static mut std_placeholders__5: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_6E"] | |
pub static mut std_placeholders__6: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_7E"] | |
pub static mut std_placeholders__7: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_8E"] | |
pub static mut std_placeholders__8: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders2_9E"] | |
pub static mut std_placeholders__9: u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt3__112placeholders3_10E"] | |
pub static mut std_placeholders__10: u8; | |
} | |
pub type std_____mu_return_invokable_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___mu_return { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___is_valid_bind_return { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___bind { | |
pub _address: u8, | |
} | |
pub type std___bind__Fd = u8; | |
pub type std___bind__Td = u8; | |
pub type std___bind___indices = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___bind_r { | |
pub _address: u8, | |
} | |
pub type std___bind_r_base = u8; | |
pub type std___bind_r__Fd = u8; | |
pub type std___bind_r__Td = u8; | |
pub type std___bind_r_result_type = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_hash { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_set { | |
pub _address: u8, | |
} | |
pub type std_set_key_type = u8; | |
pub type std_set_value_type = u8; | |
pub type std_set_key_compare = u8; | |
pub type std_set_value_compare = u8; | |
pub type std_set_allocator_type = u8; | |
pub type std_set_reference = u8; | |
pub type std_set_const_reference = u8; | |
pub type std_set___base = u8; | |
pub type std_set___alloc_traits = u8; | |
pub type std_set___node_holder = u8; | |
pub type std_set_pointer = u8; | |
pub type std_set_const_pointer = u8; | |
pub type std_set_size_type = u8; | |
pub type std_set_difference_type = u8; | |
pub type std_set_iterator = u8; | |
pub type std_set_const_iterator = u8; | |
pub type std_set_reverse_iterator = u8; | |
pub type std_set_const_reverse_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_multiset { | |
pub _address: u8, | |
} | |
pub type std_multiset_key_type = u8; | |
pub type std_multiset_value_type = u8; | |
pub type std_multiset_key_compare = u8; | |
pub type std_multiset_value_compare = u8; | |
pub type std_multiset_allocator_type = u8; | |
pub type std_multiset_reference = u8; | |
pub type std_multiset_const_reference = u8; | |
pub type std_multiset___base = u8; | |
pub type std_multiset___alloc_traits = u8; | |
pub type std_multiset___node_holder = u8; | |
pub type std_multiset_pointer = u8; | |
pub type std_multiset_const_pointer = u8; | |
pub type std_multiset_size_type = u8; | |
pub type std_multiset_difference_type = u8; | |
pub type std_multiset_iterator = u8; | |
pub type std_multiset_const_iterator = u8; | |
pub type std_multiset_reverse_iterator = u8; | |
pub type std_multiset_const_reverse_iterator = u8; | |
pub type std_nullptr_t = u64; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_initializer_list { | |
pub _address: u8, | |
} | |
pub type std_initializer_list_value_type = u8; | |
pub type std_initializer_list_reference = u8; | |
pub type std_initializer_list_const_reference = u8; | |
pub type std_initializer_list_size_type = u64; | |
pub type std_initializer_list_iterator = u8; | |
pub type std_initializer_list_const_iterator = u8; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_exception { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_exception() { | |
assert_eq!( | |
::std::mem::size_of::<std_exception>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_exception)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_exception>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_exception)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt9exceptionD0Ev"] | |
pub fn std_exception_exception_destructor(this: *mut std_exception); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt9exception4whatEv"] | |
pub fn std_exception_what(this: *mut ::std::os::raw::c_void) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_exception { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_exception() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_exception>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_exception)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_exception>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_exception)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13bad_exceptionD0Ev"] | |
pub fn std_bad_exception_bad_exception_destructor(this: *mut std_bad_exception); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt13bad_exception4whatEv"] | |
pub fn std_bad_exception_what( | |
this: *mut ::std::os::raw::c_void, | |
) -> *const ::std::os::raw::c_char; | |
} | |
pub type std_unexpected_handler = u64; | |
extern "C" { | |
#[link_name = "\u{1}__ZSt14set_unexpectedPFvvE"] | |
pub fn std_set_unexpected(arg1: std_unexpected_handler) -> std_unexpected_handler; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt14get_unexpectedv"] | |
pub fn std_get_unexpected() -> std_unexpected_handler; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt10unexpectedv"] | |
pub fn std_unexpected(); | |
} | |
pub type std_terminate_handler = u64; | |
extern "C" { | |
#[link_name = "\u{1}__ZSt13set_terminatePFvvE"] | |
pub fn std_set_terminate(arg1: std_terminate_handler) -> std_terminate_handler; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt13get_terminatev"] | |
pub fn std_get_terminate() -> std_terminate_handler; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt9terminatev"] | |
pub fn std_terminate(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt18uncaught_exceptionv"] | |
pub fn std_uncaught_exception() -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt19uncaught_exceptionsv"] | |
pub fn std_uncaught_exceptions() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt17current_exceptionv"] | |
pub fn std_current_exception() -> std_exception_ptr; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt17rethrow_exceptionSt13exception_ptr"] | |
pub fn std_rethrow_exception(arg1: std_exception_ptr); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_exception_ptr { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_exception_ptr() { | |
assert_eq!( | |
::std::mem::size_of::<std_exception_ptr>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_exception_ptr)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_exception_ptr>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_exception_ptr)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13exception_ptrC1ERKS_"] | |
pub fn std_exception_ptr_exception_ptr( | |
this: *mut std_exception_ptr, | |
arg1: *const std_exception_ptr, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13exception_ptrD1Ev"] | |
pub fn std_exception_ptr_exception_ptr_destructor(this: *mut std_exception_ptr); | |
} | |
impl std_exception_ptr { | |
#[inline] | |
pub unsafe fn new(arg1: *const std_exception_ptr) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_exception_ptr_exception_ptr(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
std_exception_ptr_exception_ptr_destructor(self) | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_nested_exception { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_nested_exception() { | |
assert_eq!( | |
::std::mem::size_of::<std_nested_exception>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_nested_exception)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_nested_exception>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_nested_exception)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt16nested_exception14rethrow_nestedEv"] | |
pub fn std_nested_exception_rethrow_nested(this: *const std_nested_exception); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt16nested_exceptionC1Ev"] | |
pub fn std_nested_exception_nested_exception(this: *mut std_nested_exception); | |
} | |
impl std_nested_exception { | |
#[inline] | |
pub unsafe fn rethrow_nested(&self) { | |
std_nested_exception_rethrow_nested(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_nested_exception_nested_exception(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt16nested_exceptionD0Ev"] | |
pub fn std_nested_exception_nested_exception_destructor(this: *mut std_nested_exception); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std___nested { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_type_info { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_type_info() { | |
assert_eq!( | |
::std::mem::size_of::<std_type_info>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_type_info)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_type_info>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_type_info)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt9type_infoD0Ev"] | |
pub fn std_type_info_type_info_destructor(this: *mut std_type_info); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_cast { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_cast() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_cast>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_cast)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_cast>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_cast)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt8bad_castC1Ev"] | |
pub fn std_bad_cast_bad_cast(this: *mut std_bad_cast); | |
} | |
impl std_bad_cast { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_bad_cast_bad_cast(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt8bad_castD0Ev"] | |
pub fn std_bad_cast_bad_cast_destructor(this: *mut std_bad_cast); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt8bad_cast4whatEv"] | |
pub fn std_bad_cast_what(this: *mut ::std::os::raw::c_void) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_typeid { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_typeid() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_typeid>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_typeid)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_typeid>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_typeid)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt10bad_typeidC1Ev"] | |
pub fn std_bad_typeid_bad_typeid(this: *mut std_bad_typeid); | |
} | |
impl std_bad_typeid { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_bad_typeid_bad_typeid(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt10bad_typeidD0Ev"] | |
pub fn std_bad_typeid_bad_typeid_destructor(this: *mut std_bad_typeid); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt10bad_typeid4whatEv"] | |
pub fn std_bad_typeid_what(this: *mut ::std::os::raw::c_void) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_alloc { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_alloc() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_alloc>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_alloc)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_alloc>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_alloc)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt9bad_allocC1Ev"] | |
pub fn std_bad_alloc_bad_alloc(this: *mut std_bad_alloc); | |
} | |
impl std_bad_alloc { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_bad_alloc_bad_alloc(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt9bad_allocD0Ev"] | |
pub fn std_bad_alloc_bad_alloc_destructor(this: *mut std_bad_alloc); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt9bad_alloc4whatEv"] | |
pub fn std_bad_alloc_what(this: *mut ::std::os::raw::c_void) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_array_new_length { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_array_new_length() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_array_new_length>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_array_new_length)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_array_new_length>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_array_new_length)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt20bad_array_new_lengthC1Ev"] | |
pub fn std_bad_array_new_length_bad_array_new_length(this: *mut std_bad_array_new_length); | |
} | |
impl std_bad_array_new_length { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_bad_array_new_length_bad_array_new_length(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt20bad_array_new_lengthD0Ev"] | |
pub fn std_bad_array_new_length_bad_array_new_length_destructor( | |
this: *mut std_bad_array_new_length, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt20bad_array_new_length4whatEv"] | |
pub fn std_bad_array_new_length_what( | |
this: *mut ::std::os::raw::c_void, | |
) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_bad_array_length { | |
pub _bindgen_opaque_blob: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_std_bad_array_length() { | |
assert_eq!( | |
::std::mem::size_of::<std_bad_array_length>(), | |
8usize, | |
concat!("Size of: ", stringify!(std_bad_array_length)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_bad_array_length>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_bad_array_length)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt16bad_array_lengthC1Ev"] | |
pub fn std_bad_array_length_bad_array_length(this: *mut std_bad_array_length); | |
} | |
impl std_bad_array_length { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_bad_array_length_bad_array_length(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt16bad_array_lengthD0Ev"] | |
pub fn std_bad_array_length_bad_array_length_destructor(this: *mut std_bad_array_length); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt16bad_array_length4whatEv"] | |
pub fn std_bad_array_length_what( | |
this: *mut ::std::os::raw::c_void, | |
) -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt17__throw_bad_allocv"] | |
pub fn std___throw_bad_alloc(); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_nothrow_t { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_std_nothrow_t() { | |
assert_eq!( | |
::std::mem::size_of::<std_nothrow_t>(), | |
1usize, | |
concat!("Size of: ", stringify!(std_nothrow_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_nothrow_t>(), | |
1usize, | |
concat!("Alignment of ", stringify!(std_nothrow_t)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt7nothrow"] | |
pub static mut std_nothrow: std_nothrow_t; | |
} | |
pub type std_new_handler = u64; | |
extern "C" { | |
#[link_name = "\u{1}__ZSt15set_new_handlerPFvvE"] | |
pub fn std_set_new_handler(arg1: std_new_handler) -> std_new_handler; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZSt15get_new_handlerv"] | |
pub fn std_get_new_handler() -> std_new_handler; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_logic_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_logic_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_logic_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_logic_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_logic_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_logic_error)) | |
); | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt11logic_errorC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE" ] pub fn std_logic_error_logic_error ( this : * mut std_logic_error , arg1 : * const std_string ) ; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt11logic_errorC1EPKc"] | |
pub fn std_logic_error_logic_error1( | |
this: *mut std_logic_error, | |
arg1: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt11logic_errorC1ERKS_"] | |
pub fn std_logic_error_logic_error2(this: *mut std_logic_error, arg1: *const std_logic_error); | |
} | |
impl std_logic_error { | |
#[inline] | |
pub unsafe fn new(arg1: *const std_string) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_logic_error_logic_error(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn new1(arg1: *const ::std::os::raw::c_char) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_logic_error_logic_error1(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn new2(arg1: *const std_logic_error) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_logic_error_logic_error2(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt11logic_errorD0Ev"] | |
pub fn std_logic_error_logic_error_destructor(this: *mut std_logic_error); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt11logic_error4whatEv"] | |
pub fn std_logic_error_what(this: *mut ::std::os::raw::c_void) | |
-> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_runtime_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_runtime_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_runtime_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_runtime_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_runtime_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_runtime_error)) | |
); | |
} | |
extern "C" { | |
# [ link_name = "\u{1}__ZNSt13runtime_errorC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE" ] pub fn std_runtime_error_runtime_error ( this : * mut std_runtime_error , arg1 : * const std_string ) ; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13runtime_errorC1EPKc"] | |
pub fn std_runtime_error_runtime_error1( | |
this: *mut std_runtime_error, | |
arg1: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13runtime_errorC1ERKS_"] | |
pub fn std_runtime_error_runtime_error2( | |
this: *mut std_runtime_error, | |
arg1: *const std_runtime_error, | |
); | |
} | |
impl std_runtime_error { | |
#[inline] | |
pub unsafe fn new(arg1: *const std_string) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_runtime_error_runtime_error(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn new1(arg1: *const ::std::os::raw::c_char) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_runtime_error_runtime_error1(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
#[inline] | |
pub unsafe fn new2(arg1: *const std_runtime_error) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
std_runtime_error_runtime_error2(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt13runtime_errorD0Ev"] | |
pub fn std_runtime_error_runtime_error_destructor(this: *mut std_runtime_error); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNKSt13runtime_error4whatEv"] | |
pub fn std_runtime_error_what( | |
this: *mut ::std::os::raw::c_void, | |
) -> *const ::std::os::raw::c_char; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_domain_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_domain_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_domain_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_domain_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_domain_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_domain_error)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt12domain_errorD0Ev"] | |
pub fn std_domain_error_domain_error_destructor(this: *mut std_domain_error); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_invalid_argument { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_invalid_argument() { | |
assert_eq!( | |
::std::mem::size_of::<std_invalid_argument>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_invalid_argument)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_invalid_argument>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_invalid_argument)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt16invalid_argumentD0Ev"] | |
pub fn std_invalid_argument_invalid_argument_destructor(this: *mut std_invalid_argument); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_length_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_length_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_length_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_length_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_length_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_length_error)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt12length_errorD0Ev"] | |
pub fn std_length_error_length_error_destructor(this: *mut std_length_error); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_out_of_range { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_out_of_range() { | |
assert_eq!( | |
::std::mem::size_of::<std_out_of_range>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_out_of_range)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_out_of_range>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_out_of_range)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt12out_of_rangeD0Ev"] | |
pub fn std_out_of_range_out_of_range_destructor(this: *mut std_out_of_range); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_range_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_range_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_range_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_range_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_range_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_range_error)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt11range_errorD0Ev"] | |
pub fn std_range_error_range_error_destructor(this: *mut std_range_error); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_overflow_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_overflow_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_overflow_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_overflow_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_overflow_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_overflow_error)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt14overflow_errorD0Ev"] | |
pub fn std_overflow_error_overflow_error_destructor(this: *mut std_overflow_error); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct std_underflow_error { | |
pub _bindgen_opaque_blob: [u64; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout_std_underflow_error() { | |
assert_eq!( | |
::std::mem::size_of::<std_underflow_error>(), | |
16usize, | |
concat!("Size of: ", stringify!(std_underflow_error)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<std_underflow_error>(), | |
8usize, | |
concat!("Alignment of ", stringify!(std_underflow_error)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZNSt15underflow_errorD0Ev"] | |
pub fn std_underflow_error_underflow_error_destructor(this: *mut std_underflow_error); | |
} | |
pub type max_align_t = f64; | |
extern "C" { | |
#[link_name = "\u{1}_memchr"] | |
pub fn memchr( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: ::std::os::raw::c_int, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memcmp"] | |
pub fn memcmp( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memcpy"] | |
pub fn memcpy( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memmove"] | |
pub fn memmove( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memset"] | |
pub fn memset( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: ::std::os::raw::c_int, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcat"] | |
pub fn strcat( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strchr"] | |
pub fn strchr( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: ::std::os::raw::c_int, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcmp"] | |
pub fn strcmp( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcoll"] | |
pub fn strcoll( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcpy"] | |
pub fn strcpy( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcspn"] | |
pub fn strcspn( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strerror"] | |
pub fn strerror(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strlen"] | |
pub fn strlen(arg1: *const ::std::os::raw::c_char) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strncat"] | |
pub fn strncat( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strncmp"] | |
pub fn strncmp( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strncpy"] | |
pub fn strncpy( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strpbrk"] | |
pub fn strpbrk( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strrchr"] | |
pub fn strrchr( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: ::std::os::raw::c_int, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strspn"] | |
pub fn strspn( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strstr"] | |
pub fn strstr( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtok"] | |
pub fn strtok( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strxfrm"] | |
pub fn strxfrm( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strtok_r"] | |
pub fn strtok_r( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut *mut ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strerror_r"] | |
pub fn strerror_r( | |
arg1: ::std::os::raw::c_int, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strdup"] | |
pub fn strdup(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memccpy"] | |
pub fn memccpy( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: ::std::os::raw::c_int, | |
arg4: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_stpcpy"] | |
pub fn stpcpy( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_stpncpy"] | |
pub fn stpncpy( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strndup"] | |
pub fn strndup(arg1: *const ::std::os::raw::c_char, arg2: usize) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strnlen"] | |
pub fn strnlen(arg1: *const ::std::os::raw::c_char, arg2: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strsignal"] | |
pub fn strsignal(sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memmem"] | |
pub fn memmem( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: *const ::std::os::raw::c_void, | |
arg4: usize, | |
) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memset_pattern4"] | |
pub fn memset_pattern4( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memset_pattern8"] | |
pub fn memset_pattern8( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_memset_pattern16"] | |
pub fn memset_pattern16( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcasestr"] | |
pub fn strcasestr( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strnstr"] | |
pub fn strnstr( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strlcat"] | |
pub fn strlcat( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strlcpy"] | |
pub fn strlcpy( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strmode"] | |
pub fn strmode(arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strsep"] | |
pub fn strsep( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_swab"] | |
pub fn swab( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *mut ::std::os::raw::c_void, | |
arg3: isize, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_bcmp"] | |
pub fn bcmp( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_void, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_bcopy"] | |
pub fn bcopy( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: *mut ::std::os::raw::c_void, | |
arg3: usize, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_bzero"] | |
pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: usize); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_index"] | |
pub fn index( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: ::std::os::raw::c_int, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_rindex"] | |
pub fn rindex( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: ::std::os::raw::c_int, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ffs"] | |
pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strcasecmp"] | |
pub fn strcasecmp( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strncasecmp"] | |
pub fn strncasecmp( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ffsl"] | |
pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ffsll"] | |
pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fls"] | |
pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_flsl"] | |
pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_flsll"] | |
pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; | |
} | |
pub type mbstate_t = __darwin_mbstate_t; | |
pub type va_list = __builtin_va_list; | |
pub type __gnuc_va_list = __builtin_va_list; | |
extern "C" { | |
#[link_name = "\u{1}_renameat"] | |
pub fn renameat( | |
arg1: ::std::os::raw::c_int, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
arg4: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
pub type fpos_t = __darwin_off_t; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __sbuf { | |
pub _base: *mut ::std::os::raw::c_uchar, | |
pub _size: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout___sbuf() { | |
assert_eq!( | |
::std::mem::size_of::<__sbuf>(), | |
16usize, | |
concat!("Size of: ", stringify!(__sbuf)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__sbuf>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__sbuf)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sbuf>()))._base as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sbuf), | |
"::", | |
stringify!(_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sbuf>()))._size as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sbuf), | |
"::", | |
stringify!(_size) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __sFILEX { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __sFILE { | |
pub _p: *mut ::std::os::raw::c_uchar, | |
pub _r: ::std::os::raw::c_int, | |
pub _w: ::std::os::raw::c_int, | |
pub _flags: ::std::os::raw::c_short, | |
pub _file: ::std::os::raw::c_short, | |
pub _bf: __sbuf, | |
pub _lbfsize: ::std::os::raw::c_int, | |
pub _cookie: *mut ::std::os::raw::c_void, | |
pub _close: ::std::option::Option< | |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, | |
>, | |
pub _read: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub _seek: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: fpos_t, | |
arg3: ::std::os::raw::c_int, | |
) -> fpos_t, | |
>, | |
pub _write: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub _ub: __sbuf, | |
pub _extra: *mut __sFILEX, | |
pub _ur: ::std::os::raw::c_int, | |
pub _ubuf: [::std::os::raw::c_uchar; 3usize], | |
pub _nbuf: [::std::os::raw::c_uchar; 1usize], | |
pub _lb: __sbuf, | |
pub _blksize: ::std::os::raw::c_int, | |
pub _offset: fpos_t, | |
} | |
#[test] | |
fn bindgen_test_layout___sFILE() { | |
assert_eq!( | |
::std::mem::size_of::<__sFILE>(), | |
152usize, | |
concat!("Size of: ", stringify!(__sFILE)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__sFILE>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__sFILE)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._p as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_p) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._r as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_r) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._w as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_w) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._flags as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._file as *const _ as usize }, | |
18usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_file) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._bf as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_bf) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._lbfsize as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_lbfsize) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._cookie as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_cookie) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._close as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_close) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._read as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_read) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._seek as *const _ as usize }, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_seek) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._write as *const _ as usize }, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_write) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._ub as *const _ as usize }, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_ub) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._extra as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_extra) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._ur as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_ur) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._ubuf as *const _ as usize }, | |
116usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_ubuf) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._nbuf as *const _ as usize }, | |
119usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_nbuf) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._lb as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_lb) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._blksize as *const _ as usize }, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_blksize) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__sFILE>()))._offset as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__sFILE), | |
"::", | |
stringify!(_offset) | |
) | |
); | |
} | |
pub type FILE = __sFILE; | |
extern "C" { | |
#[link_name = "\u{1}___stdinp"] | |
pub static mut __stdinp: *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___stdoutp"] | |
pub static mut __stdoutp: *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___stderrp"] | |
pub static mut __stderrp: *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_clearerr"] | |
pub fn clearerr(arg1: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fclose"] | |
pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_feof"] | |
pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ferror"] | |
pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fflush"] | |
pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetc"] | |
pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetpos"] | |
pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgets"] | |
pub fn fgets( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: ::std::os::raw::c_int, | |
arg3: *mut FILE, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fopen"] | |
pub fn fopen( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fprintf"] | |
pub fn fprintf( | |
arg1: *mut FILE, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fputc"] | |
pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fputs"] | |
pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fread"] | |
pub fn fread( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut FILE, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_freopen"] | |
pub fn freopen( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut FILE, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fscanf"] | |
pub fn fscanf( | |
arg1: *mut FILE, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fseek"] | |
pub fn fseek( | |
arg1: *mut FILE, | |
arg2: ::std::os::raw::c_long, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fsetpos"] | |
pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ftell"] | |
pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fwrite"] | |
pub fn fwrite( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: usize, | |
arg3: usize, | |
arg4: *mut FILE, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getc"] | |
pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getchar"] | |
pub fn getchar() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_gets"] | |
pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_perror"] | |
pub fn perror(arg1: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_printf"] | |
pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putc"] | |
pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putchar"] | |
pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_puts"] | |
pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_remove"] | |
pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_rename"] | |
pub fn rename( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_rewind"] | |
pub fn rewind(arg1: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_scanf"] | |
pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setbuf"] | |
pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setvbuf"] | |
pub fn setvbuf( | |
arg1: *mut FILE, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
arg4: usize, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sprintf"] | |
pub fn sprintf( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sscanf"] | |
pub fn sscanf( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tmpfile"] | |
pub fn tmpfile() -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tmpnam"] | |
pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ungetc"] | |
pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vfprintf"] | |
pub fn vfprintf( | |
arg1: *mut FILE, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vprintf"] | |
pub fn vprintf( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vsprintf"] | |
pub fn vsprintf( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ctermid"] | |
pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fdopen"] | |
pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fileno"] | |
pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_pclose"] | |
pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_popen"] | |
pub fn popen( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___srget"] | |
pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___svfscanf"] | |
pub fn __svfscanf( | |
arg1: *mut FILE, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___swbuf"] | |
pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_flockfile"] | |
pub fn flockfile(arg1: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ftrylockfile"] | |
pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_funlockfile"] | |
pub fn funlockfile(arg1: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getc_unlocked"] | |
pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getchar_unlocked"] | |
pub fn getchar_unlocked() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putc_unlocked"] | |
pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putchar_unlocked"] | |
pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getw"] | |
pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putw"] | |
pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tempnam"] | |
pub fn tempnam( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
pub type off_t = __darwin_off_t; | |
extern "C" { | |
#[link_name = "\u{1}_fseeko"] | |
pub fn fseeko( | |
arg1: *mut FILE, | |
arg2: off_t, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ftello"] | |
pub fn ftello(arg1: *mut FILE) -> off_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_snprintf"] | |
pub fn snprintf( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: usize, | |
arg3: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vfscanf"] | |
pub fn vfscanf( | |
arg1: *mut FILE, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vscanf"] | |
pub fn vscanf( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vsnprintf"] | |
pub fn vsnprintf( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: usize, | |
arg3: *const ::std::os::raw::c_char, | |
arg4: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vsscanf"] | |
pub fn vsscanf( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_dprintf"] | |
pub fn dprintf( | |
arg1: ::std::os::raw::c_int, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vdprintf"] | |
pub fn vdprintf( | |
arg1: ::std::os::raw::c_int, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getdelim"] | |
pub fn getdelim( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *mut usize, | |
arg3: ::std::os::raw::c_int, | |
arg4: *mut FILE, | |
) -> isize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getline"] | |
pub fn getline( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *mut usize, | |
arg3: *mut FILE, | |
) -> isize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sys_nerr"] | |
pub static mut sys_nerr: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_sys_errlist"] | |
pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize]; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_asprintf"] | |
pub fn asprintf( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ctermid_r"] | |
pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetln"] | |
pub fn fgetln(arg1: *mut FILE, arg2: *mut usize) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fmtcheck"] | |
pub fn fmtcheck( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fpurge"] | |
pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setbuffer"] | |
pub fn setbuffer( | |
arg1: *mut FILE, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_setlinebuf"] | |
pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vasprintf"] | |
pub fn vasprintf( | |
arg1: *mut *mut ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_zopen"] | |
pub fn zopen( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_funopen"] | |
pub fn funopen( | |
arg1: *const ::std::os::raw::c_void, | |
arg2: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
arg3: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
arg4: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::std::os::raw::c_void, | |
arg2: fpos_t, | |
arg3: ::std::os::raw::c_int, | |
) -> fpos_t, | |
>, | |
arg5: ::std::option::Option< | |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, | |
>, | |
) -> *mut FILE; | |
} | |
pub type clock_t = __darwin_clock_t; | |
pub type time_t = __darwin_time_t; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct timespec { | |
pub tv_sec: __darwin_time_t, | |
pub tv_nsec: ::std::os::raw::c_long, | |
} | |
#[test] | |
fn bindgen_test_layout_timespec() { | |
assert_eq!( | |
::std::mem::size_of::<timespec>(), | |
16usize, | |
concat!("Size of: ", stringify!(timespec)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<timespec>(), | |
8usize, | |
concat!("Alignment of ", stringify!(timespec)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timespec), | |
"::", | |
stringify!(tv_sec) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timespec), | |
"::", | |
stringify!(tv_nsec) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct tm { | |
pub tm_sec: ::std::os::raw::c_int, | |
pub tm_min: ::std::os::raw::c_int, | |
pub tm_hour: ::std::os::raw::c_int, | |
pub tm_mday: ::std::os::raw::c_int, | |
pub tm_mon: ::std::os::raw::c_int, | |
pub tm_year: ::std::os::raw::c_int, | |
pub tm_wday: ::std::os::raw::c_int, | |
pub tm_yday: ::std::os::raw::c_int, | |
pub tm_isdst: ::std::os::raw::c_int, | |
pub tm_gmtoff: ::std::os::raw::c_long, | |
pub tm_zone: *mut ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_tm() { | |
assert_eq!( | |
::std::mem::size_of::<tm>(), | |
56usize, | |
concat!("Size of: ", stringify!(tm)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<tm>(), | |
8usize, | |
concat!("Alignment of ", stringify!(tm)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_sec as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_sec) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_min as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_min) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_hour as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_hour) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_mday as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_mday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_mon as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_mon) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_year as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_year) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_wday as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_wday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_yday as *const _ as usize }, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_yday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_isdst as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_isdst) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_gmtoff as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_gmtoff) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_zone as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_zone) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tzname"] | |
pub static mut tzname: [*mut ::std::os::raw::c_char; 0usize]; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getdate_err"] | |
pub static mut getdate_err: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_timezone"] | |
pub static mut timezone: ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_daylight"] | |
pub static mut daylight: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_asctime"] | |
pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_clock"] | |
pub fn clock() -> clock_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ctime"] | |
pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_difftime"] | |
pub fn difftime(arg1: time_t, arg2: time_t) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getdate"] | |
pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_gmtime"] | |
pub fn gmtime(arg1: *const time_t) -> *mut tm; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_localtime"] | |
pub fn localtime(arg1: *const time_t) -> *mut tm; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mktime"] | |
pub fn mktime(arg1: *mut tm) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strftime"] | |
pub fn strftime( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: usize, | |
arg3: *const ::std::os::raw::c_char, | |
arg4: *const tm, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_strptime"] | |
pub fn strptime( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut tm, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_time"] | |
pub fn time(arg1: *mut time_t) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tzset"] | |
pub fn tzset(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_asctime_r"] | |
pub fn asctime_r( | |
arg1: *const tm, | |
arg2: *mut ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ctime_r"] | |
pub fn ctime_r( | |
arg1: *const time_t, | |
arg2: *mut ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_gmtime_r"] | |
pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_localtime_r"] | |
pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_posix2time"] | |
pub fn posix2time(arg1: time_t) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_tzsetwall"] | |
pub fn tzsetwall(); | |
} | |
extern "C" { | |
#[link_name = "\u{1}_time2posix"] | |
pub fn time2posix(arg1: time_t) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_timelocal"] | |
pub fn timelocal(arg1: *const tm) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_timegm"] | |
pub fn timegm(arg1: *const tm) -> time_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_nanosleep"] | |
pub fn nanosleep(arg1: *const timespec, arg2: *mut timespec) -> ::std::os::raw::c_int; | |
} | |
pub type wint_t = __darwin_wint_t; | |
pub type wctype_t = __darwin_wctype_t; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _RuneEntry { | |
pub __min: __darwin_rune_t, | |
pub __max: __darwin_rune_t, | |
pub __map: __darwin_rune_t, | |
pub __types: *mut __uint32_t, | |
} | |
#[test] | |
fn bindgen_test_layout__RuneEntry() { | |
assert_eq!( | |
::std::mem::size_of::<_RuneEntry>(), | |
24usize, | |
concat!("Size of: ", stringify!(_RuneEntry)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_RuneEntry>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_RuneEntry)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneEntry>())).__min as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneEntry), | |
"::", | |
stringify!(__min) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneEntry>())).__max as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneEntry), | |
"::", | |
stringify!(__max) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneEntry>())).__map as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneEntry), | |
"::", | |
stringify!(__map) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneEntry>())).__types as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneEntry), | |
"::", | |
stringify!(__types) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _RuneRange { | |
pub __nranges: ::std::os::raw::c_int, | |
pub __ranges: *mut _RuneEntry, | |
} | |
#[test] | |
fn bindgen_test_layout__RuneRange() { | |
assert_eq!( | |
::std::mem::size_of::<_RuneRange>(), | |
16usize, | |
concat!("Size of: ", stringify!(_RuneRange)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_RuneRange>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_RuneRange)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneRange>())).__nranges as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneRange), | |
"::", | |
stringify!(__nranges) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneRange>())).__ranges as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneRange), | |
"::", | |
stringify!(__ranges) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _RuneCharClass { | |
pub __name: [::std::os::raw::c_char; 14usize], | |
pub __mask: __uint32_t, | |
} | |
#[test] | |
fn bindgen_test_layout__RuneCharClass() { | |
assert_eq!( | |
::std::mem::size_of::<_RuneCharClass>(), | |
20usize, | |
concat!("Size of: ", stringify!(_RuneCharClass)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_RuneCharClass>(), | |
4usize, | |
concat!("Alignment of ", stringify!(_RuneCharClass)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneCharClass>())).__name as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneCharClass), | |
"::", | |
stringify!(__name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneCharClass>())).__mask as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneCharClass), | |
"::", | |
stringify!(__mask) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct _RuneLocale { | |
pub __magic: [::std::os::raw::c_char; 8usize], | |
pub __encoding: [::std::os::raw::c_char; 32usize], | |
pub __sgetrune: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *const ::std::os::raw::c_char, | |
arg2: __darwin_size_t, | |
arg3: *mut *const ::std::os::raw::c_char, | |
) -> __darwin_rune_t, | |
>, | |
pub __sputrune: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: __darwin_rune_t, | |
arg2: *mut ::std::os::raw::c_char, | |
arg3: __darwin_size_t, | |
arg4: *mut *mut ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub __invalid_rune: __darwin_rune_t, | |
pub __runetype: [__uint32_t; 256usize], | |
pub __maplower: [__darwin_rune_t; 256usize], | |
pub __mapupper: [__darwin_rune_t; 256usize], | |
pub __runetype_ext: _RuneRange, | |
pub __maplower_ext: _RuneRange, | |
pub __mapupper_ext: _RuneRange, | |
pub __variable: *mut ::std::os::raw::c_void, | |
pub __variable_len: ::std::os::raw::c_int, | |
pub __ncharclasses: ::std::os::raw::c_int, | |
pub __charclasses: *mut _RuneCharClass, | |
} | |
#[test] | |
fn bindgen_test_layout__RuneLocale() { | |
assert_eq!( | |
::std::mem::size_of::<_RuneLocale>(), | |
3208usize, | |
concat!("Size of: ", stringify!(_RuneLocale)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_RuneLocale>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_RuneLocale)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__magic as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__magic) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__encoding as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__encoding) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__sgetrune as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__sgetrune) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__sputrune as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__sputrune) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__invalid_rune as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__invalid_rune) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__runetype as *const _ as usize }, | |
60usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__runetype) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__maplower as *const _ as usize }, | |
1084usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__maplower) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__mapupper as *const _ as usize }, | |
2108usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__mapupper) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__runetype_ext as *const _ as usize }, | |
3136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__runetype_ext) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__maplower_ext as *const _ as usize }, | |
3152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__maplower_ext) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__mapupper_ext as *const _ as usize }, | |
3168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__mapupper_ext) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__variable as *const _ as usize }, | |
3184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__variable) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__variable_len as *const _ as usize }, | |
3192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__variable_len) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__ncharclasses as *const _ as usize }, | |
3196usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__ncharclasses) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_RuneLocale>())).__charclasses as *const _ as usize }, | |
3200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_RuneLocale), | |
"::", | |
stringify!(__charclasses) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__DefaultRuneLocale"] | |
pub static mut _DefaultRuneLocale: _RuneLocale; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__CurrentRuneLocale"] | |
pub static mut _CurrentRuneLocale: *mut _RuneLocale; | |
} | |
extern "C" { | |
#[link_name = "\u{1}____runetype"] | |
pub fn ___runetype(arg1: __darwin_ct_rune_t) -> ::std::os::raw::c_ulong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}____tolower"] | |
pub fn ___tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}____toupper"] | |
pub fn ___toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___maskrune"] | |
pub fn __maskrune( | |
arg1: __darwin_ct_rune_t, | |
arg2: ::std::os::raw::c_ulong, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___toupper"] | |
pub fn __toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}___tolower"] | |
pub fn __tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wctype"] | |
pub fn wctype(arg1: *const ::std::os::raw::c_char) -> wctype_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_btowc"] | |
pub fn btowc(arg1: ::std::os::raw::c_int) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetwc"] | |
pub fn fgetwc(arg1: *mut FILE) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetws"] | |
pub fn fgetws(arg1: *mut u16, arg2: ::std::os::raw::c_int, arg3: *mut FILE) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fputwc"] | |
pub fn fputwc(arg1: u16, arg2: *mut FILE) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fputws"] | |
pub fn fputws(arg1: *const u16, arg2: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fwide"] | |
pub fn fwide(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fwprintf"] | |
pub fn fwprintf(arg1: *mut FILE, arg2: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fwscanf"] | |
pub fn fwscanf(arg1: *mut FILE, arg2: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getwc"] | |
pub fn getwc(arg1: *mut FILE) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_getwchar"] | |
pub fn getwchar() -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbrlen"] | |
pub fn mbrlen(arg1: *const ::std::os::raw::c_char, arg2: usize, arg3: *mut mbstate_t) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbrtowc"] | |
pub fn mbrtowc( | |
arg1: *mut u16, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: usize, | |
arg4: *mut mbstate_t, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbsinit"] | |
pub fn mbsinit(arg1: *const mbstate_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbsrtowcs"] | |
pub fn mbsrtowcs( | |
arg1: *mut u16, | |
arg2: *mut *const ::std::os::raw::c_char, | |
arg3: usize, | |
arg4: *mut mbstate_t, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putwc"] | |
pub fn putwc(arg1: u16, arg2: *mut FILE) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_putwchar"] | |
pub fn putwchar(arg1: u16) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_swprintf"] | |
pub fn swprintf(arg1: *mut u16, arg2: usize, arg3: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_swscanf"] | |
pub fn swscanf(arg1: *const u16, arg2: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_ungetwc"] | |
pub fn ungetwc(arg1: wint_t, arg2: *mut FILE) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vfwprintf"] | |
pub fn vfwprintf( | |
arg1: *mut FILE, | |
arg2: *const u16, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vswprintf"] | |
pub fn vswprintf( | |
arg1: *mut u16, | |
arg2: usize, | |
arg3: *const u16, | |
arg4: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vwprintf"] | |
pub fn vwprintf(arg1: *const u16, arg2: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcrtomb"] | |
pub fn wcrtomb(arg1: *mut ::std::os::raw::c_char, arg2: u16, arg3: *mut mbstate_t) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscat"] | |
pub fn wcscat(arg1: *mut u16, arg2: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcschr"] | |
pub fn wcschr(arg1: *const u16, arg2: u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscmp"] | |
pub fn wcscmp(arg1: *const u16, arg2: *const u16) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscoll"] | |
pub fn wcscoll(arg1: *const u16, arg2: *const u16) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscpy"] | |
pub fn wcscpy(arg1: *mut u16, arg2: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscspn"] | |
pub fn wcscspn(arg1: *const u16, arg2: *const u16) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsftime"] | |
pub fn wcsftime(arg1: *mut u16, arg2: usize, arg3: *const u16, arg4: *const tm) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcslen"] | |
pub fn wcslen(arg1: *const u16) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsncat"] | |
pub fn wcsncat(arg1: *mut u16, arg2: *const u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsncmp"] | |
pub fn wcsncmp(arg1: *const u16, arg2: *const u16, arg3: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsncpy"] | |
pub fn wcsncpy(arg1: *mut u16, arg2: *const u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcspbrk"] | |
pub fn wcspbrk(arg1: *const u16, arg2: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsrchr"] | |
pub fn wcsrchr(arg1: *const u16, arg2: u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsrtombs"] | |
pub fn wcsrtombs( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *mut *const u16, | |
arg3: usize, | |
arg4: *mut mbstate_t, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsspn"] | |
pub fn wcsspn(arg1: *const u16, arg2: *const u16) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsstr"] | |
pub fn wcsstr(arg1: *const u16, arg2: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsxfrm"] | |
pub fn wcsxfrm(arg1: *mut u16, arg2: *const u16, arg3: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wctob"] | |
pub fn wctob(arg1: wint_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstod"] | |
pub fn wcstod(arg1: *const u16, arg2: *mut *mut u16) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstok"] | |
pub fn wcstok(arg1: *mut u16, arg2: *const u16, arg3: *mut *mut u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstol"] | |
pub fn wcstol( | |
arg1: *const u16, | |
arg2: *mut *mut u16, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstoul"] | |
pub fn wcstoul( | |
arg1: *const u16, | |
arg2: *mut *mut u16, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_ulong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wmemchr"] | |
pub fn wmemchr(arg1: *const u16, arg2: u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wmemcmp"] | |
pub fn wmemcmp(arg1: *const u16, arg2: *const u16, arg3: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wmemcpy"] | |
pub fn wmemcpy(arg1: *mut u16, arg2: *const u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wmemmove"] | |
pub fn wmemmove(arg1: *mut u16, arg2: *const u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wmemset"] | |
pub fn wmemset(arg1: *mut u16, arg2: u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wprintf"] | |
pub fn wprintf(arg1: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wscanf"] | |
pub fn wscanf(arg1: *const u16, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcswidth"] | |
pub fn wcswidth(arg1: *const u16, arg2: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcwidth"] | |
pub fn wcwidth(arg1: u16) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vfwscanf"] | |
pub fn vfwscanf( | |
arg1: *mut FILE, | |
arg2: *const u16, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vswscanf"] | |
pub fn vswscanf( | |
arg1: *const u16, | |
arg2: *const u16, | |
arg3: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_vwscanf"] | |
pub fn vwscanf(arg1: *const u16, arg2: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstof"] | |
pub fn wcstof(arg1: *const u16, arg2: *mut *mut u16) -> f32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstold"] | |
pub fn wcstold(arg1: *const u16, arg2: *mut *mut u16) -> f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstoll"] | |
pub fn wcstoll( | |
arg1: *const u16, | |
arg2: *mut *mut u16, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_longlong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcstoull"] | |
pub fn wcstoull( | |
arg1: *const u16, | |
arg2: *mut *mut u16, | |
arg3: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_ulonglong; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_mbsnrtowcs"] | |
pub fn mbsnrtowcs( | |
arg1: *mut u16, | |
arg2: *mut *const ::std::os::raw::c_char, | |
arg3: usize, | |
arg4: usize, | |
arg5: *mut mbstate_t, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcpcpy"] | |
pub fn wcpcpy(arg1: *mut u16, arg2: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcpncpy"] | |
pub fn wcpncpy(arg1: *mut u16, arg2: *const u16, arg3: usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsdup"] | |
pub fn wcsdup(arg1: *const u16) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcscasecmp"] | |
pub fn wcscasecmp(arg1: *const u16, arg2: *const u16) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsncasecmp"] | |
pub fn wcsncasecmp(arg1: *const u16, arg2: *const u16, n: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsnlen"] | |
pub fn wcsnlen(arg1: *const u16, arg2: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcsnrtombs"] | |
pub fn wcsnrtombs( | |
arg1: *mut ::std::os::raw::c_char, | |
arg2: *mut *const u16, | |
arg3: usize, | |
arg4: usize, | |
arg5: *mut mbstate_t, | |
) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_fgetwln"] | |
pub fn fgetwln(arg1: *mut FILE, arg2: *mut usize) -> *mut u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcslcat"] | |
pub fn wcslcat(arg1: *mut u16, arg2: *const u16, arg3: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wcslcpy"] | |
pub fn wcslcpy(arg1: *mut u16, arg2: *const u16, arg3: usize) -> usize; | |
} | |
pub type wctrans_t = __darwin_wctrans_t; | |
extern "C" { | |
#[link_name = "\u{1}_nextwctype"] | |
pub fn nextwctype(arg1: wint_t, arg2: wctype_t) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_towctrans"] | |
pub fn towctrans(arg1: wint_t, arg2: wctrans_t) -> wint_t; | |
} | |
extern "C" { | |
#[link_name = "\u{1}_wctrans"] | |
pub fn wctrans(arg1: *const ::std::os::raw::c_char) -> wctrans_t; | |
} | |
pub type flatbuffers_numeric_limits = u8; | |
pub type flatbuffers_is_scalar = u8; | |
pub type flatbuffers_is_same = u8; | |
pub type flatbuffers_is_floating_point = u8; | |
pub type flatbuffers_is_unsigned = u8; | |
pub type flatbuffers_unique_ptr = u8; | |
pub type flatbuffers_uoffset_t = u32; | |
pub type flatbuffers_soffset_t = i32; | |
pub type flatbuffers_voffset_t = u16; | |
pub type flatbuffers_largest_scalar_t = uintmax_t; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_Offset { | |
pub o: flatbuffers_uoffset_t, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_IndirectHelper { | |
pub _address: u8, | |
} | |
pub type flatbuffers_IndirectHelper_return_type<T> = T; | |
pub type flatbuffers_IndirectHelper_mutable_return_type<T> = T; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_VectorIterator { | |
pub data_: *const u8, | |
} | |
pub type flatbuffers_VectorIterator_iterator_category = std_random_access_iterator_tag; | |
pub type flatbuffers_VectorIterator_value_type<IT> = IT; | |
pub type flatbuffers_VectorIterator_difference_type = flatbuffers_uoffset_t; | |
pub type flatbuffers_VectorIterator_pointer<IT> = *mut IT; | |
pub type flatbuffers_VectorIterator_reference<IT> = *mut IT; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_Vector { | |
pub length_: flatbuffers_uoffset_t, | |
} | |
pub type flatbuffers_Vector_iterator = flatbuffers_VectorIterator; | |
pub type flatbuffers_Vector_const_iterator = flatbuffers_VectorIterator; | |
pub type flatbuffers_Vector_return_type = flatbuffers_IndirectHelper; | |
pub type flatbuffers_Vector_mutable_return_type = flatbuffers_IndirectHelper; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_VectorOfAny { | |
pub length_: flatbuffers_uoffset_t, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_VectorOfAny() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_VectorOfAny>(), | |
4usize, | |
concat!("Size of: ", stringify!(flatbuffers_VectorOfAny)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_VectorOfAny>(), | |
4usize, | |
concat!("Alignment of ", stringify!(flatbuffers_VectorOfAny)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_VectorOfAny>())).length_ as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_VectorOfAny), | |
"::", | |
stringify!(length_) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZN11flatbuffers11VectorOfAnyC1Ev"] | |
pub fn flatbuffers_VectorOfAny_VectorOfAny(this: *mut flatbuffers_VectorOfAny); | |
} | |
impl flatbuffers_VectorOfAny { | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
flatbuffers_VectorOfAny_VectorOfAny(&mut __bindgen_tmp); | |
__bindgen_tmp | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_String { | |
pub _base: flatbuffers_Vector, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_String() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_String>(), | |
4usize, | |
concat!("Size of: ", stringify!(flatbuffers_String)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_String>(), | |
4usize, | |
concat!("Alignment of ", stringify!(flatbuffers_String)) | |
); | |
} | |
#[repr(C)] | |
pub struct flatbuffers_Allocator__bindgen_vtable(::std::os::raw::c_void); | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_Allocator { | |
pub vtable_: *const flatbuffers_Allocator__bindgen_vtable, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_Allocator() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Allocator>(), | |
8usize, | |
concat!("Size of: ", stringify!(flatbuffers_Allocator)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Allocator>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_Allocator)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_DefaultAllocator { | |
pub _base: flatbuffers_Allocator, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_DefaultAllocator() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_DefaultAllocator>(), | |
8usize, | |
concat!("Size of: ", stringify!(flatbuffers_DefaultAllocator)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_DefaultAllocator>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_DefaultAllocator)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_DetachedBuffer { | |
pub allocator_: *mut flatbuffers_Allocator, | |
pub own_allocator_: bool, | |
pub buf_: *mut u8, | |
pub reserved_: usize, | |
pub cur_: *mut u8, | |
pub size_: usize, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_DetachedBuffer() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_DetachedBuffer>(), | |
48usize, | |
concat!("Size of: ", stringify!(flatbuffers_DetachedBuffer)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_DetachedBuffer>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_DetachedBuffer)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).allocator_ as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(allocator_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).own_allocator_ as *const _ | |
as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(own_allocator_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).buf_ as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(buf_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).reserved_ as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(reserved_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).cur_ as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(cur_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_DetachedBuffer>())).size_ as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_DetachedBuffer), | |
"::", | |
stringify!(size_) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_vector_downward { | |
pub allocator_: *mut flatbuffers_Allocator, | |
pub own_allocator_: bool, | |
pub initial_size_: usize, | |
pub reserved_: usize, | |
pub buf_: *mut u8, | |
pub cur_: *mut u8, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_vector_downward() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_vector_downward>(), | |
48usize, | |
concat!("Size of: ", stringify!(flatbuffers_vector_downward)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_vector_downward>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_vector_downward)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).allocator_ as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(allocator_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).own_allocator_ as *const _ | |
as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(own_allocator_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).initial_size_ as *const _ | |
as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(initial_size_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).reserved_ as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(reserved_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).buf_ as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(buf_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_vector_downward>())).cur_ as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_vector_downward), | |
"::", | |
stringify!(cur_) | |
) | |
); | |
} | |
/// @addtogroup flatbuffers_cpp_api | |
/// @{ | |
/// @class FlatBufferBuilder | |
/// @brief Helper class to hold data needed in creation of a FlatBuffer. | |
/// To serialize data, you typically call one of the `Create*()` functions in | |
/// the generated code, which in turn call a sequence of `StartTable`/ | |
/// `PushElement`/`AddElement`/`EndTable`, or the builtin `CreateString`/ | |
/// `CreateVector` functions. Do this is depth-first order to build up a tree to | |
/// the root. `Finish()` wraps up the buffer ready for transport. | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_FlatBufferBuilder { | |
pub buf_: flatbuffers_vector_downward, | |
pub offsetbuf_: [u64; 3usize], | |
pub max_voffset_: flatbuffers_voffset_t, | |
pub nested: bool, | |
pub finished: bool, | |
pub vtables_: [u64; 3usize], | |
pub minalign_: usize, | |
pub force_defaults_: bool, | |
pub dedup_vtables_: bool, | |
pub string_pool: *mut flatbuffers_FlatBufferBuilder_StringOffsetMap, | |
} | |
/// @cond FLATBUFFERS_INTERNAL | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_FlatBufferBuilder_StructKeyComparator { | |
pub _address: u8, | |
} | |
/// @cond FLATBUFFERS_INTERNAL | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_FlatBufferBuilder_TableKeyComparator { | |
pub buf_: *mut flatbuffers_vector_downward, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_FlatBufferBuilder_FieldLoc { | |
pub off: flatbuffers_uoffset_t, | |
pub id: flatbuffers_voffset_t, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_FlatBufferBuilder_FieldLoc() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_FlatBufferBuilder_FieldLoc>(), | |
8usize, | |
concat!( | |
"Size of: ", | |
stringify!(flatbuffers_FlatBufferBuilder_FieldLoc) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_FlatBufferBuilder_FieldLoc>(), | |
4usize, | |
concat!( | |
"Alignment of ", | |
stringify!(flatbuffers_FlatBufferBuilder_FieldLoc) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder_FieldLoc>())).off as *const _ | |
as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder_FieldLoc), | |
"::", | |
stringify!(off) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder_FieldLoc>())).id as *const _ | |
as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder_FieldLoc), | |
"::", | |
stringify!(id) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_FlatBufferBuilder_StringOffsetCompare { | |
pub buf_: *const flatbuffers_vector_downward, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_FlatBufferBuilder_StringOffsetCompare() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_FlatBufferBuilder_StringOffsetCompare>(), | |
8usize, | |
concat!( | |
"Size of: ", | |
stringify!(flatbuffers_FlatBufferBuilder_StringOffsetCompare) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_FlatBufferBuilder_StringOffsetCompare>(), | |
8usize, | |
concat!( | |
"Alignment of ", | |
stringify!(flatbuffers_FlatBufferBuilder_StringOffsetCompare) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder_StringOffsetCompare>())).buf_ | |
as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder_StringOffsetCompare), | |
"::", | |
stringify!(buf_) | |
) | |
); | |
} | |
pub type flatbuffers_FlatBufferBuilder_StringOffsetMap = [u64; 4usize]; | |
pub const flatbuffers_FlatBufferBuilder_kFileIdentifierLength: usize = 4; | |
#[test] | |
fn bindgen_test_layout_flatbuffers_FlatBufferBuilder() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_FlatBufferBuilder>(), | |
128usize, | |
concat!("Size of: ", stringify!(flatbuffers_FlatBufferBuilder)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_FlatBufferBuilder>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_FlatBufferBuilder)) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).buf_ as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(buf_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).offsetbuf_ as *const _ | |
as usize | |
}, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(offsetbuf_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).max_voffset_ as *const _ | |
as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(max_voffset_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).nested as *const _ as usize | |
}, | |
74usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(nested) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).finished as *const _ as usize | |
}, | |
75usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(finished) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).vtables_ as *const _ as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(vtables_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).minalign_ as *const _ as usize | |
}, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(minalign_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).force_defaults_ as *const _ | |
as usize | |
}, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(force_defaults_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).dedup_vtables_ as *const _ | |
as usize | |
}, | |
113usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(dedup_vtables_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_FlatBufferBuilder>())).string_pool as *const _ | |
as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_FlatBufferBuilder), | |
"::", | |
stringify!(string_pool) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZN11flatbuffers17FlatBufferBuilderC1ERKS0_"] | |
pub fn flatbuffers_FlatBufferBuilder_FlatBufferBuilder( | |
this: *mut flatbuffers_FlatBufferBuilder, | |
arg1: *const flatbuffers_FlatBufferBuilder, | |
); | |
} | |
impl flatbuffers_FlatBufferBuilder { | |
#[inline] | |
pub unsafe fn new(arg1: *const flatbuffers_FlatBufferBuilder) -> Self { | |
let mut __bindgen_tmp = ::std::mem::uninitialized(); | |
flatbuffers_FlatBufferBuilder_FlatBufferBuilder(&mut __bindgen_tmp, arg1); | |
__bindgen_tmp | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_Verifier { | |
pub buf_: *const u8, | |
pub end_: *const u8, | |
pub depth_: flatbuffers_uoffset_t, | |
pub max_depth_: flatbuffers_uoffset_t, | |
pub num_tables_: flatbuffers_uoffset_t, | |
pub max_tables_: flatbuffers_uoffset_t, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_Verifier() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Verifier>(), | |
32usize, | |
concat!("Size of: ", stringify!(flatbuffers_Verifier)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Verifier>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_Verifier)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Verifier>())).buf_ as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(buf_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Verifier>())).end_ as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(end_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Verifier>())).depth_ as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(depth_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Verifier>())).max_depth_ as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(max_depth_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_Verifier>())).num_tables_ as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(num_tables_) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_Verifier>())).max_tables_ as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Verifier), | |
"::", | |
stringify!(max_tables_) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_BufferRefBase { | |
pub _address: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_BufferRefBase() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_BufferRefBase>(), | |
1usize, | |
concat!("Size of: ", stringify!(flatbuffers_BufferRefBase)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_BufferRefBase>(), | |
1usize, | |
concat!("Alignment of ", stringify!(flatbuffers_BufferRefBase)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct flatbuffers_BufferRef { | |
pub buf: *mut u8, | |
pub len: flatbuffers_uoffset_t, | |
pub must_free: bool, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_Struct { | |
pub data_: [u8; 1usize], | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_Struct() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Struct>(), | |
1usize, | |
concat!("Size of: ", stringify!(flatbuffers_Struct)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Struct>(), | |
1usize, | |
concat!("Alignment of ", stringify!(flatbuffers_Struct)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Struct>())).data_ as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Struct), | |
"::", | |
stringify!(data_) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_Table { | |
pub data_: [u8; 1usize], | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_Table() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Table>(), | |
1usize, | |
concat!("Size of: ", stringify!(flatbuffers_Table)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Table>(), | |
1usize, | |
concat!("Alignment of ", stringify!(flatbuffers_Table)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_Table>())).data_ as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_Table), | |
"::", | |
stringify!(data_) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_NativeTable { | |
pub _address: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_NativeTable() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_NativeTable>(), | |
1usize, | |
concat!("Size of: ", stringify!(flatbuffers_NativeTable)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_NativeTable>(), | |
1usize, | |
concat!("Alignment of ", stringify!(flatbuffers_NativeTable)) | |
); | |
} | |
/// @brief Function types to be used with resolving hashes into objects and | |
/// back again. The resolver gets a pointer to a field inside an object API | |
/// object that is of the type specified in the schema using the attribute | |
/// `cpp_type` (it is thus important whatever you write to this address | |
/// matches that type). The value of this field is initially null, so you | |
/// may choose to implement a delayed binding lookup using this function | |
/// if you wish. The resolver does the opposite lookup, for when the object | |
/// is being serialized again. | |
pub type flatbuffers_hash_value_t = u64; | |
pub type flatbuffers_resolver_function_t = u8; | |
pub type flatbuffers_rehasher_function_t = u8; | |
pub const flatbuffers_SequenceType_ST_TABLE: flatbuffers_SequenceType = 0; | |
pub const flatbuffers_SequenceType_ST_STRUCT: flatbuffers_SequenceType = 1; | |
pub const flatbuffers_SequenceType_ST_UNION: flatbuffers_SequenceType = 2; | |
pub const flatbuffers_SequenceType_ST_ENUM: flatbuffers_SequenceType = 3; | |
pub type flatbuffers_SequenceType = u32; | |
pub const flatbuffers_ElementaryType_ET_UTYPE: flatbuffers_ElementaryType = 0; | |
pub const flatbuffers_ElementaryType_ET_BOOL: flatbuffers_ElementaryType = 1; | |
pub const flatbuffers_ElementaryType_ET_CHAR: flatbuffers_ElementaryType = 2; | |
pub const flatbuffers_ElementaryType_ET_UCHAR: flatbuffers_ElementaryType = 3; | |
pub const flatbuffers_ElementaryType_ET_SHORT: flatbuffers_ElementaryType = 4; | |
pub const flatbuffers_ElementaryType_ET_USHORT: flatbuffers_ElementaryType = 5; | |
pub const flatbuffers_ElementaryType_ET_INT: flatbuffers_ElementaryType = 6; | |
pub const flatbuffers_ElementaryType_ET_UINT: flatbuffers_ElementaryType = 7; | |
pub const flatbuffers_ElementaryType_ET_LONG: flatbuffers_ElementaryType = 8; | |
pub const flatbuffers_ElementaryType_ET_ULONG: flatbuffers_ElementaryType = 9; | |
pub const flatbuffers_ElementaryType_ET_FLOAT: flatbuffers_ElementaryType = 10; | |
pub const flatbuffers_ElementaryType_ET_DOUBLE: flatbuffers_ElementaryType = 11; | |
pub const flatbuffers_ElementaryType_ET_STRING: flatbuffers_ElementaryType = 12; | |
pub const flatbuffers_ElementaryType_ET_SEQUENCE: flatbuffers_ElementaryType = 13; | |
pub type flatbuffers_ElementaryType = u32; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_TypeCode { | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u16>, | |
pub __bindgen_align: [u16; 0usize], | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_TypeCode() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_TypeCode>(), | |
2usize, | |
concat!("Size of: ", stringify!(flatbuffers_TypeCode)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_TypeCode>(), | |
2usize, | |
concat!("Alignment of ", stringify!(flatbuffers_TypeCode)) | |
); | |
} | |
impl flatbuffers_TypeCode { | |
#[inline] | |
pub fn base_type(&self) -> u16 { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } | |
} | |
#[inline] | |
pub fn set_base_type(&mut self, val: u16) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(0usize, 4u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn is_vector(&self) -> u16 { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } | |
} | |
#[inline] | |
pub fn set_is_vector(&mut self, val: u16) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(4usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn sequence_ref(&self) -> i16 { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 11u8) as u16) } | |
} | |
#[inline] | |
pub fn set_sequence_ref(&mut self, val: i16) { | |
unsafe { | |
let val: u16 = ::std::mem::transmute(val); | |
self._bitfield_1.set(5usize, 11u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn new_bitfield_1( | |
base_type: u16, | |
is_vector: u16, | |
sequence_ref: i16, | |
) -> __BindgenBitfieldUnit<[u8; 2usize], u16> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> = | |
Default::default(); | |
__bindgen_bitfield_unit.set(0usize, 4u8, { | |
let base_type: u16 = unsafe { ::std::mem::transmute(base_type) }; | |
base_type as u64 | |
}); | |
__bindgen_bitfield_unit.set(4usize, 1u8, { | |
let is_vector: u16 = unsafe { ::std::mem::transmute(is_vector) }; | |
is_vector as u64 | |
}); | |
__bindgen_bitfield_unit.set(5usize, 11u8, { | |
let sequence_ref: u16 = unsafe { ::std::mem::transmute(sequence_ref) }; | |
sequence_ref as u64 | |
}); | |
__bindgen_bitfield_unit | |
} | |
} | |
pub type flatbuffers_TypeFunction = ::std::option::Option< | |
unsafe extern "C" fn() -> *mut flatbuffers_TypeTable, | |
>; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct flatbuffers_TypeTable { | |
pub st: flatbuffers_SequenceType, | |
pub num_elems: usize, | |
pub type_codes: *const flatbuffers_TypeCode, | |
pub type_refs: *const flatbuffers_TypeFunction, | |
pub values: *const i32, | |
pub names: *mut *const ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_flatbuffers_TypeTable() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_TypeTable>(), | |
48usize, | |
concat!("Size of: ", stringify!(flatbuffers_TypeTable)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_TypeTable>(), | |
8usize, | |
concat!("Alignment of ", stringify!(flatbuffers_TypeTable)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_TypeTable>())).st as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(st) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_TypeTable>())).num_elems as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(num_elems) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<flatbuffers_TypeTable>())).type_codes as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(type_codes) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_TypeTable>())).type_refs as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(type_refs) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_TypeTable>())).values as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(values) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<flatbuffers_TypeTable>())).names as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(flatbuffers_TypeTable), | |
"::", | |
stringify!(names) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}__ZN11flatbuffers25flatbuffer_version_stringE"] | |
pub static mut flatbuffers_flatbuffer_version_string: *const ::std::os::raw::c_char; | |
} | |
pub type __builtin_va_list = [__va_list_tag; 1usize]; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct __va_list_tag { | |
pub gp_offset: ::std::os::raw::c_uint, | |
pub fp_offset: ::std::os::raw::c_uint, | |
pub overflow_arg_area: *mut ::std::os::raw::c_void, | |
pub reg_save_area: *mut ::std::os::raw::c_void, | |
} | |
#[test] | |
fn bindgen_test_layout___va_list_tag() { | |
assert_eq!( | |
::std::mem::size_of::<__va_list_tag>(), | |
24usize, | |
concat!("Size of: ", stringify!(__va_list_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__va_list_tag>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__va_list_tag)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(gp_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(fp_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(overflow_arg_area) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(reg_save_area) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _bindgen_ty_1 { | |
pub _address: u8, | |
} | |
pub type __int128_t = [u64; 2]; | |
pub type __uint128_t = [u64; 2]; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _bindgen_ty_2 { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _bindgen_ty_3 { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _bindgen_ty_4 { | |
pub _address: u8, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _bindgen_ty_5 { | |
pub _address: u8, | |
} | |
pub type char_type = u16; | |
pub type char_type = u32; | |
pub type value_type = bool; | |
pub type const_iterator = const_pointer; | |
pub type const_pointer = u8; | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Vector_open0_char_close0_instantiation() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_1() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_2() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_3() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_4() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_5() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_6() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_7() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_Vector_open1_uint8_t_close1_close0_instantiation( | |
) { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_Vector_open1_flatbuffers_Offset_open2_flatbuffers_String_close2_close1_close0_instantiation( | |
) { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Vector_open0_flatbuffers_Offset_open1_flatbuffers_String_close1_close0_instantiation( | |
) { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_8() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_9() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_10() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Vector_open0_flatbuffers_Offset_open1_flatbuffers_String_close1_close0_instantiation_1( | |
) { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Vector>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Vector) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_flatbuffers_Offset_open0_flatbuffers_String_close0_instantiation_11() { | |
assert_eq!( | |
::std::mem::size_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
assert_eq!( | |
::std::mem::align_of::<flatbuffers_Offset>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(flatbuffers_Offset) | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment