From 6f71a62d204a381549c617a13fb3e1c4b265172f Mon Sep 17 00:00:00 2001 From: rustysec Date: Wed, 8 Feb 2023 11:35:03 -0800 Subject: [PATCH 1/3] added aarch64-apple-darwin bindings --- .../yara-4.2.3-aarch64-apple-darwin.rs | 10850 ++++++++++++++++ 1 file changed, 10850 insertions(+) create mode 100644 yara-sys/bindings/yara-4.2.3-aarch64-apple-darwin.rs diff --git a/yara-sys/bindings/yara-4.2.3-aarch64-apple-darwin.rs b/yara-sys/bindings/yara-4.2.3-aarch64-apple-darwin.rs new file mode 100644 index 0000000..2014866 --- /dev/null +++ b/yara-sys/bindings/yara-4.2.3-aarch64-apple-darwin.rs @@ -0,0 +1,10850 @@ +/* automatically generated by rust-bindgen 0.60.1 */ + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[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 = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + 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 = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +impl __IncompleteArrayField { + #[inline] + pub const fn new() -> Self { + __IncompleteArrayField(::std::marker::PhantomData, []) + } + #[inline] + pub fn as_ptr(&self) -> *const T { + self as *const _ as *const T + } + #[inline] + pub fn as_mut_ptr(&mut self) -> *mut T { + self as *mut _ as *mut T + } + #[inline] + pub unsafe fn as_slice(&self, len: usize) -> &[T] { + ::std::slice::from_raw_parts(self.as_ptr(), len) + } + #[inline] + pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { + ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) + } +} +impl ::std::fmt::Debug for __IncompleteArrayField { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + fmt.write_str("__IncompleteArrayField") + } +} +pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1; +pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1; +pub const __DARWIN_ONLY_VERS_1050: u32 = 1; +pub const __DARWIN_UNIX03: u32 = 1; +pub const __DARWIN_64_BIT_INO_T: u32 = 1; +pub const __DARWIN_VERS_1050: u32 = 1; +pub const __DARWIN_NON_CANCELABLE: u32 = 0; +pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0"; +pub const __DARWIN_C_ANSI: u32 = 4096; +pub const __DARWIN_C_FULL: u32 = 900000; +pub const __DARWIN_C_LEVEL: u32 = 900000; +pub const __STDC_WANT_LIB_EXT1__: u32 = 1; +pub const __DARWIN_NO_LONG_LONG: u32 = 0; +pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1; +pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3; +pub const __has_ptrcheck: u32 = 0; +pub const __API_TO_BE_DEPRECATED: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000; +pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000; +pub const __MAC_10_0: u32 = 1000; +pub const __MAC_10_1: u32 = 1010; +pub const __MAC_10_2: u32 = 1020; +pub const __MAC_10_3: u32 = 1030; +pub const __MAC_10_4: u32 = 1040; +pub const __MAC_10_5: u32 = 1050; +pub const __MAC_10_6: u32 = 1060; +pub const __MAC_10_7: u32 = 1070; +pub const __MAC_10_8: u32 = 1080; +pub const __MAC_10_9: u32 = 1090; +pub const __MAC_10_10: u32 = 101000; +pub const __MAC_10_10_2: u32 = 101002; +pub const __MAC_10_10_3: u32 = 101003; +pub const __MAC_10_11: u32 = 101100; +pub const __MAC_10_11_2: u32 = 101102; +pub const __MAC_10_11_3: u32 = 101103; +pub const __MAC_10_11_4: u32 = 101104; +pub const __MAC_10_12: u32 = 101200; +pub const __MAC_10_12_1: u32 = 101201; +pub const __MAC_10_12_2: u32 = 101202; +pub const __MAC_10_12_4: u32 = 101204; +pub const __MAC_10_13: u32 = 101300; +pub const __MAC_10_13_1: u32 = 101301; +pub const __MAC_10_13_2: u32 = 101302; +pub const __MAC_10_13_4: u32 = 101304; +pub const __MAC_10_14: u32 = 101400; +pub const __MAC_10_14_1: u32 = 101401; +pub const __MAC_10_14_4: u32 = 101404; +pub const __MAC_10_14_6: u32 = 101406; +pub const __MAC_10_15: u32 = 101500; +pub const __MAC_10_15_1: u32 = 101501; +pub const __MAC_10_15_4: u32 = 101504; +pub const __MAC_10_16: u32 = 101600; +pub const __MAC_11_0: u32 = 110000; +pub const __MAC_11_1: u32 = 110100; +pub const __MAC_11_3: u32 = 110300; +pub const __MAC_11_4: u32 = 110400; +pub const __MAC_11_5: u32 = 110500; +pub const __MAC_11_6: u32 = 110600; +pub const __MAC_12_0: u32 = 120000; +pub const __MAC_12_1: u32 = 120100; +pub const __MAC_12_2: u32 = 120200; +pub const __MAC_12_3: u32 = 120300; +pub const __MAC_13_0: u32 = 130000; +pub const __MAC_13_1: u32 = 130100; +pub const __IPHONE_2_0: u32 = 20000; +pub const __IPHONE_2_1: u32 = 20100; +pub const __IPHONE_2_2: u32 = 20200; +pub const __IPHONE_3_0: u32 = 30000; +pub const __IPHONE_3_1: u32 = 30100; +pub const __IPHONE_3_2: u32 = 30200; +pub const __IPHONE_4_0: u32 = 40000; +pub const __IPHONE_4_1: u32 = 40100; +pub const __IPHONE_4_2: u32 = 40200; +pub const __IPHONE_4_3: u32 = 40300; +pub const __IPHONE_5_0: u32 = 50000; +pub const __IPHONE_5_1: u32 = 50100; +pub const __IPHONE_6_0: u32 = 60000; +pub const __IPHONE_6_1: u32 = 60100; +pub const __IPHONE_7_0: u32 = 70000; +pub const __IPHONE_7_1: u32 = 70100; +pub const __IPHONE_8_0: u32 = 80000; +pub const __IPHONE_8_1: u32 = 80100; +pub const __IPHONE_8_2: u32 = 80200; +pub const __IPHONE_8_3: u32 = 80300; +pub const __IPHONE_8_4: u32 = 80400; +pub const __IPHONE_9_0: u32 = 90000; +pub const __IPHONE_9_1: u32 = 90100; +pub const __IPHONE_9_2: u32 = 90200; +pub const __IPHONE_9_3: u32 = 90300; +pub const __IPHONE_10_0: u32 = 100000; +pub const __IPHONE_10_1: u32 = 100100; +pub const __IPHONE_10_2: u32 = 100200; +pub const __IPHONE_10_3: u32 = 100300; +pub const __IPHONE_11_0: u32 = 110000; +pub const __IPHONE_11_1: u32 = 110100; +pub const __IPHONE_11_2: u32 = 110200; +pub const __IPHONE_11_3: u32 = 110300; +pub const __IPHONE_11_4: u32 = 110400; +pub const __IPHONE_12_0: u32 = 120000; +pub const __IPHONE_12_1: u32 = 120100; +pub const __IPHONE_12_2: u32 = 120200; +pub const __IPHONE_12_3: u32 = 120300; +pub const __IPHONE_12_4: u32 = 120400; +pub const __IPHONE_13_0: u32 = 130000; +pub const __IPHONE_13_1: u32 = 130100; +pub const __IPHONE_13_2: u32 = 130200; +pub const __IPHONE_13_3: u32 = 130300; +pub const __IPHONE_13_4: u32 = 130400; +pub const __IPHONE_13_5: u32 = 130500; +pub const __IPHONE_13_6: u32 = 130600; +pub const __IPHONE_13_7: u32 = 130700; +pub const __IPHONE_14_0: u32 = 140000; +pub const __IPHONE_14_1: u32 = 140100; +pub const __IPHONE_14_2: u32 = 140200; +pub const __IPHONE_14_3: u32 = 140300; +pub const __IPHONE_14_5: u32 = 140500; +pub const __IPHONE_14_6: u32 = 140600; +pub const __IPHONE_14_7: u32 = 140700; +pub const __IPHONE_14_8: u32 = 140800; +pub const __IPHONE_15_0: u32 = 150000; +pub const __IPHONE_15_1: u32 = 150100; +pub const __IPHONE_15_2: u32 = 150200; +pub const __IPHONE_15_3: u32 = 150300; +pub const __IPHONE_15_4: u32 = 150400; +pub const __IPHONE_16_0: u32 = 160000; +pub const __IPHONE_16_1: u32 = 160100; +pub const __IPHONE_16_2: u32 = 160200; +pub const __TVOS_9_0: u32 = 90000; +pub const __TVOS_9_1: u32 = 90100; +pub const __TVOS_9_2: u32 = 90200; +pub const __TVOS_10_0: u32 = 100000; +pub const __TVOS_10_0_1: u32 = 100001; +pub const __TVOS_10_1: u32 = 100100; +pub const __TVOS_10_2: u32 = 100200; +pub const __TVOS_11_0: u32 = 110000; +pub const __TVOS_11_1: u32 = 110100; +pub const __TVOS_11_2: u32 = 110200; +pub const __TVOS_11_3: u32 = 110300; +pub const __TVOS_11_4: u32 = 110400; +pub const __TVOS_12_0: u32 = 120000; +pub const __TVOS_12_1: u32 = 120100; +pub const __TVOS_12_2: u32 = 120200; +pub const __TVOS_12_3: u32 = 120300; +pub const __TVOS_12_4: u32 = 120400; +pub const __TVOS_13_0: u32 = 130000; +pub const __TVOS_13_2: u32 = 130200; +pub const __TVOS_13_3: u32 = 130300; +pub const __TVOS_13_4: u32 = 130400; +pub const __TVOS_14_0: u32 = 140000; +pub const __TVOS_14_1: u32 = 140100; +pub const __TVOS_14_2: u32 = 140200; +pub const __TVOS_14_3: u32 = 140300; +pub const __TVOS_14_5: u32 = 140500; +pub const __TVOS_14_6: u32 = 140600; +pub const __TVOS_14_7: u32 = 140700; +pub const __TVOS_15_0: u32 = 150000; +pub const __TVOS_15_1: u32 = 150100; +pub const __TVOS_15_2: u32 = 150200; +pub const __TVOS_15_3: u32 = 150300; +pub const __TVOS_15_4: u32 = 150400; +pub const __TVOS_16_0: u32 = 160000; +pub const __TVOS_16_1: u32 = 160100; +pub const __TVOS_16_2: u32 = 160200; +pub const __WATCHOS_1_0: u32 = 10000; +pub const __WATCHOS_2_0: u32 = 20000; +pub const __WATCHOS_2_1: u32 = 20100; +pub const __WATCHOS_2_2: u32 = 20200; +pub const __WATCHOS_3_0: u32 = 30000; +pub const __WATCHOS_3_1: u32 = 30100; +pub const __WATCHOS_3_1_1: u32 = 30101; +pub const __WATCHOS_3_2: u32 = 30200; +pub const __WATCHOS_4_0: u32 = 40000; +pub const __WATCHOS_4_1: u32 = 40100; +pub const __WATCHOS_4_2: u32 = 40200; +pub const __WATCHOS_4_3: u32 = 40300; +pub const __WATCHOS_5_0: u32 = 50000; +pub const __WATCHOS_5_1: u32 = 50100; +pub const __WATCHOS_5_2: u32 = 50200; +pub const __WATCHOS_5_3: u32 = 50300; +pub const __WATCHOS_6_0: u32 = 60000; +pub const __WATCHOS_6_1: u32 = 60100; +pub const __WATCHOS_6_2: u32 = 60200; +pub const __WATCHOS_7_0: u32 = 70000; +pub const __WATCHOS_7_1: u32 = 70100; +pub const __WATCHOS_7_2: u32 = 70200; +pub const __WATCHOS_7_3: u32 = 70300; +pub const __WATCHOS_7_4: u32 = 70400; +pub const __WATCHOS_7_5: u32 = 70500; +pub const __WATCHOS_7_6: u32 = 70600; +pub const __WATCHOS_8_0: u32 = 80000; +pub const __WATCHOS_8_1: u32 = 80100; +pub const __WATCHOS_8_3: u32 = 80300; +pub const __WATCHOS_8_4: u32 = 80400; +pub const __WATCHOS_8_5: u32 = 80500; +pub const __WATCHOS_9_0: u32 = 90000; +pub const __WATCHOS_9_1: u32 = 90100; +pub const __WATCHOS_9_2: u32 = 90200; +pub const MAC_OS_X_VERSION_10_0: u32 = 1000; +pub const MAC_OS_X_VERSION_10_1: u32 = 1010; +pub const MAC_OS_X_VERSION_10_2: u32 = 1020; +pub const MAC_OS_X_VERSION_10_3: u32 = 1030; +pub const MAC_OS_X_VERSION_10_4: u32 = 1040; +pub const MAC_OS_X_VERSION_10_5: u32 = 1050; +pub const MAC_OS_X_VERSION_10_6: u32 = 1060; +pub const MAC_OS_X_VERSION_10_7: u32 = 1070; +pub const MAC_OS_X_VERSION_10_8: u32 = 1080; +pub const MAC_OS_X_VERSION_10_9: u32 = 1090; +pub const MAC_OS_X_VERSION_10_10: u32 = 101000; +pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002; +pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003; +pub const MAC_OS_X_VERSION_10_11: u32 = 101100; +pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102; +pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103; +pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104; +pub const MAC_OS_X_VERSION_10_12: u32 = 101200; +pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201; +pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202; +pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204; +pub const MAC_OS_X_VERSION_10_13: u32 = 101300; +pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301; +pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302; +pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304; +pub const MAC_OS_X_VERSION_10_14: u32 = 101400; +pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401; +pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404; +pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406; +pub const MAC_OS_X_VERSION_10_15: u32 = 101500; +pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501; +pub const MAC_OS_X_VERSION_10_16: u32 = 101600; +pub const MAC_OS_VERSION_11_0: u32 = 110000; +pub const MAC_OS_VERSION_12_0: u32 = 120000; +pub const MAC_OS_VERSION_13_0: u32 = 130000; +pub const __DRIVERKIT_19_0: u32 = 190000; +pub const __DRIVERKIT_20_0: u32 = 200000; +pub const __DRIVERKIT_21_0: u32 = 210000; +pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 130100; +pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; +pub const _JBLEN: u32 = 48; +pub const __PTHREAD_SIZE__: u32 = 8176; +pub const __PTHREAD_ATTR_SIZE__: u32 = 56; +pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8; +pub const __PTHREAD_MUTEX_SIZE__: u32 = 56; +pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8; +pub const __PTHREAD_COND_SIZE__: u32 = 40; +pub const __PTHREAD_ONCE_SIZE__: u32 = 8; +pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192; +pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16; +pub const __DARWIN_WCHAR_MIN: i32 = -2147483648; +pub const _FORTIFY_SOURCE: u32 = 2; +pub const RENAME_SECLUDE: u32 = 1; +pub const RENAME_SWAP: u32 = 2; +pub const RENAME_EXCL: u32 = 4; +pub const RENAME_RESERVED1: u32 = 8; +pub const RENAME_NOFOLLOW_ANY: u32 = 16; +pub const __SLBF: u32 = 1; +pub const __SNBF: u32 = 2; +pub const __SRD: u32 = 4; +pub const __SWR: u32 = 8; +pub const __SRW: u32 = 16; +pub const __SEOF: u32 = 32; +pub const __SERR: u32 = 64; +pub const __SMBF: u32 = 128; +pub const __SAPP: u32 = 256; +pub const __SSTR: u32 = 512; +pub const __SOPT: u32 = 1024; +pub const __SNPT: u32 = 2048; +pub const __SOFF: u32 = 4096; +pub const __SMOD: u32 = 8192; +pub const __SALC: u32 = 16384; +pub const __SIGN: u32 = 32768; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 1024; +pub const EOF: i32 = -1; +pub const FOPEN_MAX: u32 = 20; +pub const FILENAME_MAX: u32 = 1024; +pub const P_tmpdir: &[u8; 10usize] = b"/var/tmp/\0"; +pub const L_tmpnam: u32 = 1024; +pub const TMP_MAX: u32 = 308915776; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const L_ctermid: u32 = 1024; +pub const _USE_FORTIFY_LEVEL: u32 = 2; +pub const __DARWIN_CLK_TCK: u32 = 100; +pub const CHAR_BIT: u32 = 8; +pub const MB_LEN_MAX: u32 = 6; +pub const CLK_TCK: u32 = 100; +pub const SCHAR_MAX: u32 = 127; +pub const SCHAR_MIN: i32 = -128; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MAX: u32 = 127; +pub const CHAR_MIN: i32 = -128; +pub const USHRT_MAX: u32 = 65535; +pub const SHRT_MAX: u32 = 32767; +pub const SHRT_MIN: i32 = -32768; +pub const UINT_MAX: u32 = 4294967295; +pub const INT_MAX: u32 = 2147483647; +pub const INT_MIN: i32 = -2147483648; +pub const ULONG_MAX: i32 = -1; +pub const LONG_MAX: u64 = 9223372036854775807; +pub const LONG_MIN: i64 = -9223372036854775808; +pub const ULLONG_MAX: i32 = -1; +pub const LLONG_MAX: u64 = 9223372036854775807; +pub const LLONG_MIN: i64 = -9223372036854775808; +pub const LONG_BIT: u32 = 64; +pub const SSIZE_MAX: u64 = 9223372036854775807; +pub const WORD_BIT: u32 = 32; +pub const SIZE_T_MAX: i32 = -1; +pub const UQUAD_MAX: i32 = -1; +pub const QUAD_MAX: u64 = 9223372036854775807; +pub const QUAD_MIN: i64 = -9223372036854775808; +pub const ARG_MAX: u32 = 1048576; +pub const CHILD_MAX: u32 = 266; +pub const GID_MAX: u32 = 2147483647; +pub const LINK_MAX: u32 = 32767; +pub const MAX_CANON: u32 = 1024; +pub const MAX_INPUT: u32 = 1024; +pub const NAME_MAX: u32 = 255; +pub const NGROUPS_MAX: u32 = 16; +pub const UID_MAX: u32 = 2147483647; +pub const OPEN_MAX: u32 = 10240; +pub const PATH_MAX: u32 = 1024; +pub const PIPE_BUF: u32 = 512; +pub const BC_BASE_MAX: u32 = 99; +pub const BC_DIM_MAX: u32 = 2048; +pub const BC_SCALE_MAX: u32 = 99; +pub const BC_STRING_MAX: u32 = 1000; +pub const CHARCLASS_NAME_MAX: u32 = 14; +pub const COLL_WEIGHTS_MAX: u32 = 2; +pub const EQUIV_CLASS_MAX: u32 = 2; +pub const EXPR_NEST_MAX: u32 = 32; +pub const LINE_MAX: u32 = 2048; +pub const RE_DUP_MAX: u32 = 255; +pub const NZERO: u32 = 20; +pub const _POSIX_ARG_MAX: u32 = 4096; +pub const _POSIX_CHILD_MAX: u32 = 25; +pub const _POSIX_LINK_MAX: u32 = 8; +pub const _POSIX_MAX_CANON: u32 = 255; +pub const _POSIX_MAX_INPUT: u32 = 255; +pub const _POSIX_NAME_MAX: u32 = 14; +pub const _POSIX_NGROUPS_MAX: u32 = 8; +pub const _POSIX_OPEN_MAX: u32 = 20; +pub const _POSIX_PATH_MAX: u32 = 256; +pub const _POSIX_PIPE_BUF: u32 = 512; +pub const _POSIX_SSIZE_MAX: u32 = 32767; +pub const _POSIX_STREAM_MAX: u32 = 8; +pub const _POSIX_TZNAME_MAX: u32 = 6; +pub const _POSIX2_BC_BASE_MAX: u32 = 99; +pub const _POSIX2_BC_DIM_MAX: u32 = 2048; +pub const _POSIX2_BC_SCALE_MAX: u32 = 99; +pub const _POSIX2_BC_STRING_MAX: u32 = 1000; +pub const _POSIX2_EQUIV_CLASS_MAX: u32 = 2; +pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; +pub const _POSIX2_LINE_MAX: u32 = 2048; +pub const _POSIX2_RE_DUP_MAX: u32 = 255; +pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; +pub const _POSIX_AIO_MAX: u32 = 1; +pub const _POSIX_DELAYTIMER_MAX: u32 = 32; +pub const _POSIX_MQ_OPEN_MAX: u32 = 8; +pub const _POSIX_MQ_PRIO_MAX: u32 = 32; +pub const _POSIX_RTSIG_MAX: u32 = 8; +pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; +pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; +pub const _POSIX_SIGQUEUE_MAX: u32 = 32; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_KEYS_MAX: u32 = 512; +pub const PTHREAD_STACK_MIN: u32 = 16384; +pub const _POSIX_HOST_NAME_MAX: u32 = 255; +pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; +pub const _POSIX_SS_REPL_MAX: u32 = 4; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; +pub const _POSIX_TRACE_NAME_MAX: u32 = 8; +pub const _POSIX_TRACE_SYS_MAX: u32 = 8; +pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; +pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; +pub const _POSIX_RE_DUP_MAX: u32 = 255; +pub const OFF_MIN: i64 = -9223372036854775808; +pub const OFF_MAX: u64 = 9223372036854775807; +pub const PASS_MAX: u32 = 128; +pub const NL_ARGMAX: u32 = 9; +pub const NL_LANGMAX: u32 = 14; +pub const NL_MSGMAX: u32 = 32767; +pub const NL_NMAX: u32 = 1; +pub const NL_SETMAX: u32 = 255; +pub const NL_TEXTMAX: u32 = 2048; +pub const _XOPEN_IOV_MAX: u32 = 16; +pub const IOV_MAX: u32 = 1024; +pub const _XOPEN_NAME_MAX: u32 = 255; +pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const __GNUC_VA_LIST: u32 = 1; +pub const __DARWIN_NSIG: u32 = 32; +pub const NSIG: u32 = 32; +pub const _ARM_SIGNAL_: u32 = 1; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGURG: u32 = 16; +pub const SIGSTOP: u32 = 17; +pub const SIGTSTP: u32 = 18; +pub const SIGCONT: u32 = 19; +pub const SIGCHLD: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGIO: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGINFO: u32 = 29; +pub const SIGUSR1: u32 = 30; +pub const SIGUSR2: u32 = 31; +pub const __DARWIN_OPAQUE_ARM_THREAD_STATE64: u32 = 0; +pub const SIGEV_NONE: u32 = 0; +pub const SIGEV_SIGNAL: u32 = 1; +pub const SIGEV_THREAD: u32 = 3; +pub const ILL_NOOP: u32 = 0; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLTRP: u32 = 2; +pub const ILL_PRVOPC: u32 = 3; +pub const ILL_ILLOPN: u32 = 4; +pub const ILL_ILLADR: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const FPE_NOOP: u32 = 0; +pub const FPE_FLTDIV: u32 = 1; +pub const FPE_FLTOVF: u32 = 2; +pub const FPE_FLTUND: u32 = 3; +pub const FPE_FLTRES: u32 = 4; +pub const FPE_FLTINV: u32 = 5; +pub const FPE_FLTSUB: u32 = 6; +pub const FPE_INTDIV: u32 = 7; +pub const FPE_INTOVF: u32 = 8; +pub const SEGV_NOOP: u32 = 0; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const BUS_NOOP: u32 = 0; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const CLD_NOOP: u32 = 0; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const SA_ONSTACK: u32 = 1; +pub const SA_RESTART: u32 = 2; +pub const SA_RESETHAND: u32 = 4; +pub const SA_NOCLDSTOP: u32 = 8; +pub const SA_NODEFER: u32 = 16; +pub const SA_NOCLDWAIT: u32 = 32; +pub const SA_SIGINFO: u32 = 64; +pub const SA_USERTRAMP: u32 = 256; +pub const SA_64REGSET: u32 = 512; +pub const SA_USERSPACE_MASK: u32 = 127; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SI_USER: u32 = 65537; +pub const SI_QUEUE: u32 = 65538; +pub const SI_TIMER: u32 = 65539; +pub const SI_ASYNCIO: u32 = 65540; +pub const SI_MESGQ: u32 = 65541; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 4; +pub const MINSIGSTKSZ: u32 = 32768; +pub const SIGSTKSZ: u32 = 131072; +pub const SV_ONSTACK: u32 = 1; +pub const SV_INTERRUPT: u32 = 2; +pub const SV_RESETHAND: u32 = 4; +pub const SV_NODEFER: u32 = 16; +pub const SV_NOCLDSTOP: u32 = 8; +pub const SV_SIGINFO: u32 = 64; +pub const __WORDSIZE: u32 = 64; +pub const INT8_MAX: u32 = 127; +pub const INT16_MAX: u32 = 32767; +pub const INT32_MAX: u32 = 2147483647; +pub const INT64_MAX: u64 = 9223372036854775807; +pub const INT8_MIN: i32 = -128; +pub const INT16_MIN: i32 = -32768; +pub const INT32_MIN: i32 = -2147483648; +pub const INT64_MIN: i64 = -9223372036854775808; +pub const UINT8_MAX: u32 = 255; +pub const UINT16_MAX: u32 = 65535; +pub const UINT32_MAX: u32 = 4294967295; +pub const UINT64_MAX: i32 = -1; +pub const INT_LEAST8_MIN: i32 = -128; +pub const INT_LEAST16_MIN: i32 = -32768; +pub const INT_LEAST32_MIN: i32 = -2147483648; +pub const INT_LEAST64_MIN: i64 = -9223372036854775808; +pub const INT_LEAST8_MAX: u32 = 127; +pub const INT_LEAST16_MAX: u32 = 32767; +pub const INT_LEAST32_MAX: u32 = 2147483647; +pub const INT_LEAST64_MAX: u64 = 9223372036854775807; +pub const UINT_LEAST8_MAX: u32 = 255; +pub const UINT_LEAST16_MAX: u32 = 65535; +pub const UINT_LEAST32_MAX: u32 = 4294967295; +pub const UINT_LEAST64_MAX: i32 = -1; +pub const INT_FAST8_MIN: i32 = -128; +pub const INT_FAST16_MIN: i32 = -32768; +pub const INT_FAST32_MIN: i32 = -2147483648; +pub const INT_FAST64_MIN: i64 = -9223372036854775808; +pub const INT_FAST8_MAX: u32 = 127; +pub const INT_FAST16_MAX: u32 = 32767; +pub const INT_FAST32_MAX: u32 = 2147483647; +pub const INT_FAST64_MAX: u64 = 9223372036854775807; +pub const UINT_FAST8_MAX: u32 = 255; +pub const UINT_FAST16_MAX: u32 = 65535; +pub const UINT_FAST32_MAX: u32 = 4294967295; +pub const UINT_FAST64_MAX: i32 = -1; +pub const INTPTR_MAX: u64 = 9223372036854775807; +pub const INTPTR_MIN: i64 = -9223372036854775808; +pub const UINTPTR_MAX: i32 = -1; +pub const SIZE_MAX: i32 = -1; +pub const RSIZE_MAX: i32 = -1; +pub const WINT_MIN: i32 = -2147483648; +pub const WINT_MAX: u32 = 2147483647; +pub const SIG_ATOMIC_MIN: i32 = -2147483648; +pub const SIG_ATOMIC_MAX: u32 = 2147483647; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const PRIO_DARWIN_THREAD: u32 = 3; +pub const PRIO_DARWIN_PROCESS: u32 = 4; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_DARWIN_BG: u32 = 4096; +pub const PRIO_DARWIN_NONUI: u32 = 4097; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_INFO_V0: u32 = 0; +pub const RUSAGE_INFO_V1: u32 = 1; +pub const RUSAGE_INFO_V2: u32 = 2; +pub const RUSAGE_INFO_V3: u32 = 3; +pub const RUSAGE_INFO_V4: u32 = 4; +pub const RUSAGE_INFO_V5: u32 = 5; +pub const RUSAGE_INFO_V6: u32 = 6; +pub const RUSAGE_INFO_CURRENT: u32 = 6; +pub const RU_PROC_RUNS_RESLIDE: u32 = 1; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_AS: u32 = 5; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_MEMLOCK: u32 = 6; +pub const RLIMIT_NPROC: u32 = 7; +pub const RLIMIT_NOFILE: u32 = 8; +pub const RLIM_NLIMITS: u32 = 9; +pub const _RLIMIT_POSIX_FLAG: u32 = 4096; +pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1; +pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2; +pub const RLIMIT_THREAD_CPULIMITS: u32 = 3; +pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4; +pub const WAKEMON_ENABLE: u32 = 1; +pub const WAKEMON_DISABLE: u32 = 2; +pub const WAKEMON_GET_PARAMS: u32 = 4; +pub const WAKEMON_SET_DEFAULTS: u32 = 8; +pub const WAKEMON_MAKE_FATAL: u32 = 16; +pub const CPUMON_MAKE_FATAL: u32 = 4096; +pub const FOOTPRINT_INTERVAL_RESET: u32 = 1; +pub const IOPOL_TYPE_DISK: u32 = 0; +pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2; +pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3; +pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4; +pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5; +pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6; +pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7; +pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8; +pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9; +pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10; +pub const IOPOL_SCOPE_PROCESS: u32 = 0; +pub const IOPOL_SCOPE_THREAD: u32 = 1; +pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2; +pub const IOPOL_DEFAULT: u32 = 0; +pub const IOPOL_IMPORTANT: u32 = 1; +pub const IOPOL_PASSIVE: u32 = 2; +pub const IOPOL_THROTTLE: u32 = 3; +pub const IOPOL_UTILITY: u32 = 4; +pub const IOPOL_STANDARD: u32 = 5; +pub const IOPOL_APPLICATION: u32 = 5; +pub const IOPOL_NORMAL: u32 = 1; +pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0; +pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2; +pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0; +pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1; +pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0; +pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1; +pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0; +pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1; +pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0; +pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1; +pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0; +pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1; +pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0; +pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1; +pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0; +pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WCOREFLAG: u32 = 128; +pub const _WSTOPPED: u32 = 127; +pub const WEXITED: u32 = 4; +pub const WSTOPPED: u32 = 8; +pub const WCONTINUED: u32 = 16; +pub const WNOWAIT: u32 = 32; +pub const WAIT_ANY: i32 = -1; +pub const WAIT_MYPGRP: u32 = 0; +pub const _QUAD_HIGHWORD: u32 = 1; +pub const _QUAD_LOWWORD: u32 = 0; +pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234; +pub const __DARWIN_BIG_ENDIAN: u32 = 4321; +pub const __DARWIN_PDP_ENDIAN: u32 = 3412; +pub const __DARWIN_BYTE_ORDER: u32 = 1234; +pub const LITTLE_ENDIAN: u32 = 1234; +pub const BIG_ENDIAN: u32 = 4321; +pub const PDP_ENDIAN: u32 = 3412; +pub const BYTE_ORDER: u32 = 1234; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const __HAS_FIXED_CHK_PROTOTYPES: u32 = 1; +pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3usize] = b"hh\0"; +pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3usize] = b"ll\0"; +pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3usize] = b"ll\0"; +pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2usize] = b"j\0"; +pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2usize] = b"j\0"; +pub const PRId8: &[u8; 4usize] = b"hhd\0"; +pub const PRIi8: &[u8; 4usize] = b"hhi\0"; +pub const PRIo8: &[u8; 4usize] = b"hho\0"; +pub const PRIu8: &[u8; 4usize] = b"hhu\0"; +pub const PRIx8: &[u8; 4usize] = b"hhx\0"; +pub const PRIX8: &[u8; 4usize] = b"hhX\0"; +pub const PRId16: &[u8; 3usize] = b"hd\0"; +pub const PRIi16: &[u8; 3usize] = b"hi\0"; +pub const PRIo16: &[u8; 3usize] = b"ho\0"; +pub const PRIu16: &[u8; 3usize] = b"hu\0"; +pub const PRIx16: &[u8; 3usize] = b"hx\0"; +pub const PRIX16: &[u8; 3usize] = b"hX\0"; +pub const PRId32: &[u8; 2usize] = b"d\0"; +pub const PRIi32: &[u8; 2usize] = b"i\0"; +pub const PRIo32: &[u8; 2usize] = b"o\0"; +pub const PRIu32: &[u8; 2usize] = b"u\0"; +pub const PRIx32: &[u8; 2usize] = b"x\0"; +pub const PRIX32: &[u8; 2usize] = b"X\0"; +pub const PRId64: &[u8; 4usize] = b"lld\0"; +pub const PRIi64: &[u8; 4usize] = b"lli\0"; +pub const PRIo64: &[u8; 4usize] = b"llo\0"; +pub const PRIu64: &[u8; 4usize] = b"llu\0"; +pub const PRIx64: &[u8; 4usize] = b"llx\0"; +pub const PRIX64: &[u8; 4usize] = b"llX\0"; +pub const PRIdLEAST8: &[u8; 4usize] = b"hhd\0"; +pub const PRIiLEAST8: &[u8; 4usize] = b"hhi\0"; +pub const PRIoLEAST8: &[u8; 4usize] = b"hho\0"; +pub const PRIuLEAST8: &[u8; 4usize] = b"hhu\0"; +pub const PRIxLEAST8: &[u8; 4usize] = b"hhx\0"; +pub const PRIXLEAST8: &[u8; 4usize] = b"hhX\0"; +pub const PRIdLEAST16: &[u8; 3usize] = b"hd\0"; +pub const PRIiLEAST16: &[u8; 3usize] = b"hi\0"; +pub const PRIoLEAST16: &[u8; 3usize] = b"ho\0"; +pub const PRIuLEAST16: &[u8; 3usize] = b"hu\0"; +pub const PRIxLEAST16: &[u8; 3usize] = b"hx\0"; +pub const PRIXLEAST16: &[u8; 3usize] = b"hX\0"; +pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; +pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; +pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; +pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; +pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; +pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; +pub const PRIdLEAST64: &[u8; 4usize] = b"lld\0"; +pub const PRIiLEAST64: &[u8; 4usize] = b"lli\0"; +pub const PRIoLEAST64: &[u8; 4usize] = b"llo\0"; +pub const PRIuLEAST64: &[u8; 4usize] = b"llu\0"; +pub const PRIxLEAST64: &[u8; 4usize] = b"llx\0"; +pub const PRIXLEAST64: &[u8; 4usize] = b"llX\0"; +pub const PRIdFAST8: &[u8; 4usize] = b"hhd\0"; +pub const PRIiFAST8: &[u8; 4usize] = b"hhi\0"; +pub const PRIoFAST8: &[u8; 4usize] = b"hho\0"; +pub const PRIuFAST8: &[u8; 4usize] = b"hhu\0"; +pub const PRIxFAST8: &[u8; 4usize] = b"hhx\0"; +pub const PRIXFAST8: &[u8; 4usize] = b"hhX\0"; +pub const PRIdFAST16: &[u8; 3usize] = b"hd\0"; +pub const PRIiFAST16: &[u8; 3usize] = b"hi\0"; +pub const PRIoFAST16: &[u8; 3usize] = b"ho\0"; +pub const PRIuFAST16: &[u8; 3usize] = b"hu\0"; +pub const PRIxFAST16: &[u8; 3usize] = b"hx\0"; +pub const PRIXFAST16: &[u8; 3usize] = b"hX\0"; +pub const PRIdFAST32: &[u8; 2usize] = b"d\0"; +pub const PRIiFAST32: &[u8; 2usize] = b"i\0"; +pub const PRIoFAST32: &[u8; 2usize] = b"o\0"; +pub const PRIuFAST32: &[u8; 2usize] = b"u\0"; +pub const PRIxFAST32: &[u8; 2usize] = b"x\0"; +pub const PRIXFAST32: &[u8; 2usize] = b"X\0"; +pub const PRIdFAST64: &[u8; 4usize] = b"lld\0"; +pub const PRIiFAST64: &[u8; 4usize] = b"lli\0"; +pub const PRIoFAST64: &[u8; 4usize] = b"llo\0"; +pub const PRIuFAST64: &[u8; 4usize] = b"llu\0"; +pub const PRIxFAST64: &[u8; 4usize] = b"llx\0"; +pub const PRIXFAST64: &[u8; 4usize] = b"llX\0"; +pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; +pub const PRIiPTR: &[u8; 3usize] = b"li\0"; +pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; +pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; +pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; +pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; +pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; +pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; +pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; +pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; +pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; +pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; +pub const SCNd8: &[u8; 4usize] = b"hhd\0"; +pub const SCNi8: &[u8; 4usize] = b"hhi\0"; +pub const SCNo8: &[u8; 4usize] = b"hho\0"; +pub const SCNu8: &[u8; 4usize] = b"hhu\0"; +pub const SCNx8: &[u8; 4usize] = b"hhx\0"; +pub const SCNd16: &[u8; 3usize] = b"hd\0"; +pub const SCNi16: &[u8; 3usize] = b"hi\0"; +pub const SCNo16: &[u8; 3usize] = b"ho\0"; +pub const SCNu16: &[u8; 3usize] = b"hu\0"; +pub const SCNx16: &[u8; 3usize] = b"hx\0"; +pub const SCNd32: &[u8; 2usize] = b"d\0"; +pub const SCNi32: &[u8; 2usize] = b"i\0"; +pub const SCNo32: &[u8; 2usize] = b"o\0"; +pub const SCNu32: &[u8; 2usize] = b"u\0"; +pub const SCNx32: &[u8; 2usize] = b"x\0"; +pub const SCNd64: &[u8; 4usize] = b"lld\0"; +pub const SCNi64: &[u8; 4usize] = b"lli\0"; +pub const SCNo64: &[u8; 4usize] = b"llo\0"; +pub const SCNu64: &[u8; 4usize] = b"llu\0"; +pub const SCNx64: &[u8; 4usize] = b"llx\0"; +pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; +pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; +pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; +pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; +pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; +pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; +pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; +pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; +pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; +pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; +pub const SCNdLEAST64: &[u8; 4usize] = b"lld\0"; +pub const SCNiLEAST64: &[u8; 4usize] = b"lli\0"; +pub const SCNoLEAST64: &[u8; 4usize] = b"llo\0"; +pub const SCNuLEAST64: &[u8; 4usize] = b"llu\0"; +pub const SCNxLEAST64: &[u8; 4usize] = b"llx\0"; +pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNdFAST16: &[u8; 3usize] = b"hd\0"; +pub const SCNiFAST16: &[u8; 3usize] = b"hi\0"; +pub const SCNoFAST16: &[u8; 3usize] = b"ho\0"; +pub const SCNuFAST16: &[u8; 3usize] = b"hu\0"; +pub const SCNxFAST16: &[u8; 3usize] = b"hx\0"; +pub const SCNdFAST32: &[u8; 2usize] = b"d\0"; +pub const SCNiFAST32: &[u8; 2usize] = b"i\0"; +pub const SCNoFAST32: &[u8; 2usize] = b"o\0"; +pub const SCNuFAST32: &[u8; 2usize] = b"u\0"; +pub const SCNxFAST32: &[u8; 2usize] = b"x\0"; +pub const SCNdFAST64: &[u8; 4usize] = b"lld\0"; +pub const SCNiFAST64: &[u8; 4usize] = b"lli\0"; +pub const SCNoFAST64: &[u8; 4usize] = b"llo\0"; +pub const SCNuFAST64: &[u8; 4usize] = b"llu\0"; +pub const SCNxFAST64: &[u8; 4usize] = b"llx\0"; +pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; +pub const SCNiPTR: &[u8; 3usize] = b"li\0"; +pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; +pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; +pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; +pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; +pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; +pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; +pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; +pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; +pub const true_: u32 = 1; +pub const false_: u32 = 0; +pub const MAX_PATH: u32 = 1024; +pub const YR_MAX_THREADS: u32 = 32; +pub const YR_MAX_ARENA_BUFFERS: u32 = 16; +pub const YR_MAX_COMPILER_ERROR_EXTRA_INFO: u32 = 256; +pub const YR_MAX_ATOM_LENGTH: u32 = 4; +pub const YR_MAX_ATOM_QUALITY: u32 = 255; +pub const YR_MIN_ATOM_QUALITY: u32 = 0; +pub const YR_ATOM_QUALITY_WARNING_THRESHOLD: u32 = 205; +pub const YR_ATOMS_PER_RULE_WARNING_THRESHOLD: u32 = 12000; +pub const YR_MAX_LOOP_NESTING: u32 = 4; +pub const YR_MAX_LOOP_VARS: u32 = 2; +pub const YR_MAX_INCLUDE_DEPTH: u32 = 16; +pub const YR_MAX_STRING_MATCHES: u32 = 1000000; +pub const YR_MAX_FUNCTION_ARGS: u32 = 128; +pub const YR_MAX_OVERLOADED_FUNCTIONS: u32 = 10; +pub const YR_STRING_CHAINING_THRESHOLD: u32 = 200; +pub const YR_LEX_BUF_SIZE: u32 = 8192; +pub const YR_MATCH_VERIFICATION_PROFILING_RATE: u32 = 1024; +pub const RE_MAX_SPLIT_ID: u32 = 128; +pub const RE_MAX_STACK: u32 = 1024; +pub const YR_RE_SCAN_LIMIT: u32 = 4096; +pub const RE_MAX_FIBERS: u32 = 1024; +pub const _CACHED_RUNES: u32 = 256; +pub const _CRMASK: i32 = -256; +pub const _RUNE_MAGIC_A: &[u8; 9usize] = b"RuneMagA\0"; +pub const _CTYPE_A: u32 = 256; +pub const _CTYPE_C: u32 = 512; +pub const _CTYPE_D: u32 = 1024; +pub const _CTYPE_G: u32 = 2048; +pub const _CTYPE_L: u32 = 4096; +pub const _CTYPE_P: u32 = 8192; +pub const _CTYPE_S: u32 = 16384; +pub const _CTYPE_U: u32 = 32768; +pub const _CTYPE_X: u32 = 65536; +pub const _CTYPE_B: u32 = 131072; +pub const _CTYPE_R: u32 = 262144; +pub const _CTYPE_I: u32 = 524288; +pub const _CTYPE_T: u32 = 1048576; +pub const _CTYPE_Q: u32 = 2097152; +pub const _CTYPE_SW0: u32 = 536870912; +pub const _CTYPE_SW1: u32 = 1073741824; +pub const _CTYPE_SW2: u32 = 2147483648; +pub const _CTYPE_SW3: u32 = 3221225472; +pub const _CTYPE_SWM: u32 = 3758096384; +pub const _CTYPE_SWS: u32 = 30; +pub const YR_ARENA_FILE_VERSION: u32 = 19; +pub const SIZED_STRING_FLAGS_NO_CASE: u32 = 1; +pub const SIZED_STRING_FLAGS_DOT_ALL: u32 = 2; +pub const TIME_UTC: u32 = 1; +pub const TRUE: u32 = 1; +pub const FALSE: u32 = 0; +pub const MACH_PORT_NULL: u32 = 0; +pub const MACH_PORT_TYPE_DNREQUEST: u32 = 2147483648; +pub const MACH_PORT_TYPE_SPREQUEST: u32 = 1073741824; +pub const MACH_PORT_TYPE_SPREQUEST_DELAYED: u32 = 536870912; +pub const MACH_PORT_SRIGHTS_NONE: u32 = 0; +pub const MACH_PORT_SRIGHTS_PRESENT: u32 = 1; +pub const MACH_PORT_QLIMIT_ZERO: u32 = 0; +pub const MACH_PORT_QLIMIT_BASIC: u32 = 5; +pub const MACH_PORT_QLIMIT_SMALL: u32 = 16; +pub const MACH_PORT_QLIMIT_LARGE: u32 = 1024; +pub const MACH_PORT_QLIMIT_KERNEL: u32 = 65534; +pub const MACH_PORT_QLIMIT_MIN: u32 = 0; +pub const MACH_PORT_QLIMIT_DEFAULT: u32 = 5; +pub const MACH_PORT_QLIMIT_MAX: u32 = 1024; +pub const MACH_PORT_STATUS_FLAG_TEMPOWNER: u32 = 1; +pub const MACH_PORT_STATUS_FLAG_GUARDED: u32 = 2; +pub const MACH_PORT_STATUS_FLAG_STRICT_GUARD: u32 = 4; +pub const MACH_PORT_STATUS_FLAG_IMP_DONATION: u32 = 8; +pub const MACH_PORT_STATUS_FLAG_REVIVE: u32 = 16; +pub const MACH_PORT_STATUS_FLAG_TASKPTR: u32 = 32; +pub const MACH_PORT_STATUS_FLAG_GUARD_IMMOVABLE_RECEIVE: u32 = 64; +pub const MACH_PORT_STATUS_FLAG_NO_GRANT: u32 = 128; +pub const MACH_PORT_LIMITS_INFO: u32 = 1; +pub const MACH_PORT_RECEIVE_STATUS: u32 = 2; +pub const MACH_PORT_DNREQUESTS_SIZE: u32 = 3; +pub const MACH_PORT_TEMPOWNER: u32 = 4; +pub const MACH_PORT_IMPORTANCE_RECEIVER: u32 = 5; +pub const MACH_PORT_DENAP_RECEIVER: u32 = 6; +pub const MACH_PORT_INFO_EXT: u32 = 7; +pub const MACH_PORT_GUARD_INFO: u32 = 8; +pub const MACH_PORT_DNREQUESTS_SIZE_COUNT: u32 = 1; +pub const MACH_SERVICE_PORT_INFO_STRING_NAME_MAX_BUF_LEN: u32 = 255; +pub const MPO_CONTEXT_AS_GUARD: u32 = 1; +pub const MPO_QLIMIT: u32 = 2; +pub const MPO_TEMPOWNER: u32 = 4; +pub const MPO_IMPORTANCE_RECEIVER: u32 = 8; +pub const MPO_INSERT_SEND_RIGHT: u32 = 16; +pub const MPO_STRICT: u32 = 32; +pub const MPO_DENAP_RECEIVER: u32 = 64; +pub const MPO_IMMOVABLE_RECEIVE: u32 = 128; +pub const MPO_FILTER_MSG: u32 = 256; +pub const MPO_TG_BLOCK_TRACKING: u32 = 512; +pub const MPO_SERVICE_PORT: u32 = 1024; +pub const MPO_CONNECTION_PORT: u32 = 2048; +pub const MPO_REPLY_PORT: u32 = 4096; +pub const MPO_ENFORCE_REPLY_PORT_SEMANTICS: u32 = 8192; +pub const MPO_PROVISIONAL_REPLY_PORT: u32 = 16384; +pub const GUARD_TYPE_MACH_PORT: u32 = 1; +pub const MAX_FATAL_kGUARD_EXC_CODE: u32 = 128; +pub const MPG_FLAGS_NONE: u32 = 0; +pub const MAX_OPTIONAL_kGUARD_EXC_CODE: u32 = 524288; +pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_DISP: u64 = 72057594037927936; +pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_PORT: u64 = 144115188075855872; +pub const MPG_FLAGS_STRICT_REPLY_INVALID_VOUCHER: u64 = 288230376151711744; +pub const MPG_FLAGS_STRICT_REPLY_NO_BANK_ATTR: u64 = 576460752303423488; +pub const MPG_FLAGS_STRICT_REPLY_MISMATCHED_PERSONA: u64 = 1152921504606846976; +pub const MPG_FLAGS_STRICT_REPLY_MASK: i64 = -72057594037927936; +pub const MPG_FLAGS_MOD_REFS_PINNED_DEALLOC: u64 = 72057594037927936; +pub const MPG_FLAGS_MOD_REFS_PINNED_DESTROY: u64 = 144115188075855872; +pub const MPG_FLAGS_MOD_REFS_PINNED_COPYIN: u64 = 288230376151711744; +pub const MPG_FLAGS_IMMOVABLE_PINNED: u64 = 72057594037927936; +pub const MPG_STRICT: u32 = 1; +pub const MPG_IMMOVABLE_RECEIVE: u32 = 2; +pub const KERN_SUCCESS: u32 = 0; +pub const KERN_INVALID_ADDRESS: u32 = 1; +pub const KERN_PROTECTION_FAILURE: u32 = 2; +pub const KERN_NO_SPACE: u32 = 3; +pub const KERN_INVALID_ARGUMENT: u32 = 4; +pub const KERN_FAILURE: u32 = 5; +pub const KERN_RESOURCE_SHORTAGE: u32 = 6; +pub const KERN_NOT_RECEIVER: u32 = 7; +pub const KERN_NO_ACCESS: u32 = 8; +pub const KERN_MEMORY_FAILURE: u32 = 9; +pub const KERN_MEMORY_ERROR: u32 = 10; +pub const KERN_ALREADY_IN_SET: u32 = 11; +pub const KERN_NOT_IN_SET: u32 = 12; +pub const KERN_NAME_EXISTS: u32 = 13; +pub const KERN_ABORTED: u32 = 14; +pub const KERN_INVALID_NAME: u32 = 15; +pub const KERN_INVALID_TASK: u32 = 16; +pub const KERN_INVALID_RIGHT: u32 = 17; +pub const KERN_INVALID_VALUE: u32 = 18; +pub const KERN_UREFS_OVERFLOW: u32 = 19; +pub const KERN_INVALID_CAPABILITY: u32 = 20; +pub const KERN_RIGHT_EXISTS: u32 = 21; +pub const KERN_INVALID_HOST: u32 = 22; +pub const KERN_MEMORY_PRESENT: u32 = 23; +pub const KERN_MEMORY_DATA_MOVED: u32 = 24; +pub const KERN_MEMORY_RESTART_COPY: u32 = 25; +pub const KERN_INVALID_PROCESSOR_SET: u32 = 26; +pub const KERN_POLICY_LIMIT: u32 = 27; +pub const KERN_INVALID_POLICY: u32 = 28; +pub const KERN_INVALID_OBJECT: u32 = 29; +pub const KERN_ALREADY_WAITING: u32 = 30; +pub const KERN_DEFAULT_SET: u32 = 31; +pub const KERN_EXCEPTION_PROTECTED: u32 = 32; +pub const KERN_INVALID_LEDGER: u32 = 33; +pub const KERN_INVALID_MEMORY_CONTROL: u32 = 34; +pub const KERN_INVALID_SECURITY: u32 = 35; +pub const KERN_NOT_DEPRESSED: u32 = 36; +pub const KERN_TERMINATED: u32 = 37; +pub const KERN_LOCK_SET_DESTROYED: u32 = 38; +pub const KERN_LOCK_UNSTABLE: u32 = 39; +pub const KERN_LOCK_OWNED: u32 = 40; +pub const KERN_LOCK_OWNED_SELF: u32 = 41; +pub const KERN_SEMAPHORE_DESTROYED: u32 = 42; +pub const KERN_RPC_SERVER_TERMINATED: u32 = 43; +pub const KERN_RPC_TERMINATE_ORPHAN: u32 = 44; +pub const KERN_RPC_CONTINUE_ORPHAN: u32 = 45; +pub const KERN_NOT_SUPPORTED: u32 = 46; +pub const KERN_NODE_DOWN: u32 = 47; +pub const KERN_NOT_WAITING: u32 = 48; +pub const KERN_OPERATION_TIMED_OUT: u32 = 49; +pub const KERN_CODESIGN_ERROR: u32 = 50; +pub const KERN_POLICY_STATIC: u32 = 51; +pub const KERN_INSUFFICIENT_BUFFER_SIZE: u32 = 52; +pub const KERN_DENIED: u32 = 53; +pub const KERN_MISSING_KC: u32 = 54; +pub const KERN_INVALID_KC: u32 = 55; +pub const KERN_NOT_FOUND: u32 = 56; +pub const KERN_RETURN_MAX: u32 = 256; +pub const MACH_MSGH_BITS_ZERO: u32 = 0; +pub const MACH_MSGH_BITS_REMOTE_MASK: u32 = 31; +pub const MACH_MSGH_BITS_LOCAL_MASK: u32 = 7936; +pub const MACH_MSGH_BITS_VOUCHER_MASK: u32 = 2031616; +pub const MACH_MSGH_BITS_PORTS_MASK: u32 = 2039583; +pub const MACH_MSGH_BITS_COMPLEX: u32 = 2147483648; +pub const MACH_MSGH_BITS_USER: u32 = 2149523231; +pub const MACH_MSGH_BITS_RAISEIMP: u32 = 536870912; +pub const MACH_MSGH_BITS_DENAP: u32 = 536870912; +pub const MACH_MSGH_BITS_IMPHOLDASRT: u32 = 268435456; +pub const MACH_MSGH_BITS_DENAPHOLDASRT: u32 = 268435456; +pub const MACH_MSGH_BITS_CIRCULAR: u32 = 268435456; +pub const MACH_MSGH_BITS_USED: u32 = 2954829599; +pub const MACH_MSG_TYPE_MOVE_RECEIVE: u32 = 16; +pub const MACH_MSG_TYPE_MOVE_SEND: u32 = 17; +pub const MACH_MSG_TYPE_MOVE_SEND_ONCE: u32 = 18; +pub const MACH_MSG_TYPE_COPY_SEND: u32 = 19; +pub const MACH_MSG_TYPE_MAKE_SEND: u32 = 20; +pub const MACH_MSG_TYPE_MAKE_SEND_ONCE: u32 = 21; +pub const MACH_MSG_TYPE_COPY_RECEIVE: u32 = 22; +pub const MACH_MSG_TYPE_DISPOSE_RECEIVE: u32 = 24; +pub const MACH_MSG_TYPE_DISPOSE_SEND: u32 = 25; +pub const MACH_MSG_TYPE_DISPOSE_SEND_ONCE: u32 = 26; +pub const MACH_MSG_PHYSICAL_COPY: u32 = 0; +pub const MACH_MSG_VIRTUAL_COPY: u32 = 1; +pub const MACH_MSG_ALLOCATE: u32 = 2; +pub const MACH_MSG_OVERWRITE: u32 = 3; +pub const MACH_MSG_GUARD_FLAGS_NONE: u32 = 0; +pub const MACH_MSG_GUARD_FLAGS_IMMOVABLE_RECEIVE: u32 = 1; +pub const MACH_MSG_GUARD_FLAGS_UNGUARDED_ON_SEND: u32 = 2; +pub const MACH_MSG_GUARD_FLAGS_MASK: u32 = 3; +pub const MACH_MSG_PORT_DESCRIPTOR: u32 = 0; +pub const MACH_MSG_OOL_DESCRIPTOR: u32 = 1; +pub const MACH_MSG_OOL_PORTS_DESCRIPTOR: u32 = 2; +pub const MACH_MSG_OOL_VOLATILE_DESCRIPTOR: u32 = 3; +pub const MACH_MSG_GUARDED_PORT_DESCRIPTOR: u32 = 4; +pub const MACH_MSG_DESCRIPTOR_MAX: u32 = 4; +pub const MACH_MSG_TRAILER_FORMAT_0: u32 = 0; +pub const MACH_MSGH_KIND_NORMAL: u32 = 0; +pub const MACH_MSGH_KIND_NOTIFICATION: u32 = 1; +pub const MACH_MSG_TYPE_PORT_NONE: u32 = 0; +pub const MACH_MSG_TYPE_PORT_NAME: u32 = 15; +pub const MACH_MSG_TYPE_PORT_RECEIVE: u32 = 16; +pub const MACH_MSG_TYPE_PORT_SEND: u32 = 17; +pub const MACH_MSG_TYPE_PORT_SEND_ONCE: u32 = 18; +pub const MACH_MSG_TYPE_LAST: u32 = 22; +pub const MACH_MSG_OPTION_NONE: u32 = 0; +pub const MACH_SEND_MSG: u32 = 1; +pub const MACH_RCV_MSG: u32 = 2; +pub const MACH_RCV_LARGE: u32 = 4; +pub const MACH_RCV_LARGE_IDENTITY: u32 = 8; +pub const MACH_SEND_TIMEOUT: u32 = 16; +pub const MACH_SEND_OVERRIDE: u32 = 32; +pub const MACH_SEND_INTERRUPT: u32 = 64; +pub const MACH_SEND_NOTIFY: u32 = 128; +pub const MACH_SEND_ALWAYS: u32 = 65536; +pub const MACH_SEND_FILTER_NONFATAL: u32 = 65536; +pub const MACH_SEND_TRAILER: u32 = 131072; +pub const MACH_SEND_NOIMPORTANCE: u32 = 262144; +pub const MACH_SEND_NODENAP: u32 = 262144; +pub const MACH_SEND_IMPORTANCE: u32 = 524288; +pub const MACH_SEND_SYNC_OVERRIDE: u32 = 1048576; +pub const MACH_SEND_PROPAGATE_QOS: u32 = 2097152; +pub const MACH_SEND_SYNC_USE_THRPRI: u32 = 2097152; +pub const MACH_SEND_KERNEL: u32 = 4194304; +pub const MACH_SEND_SYNC_BOOTSTRAP_CHECKIN: u32 = 8388608; +pub const MACH_RCV_TIMEOUT: u32 = 256; +pub const MACH_RCV_NOTIFY: u32 = 0; +pub const MACH_RCV_INTERRUPT: u32 = 1024; +pub const MACH_RCV_VOUCHER: u32 = 2048; +pub const MACH_RCV_OVERWRITE: u32 = 0; +pub const MACH_RCV_GUARDED_DESC: u32 = 4096; +pub const MACH_RCV_SYNC_WAIT: u32 = 16384; +pub const MACH_RCV_SYNC_PEEK: u32 = 32768; +pub const MACH_MSG_STRICT_REPLY: u32 = 512; +pub const MACH_RCV_TRAILER_NULL: u32 = 0; +pub const MACH_RCV_TRAILER_SEQNO: u32 = 1; +pub const MACH_RCV_TRAILER_SENDER: u32 = 2; +pub const MACH_RCV_TRAILER_AUDIT: u32 = 3; +pub const MACH_RCV_TRAILER_CTX: u32 = 4; +pub const MACH_RCV_TRAILER_AV: u32 = 7; +pub const MACH_RCV_TRAILER_LABELS: u32 = 8; +pub const MACH_RCV_TRAILER_MASK: u32 = 251658240; +pub const MACH_MSG_SUCCESS: u32 = 0; +pub const MACH_MSG_MASK: u32 = 15872; +pub const MACH_MSG_IPC_SPACE: u32 = 8192; +pub const MACH_MSG_VM_SPACE: u32 = 4096; +pub const MACH_MSG_IPC_KERNEL: u32 = 2048; +pub const MACH_MSG_VM_KERNEL: u32 = 1024; +pub const MACH_SEND_IN_PROGRESS: u32 = 268435457; +pub const MACH_SEND_INVALID_DATA: u32 = 268435458; +pub const MACH_SEND_INVALID_DEST: u32 = 268435459; +pub const MACH_SEND_TIMED_OUT: u32 = 268435460; +pub const MACH_SEND_INVALID_VOUCHER: u32 = 268435461; +pub const MACH_SEND_INTERRUPTED: u32 = 268435463; +pub const MACH_SEND_MSG_TOO_SMALL: u32 = 268435464; +pub const MACH_SEND_INVALID_REPLY: u32 = 268435465; +pub const MACH_SEND_INVALID_RIGHT: u32 = 268435466; +pub const MACH_SEND_INVALID_NOTIFY: u32 = 268435467; +pub const MACH_SEND_INVALID_MEMORY: u32 = 268435468; +pub const MACH_SEND_NO_BUFFER: u32 = 268435469; +pub const MACH_SEND_TOO_LARGE: u32 = 268435470; +pub const MACH_SEND_INVALID_TYPE: u32 = 268435471; +pub const MACH_SEND_INVALID_HEADER: u32 = 268435472; +pub const MACH_SEND_INVALID_TRAILER: u32 = 268435473; +pub const MACH_SEND_INVALID_CONTEXT: u32 = 268435474; +pub const MACH_SEND_INVALID_OPTIONS: u32 = 268435475; +pub const MACH_SEND_INVALID_RT_OOL_SIZE: u32 = 268435477; +pub const MACH_SEND_NO_GRANT_DEST: u32 = 268435478; +pub const MACH_SEND_MSG_FILTERED: u32 = 268435479; +pub const MACH_SEND_AUX_TOO_SMALL: u32 = 268435480; +pub const MACH_SEND_AUX_TOO_LARGE: u32 = 268435481; +pub const MACH_RCV_IN_PROGRESS: u32 = 268451841; +pub const MACH_RCV_INVALID_NAME: u32 = 268451842; +pub const MACH_RCV_TIMED_OUT: u32 = 268451843; +pub const MACH_RCV_TOO_LARGE: u32 = 268451844; +pub const MACH_RCV_INTERRUPTED: u32 = 268451845; +pub const MACH_RCV_PORT_CHANGED: u32 = 268451846; +pub const MACH_RCV_INVALID_NOTIFY: u32 = 268451847; +pub const MACH_RCV_INVALID_DATA: u32 = 268451848; +pub const MACH_RCV_PORT_DIED: u32 = 268451849; +pub const MACH_RCV_IN_SET: u32 = 268451850; +pub const MACH_RCV_HEADER_ERROR: u32 = 268451851; +pub const MACH_RCV_BODY_ERROR: u32 = 268451852; +pub const MACH_RCV_INVALID_TYPE: u32 = 268451853; +pub const MACH_RCV_SCATTER_SMALL: u32 = 268451854; +pub const MACH_RCV_INVALID_TRAILER: u32 = 268451855; +pub const MACH_RCV_IN_PROGRESS_TIMED: u32 = 268451857; +pub const MACH_RCV_INVALID_REPLY: u32 = 268451858; +pub const MACH_RCV_INVALID_ARGUMENTS: u32 = 268451859; +pub const VM_PAGE_QUERY_PAGE_PRESENT: u32 = 1; +pub const VM_PAGE_QUERY_PAGE_FICTITIOUS: u32 = 2; +pub const VM_PAGE_QUERY_PAGE_REF: u32 = 4; +pub const VM_PAGE_QUERY_PAGE_DIRTY: u32 = 8; +pub const VM_PAGE_QUERY_PAGE_PAGED_OUT: u32 = 16; +pub const VM_PAGE_QUERY_PAGE_COPIED: u32 = 32; +pub const VM_PAGE_QUERY_PAGE_SPECULATIVE: u32 = 64; +pub const VM_PAGE_QUERY_PAGE_EXTERNAL: u32 = 128; +pub const VM_PAGE_QUERY_PAGE_CS_VALIDATED: u32 = 256; +pub const VM_PAGE_QUERY_PAGE_CS_TAINTED: u32 = 512; +pub const VM_PAGE_QUERY_PAGE_CS_NX: u32 = 1024; +pub const VM_PAGE_QUERY_PAGE_REUSABLE: u32 = 2048; +pub const VM_FLAGS_FIXED: u32 = 0; +pub const VM_FLAGS_ANYWHERE: u32 = 1; +pub const VM_FLAGS_PURGABLE: u32 = 2; +pub const VM_FLAGS_4GB_CHUNK: u32 = 4; +pub const VM_FLAGS_RANDOM_ADDR: u32 = 8; +pub const VM_FLAGS_NO_CACHE: u32 = 16; +pub const VM_FLAGS_RESILIENT_CODESIGN: u32 = 32; +pub const VM_FLAGS_RESILIENT_MEDIA: u32 = 64; +pub const VM_FLAGS_PERMANENT: u32 = 128; +pub const VM_FLAGS_TPRO: u32 = 4096; +pub const VM_FLAGS_OVERWRITE: u32 = 16384; +pub const VM_FLAGS_SUPERPAGE_MASK: u32 = 458752; +pub const VM_FLAGS_RETURN_DATA_ADDR: u32 = 1048576; +pub const VM_FLAGS_RETURN_4K_DATA_ADDR: u32 = 8388608; +pub const VM_FLAGS_ALIAS_MASK: u32 = 4278190080; +pub const VM_FLAGS_USER_ALLOCATE: u32 = 4278669471; +pub const VM_FLAGS_USER_MAP: u32 = 4288106655; +pub const VM_FLAGS_USER_REMAP: u32 = 1065065; +pub const VM_FLAGS_SUPERPAGE_SHIFT: u32 = 16; +pub const SUPERPAGE_NONE: u32 = 0; +pub const SUPERPAGE_SIZE_ANY: u32 = 1; +pub const VM_FLAGS_SUPERPAGE_NONE: u32 = 0; +pub const VM_FLAGS_SUPERPAGE_SIZE_ANY: u32 = 65536; +pub const SUPERPAGE_SIZE_2MB: u32 = 2; +pub const VM_FLAGS_SUPERPAGE_SIZE_2MB: u32 = 131072; +pub const GUARD_TYPE_VIRT_MEMORY: u32 = 5; +pub const __VM_LEDGER_ACCOUNTING_POSTMARK: u32 = 2019032600; +pub const VM_LEDGER_TAG_NONE: u32 = 0; +pub const VM_LEDGER_TAG_DEFAULT: u32 = 1; +pub const VM_LEDGER_TAG_NETWORK: u32 = 2; +pub const VM_LEDGER_TAG_MEDIA: u32 = 3; +pub const VM_LEDGER_TAG_GRAPHICS: u32 = 4; +pub const VM_LEDGER_TAG_NEURAL: u32 = 5; +pub const VM_LEDGER_TAG_MAX: u32 = 5; +pub const VM_LEDGER_FLAG_NO_FOOTPRINT: u32 = 1; +pub const VM_LEDGER_FLAG_NO_FOOTPRINT_FOR_DEBUG: u32 = 2; +pub const VM_LEDGER_FLAGS: u32 = 3; +pub const VM_MEMORY_MALLOC: u32 = 1; +pub const VM_MEMORY_MALLOC_SMALL: u32 = 2; +pub const VM_MEMORY_MALLOC_LARGE: u32 = 3; +pub const VM_MEMORY_MALLOC_HUGE: u32 = 4; +pub const VM_MEMORY_SBRK: u32 = 5; +pub const VM_MEMORY_REALLOC: u32 = 6; +pub const VM_MEMORY_MALLOC_TINY: u32 = 7; +pub const VM_MEMORY_MALLOC_LARGE_REUSABLE: u32 = 8; +pub const VM_MEMORY_MALLOC_LARGE_REUSED: u32 = 9; +pub const VM_MEMORY_ANALYSIS_TOOL: u32 = 10; +pub const VM_MEMORY_MALLOC_NANO: u32 = 11; +pub const VM_MEMORY_MALLOC_MEDIUM: u32 = 12; +pub const VM_MEMORY_MALLOC_PGUARD: u32 = 13; +pub const VM_MEMORY_MALLOC_PROB_GUARD: u32 = 13; +pub const VM_MEMORY_MACH_MSG: u32 = 20; +pub const VM_MEMORY_IOKIT: u32 = 21; +pub const VM_MEMORY_STACK: u32 = 30; +pub const VM_MEMORY_GUARD: u32 = 31; +pub const VM_MEMORY_SHARED_PMAP: u32 = 32; +pub const VM_MEMORY_DYLIB: u32 = 33; +pub const VM_MEMORY_OBJC_DISPATCHERS: u32 = 34; +pub const VM_MEMORY_UNSHARED_PMAP: u32 = 35; +pub const VM_MEMORY_APPKIT: u32 = 40; +pub const VM_MEMORY_FOUNDATION: u32 = 41; +pub const VM_MEMORY_COREGRAPHICS: u32 = 42; +pub const VM_MEMORY_CORESERVICES: u32 = 43; +pub const VM_MEMORY_CARBON: u32 = 43; +pub const VM_MEMORY_JAVA: u32 = 44; +pub const VM_MEMORY_COREDATA: u32 = 45; +pub const VM_MEMORY_COREDATA_OBJECTIDS: u32 = 46; +pub const VM_MEMORY_ATS: u32 = 50; +pub const VM_MEMORY_LAYERKIT: u32 = 51; +pub const VM_MEMORY_CGIMAGE: u32 = 52; +pub const VM_MEMORY_TCMALLOC: u32 = 53; +pub const VM_MEMORY_COREGRAPHICS_DATA: u32 = 54; +pub const VM_MEMORY_COREGRAPHICS_SHARED: u32 = 55; +pub const VM_MEMORY_COREGRAPHICS_FRAMEBUFFERS: u32 = 56; +pub const VM_MEMORY_COREGRAPHICS_BACKINGSTORES: u32 = 57; +pub const VM_MEMORY_COREGRAPHICS_XALLOC: u32 = 58; +pub const VM_MEMORY_COREGRAPHICS_MISC: u32 = 42; +pub const VM_MEMORY_DYLD: u32 = 60; +pub const VM_MEMORY_DYLD_MALLOC: u32 = 61; +pub const VM_MEMORY_SQLITE: u32 = 62; +pub const VM_MEMORY_JAVASCRIPT_CORE: u32 = 63; +pub const VM_MEMORY_WEBASSEMBLY: u32 = 63; +pub const VM_MEMORY_JAVASCRIPT_JIT_EXECUTABLE_ALLOCATOR: u32 = 64; +pub const VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE: u32 = 65; +pub const VM_MEMORY_GLSL: u32 = 66; +pub const VM_MEMORY_OPENCL: u32 = 67; +pub const VM_MEMORY_COREIMAGE: u32 = 68; +pub const VM_MEMORY_WEBCORE_PURGEABLE_BUFFERS: u32 = 69; +pub const VM_MEMORY_IMAGEIO: u32 = 70; +pub const VM_MEMORY_COREPROFILE: u32 = 71; +pub const VM_MEMORY_ASSETSD: u32 = 72; +pub const VM_MEMORY_OS_ALLOC_ONCE: u32 = 73; +pub const VM_MEMORY_LIBDISPATCH: u32 = 74; +pub const VM_MEMORY_ACCELERATE: u32 = 75; +pub const VM_MEMORY_COREUI: u32 = 76; +pub const VM_MEMORY_COREUIFILE: u32 = 77; +pub const VM_MEMORY_GENEALOGY: u32 = 78; +pub const VM_MEMORY_RAWCAMERA: u32 = 79; +pub const VM_MEMORY_CORPSEINFO: u32 = 80; +pub const VM_MEMORY_ASL: u32 = 81; +pub const VM_MEMORY_SWIFT_RUNTIME: u32 = 82; +pub const VM_MEMORY_SWIFT_METADATA: u32 = 83; +pub const VM_MEMORY_DHMM: u32 = 84; +pub const VM_MEMORY_SCENEKIT: u32 = 86; +pub const VM_MEMORY_SKYWALK: u32 = 87; +pub const VM_MEMORY_IOSURFACE: u32 = 88; +pub const VM_MEMORY_LIBNETWORK: u32 = 89; +pub const VM_MEMORY_AUDIO: u32 = 90; +pub const VM_MEMORY_VIDEOBITSTREAM: u32 = 91; +pub const VM_MEMORY_CM_XPC: u32 = 92; +pub const VM_MEMORY_CM_RPC: u32 = 93; +pub const VM_MEMORY_CM_MEMORYPOOL: u32 = 94; +pub const VM_MEMORY_CM_READCACHE: u32 = 95; +pub const VM_MEMORY_CM_CRABS: u32 = 96; +pub const VM_MEMORY_QUICKLOOK_THUMBNAILS: u32 = 97; +pub const VM_MEMORY_ACCOUNTS: u32 = 98; +pub const VM_MEMORY_SANITIZER: u32 = 99; +pub const VM_MEMORY_IOACCELERATOR: u32 = 100; +pub const VM_MEMORY_CM_REGWARP: u32 = 101; +pub const VM_MEMORY_EAR_DECODER: u32 = 102; +pub const VM_MEMORY_COREUI_CACHED_IMAGE_DATA: u32 = 103; +pub const VM_MEMORY_COLORSYNC: u32 = 104; +pub const VM_MEMORY_BTINFO: u32 = 105; +pub const VM_MEMORY_ROSETTA: u32 = 230; +pub const VM_MEMORY_ROSETTA_THREAD_CONTEXT: u32 = 231; +pub const VM_MEMORY_ROSETTA_INDIRECT_BRANCH_MAP: u32 = 232; +pub const VM_MEMORY_ROSETTA_RETURN_STACK: u32 = 233; +pub const VM_MEMORY_ROSETTA_EXECUTABLE_HEAP: u32 = 234; +pub const VM_MEMORY_ROSETTA_USER_LDT: u32 = 235; +pub const VM_MEMORY_ROSETTA_ARENA: u32 = 236; +pub const VM_MEMORY_ROSETTA_10: u32 = 239; +pub const VM_MEMORY_APPLICATION_SPECIFIC_1: u32 = 240; +pub const VM_MEMORY_APPLICATION_SPECIFIC_16: u32 = 255; +pub const VM_MEMORY_COUNT: u32 = 256; +pub const CPU_STATE_MAX: u32 = 4; +pub const CPU_STATE_USER: u32 = 0; +pub const CPU_STATE_SYSTEM: u32 = 1; +pub const CPU_STATE_IDLE: u32 = 2; +pub const CPU_STATE_NICE: u32 = 3; +pub const CPU_ARCH_MASK: u32 = 4278190080; +pub const CPU_ARCH_ABI64: u32 = 16777216; +pub const CPU_ARCH_ABI64_32: u32 = 33554432; +pub const CPU_SUBTYPE_MASK: u32 = 4278190080; +pub const CPU_SUBTYPE_LIB64: u32 = 2147483648; +pub const CPU_SUBTYPE_PTRAUTH_ABI: u32 = 2147483648; +pub const CPU_SUBTYPE_INTEL_FAMILY_MAX: u32 = 15; +pub const CPU_SUBTYPE_INTEL_MODEL_ALL: u32 = 0; +pub const CPU_SUBTYPE_ARM64_PTR_AUTH_MASK: u32 = 251658240; +pub const CPUFAMILY_UNKNOWN: u32 = 0; +pub const CPUFAMILY_POWERPC_G3: u32 = 3471054153; +pub const CPUFAMILY_POWERPC_G4: u32 = 2009171118; +pub const CPUFAMILY_POWERPC_G5: u32 = 3983988906; +pub const CPUFAMILY_INTEL_6_13: u32 = 2855483691; +pub const CPUFAMILY_INTEL_PENRYN: u32 = 2028621756; +pub const CPUFAMILY_INTEL_NEHALEM: u32 = 1801080018; +pub const CPUFAMILY_INTEL_WESTMERE: u32 = 1463508716; +pub const CPUFAMILY_INTEL_SANDYBRIDGE: u32 = 1418770316; +pub const CPUFAMILY_INTEL_IVYBRIDGE: u32 = 526772277; +pub const CPUFAMILY_INTEL_HASWELL: u32 = 280134364; +pub const CPUFAMILY_INTEL_BROADWELL: u32 = 1479463068; +pub const CPUFAMILY_INTEL_SKYLAKE: u32 = 939270559; +pub const CPUFAMILY_INTEL_KABYLAKE: u32 = 260141638; +pub const CPUFAMILY_INTEL_ICELAKE: u32 = 943936839; +pub const CPUFAMILY_INTEL_COMETLAKE: u32 = 486055998; +pub const CPUFAMILY_ARM_9: u32 = 3878847406; +pub const CPUFAMILY_ARM_11: u32 = 2415272152; +pub const CPUFAMILY_ARM_XSCALE: u32 = 1404044789; +pub const CPUFAMILY_ARM_12: u32 = 3172666089; +pub const CPUFAMILY_ARM_13: u32 = 214503012; +pub const CPUFAMILY_ARM_14: u32 = 2517073649; +pub const CPUFAMILY_ARM_15: u32 = 2823887818; +pub const CPUFAMILY_ARM_SWIFT: u32 = 506291073; +pub const CPUFAMILY_ARM_CYCLONE: u32 = 933271106; +pub const CPUFAMILY_ARM_TYPHOON: u32 = 747742334; +pub const CPUFAMILY_ARM_TWISTER: u32 = 2465937352; +pub const CPUFAMILY_ARM_HURRICANE: u32 = 1741614739; +pub const CPUFAMILY_ARM_MONSOON_MISTRAL: u32 = 3894312694; +pub const CPUFAMILY_ARM_VORTEX_TEMPEST: u32 = 131287967; +pub const CPUFAMILY_ARM_LIGHTNING_THUNDER: u32 = 1176831186; +pub const CPUFAMILY_ARM_FIRESTORM_ICESTORM: u32 = 458787763; +pub const CPUFAMILY_ARM_BLIZZARD_AVALANCHE: u32 = 3660830781; +pub const CPUFAMILY_ARM_EVEREST_SAWTOOTH: u32 = 2271604202; +pub const CPUSUBFAMILY_UNKNOWN: u32 = 0; +pub const CPUSUBFAMILY_ARM_HP: u32 = 1; +pub const CPUSUBFAMILY_ARM_HG: u32 = 2; +pub const CPUSUBFAMILY_ARM_M: u32 = 3; +pub const CPUSUBFAMILY_ARM_HS: u32 = 4; +pub const CPUSUBFAMILY_ARM_HC_HD: u32 = 5; +pub const CPUFAMILY_INTEL_6_23: u32 = 2028621756; +pub const CPUFAMILY_INTEL_6_26: u32 = 1801080018; +pub const TIME_MICROS_MAX: u32 = 1000000; +pub const HOST_INFO_MAX: u32 = 1024; +pub const KERNEL_VERSION_MAX: u32 = 512; +pub const KERNEL_BOOT_INFO_MAX: u32 = 4096; +pub const HOST_BASIC_INFO: u32 = 1; +pub const HOST_SCHED_INFO: u32 = 3; +pub const HOST_RESOURCE_SIZES: u32 = 4; +pub const HOST_PRIORITY_INFO: u32 = 5; +pub const HOST_SEMAPHORE_TRAPS: u32 = 7; +pub const HOST_MACH_MSG_TRAP: u32 = 8; +pub const HOST_VM_PURGABLE: u32 = 9; +pub const HOST_DEBUG_INFO_INTERNAL: u32 = 10; +pub const HOST_CAN_HAS_DEBUGGER: u32 = 11; +pub const HOST_PREFERRED_USER_ARCH: u32 = 12; +pub const HOST_LOAD_INFO: u32 = 1; +pub const HOST_VM_INFO: u32 = 2; +pub const HOST_CPU_LOAD_INFO: u32 = 3; +pub const HOST_VM_INFO64: u32 = 4; +pub const HOST_EXTMOD_INFO64: u32 = 5; +pub const HOST_EXPIRED_TASK_INFO: u32 = 6; +pub const HOST_NOTIFY_CALENDAR_CHANGE: u32 = 0; +pub const HOST_NOTIFY_CALENDAR_SET: u32 = 1; +pub const HOST_NOTIFY_TYPE_MAX: u32 = 1; +pub const HOST_CALENDAR_CHANGED_REPLYID: u32 = 950; +pub const HOST_CALENDAR_SET_REPLYID: u32 = 951; +pub const HOST_SECURITY_PORT: u32 = 0; +pub const HOST_MIN_SPECIAL_PORT: u32 = 0; +pub const HOST_PORT: u32 = 1; +pub const HOST_PRIV_PORT: u32 = 2; +pub const HOST_IO_MAIN_PORT: u32 = 3; +pub const HOST_MAX_SPECIAL_KERNEL_PORT: u32 = 7; +pub const HOST_LAST_SPECIAL_KERNEL_PORT: u32 = 3; +pub const HOST_DYNAMIC_PAGER_PORT: u32 = 8; +pub const HOST_AUDIT_CONTROL_PORT: u32 = 9; +pub const HOST_USER_NOTIFICATION_PORT: u32 = 10; +pub const HOST_AUTOMOUNTD_PORT: u32 = 11; +pub const HOST_LOCKD_PORT: u32 = 12; +pub const HOST_KTRACE_BACKGROUND_PORT: u32 = 13; +pub const HOST_SEATBELT_PORT: u32 = 14; +pub const HOST_KEXTD_PORT: u32 = 15; +pub const HOST_LAUNCHCTL_PORT: u32 = 16; +pub const HOST_UNFREED_PORT: u32 = 17; +pub const HOST_AMFID_PORT: u32 = 18; +pub const HOST_GSSD_PORT: u32 = 19; +pub const HOST_TELEMETRY_PORT: u32 = 20; +pub const HOST_ATM_NOTIFICATION_PORT: u32 = 21; +pub const HOST_COALITION_PORT: u32 = 22; +pub const HOST_SYSDIAGNOSE_PORT: u32 = 23; +pub const HOST_XPC_EXCEPTION_PORT: u32 = 24; +pub const HOST_CONTAINERD_PORT: u32 = 25; +pub const HOST_NODE_PORT: u32 = 26; +pub const HOST_RESOURCE_NOTIFY_PORT: u32 = 27; +pub const HOST_CLOSURED_PORT: u32 = 28; +pub const HOST_SYSPOLICYD_PORT: u32 = 29; +pub const HOST_FILECOORDINATIOND_PORT: u32 = 30; +pub const HOST_FAIRPLAYD_PORT: u32 = 31; +pub const HOST_IOCOMPRESSIONSTATS_PORT: u32 = 32; +pub const HOST_MEMORY_ERROR_PORT: u32 = 33; +pub const HOST_MAX_SPECIAL_PORT: u32 = 33; +pub const HOST_CHUD_PORT: u32 = 16; +pub const HOST_LOCAL_NODE: i32 = -1; +pub const PPNUM_MAX: u32 = 4294967295; +pub const MEMORY_OBJECT_COPY_NONE: u32 = 0; +pub const MEMORY_OBJECT_COPY_CALL: u32 = 1; +pub const MEMORY_OBJECT_COPY_DELAY: u32 = 2; +pub const MEMORY_OBJECT_COPY_TEMPORARY: u32 = 3; +pub const MEMORY_OBJECT_COPY_SYMMETRIC: u32 = 4; +pub const MEMORY_OBJECT_COPY_INVALID: u32 = 5; +pub const MEMORY_OBJECT_RETURN_NONE: u32 = 0; +pub const MEMORY_OBJECT_RETURN_DIRTY: u32 = 1; +pub const MEMORY_OBJECT_RETURN_ALL: u32 = 2; +pub const MEMORY_OBJECT_RETURN_ANYTHING: u32 = 3; +pub const MEMORY_OBJECT_DATA_FLUSH: u32 = 1; +pub const MEMORY_OBJECT_DATA_NO_CHANGE: u32 = 2; +pub const MEMORY_OBJECT_DATA_PURGE: u32 = 4; +pub const MEMORY_OBJECT_COPY_SYNC: u32 = 8; +pub const MEMORY_OBJECT_DATA_SYNC: u32 = 16; +pub const MEMORY_OBJECT_IO_SYNC: u32 = 32; +pub const MEMORY_OBJECT_DATA_FLUSH_ALL: u32 = 64; +pub const MEMORY_OBJECT_INFO_MAX: u32 = 1024; +pub const MEMORY_OBJECT_PERFORMANCE_INFO: u32 = 11; +pub const MEMORY_OBJECT_ATTRIBUTE_INFO: u32 = 14; +pub const MEMORY_OBJECT_BEHAVIOR_INFO: u32 = 15; +pub const MEMORY_OBJECT_TERMINATE_IDLE: u32 = 1; +pub const MEMORY_OBJECT_RESPECT_CACHE: u32 = 2; +pub const MEMORY_OBJECT_RELEASE_NO_OP: u32 = 4; +pub const MAP_MEM_NOOP: u32 = 0; +pub const MAP_MEM_COPYBACK: u32 = 1; +pub const MAP_MEM_IO: u32 = 2; +pub const MAP_MEM_WTHRU: u32 = 3; +pub const MAP_MEM_WCOMB: u32 = 4; +pub const MAP_MEM_INNERWBACK: u32 = 5; +pub const MAP_MEM_POSTED: u32 = 6; +pub const MAP_MEM_RT: u32 = 7; +pub const MAP_MEM_POSTED_REORDERED: u32 = 8; +pub const MAP_MEM_POSTED_COMBINED_REORDERED: u32 = 9; +pub const MAP_MEM_LEDGER_TAGGED: u32 = 8192; +pub const MAP_MEM_PURGABLE_KERNEL_ONLY: u32 = 16384; +pub const MAP_MEM_GRAB_SECLUDED: u32 = 32768; +pub const MAP_MEM_ONLY: u32 = 65536; +pub const MAP_MEM_NAMED_CREATE: u32 = 131072; +pub const MAP_MEM_PURGABLE: u32 = 262144; +pub const MAP_MEM_NAMED_REUSE: u32 = 524288; +pub const MAP_MEM_USE_DATA_ADDR: u32 = 1048576; +pub const MAP_MEM_VM_COPY: u32 = 2097152; +pub const MAP_MEM_VM_SHARE: u32 = 4194304; +pub const MAP_MEM_4K_DATA_ADDR: u32 = 8388608; +pub const MAP_MEM_FLAGS_MASK: u32 = 16776960; +pub const MAP_MEM_FLAGS_USER: u32 = 16769024; +pub const MAP_MEM_FLAGS_ALL: u32 = 16769024; +pub const EXC_TYPES_COUNT: u32 = 14; +pub const EXC_MASK_MACHINE: u32 = 0; +pub const EXCEPTION_CODE_MAX: u32 = 2; +pub const EXC_ARM_UNDEFINED: u32 = 1; +pub const EXC_ARM_FP_UNDEFINED: u32 = 0; +pub const EXC_ARM_FP_IO: u32 = 1; +pub const EXC_ARM_FP_DZ: u32 = 2; +pub const EXC_ARM_FP_OF: u32 = 3; +pub const EXC_ARM_FP_UF: u32 = 4; +pub const EXC_ARM_FP_IX: u32 = 5; +pub const EXC_ARM_FP_ID: u32 = 6; +pub const EXC_ARM_DA_ALIGN: u32 = 257; +pub const EXC_ARM_DA_DEBUG: u32 = 258; +pub const EXC_ARM_SP_ALIGN: u32 = 259; +pub const EXC_ARM_SWP: u32 = 260; +pub const EXC_ARM_PAC_FAIL: u32 = 261; +pub const EXC_ARM_BREAKPOINT: u32 = 1; +pub const EXC_BAD_ACCESS: u32 = 1; +pub const EXC_BAD_INSTRUCTION: u32 = 2; +pub const EXC_ARITHMETIC: u32 = 3; +pub const EXC_EMULATION: u32 = 4; +pub const EXC_SOFTWARE: u32 = 5; +pub const EXC_BREAKPOINT: u32 = 6; +pub const EXC_SYSCALL: u32 = 7; +pub const EXC_MACH_SYSCALL: u32 = 8; +pub const EXC_RPC_ALERT: u32 = 9; +pub const EXC_CRASH: u32 = 10; +pub const EXC_RESOURCE: u32 = 11; +pub const EXC_GUARD: u32 = 12; +pub const EXC_CORPSE_NOTIFY: u32 = 13; +pub const EXCEPTION_DEFAULT: u32 = 1; +pub const EXCEPTION_STATE: u32 = 2; +pub const EXCEPTION_STATE_IDENTITY: u32 = 3; +pub const EXCEPTION_IDENTITY_PROTECTED: u32 = 4; +pub const MACH_EXCEPTION_BACKTRACE_PREFERRED: u32 = 536870912; +pub const MACH_EXCEPTION_ERRORS: u32 = 1073741824; +pub const MACH_EXCEPTION_CODES: u32 = 2147483648; +pub const MACH_EXCEPTION_MASK: u32 = 3758096384; +pub const EXC_MASK_BAD_ACCESS: u32 = 2; +pub const EXC_MASK_BAD_INSTRUCTION: u32 = 4; +pub const EXC_MASK_ARITHMETIC: u32 = 8; +pub const EXC_MASK_EMULATION: u32 = 16; +pub const EXC_MASK_SOFTWARE: u32 = 32; +pub const EXC_MASK_BREAKPOINT: u32 = 64; +pub const EXC_MASK_SYSCALL: u32 = 128; +pub const EXC_MASK_MACH_SYSCALL: u32 = 256; +pub const EXC_MASK_RPC_ALERT: u32 = 512; +pub const EXC_MASK_CRASH: u32 = 1024; +pub const EXC_MASK_RESOURCE: u32 = 2048; +pub const EXC_MASK_GUARD: u32 = 4096; +pub const EXC_MASK_CORPSE_NOTIFY: u32 = 8192; +pub const EXC_MASK_ALL: u32 = 7166; +pub const FIRST_EXCEPTION: u32 = 1; +pub const EXC_SOFT_SIGNAL: u32 = 65539; +pub const EXC_MACF_MIN: u32 = 131072; +pub const EXC_MACF_MAX: u32 = 196607; +pub const ARM_THREAD_STATE_MAX: u32 = 1296; +pub const THREAD_STATE_MAX: u32 = 1296; +pub const ARM_THREAD_STATE: u32 = 1; +pub const ARM_UNIFIED_THREAD_STATE: u32 = 1; +pub const ARM_VFP_STATE: u32 = 2; +pub const ARM_EXCEPTION_STATE: u32 = 3; +pub const ARM_DEBUG_STATE: u32 = 4; +pub const THREAD_STATE_NONE: u32 = 5; +pub const ARM_THREAD_STATE64: u32 = 6; +pub const ARM_EXCEPTION_STATE64: u32 = 7; +pub const ARM_THREAD_STATE32: u32 = 9; +pub const ARM_DEBUG_STATE32: u32 = 14; +pub const ARM_DEBUG_STATE64: u32 = 15; +pub const ARM_NEON_STATE: u32 = 16; +pub const ARM_NEON_STATE64: u32 = 17; +pub const ARM_CPMU_STATE64: u32 = 18; +pub const ARM_PAGEIN_STATE: u32 = 27; +pub const MACHINE_THREAD_STATE: u32 = 1; +pub const THREAD_MACHINE_STATE_MAX: u32 = 1296; +pub const THREAD_STATE_FLAVOR_LIST: u32 = 0; +pub const THREAD_STATE_FLAVOR_LIST_NEW: u32 = 128; +pub const THREAD_STATE_FLAVOR_LIST_10_9: u32 = 129; +pub const THREAD_STATE_FLAVOR_LIST_10_13: u32 = 130; +pub const THREAD_STATE_FLAVOR_LIST_10_15: u32 = 131; +pub const THREAD_CONVERT_THREAD_STATE_TO_SELF: u32 = 1; +pub const THREAD_CONVERT_THREAD_STATE_FROM_SELF: u32 = 2; +pub const MACH_VOUCHER_ATTR_MAX_RAW_RECIPE_ARRAY_SIZE: u32 = 5120; +pub const MACH_VOUCHER_TRAP_STACK_LIMIT: u32 = 256; +pub const MACH_VOUCHER_IMPORTANCE_ATTR_ADD_EXTERNAL: u32 = 1; +pub const MACH_VOUCHER_IMPORTANCE_ATTR_DROP_EXTERNAL: u32 = 2; +pub const MACH_ACTIVITY_ID_COUNT_MAX: u32 = 16; +pub const PROCESSOR_CPU_STAT: u32 = 268435459; +pub const PROCESSOR_CPU_STAT64: u32 = 268435460; +pub const PROCESSOR_INFO_MAX: u32 = 1024; +pub const PROCESSOR_SET_INFO_MAX: u32 = 1024; +pub const PROCESSOR_BASIC_INFO: u32 = 1; +pub const PROCESSOR_CPU_LOAD_INFO: u32 = 2; +pub const PROCESSOR_PM_REGS_INFO: u32 = 268435457; +pub const PROCESSOR_TEMPERATURE: u32 = 268435458; +pub const LOAD_SCALE: u32 = 1000; +pub const PROCESSOR_SET_BASIC_INFO: u32 = 5; +pub const PROCESSOR_SET_LOAD_INFO: u32 = 4; +pub const POLICY_NULL: u32 = 0; +pub const POLICY_TIMESHARE: u32 = 1; +pub const POLICY_RR: u32 = 2; +pub const POLICY_FIFO: u32 = 4; +pub const POLICYCLASS_FIXEDPRI: u32 = 6; +pub const TASK_INFO_MAX: u32 = 1024; +pub const TASK_BASIC_INFO_32: u32 = 4; +pub const TASK_BASIC2_INFO_32: u32 = 6; +pub const TASK_EVENTS_INFO: u32 = 2; +pub const TASK_THREAD_TIMES_INFO: u32 = 3; +pub const TASK_ABSOLUTETIME_INFO: u32 = 1; +pub const TASK_KERNELMEMORY_INFO: u32 = 7; +pub const TASK_SECURITY_TOKEN: u32 = 13; +pub const TASK_AUDIT_TOKEN: u32 = 15; +pub const TASK_AFFINITY_TAG_INFO: u32 = 16; +pub const TASK_DYLD_INFO: u32 = 17; +pub const TASK_DYLD_ALL_IMAGE_INFO_32: u32 = 0; +pub const TASK_DYLD_ALL_IMAGE_INFO_64: u32 = 1; +pub const TASK_BASIC_INFO_64_2: u32 = 18; +pub const TASK_EXTMOD_INFO: u32 = 19; +pub const MACH_TASK_BASIC_INFO: u32 = 20; +pub const TASK_POWER_INFO: u32 = 21; +pub const TASK_VM_INFO: u32 = 22; +pub const TASK_VM_INFO_PURGEABLE: u32 = 23; +pub const TASK_TRACE_MEMORY_INFO: u32 = 24; +pub const TASK_WAIT_STATE_INFO: u32 = 25; +pub const TASK_POWER_INFO_V2: u32 = 26; +pub const TASK_VM_INFO_PURGEABLE_ACCOUNT: u32 = 27; +pub const TASK_FLAGS_INFO: u32 = 28; +pub const TF_LP64: u32 = 1; +pub const TF_64B_DATA: u32 = 2; +pub const TASK_DEBUG_INFO_INTERNAL: u32 = 29; +pub const TASK_EXC_GUARD_NONE: u32 = 0; +pub const TASK_EXC_GUARD_VM_DELIVER: u32 = 1; +pub const TASK_EXC_GUARD_VM_ONCE: u32 = 2; +pub const TASK_EXC_GUARD_VM_CORPSE: u32 = 4; +pub const TASK_EXC_GUARD_VM_FATAL: u32 = 8; +pub const TASK_EXC_GUARD_VM_ALL: u32 = 15; +pub const TASK_EXC_GUARD_MP_DELIVER: u32 = 16; +pub const TASK_EXC_GUARD_MP_ONCE: u32 = 32; +pub const TASK_EXC_GUARD_MP_CORPSE: u32 = 64; +pub const TASK_EXC_GUARD_MP_FATAL: u32 = 128; +pub const TASK_EXC_GUARD_MP_ALL: u32 = 240; +pub const TASK_EXC_GUARD_ALL: u32 = 255; +pub const TASK_CORPSE_FORKING_DISABLED_MEM_DIAG: u32 = 1; +pub const TASK_SCHED_TIMESHARE_INFO: u32 = 10; +pub const TASK_SCHED_RR_INFO: u32 = 11; +pub const TASK_SCHED_FIFO_INFO: u32 = 12; +pub const TASK_SCHED_INFO: u32 = 14; +pub const TASK_CATEGORY_POLICY: u32 = 1; +pub const TASK_SUPPRESSION_POLICY: u32 = 3; +pub const TASK_POLICY_STATE: u32 = 4; +pub const TASK_BASE_QOS_POLICY: u32 = 8; +pub const TASK_OVERRIDE_QOS_POLICY: u32 = 9; +pub const TASK_BASE_LATENCY_QOS_POLICY: u32 = 10; +pub const TASK_BASE_THROUGHPUT_QOS_POLICY: u32 = 11; +pub const PROC_FLAG_DARWINBG: u32 = 32768; +pub const PROC_FLAG_EXT_DARWINBG: u32 = 65536; +pub const PROC_FLAG_IOS_APPLEDAEMON: u32 = 131072; +pub const PROC_FLAG_IOS_IMPPROMOTION: u32 = 524288; +pub const PROC_FLAG_ADAPTIVE: u32 = 1048576; +pub const PROC_FLAG_ADAPTIVE_IMPORTANT: u32 = 2097152; +pub const PROC_FLAG_IMPORTANCE_DONOR: u32 = 4194304; +pub const PROC_FLAG_SUPPRESSED: u32 = 8388608; +pub const PROC_FLAG_APPLICATION: u32 = 16777216; +pub const PROC_FLAG_IOS_APPLICATION: u32 = 16777216; +pub const TASK_KERNEL_PORT: u32 = 1; +pub const TASK_HOST_PORT: u32 = 2; +pub const TASK_NAME_PORT: u32 = 3; +pub const TASK_BOOTSTRAP_PORT: u32 = 4; +pub const TASK_INSPECT_PORT: u32 = 5; +pub const TASK_READ_PORT: u32 = 6; +pub const TASK_ACCESS_PORT: u32 = 9; +pub const TASK_DEBUG_CONTROL_PORT: u32 = 10; +pub const TASK_RESOURCE_NOTIFY_PORT: u32 = 11; +pub const TASK_MAX_SPECIAL_PORT: u32 = 11; +pub const THREAD_INFO_MAX: u32 = 32; +pub const THREAD_BASIC_INFO: u32 = 3; +pub const THREAD_IDENTIFIER_INFO: u32 = 4; +pub const TH_USAGE_SCALE: u32 = 1000; +pub const TH_STATE_RUNNING: u32 = 1; +pub const TH_STATE_STOPPED: u32 = 2; +pub const TH_STATE_WAITING: u32 = 3; +pub const TH_STATE_UNINTERRUPTIBLE: u32 = 4; +pub const TH_STATE_HALTED: u32 = 5; +pub const TH_FLAGS_SWAPPED: u32 = 1; +pub const TH_FLAGS_IDLE: u32 = 2; +pub const TH_FLAGS_GLOBAL_FORCED_IDLE: u32 = 4; +pub const THREAD_EXTENDED_INFO: u32 = 5; +pub const MAXTHREADNAMESIZE: u32 = 64; +pub const THREAD_DEBUG_INFO_INTERNAL: u32 = 6; +pub const IO_NUM_PRIORITIES: u32 = 4; +pub const THREAD_SCHED_TIMESHARE_INFO: u32 = 10; +pub const THREAD_SCHED_RR_INFO: u32 = 11; +pub const THREAD_SCHED_FIFO_INFO: u32 = 12; +pub const THREAD_STANDARD_POLICY: u32 = 1; +pub const THREAD_STANDARD_POLICY_COUNT: u32 = 0; +pub const THREAD_EXTENDED_POLICY: u32 = 1; +pub const THREAD_TIME_CONSTRAINT_POLICY: u32 = 2; +pub const THREAD_PRECEDENCE_POLICY: u32 = 3; +pub const THREAD_AFFINITY_POLICY: u32 = 4; +pub const THREAD_AFFINITY_TAG_NULL: u32 = 0; +pub const THREAD_BACKGROUND_POLICY: u32 = 5; +pub const THREAD_BACKGROUND_POLICY_DARWIN_BG: u32 = 4096; +pub const THREAD_LATENCY_QOS_POLICY: u32 = 7; +pub const THREAD_THROUGHPUT_QOS_POLICY: u32 = 8; +pub const THREAD_KERNEL_PORT: u32 = 1; +pub const THREAD_INSPECT_PORT: u32 = 2; +pub const THREAD_READ_PORT: u32 = 3; +pub const THREAD_MAX_SPECIAL_PORT: u32 = 3; +pub const SYSTEM_CLOCK: u32 = 0; +pub const CALENDAR_CLOCK: u32 = 1; +pub const REALTIME_CLOCK: u32 = 0; +pub const CLOCK_GET_TIME_RES: u32 = 1; +pub const CLOCK_ALARM_CURRES: u32 = 3; +pub const CLOCK_ALARM_MINRES: u32 = 4; +pub const CLOCK_ALARM_MAXRES: u32 = 5; +pub const NSEC_PER_USEC: u32 = 1000; +pub const USEC_PER_SEC: u32 = 1000000; +pub const NSEC_PER_SEC: u32 = 1000000000; +pub const NSEC_PER_MSEC: u32 = 1000000; +pub const ALRMTYPE: u32 = 255; +pub const TIME_ABSOLUTE: u32 = 0; +pub const TIME_RELATIVE: u32 = 1; +pub const MATTR_CACHE: u32 = 1; +pub const MATTR_MIGRATE: u32 = 2; +pub const MATTR_REPLICATE: u32 = 4; +pub const MATTR_VAL_OFF: u32 = 0; +pub const MATTR_VAL_ON: u32 = 1; +pub const MATTR_VAL_GET: u32 = 2; +pub const MATTR_VAL_CACHE_FLUSH: u32 = 6; +pub const MATTR_VAL_DCACHE_FLUSH: u32 = 7; +pub const MATTR_VAL_ICACHE_FLUSH: u32 = 8; +pub const MATTR_VAL_CACHE_SYNC: u32 = 9; +pub const MATTR_VAL_GET_INFO: u32 = 10; +pub const VM_PURGABLE_NO_AGING_SHIFT: u32 = 16; +pub const VM_PURGABLE_NO_AGING_MASK: u32 = 65536; +pub const VM_PURGABLE_NO_AGING: u32 = 65536; +pub const VM_PURGABLE_DEBUG_SHIFT: u32 = 12; +pub const VM_PURGABLE_DEBUG_MASK: u32 = 12288; +pub const VM_PURGABLE_DEBUG_EMPTY: u32 = 4096; +pub const VM_PURGABLE_DEBUG_FAULT: u32 = 8192; +pub const VM_VOLATILE_GROUP_SHIFT: u32 = 8; +pub const VM_VOLATILE_GROUP_MASK: u32 = 1792; +pub const VM_VOLATILE_GROUP_0: u32 = 0; +pub const VM_VOLATILE_GROUP_1: u32 = 256; +pub const VM_VOLATILE_GROUP_2: u32 = 512; +pub const VM_VOLATILE_GROUP_3: u32 = 768; +pub const VM_VOLATILE_GROUP_4: u32 = 1024; +pub const VM_VOLATILE_GROUP_5: u32 = 1280; +pub const VM_VOLATILE_GROUP_6: u32 = 1536; +pub const VM_VOLATILE_GROUP_7: u32 = 1792; +pub const VM_PURGABLE_BEHAVIOR_SHIFT: u32 = 6; +pub const VM_PURGABLE_BEHAVIOR_MASK: u32 = 64; +pub const VM_PURGABLE_BEHAVIOR_FIFO: u32 = 0; +pub const VM_PURGABLE_BEHAVIOR_LIFO: u32 = 64; +pub const VM_PURGABLE_ORDERING_SHIFT: u32 = 5; +pub const VM_PURGABLE_ORDERING_MASK: u32 = 32; +pub const VM_PURGABLE_ORDERING_OBSOLETE: u32 = 32; +pub const VM_PURGABLE_ORDERING_NORMAL: u32 = 0; +pub const VM_VOLATILE_ORDER_SHIFT: u32 = 4; +pub const VM_VOLATILE_ORDER_MASK: u32 = 16; +pub const VM_VOLATILE_MAKE_FIRST_IN_GROUP: u32 = 16; +pub const VM_VOLATILE_MAKE_LAST_IN_GROUP: u32 = 0; +pub const VM_PURGABLE_STATE_MIN: u32 = 0; +pub const VM_PURGABLE_STATE_MAX: u32 = 3; +pub const VM_PURGABLE_STATE_MASK: u32 = 3; +pub const VM_PURGABLE_NONVOLATILE: u32 = 0; +pub const VM_PURGABLE_VOLATILE: u32 = 1; +pub const VM_PURGABLE_EMPTY: u32 = 2; +pub const VM_PURGABLE_DENY: u32 = 3; +pub const VM_PURGABLE_ALL_MASKS: u32 = 79731; +pub const BYTE_SIZE: u32 = 8; +pub const PAGE_MAX_SHIFT: u32 = 14; +pub const PAGE_MAX_SIZE: u32 = 16384; +pub const PAGE_MAX_MASK: u32 = 16383; +pub const PAGE_MIN_SHIFT: u32 = 12; +pub const PAGE_MIN_SIZE: u32 = 4096; +pub const PAGE_MIN_MASK: u32 = 4095; +pub const MACH_VM_MIN_ADDRESS_RAW: u32 = 0; +pub const MACH_VM_MAX_ADDRESS_RAW: u64 = 140737454800896; +pub const MACH_VM_MIN_GPU_CARVEOUT_ADDRESS_RAW: u64 = 68719476736; +pub const MACH_VM_MAX_GPU_CARVEOUT_ADDRESS_RAW: u64 = 481036337152; +pub const SWI_SYSCALL: u32 = 128; +pub const VM_REGION_INFO_MAX: u32 = 1024; +pub const VM_REGION_BASIC_INFO_64: u32 = 9; +pub const VM_REGION_BASIC_INFO: u32 = 10; +pub const SM_COW: u32 = 1; +pub const SM_PRIVATE: u32 = 2; +pub const SM_EMPTY: u32 = 3; +pub const SM_SHARED: u32 = 4; +pub const SM_TRUESHARED: u32 = 5; +pub const SM_PRIVATE_ALIASED: u32 = 6; +pub const SM_SHARED_ALIASED: u32 = 7; +pub const SM_LARGE_PAGE: u32 = 8; +pub const VM_REGION_EXTENDED_INFO: u32 = 13; +pub const VM_REGION_TOP_INFO: u32 = 12; +pub const VM_MAP_ENTRY_MAX: u32 = 256; +pub const VM_PAGE_INFO_BASIC: u32 = 1; +pub const KMOD_MAX_NAME: u32 = 64; +pub const KMOD_RETURN_SUCCESS: u32 = 0; +pub const KMOD_RETURN_FAILURE: u32 = 5; +pub const KMOD_INFO_VERSION: u32 = 1; +pub const TASK_FLAVOR_CONTROL: u32 = 0; +pub const TASK_FLAVOR_READ: u32 = 1; +pub const TASK_FLAVOR_INSPECT: u32 = 2; +pub const TASK_FLAVOR_NAME: u32 = 3; +pub const TASK_FLAVOR_MAX: u32 = 3; +pub const THREAD_FLAVOR_CONTROL: u32 = 0; +pub const THREAD_FLAVOR_READ: u32 = 1; +pub const THREAD_FLAVOR_INSPECT: u32 = 2; +pub const THREAD_FLAVOR_MAX: u32 = 2; +pub const _PTHREAD_MUTEX_SIG_init: u32 = 850045863; +pub const _PTHREAD_ERRORCHECK_MUTEX_SIG_init: u32 = 850045857; +pub const _PTHREAD_RECURSIVE_MUTEX_SIG_init: u32 = 850045858; +pub const _PTHREAD_FIRSTFIT_MUTEX_SIG_init: u32 = 850045859; +pub const _PTHREAD_COND_SIG_init: u32 = 1018212795; +pub const _PTHREAD_ONCE_SIG_init: u32 = 816954554; +pub const _PTHREAD_RWLOCK_SIG_init: u32 = 766030772; +pub const SCHED_OTHER: u32 = 1; +pub const SCHED_FIFO: u32 = 4; +pub const SCHED_RR: u32 = 2; +pub const __SCHED_PARAM_SIZE__: u32 = 4; +pub const QOS_MIN_RELATIVE_PRIORITY: i32 = -15; +pub const PTHREAD_CREATE_JOINABLE: u32 = 1; +pub const PTHREAD_CREATE_DETACHED: u32 = 2; +pub const PTHREAD_INHERIT_SCHED: u32 = 1; +pub const PTHREAD_EXPLICIT_SCHED: u32 = 2; +pub const PTHREAD_CANCEL_ENABLE: u32 = 1; +pub const PTHREAD_CANCEL_DISABLE: u32 = 0; +pub const PTHREAD_CANCEL_DEFERRED: u32 = 2; +pub const PTHREAD_CANCEL_ASYNCHRONOUS: u32 = 0; +pub const PTHREAD_SCOPE_SYSTEM: u32 = 1; +pub const PTHREAD_SCOPE_PROCESS: u32 = 2; +pub const PTHREAD_PROCESS_SHARED: u32 = 1; +pub const PTHREAD_PROCESS_PRIVATE: u32 = 2; +pub const PTHREAD_PRIO_NONE: u32 = 0; +pub const PTHREAD_PRIO_INHERIT: u32 = 1; +pub const PTHREAD_PRIO_PROTECT: u32 = 2; +pub const PTHREAD_MUTEX_NORMAL: u32 = 0; +pub const PTHREAD_MUTEX_ERRORCHECK: u32 = 1; +pub const PTHREAD_MUTEX_RECURSIVE: u32 = 2; +pub const PTHREAD_MUTEX_DEFAULT: u32 = 0; +pub const PTHREAD_MUTEX_POLICY_FAIRSHARE_NP: u32 = 1; +pub const PTHREAD_MUTEX_POLICY_FIRSTFIT_NP: u32 = 3; +pub const RULE_FLAGS_PRIVATE: u32 = 1; +pub const RULE_FLAGS_GLOBAL: u32 = 2; +pub const RULE_FLAGS_NULL: u32 = 4; +pub const RULE_FLAGS_DISABLED: u32 = 8; +pub const STRING_FLAGS_REFERENCED: u32 = 1; +pub const STRING_FLAGS_HEXADECIMAL: u32 = 2; +pub const STRING_FLAGS_NO_CASE: u32 = 4; +pub const STRING_FLAGS_ASCII: u32 = 8; +pub const STRING_FLAGS_WIDE: u32 = 16; +pub const STRING_FLAGS_REGEXP: u32 = 32; +pub const STRING_FLAGS_FAST_REGEXP: u32 = 64; +pub const STRING_FLAGS_FULL_WORD: u32 = 128; +pub const STRING_FLAGS_ANONYMOUS: u32 = 256; +pub const STRING_FLAGS_SINGLE_MATCH: u32 = 512; +pub const STRING_FLAGS_LITERAL: u32 = 1024; +pub const STRING_FLAGS_FITS_IN_ATOM: u32 = 2048; +pub const STRING_FLAGS_LAST_IN_RULE: u32 = 4096; +pub const STRING_FLAGS_CHAIN_PART: u32 = 8192; +pub const STRING_FLAGS_CHAIN_TAIL: u32 = 16384; +pub const STRING_FLAGS_FIXED_OFFSET: u32 = 32768; +pub const STRING_FLAGS_GREEDY_REGEXP: u32 = 65536; +pub const STRING_FLAGS_DOT_ALL: u32 = 131072; +pub const STRING_FLAGS_DISABLED: u32 = 262144; +pub const STRING_FLAGS_XOR: u32 = 524288; +pub const STRING_FLAGS_PRIVATE: u32 = 1048576; +pub const STRING_FLAGS_BASE64: u32 = 2097152; +pub const STRING_FLAGS_BASE64_WIDE: u32 = 4194304; +pub const META_TYPE_INTEGER: u32 = 1; +pub const META_TYPE_STRING: u32 = 2; +pub const META_TYPE_BOOLEAN: u32 = 3; +pub const META_FLAGS_LAST_IN_RULE: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_NULL: u32 = 0; +pub const EXTERNAL_VARIABLE_TYPE_FLOAT: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_INTEGER: u32 = 2; +pub const EXTERNAL_VARIABLE_TYPE_BOOLEAN: u32 = 3; +pub const EXTERNAL_VARIABLE_TYPE_STRING: u32 = 4; +pub const EXTERNAL_VARIABLE_TYPE_MALLOC_STRING: u32 = 5; +pub const RE_MAX_RANGE: u32 = 32767; +pub const RE_NODE_LITERAL: u32 = 1; +pub const RE_NODE_MASKED_LITERAL: u32 = 2; +pub const RE_NODE_ANY: u32 = 3; +pub const RE_NODE_CONCAT: u32 = 4; +pub const RE_NODE_ALT: u32 = 5; +pub const RE_NODE_RANGE: u32 = 6; +pub const RE_NODE_STAR: u32 = 7; +pub const RE_NODE_PLUS: u32 = 8; +pub const RE_NODE_CLASS: u32 = 9; +pub const RE_NODE_WORD_CHAR: u32 = 10; +pub const RE_NODE_NON_WORD_CHAR: u32 = 11; +pub const RE_NODE_SPACE: u32 = 12; +pub const RE_NODE_NON_SPACE: u32 = 13; +pub const RE_NODE_DIGIT: u32 = 14; +pub const RE_NODE_NON_DIGIT: u32 = 15; +pub const RE_NODE_EMPTY: u32 = 16; +pub const RE_NODE_ANCHOR_START: u32 = 17; +pub const RE_NODE_ANCHOR_END: u32 = 18; +pub const RE_NODE_WORD_BOUNDARY: u32 = 19; +pub const RE_NODE_NON_WORD_BOUNDARY: u32 = 20; +pub const RE_NODE_RANGE_ANY: u32 = 21; +pub const RE_OPCODE_ANY: u32 = 160; +pub const RE_OPCODE_LITERAL: u32 = 162; +pub const RE_OPCODE_MASKED_LITERAL: u32 = 164; +pub const RE_OPCODE_CLASS: u32 = 165; +pub const RE_OPCODE_WORD_CHAR: u32 = 167; +pub const RE_OPCODE_NON_WORD_CHAR: u32 = 168; +pub const RE_OPCODE_SPACE: u32 = 169; +pub const RE_OPCODE_NON_SPACE: u32 = 170; +pub const RE_OPCODE_DIGIT: u32 = 171; +pub const RE_OPCODE_NON_DIGIT: u32 = 172; +pub const RE_OPCODE_MATCH: u32 = 173; +pub const RE_OPCODE_MATCH_AT_END: u32 = 176; +pub const RE_OPCODE_MATCH_AT_START: u32 = 177; +pub const RE_OPCODE_WORD_BOUNDARY: u32 = 178; +pub const RE_OPCODE_NON_WORD_BOUNDARY: u32 = 179; +pub const RE_OPCODE_REPEAT_ANY_GREEDY: u32 = 180; +pub const RE_OPCODE_REPEAT_ANY_UNGREEDY: u32 = 181; +pub const RE_OPCODE_SPLIT_A: u32 = 192; +pub const RE_OPCODE_SPLIT_B: u32 = 193; +pub const RE_OPCODE_JUMP: u32 = 194; +pub const RE_OPCODE_REPEAT_START_GREEDY: u32 = 195; +pub const RE_OPCODE_REPEAT_END_GREEDY: u32 = 196; +pub const RE_OPCODE_REPEAT_START_UNGREEDY: u32 = 197; +pub const RE_OPCODE_REPEAT_END_UNGREEDY: u32 = 198; +pub const RE_FLAGS_FAST_REGEXP: u32 = 2; +pub const RE_FLAGS_BACKWARDS: u32 = 4; +pub const RE_FLAGS_EXHAUSTIVE: u32 = 8; +pub const RE_FLAGS_WIDE: u32 = 16; +pub const RE_FLAGS_NO_CASE: u32 = 32; +pub const RE_FLAGS_SCAN: u32 = 64; +pub const RE_FLAGS_DOT_ALL: u32 = 128; +pub const RE_FLAGS_GREEDY: u32 = 1024; +pub const RE_FLAGS_UNGREEDY: u32 = 2048; +pub const ATOM_TREE_LEAF: u32 = 1; +pub const ATOM_TREE_AND: u32 = 2; +pub const ATOM_TREE_OR: u32 = 3; +pub const YR_AC_SLOT_OFFSET_BITS: u32 = 9; +pub const YR_AC_MAX_TRANSITION_TABLE_SIZE: u32 = 8388608; +pub const YR_AC_ROOT_STATE: u32 = 0; +pub const __DARWIN_FD_SETSIZE: u32 = 1024; +pub const __DARWIN_NBBY: u32 = 8; +pub const NBBY: u32 = 8; +pub const FD_SETSIZE: u32 = 1024; +pub const YARA_ERROR_LEVEL_ERROR: u32 = 0; +pub const YARA_ERROR_LEVEL_WARNING: u32 = 1; +pub const EXPRESSION_TYPE_UNKNOWN: u32 = 0; +pub const EXPRESSION_TYPE_BOOLEAN: u32 = 1; +pub const EXPRESSION_TYPE_INTEGER: u32 = 2; +pub const EXPRESSION_TYPE_STRING: u32 = 4; +pub const EXPRESSION_TYPE_REGEXP: u32 = 8; +pub const EXPRESSION_TYPE_OBJECT: u32 = 16; +pub const EXPRESSION_TYPE_FLOAT: u32 = 32; +pub const YR_NAMESPACES_TABLE: u32 = 0; +pub const YR_RULES_TABLE: u32 = 1; +pub const YR_METAS_TABLE: u32 = 2; +pub const YR_STRINGS_TABLE: u32 = 3; +pub const YR_EXTERNAL_VARIABLES_TABLE: u32 = 4; +pub const YR_SZ_POOL: u32 = 5; +pub const YR_CODE_SECTION: u32 = 6; +pub const YR_RE_CODE_SECTION: u32 = 7; +pub const YR_AC_TRANSITION_TABLE: u32 = 8; +pub const YR_AC_STATE_MATCHES_TABLE: u32 = 9; +pub const YR_AC_STATE_MATCHES_POOL: u32 = 10; +pub const YR_SUMMARY_SECTION: u32 = 11; +pub const YR_NUM_SECTIONS: u32 = 12; +pub const YR_INTERNAL_LOOP_VARS: u32 = 3; +pub const ERROR_SUCCESS: u32 = 0; +pub const ERROR_INSUFICIENT_MEMORY: u32 = 1; +pub const ERROR_INSUFFICIENT_MEMORY: u32 = 1; +pub const ERROR_COULD_NOT_ATTACH_TO_PROCESS: u32 = 2; +pub const ERROR_COULD_NOT_OPEN_FILE: u32 = 3; +pub const ERROR_COULD_NOT_MAP_FILE: u32 = 4; +pub const ERROR_INVALID_FILE: u32 = 6; +pub const ERROR_CORRUPT_FILE: u32 = 7; +pub const ERROR_UNSUPPORTED_FILE_VERSION: u32 = 8; +pub const ERROR_INVALID_REGULAR_EXPRESSION: u32 = 9; +pub const ERROR_INVALID_HEX_STRING: u32 = 10; +pub const ERROR_SYNTAX_ERROR: u32 = 11; +pub const ERROR_LOOP_NESTING_LIMIT_EXCEEDED: u32 = 12; +pub const ERROR_DUPLICATED_LOOP_IDENTIFIER: u32 = 13; +pub const ERROR_DUPLICATED_IDENTIFIER: u32 = 14; +pub const ERROR_DUPLICATED_TAG_IDENTIFIER: u32 = 15; +pub const ERROR_DUPLICATED_META_IDENTIFIER: u32 = 16; +pub const ERROR_DUPLICATED_STRING_IDENTIFIER: u32 = 17; +pub const ERROR_UNREFERENCED_STRING: u32 = 18; +pub const ERROR_UNDEFINED_STRING: u32 = 19; +pub const ERROR_UNDEFINED_IDENTIFIER: u32 = 20; +pub const ERROR_MISPLACED_ANONYMOUS_STRING: u32 = 21; +pub const ERROR_INCLUDES_CIRCULAR_REFERENCE: u32 = 22; +pub const ERROR_INCLUDE_DEPTH_EXCEEDED: u32 = 23; +pub const ERROR_WRONG_TYPE: u32 = 24; +pub const ERROR_EXEC_STACK_OVERFLOW: u32 = 25; +pub const ERROR_SCAN_TIMEOUT: u32 = 26; +pub const ERROR_TOO_MANY_SCAN_THREADS: u32 = 27; +pub const ERROR_CALLBACK_ERROR: u32 = 28; +pub const ERROR_INVALID_ARGUMENT: u32 = 29; +pub const ERROR_TOO_MANY_MATCHES: u32 = 30; +pub const ERROR_INTERNAL_FATAL_ERROR: u32 = 31; +pub const ERROR_NESTED_FOR_OF_LOOP: u32 = 32; +pub const ERROR_INVALID_FIELD_NAME: u32 = 33; +pub const ERROR_UNKNOWN_MODULE: u32 = 34; +pub const ERROR_NOT_A_STRUCTURE: u32 = 35; +pub const ERROR_NOT_INDEXABLE: u32 = 36; +pub const ERROR_NOT_A_FUNCTION: u32 = 37; +pub const ERROR_INVALID_FORMAT: u32 = 38; +pub const ERROR_TOO_MANY_ARGUMENTS: u32 = 39; +pub const ERROR_WRONG_ARGUMENTS: u32 = 40; +pub const ERROR_WRONG_RETURN_TYPE: u32 = 41; +pub const ERROR_DUPLICATED_STRUCTURE_MEMBER: u32 = 42; +pub const ERROR_EMPTY_STRING: u32 = 43; +pub const ERROR_DIVISION_BY_ZERO: u32 = 44; +pub const ERROR_REGULAR_EXPRESSION_TOO_LARGE: u32 = 45; +pub const ERROR_TOO_MANY_RE_FIBERS: u32 = 46; +pub const ERROR_COULD_NOT_READ_PROCESS_MEMORY: u32 = 47; +pub const ERROR_INVALID_EXTERNAL_VARIABLE_TYPE: u32 = 48; +pub const ERROR_REGULAR_EXPRESSION_TOO_COMPLEX: u32 = 49; +pub const ERROR_INVALID_MODULE_NAME: u32 = 50; +pub const ERROR_TOO_MANY_STRINGS: u32 = 51; +pub const ERROR_INTEGER_OVERFLOW: u32 = 52; +pub const ERROR_CALLBACK_REQUIRED: u32 = 53; +pub const ERROR_INVALID_OPERAND: u32 = 54; +pub const ERROR_COULD_NOT_READ_FILE: u32 = 55; +pub const ERROR_DUPLICATED_EXTERNAL_VARIABLE: u32 = 56; +pub const ERROR_INVALID_MODULE_DATA: u32 = 57; +pub const ERROR_WRITING_FILE: u32 = 58; +pub const ERROR_INVALID_MODIFIER: u32 = 59; +pub const ERROR_DUPLICATED_MODIFIER: u32 = 60; +pub const ERROR_BLOCK_NOT_READY: u32 = 61; +pub const ERROR_INVALID_PERCENTAGE: u32 = 62; +pub const ERROR_IDENTIFIER_MATCHES_WILDCARD: u32 = 63; +pub const YR_MAJOR_VERSION: u32 = 4; +pub const YR_MINOR_VERSION: u32 = 2; +pub const YR_MICRO_VERSION: u32 = 3; +pub const YR_VERSION_HEX: u32 = 262659; +pub const YR_PARANOID_EXEC: u32 = 1; +pub const DEFAULT_STACK_SIZE: u32 = 16384; +pub const DEFAULT_MAX_STRINGS_PER_RULE: u32 = 10000; +pub const DEFAULT_MAX_MATCH_DATA: u32 = 512; +pub const DEFAULT_MAX_PROCESS_MEMORY_CHUNK: u32 = 1073741824; +pub const FP_NAN: u32 = 1; +pub const FP_INFINITE: u32 = 2; +pub const FP_ZERO: u32 = 3; +pub const FP_NORMAL: u32 = 4; +pub const FP_SUBNORMAL: u32 = 5; +pub const FP_SUPERNORMAL: u32 = 6; +pub const FP_FAST_FMA: u32 = 1; +pub const FP_FAST_FMAF: u32 = 1; +pub const FP_FAST_FMAL: u32 = 1; +pub const FP_ILOGB0: i32 = -2147483648; +pub const FP_ILOGBNAN: i32 = -2147483648; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const FP_SNAN: u32 = 1; +pub const FP_QNAN: u32 = 1; +pub const DOMAIN: u32 = 1; +pub const SING: u32 = 2; +pub const OVERFLOW: u32 = 3; +pub const UNDERFLOW: u32 = 4; +pub const TLOSS: u32 = 5; +pub const PLOSS: u32 = 6; +pub const CALLBACK_MSG_RULE_MATCHING: u32 = 1; +pub const CALLBACK_MSG_RULE_NOT_MATCHING: u32 = 2; +pub const CALLBACK_MSG_SCAN_FINISHED: u32 = 3; +pub const CALLBACK_MSG_IMPORT_MODULE: u32 = 4; +pub const CALLBACK_MSG_MODULE_IMPORTED: u32 = 5; +pub const CALLBACK_MSG_TOO_MANY_MATCHES: u32 = 6; +pub const CALLBACK_MSG_CONSOLE_LOG: u32 = 7; +pub const CALLBACK_CONTINUE: u32 = 0; +pub const CALLBACK_ABORT: u32 = 1; +pub const CALLBACK_ERROR: u32 = 2; +pub const SCAN_FLAGS_FAST_MODE: u32 = 1; +pub const SCAN_FLAGS_PROCESS_MEMORY: u32 = 2; +pub const SCAN_FLAGS_NO_TRYCATCH: u32 = 4; +pub const SCAN_FLAGS_REPORT_RULES_MATCHING: u32 = 8; +pub const SCAN_FLAGS_REPORT_RULES_NOT_MATCHING: u32 = 16; +pub const YR_UNDEFINED: i64 = -1483400188077313; +pub const OF_STRING_SET: u32 = 0; +pub const OF_RULE_SET: u32 = 1; +pub const OP_ERROR: u32 = 0; +pub const OP_HALT: u32 = 255; +pub const OP_NOP: u32 = 254; +pub const OP_AND: u32 = 1; +pub const OP_OR: u32 = 2; +pub const OP_NOT: u32 = 3; +pub const OP_BITWISE_NOT: u32 = 4; +pub const OP_BITWISE_AND: u32 = 5; +pub const OP_BITWISE_OR: u32 = 6; +pub const OP_BITWISE_XOR: u32 = 7; +pub const OP_SHL: u32 = 8; +pub const OP_SHR: u32 = 9; +pub const OP_MOD: u32 = 10; +pub const OP_INT_TO_DBL: u32 = 11; +pub const OP_STR_TO_BOOL: u32 = 12; +pub const OP_PUSH: u32 = 13; +pub const OP_POP: u32 = 14; +pub const OP_CALL: u32 = 15; +pub const OP_OBJ_LOAD: u32 = 16; +pub const OP_OBJ_VALUE: u32 = 17; +pub const OP_OBJ_FIELD: u32 = 18; +pub const OP_INDEX_ARRAY: u32 = 19; +pub const OP_COUNT: u32 = 20; +pub const OP_LENGTH: u32 = 21; +pub const OP_FOUND: u32 = 22; +pub const OP_FOUND_AT: u32 = 23; +pub const OP_FOUND_IN: u32 = 24; +pub const OP_OFFSET: u32 = 25; +pub const OP_OF: u32 = 26; +pub const OP_PUSH_RULE: u32 = 27; +pub const OP_INIT_RULE: u32 = 28; +pub const OP_MATCH_RULE: u32 = 29; +pub const OP_INCR_M: u32 = 30; +pub const OP_CLEAR_M: u32 = 31; +pub const OP_ADD_M: u32 = 32; +pub const OP_POP_M: u32 = 33; +pub const OP_PUSH_M: u32 = 34; +pub const OP_SET_M: u32 = 35; +pub const OP_SWAPUNDEF: u32 = 36; +pub const OP_FILESIZE: u32 = 37; +pub const OP_ENTRYPOINT: u32 = 38; +pub const OP_UNUSED: u32 = 39; +pub const OP_MATCHES: u32 = 40; +pub const OP_IMPORT: u32 = 41; +pub const OP_LOOKUP_DICT: u32 = 42; +pub const OP_JUNDEF: u32 = 43; +pub const OP_JUNDEF_P: u32 = 44; +pub const OP_JNUNDEF: u32 = 45; +pub const OP_JNUNDEF_P: u32 = 46; +pub const OP_JFALSE: u32 = 47; +pub const OP_JFALSE_P: u32 = 48; +pub const OP_JTRUE: u32 = 49; +pub const OP_JTRUE_P: u32 = 50; +pub const OP_JL_P: u32 = 51; +pub const OP_JLE_P: u32 = 52; +pub const OP_ITER_NEXT: u32 = 53; +pub const OP_ITER_START_ARRAY: u32 = 54; +pub const OP_ITER_START_DICT: u32 = 55; +pub const OP_ITER_START_INT_RANGE: u32 = 56; +pub const OP_ITER_START_INT_ENUM: u32 = 57; +pub const OP_JZ: u32 = 58; +pub const OP_JZ_P: u32 = 59; +pub const OP_PUSH_8: u32 = 60; +pub const OP_PUSH_16: u32 = 61; +pub const OP_PUSH_32: u32 = 62; +pub const OP_PUSH_U: u32 = 63; +pub const OP_CONTAINS: u32 = 64; +pub const OP_STARTSWITH: u32 = 65; +pub const OP_ENDSWITH: u32 = 66; +pub const OP_ICONTAINS: u32 = 67; +pub const OP_ISTARTSWITH: u32 = 68; +pub const OP_IENDSWITH: u32 = 69; +pub const OP_IEQUALS: u32 = 70; +pub const OP_OF_PERCENT: u32 = 71; +pub const OP_OF_FOUND_IN: u32 = 72; +pub const OP_COUNT_IN: u32 = 73; +pub const OP_DEFINED: u32 = 74; +pub const _OP_EQ: u32 = 0; +pub const _OP_NEQ: u32 = 1; +pub const _OP_LT: u32 = 2; +pub const _OP_GT: u32 = 3; +pub const _OP_LE: u32 = 4; +pub const _OP_GE: u32 = 5; +pub const _OP_ADD: u32 = 6; +pub const _OP_SUB: u32 = 7; +pub const _OP_MUL: u32 = 8; +pub const _OP_DIV: u32 = 9; +pub const _OP_MINUS: u32 = 10; +pub const OP_INT_BEGIN: u32 = 100; +pub const OP_INT_EQ: u32 = 100; +pub const OP_INT_NEQ: u32 = 101; +pub const OP_INT_LT: u32 = 102; +pub const OP_INT_GT: u32 = 103; +pub const OP_INT_LE: u32 = 104; +pub const OP_INT_GE: u32 = 105; +pub const OP_INT_ADD: u32 = 106; +pub const OP_INT_SUB: u32 = 107; +pub const OP_INT_MUL: u32 = 108; +pub const OP_INT_DIV: u32 = 109; +pub const OP_INT_MINUS: u32 = 110; +pub const OP_INT_END: u32 = 110; +pub const OP_DBL_BEGIN: u32 = 120; +pub const OP_DBL_EQ: u32 = 120; +pub const OP_DBL_NEQ: u32 = 121; +pub const OP_DBL_LT: u32 = 122; +pub const OP_DBL_GT: u32 = 123; +pub const OP_DBL_LE: u32 = 124; +pub const OP_DBL_GE: u32 = 125; +pub const OP_DBL_ADD: u32 = 126; +pub const OP_DBL_SUB: u32 = 127; +pub const OP_DBL_MUL: u32 = 128; +pub const OP_DBL_DIV: u32 = 129; +pub const OP_DBL_MINUS: u32 = 130; +pub const OP_DBL_END: u32 = 130; +pub const OP_STR_BEGIN: u32 = 140; +pub const OP_STR_EQ: u32 = 140; +pub const OP_STR_NEQ: u32 = 141; +pub const OP_STR_LT: u32 = 142; +pub const OP_STR_GT: u32 = 143; +pub const OP_STR_LE: u32 = 144; +pub const OP_STR_GE: u32 = 145; +pub const OP_STR_END: u32 = 145; +pub const OP_READ_INT: u32 = 240; +pub const OP_INT8: u32 = 240; +pub const OP_INT16: u32 = 241; +pub const OP_INT32: u32 = 242; +pub const OP_UINT8: u32 = 243; +pub const OP_UINT16: u32 = 244; +pub const OP_UINT32: u32 = 245; +pub const OP_INT8BE: u32 = 246; +pub const OP_INT16BE: u32 = 247; +pub const OP_INT32BE: u32 = 248; +pub const OP_UINT8BE: u32 = 249; +pub const OP_UINT16BE: u32 = 250; +pub const OP_UINT32BE: u32 = 251; +pub const OBJECT_CREATE: u32 = 1; +pub const OBJECT_TYPE_INTEGER: u32 = 1; +pub const OBJECT_TYPE_STRING: u32 = 2; +pub const OBJECT_TYPE_STRUCTURE: u32 = 3; +pub const OBJECT_TYPE_ARRAY: u32 = 4; +pub const OBJECT_TYPE_FUNCTION: u32 = 5; +pub const OBJECT_TYPE_DICTIONARY: u32 = 6; +pub const OBJECT_TYPE_FLOAT: u32 = 7; +pub type jmp_buf = [::std::os::raw::c_int; 48usize]; +pub type sigjmp_buf = [::std::os::raw::c_int; 49usize]; +extern "C" { + pub fn setjmp(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn longjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int); +} +extern "C" { + pub fn _setjmp(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _longjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int); +} +extern "C" { + pub fn sigsetjmp( + arg1: *mut ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn siglongjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int); +} +extern "C" { + pub fn longjmperror(); +} +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, +} +pub type __darwin_mbstate_t = __mbstate_t; +pub type __darwin_ptrdiff_t = ::std::os::raw::c_long; +pub type __darwin_size_t = ::std::os::raw::c_ulong; +pub type __darwin_va_list = __builtin_va_list; +pub type __darwin_wchar_t = ::std::os::raw::c_int; +pub type __darwin_rune_t = __darwin_wchar_t; +pub type __darwin_wint_t = ::std::os::raw::c_int; +pub type __darwin_clock_t = ::std::os::raw::c_ulong; +pub type __darwin_socklen_t = __uint32_t; +pub type __darwin_ssize_t = ::std::os::raw::c_long; +pub type __darwin_time_t = ::std::os::raw::c_long; +pub type __darwin_blkcnt_t = __int64_t; +pub type __darwin_blksize_t = __int32_t; +pub type __darwin_dev_t = __int32_t; +pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint; +pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint; +pub type __darwin_gid_t = __uint32_t; +pub type __darwin_id_t = __uint32_t; +pub type __darwin_ino64_t = __uint64_t; +pub type __darwin_ino_t = __darwin_ino64_t; +pub type __darwin_mach_port_name_t = __darwin_natural_t; +pub type __darwin_mach_port_t = __darwin_mach_port_name_t; +pub type __darwin_mode_t = __uint16_t; +pub type __darwin_off_t = __int64_t; +pub type __darwin_pid_t = __int32_t; +pub type __darwin_sigset_t = __uint32_t; +pub type __darwin_suseconds_t = __int32_t; +pub type __darwin_uid_t = __uint32_t; +pub type __darwin_useconds_t = __uint32_t; +pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize]; +pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_pthread_handler_rec { + pub __routine: ::std::option::Option, + pub __arg: *mut ::std::os::raw::c_void, + pub __next: *mut __darwin_pthread_handler_rec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _opaque_pthread_attr_t { + pub __sig: ::std::os::raw::c_long, + pub __opaque: [::std::os::raw::c_char; 56usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _opaque_pthread_cond_t { + pub __sig: ::std::os::raw::c_long, + pub __opaque: [::std::os::raw::c_char; 40usize], +} +#[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], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _opaque_pthread_mutex_t { + pub __sig: ::std::os::raw::c_long, + pub __opaque: [::std::os::raw::c_char; 56usize], +} +#[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], +} +#[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], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _opaque_pthread_rwlock_t { + pub __sig: ::std::os::raw::c_long, + pub __opaque: [::std::os::raw::c_char; 192usize], +} +#[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], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _opaque_pthread_t { + pub __sig: ::std::os::raw::c_long, + pub __cleanup_stack: *mut __darwin_pthread_handler_rec, + pub __opaque: [::std::os::raw::c_char; 8176usize], +} +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 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 va_list = __darwin_va_list; +pub type size_t = __darwin_size_t; +extern "C" { + 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; +} +extern "C" { + pub fn renamex_np( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn renameatx_np( + 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, + arg5: ::std::os::raw::c_uint, + ) -> ::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, +} +#[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, +} +pub type FILE = __sFILE; +extern "C" { + pub static mut __stdinp: *mut FILE; +} +extern "C" { + pub static mut __stdoutp: *mut FILE; +} +extern "C" { + pub static mut __stderrp: *mut FILE; +} +extern "C" { + pub fn clearerr(arg1: *mut FILE); +} +extern "C" { + pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + 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" { + pub fn fopen( + __filename: *const ::std::os::raw::c_char, + __mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn fprintf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fread( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __nitems: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn freopen( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut FILE, + ) -> *mut FILE; +} +extern "C" { + pub fn fscanf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + 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" { + pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn fwrite( + __ptr: *const ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __nitems: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn perror(arg1: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rename( + __old: *const ::std::os::raw::c_char, + __new: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rewind(arg1: *mut FILE); +} +extern "C" { + pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); +} +extern "C" { + pub fn setvbuf( + arg1: *mut FILE, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + arg4: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sprintf( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sscanf( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tmpfile() -> *mut FILE; +} +extern "C" { + pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfprintf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + arg3: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vprintf( + arg1: *const ::std::os::raw::c_char, + arg2: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsprintf( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; +} +extern "C" { + pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn popen( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __svfscanf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + arg3: va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn flockfile(arg1: *mut FILE); +} +extern "C" { + pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn funlockfile(arg1: *mut FILE); +} +extern "C" { + pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar_unlocked() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tempnam( + __dir: *const ::std::os::raw::c_char, + __prefix: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +pub type off_t = __darwin_off_t; +extern "C" { + pub fn fseeko( + __stream: *mut FILE, + __offset: off_t, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftello(__stream: *mut FILE) -> off_t; +} +extern "C" { + pub fn snprintf( + __str: *mut ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfscanf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + arg1: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vscanf( + __format: *const ::std::os::raw::c_char, + arg1: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsnprintf( + __str: *mut ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + arg1: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsscanf( + __str: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + arg1: __builtin_va_list, + ) -> ::std::os::raw::c_int; +} +pub type ssize_t = __darwin_ssize_t; +extern "C" { + pub fn dprintf( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vdprintf( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + arg3: va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getdelim( + __linep: *mut *mut ::std::os::raw::c_char, + __linecapp: *mut size_t, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> ssize_t; +} +extern "C" { + pub fn getline( + __linep: *mut *mut ::std::os::raw::c_char, + __linecapp: *mut size_t, + __stream: *mut FILE, + ) -> ssize_t; +} +extern "C" { + pub fn fmemopen( + __buf: *mut ::std::os::raw::c_void, + __size: size_t, + __mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn open_memstream( + __bufp: *mut *mut ::std::os::raw::c_char, + __sizep: *mut size_t, + ) -> *mut FILE; +} +extern "C" { + pub static sys_nerr: ::std::os::raw::c_int; +} +extern "C" { + pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize]; +} +extern "C" { + 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" { + pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fgetln(arg1: *mut FILE, arg2: *mut size_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + 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" { + pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setbuffer( + arg1: *mut FILE, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vasprintf( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + 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; +} +extern "C" { + pub fn __sprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: size_t, + arg4: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __snprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: ::std::os::raw::c_int, + arg4: size_t, + arg5: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __vsprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: size_t, + arg4: *const ::std::os::raw::c_char, + arg5: va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __vsnprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: ::std::os::raw::c_int, + arg4: size_t, + arg5: *const ::std::os::raw::c_char, + arg6: va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + 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, + ); +} +pub type __gnuc_va_list = __builtin_va_list; +pub const idtype_t_P_ALL: idtype_t = 0; +pub const idtype_t_P_PID: idtype_t = 1; +pub const idtype_t_P_PGID: idtype_t = 2; +pub type idtype_t = ::std::os::raw::c_uint; +pub type pid_t = __darwin_pid_t; +pub type id_t = __darwin_id_t; +pub type sig_atomic_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_exception_state { + pub __exception: __uint32_t, + pub __fsr: __uint32_t, + pub __far: __uint32_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_exception_state64 { + pub __far: __uint64_t, + pub __esr: __uint32_t, + pub __exception: __uint32_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_thread_state { + pub __r: [__uint32_t; 13usize], + pub __sp: __uint32_t, + pub __lr: __uint32_t, + pub __pc: __uint32_t, + pub __cpsr: __uint32_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_thread_state64 { + pub __x: [__uint64_t; 29usize], + pub __fp: __uint64_t, + pub __lr: __uint64_t, + pub __sp: __uint64_t, + pub __pc: __uint64_t, + pub __cpsr: __uint32_t, + pub __pad: __uint32_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_vfp_state { + pub __r: [__uint32_t; 64usize], + pub __fpscr: __uint32_t, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_neon_state64 { + pub __v: [__uint128_t; 32usize], + pub __fpsr: __uint32_t, + pub __fpcr: __uint32_t, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_neon_state { + pub __v: [__uint128_t; 16usize], + pub __fpsr: __uint32_t, + pub __fpcr: __uint32_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __arm_pagein_state { + pub __pagein_error: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __arm_legacy_debug_state { + pub __bvr: [__uint32_t; 16usize], + pub __bcr: [__uint32_t; 16usize], + pub __wvr: [__uint32_t; 16usize], + pub __wcr: [__uint32_t; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_debug_state32 { + pub __bvr: [__uint32_t; 16usize], + pub __bcr: [__uint32_t; 16usize], + pub __wvr: [__uint32_t; 16usize], + pub __wcr: [__uint32_t; 16usize], + pub __mdscr_el1: __uint64_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_debug_state64 { + pub __bvr: [__uint64_t; 16usize], + pub __bcr: [__uint64_t; 16usize], + pub __wvr: [__uint64_t; 16usize], + pub __wcr: [__uint64_t; 16usize], + pub __mdscr_el1: __uint64_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_cpmu_state64 { + pub __ctrs: [__uint64_t; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_mcontext32 { + pub __es: __darwin_arm_exception_state, + pub __ss: __darwin_arm_thread_state, + pub __fs: __darwin_arm_vfp_state, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_mcontext64 { + pub __es: __darwin_arm_exception_state64, + pub __ss: __darwin_arm_thread_state64, + pub __ns: __darwin_arm_neon_state64, +} +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, +} +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, +} +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, +} +#[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, + pub sigev_notify_attributes: *mut pthread_attr_t, +} +#[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], +} +pub type siginfo_t = __siginfo; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sigaction_u { + pub __sa_handler: ::std::option::Option, + 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, + ), + >, +} +#[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, +} +#[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, +} +pub type sig_t = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigvec { + pub sv_handler: ::std::option::Option, + pub sv_mask: ::std::os::raw::c_int, + pub sv_flags: ::std::os::raw::c_int, +} +#[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, +} +extern "C" { + pub fn signal( + arg1: ::std::os::raw::c_int, + arg2: ::std::option::Option, + ) -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::option::Option, + ), + >; +} +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, +} +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, +} +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, +} +#[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, +} +#[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, +} +#[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, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v4 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, + pub ri_cpu_time_qos_default: u64, + pub ri_cpu_time_qos_maintenance: u64, + pub ri_cpu_time_qos_background: u64, + pub ri_cpu_time_qos_utility: u64, + pub ri_cpu_time_qos_legacy: u64, + pub ri_cpu_time_qos_user_initiated: u64, + pub ri_cpu_time_qos_user_interactive: u64, + pub ri_billed_system_time: u64, + pub ri_serviced_system_time: u64, + pub ri_logical_writes: u64, + pub ri_lifetime_max_phys_footprint: u64, + pub ri_instructions: u64, + pub ri_cycles: u64, + pub ri_billed_energy: u64, + pub ri_serviced_energy: u64, + pub ri_interval_max_phys_footprint: u64, + pub ri_runnable_time: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v5 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, + pub ri_cpu_time_qos_default: u64, + pub ri_cpu_time_qos_maintenance: u64, + pub ri_cpu_time_qos_background: u64, + pub ri_cpu_time_qos_utility: u64, + pub ri_cpu_time_qos_legacy: u64, + pub ri_cpu_time_qos_user_initiated: u64, + pub ri_cpu_time_qos_user_interactive: u64, + pub ri_billed_system_time: u64, + pub ri_serviced_system_time: u64, + pub ri_logical_writes: u64, + pub ri_lifetime_max_phys_footprint: u64, + pub ri_instructions: u64, + pub ri_cycles: u64, + pub ri_billed_energy: u64, + pub ri_serviced_energy: u64, + pub ri_interval_max_phys_footprint: u64, + pub ri_runnable_time: u64, + pub ri_flags: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v6 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, + pub ri_cpu_time_qos_default: u64, + pub ri_cpu_time_qos_maintenance: u64, + pub ri_cpu_time_qos_background: u64, + pub ri_cpu_time_qos_utility: u64, + pub ri_cpu_time_qos_legacy: u64, + pub ri_cpu_time_qos_user_initiated: u64, + pub ri_cpu_time_qos_user_interactive: u64, + pub ri_billed_system_time: u64, + pub ri_serviced_system_time: u64, + pub ri_logical_writes: u64, + pub ri_lifetime_max_phys_footprint: u64, + pub ri_instructions: u64, + pub ri_cycles: u64, + pub ri_billed_energy: u64, + pub ri_serviced_energy: u64, + pub ri_interval_max_phys_footprint: u64, + pub ri_runnable_time: u64, + pub ri_flags: u64, + pub ri_user_ptime: u64, + pub ri_system_ptime: u64, + pub ri_pinstructions: u64, + pub ri_pcycles: u64, + pub ri_energy_nj: u64, + pub ri_penergy_nj: u64, + pub ri_reserved: [u64; 14usize], +} +pub type rusage_info_current = rusage_info_v6; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { + pub rlim_cur: rlim_t, + pub rlim_max: rlim_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct proc_rlimit_control_wakeupmon { + pub wm_flags: u32, + pub wm_rate: i32, +} +extern "C" { + pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getiopolicy_np( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setpriority( + arg1: ::std::os::raw::c_int, + arg2: id_t, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setiopolicy_np( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _OSUnalignedU16 { + pub __val: u16, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _OSUnalignedU32 { + pub __val: u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _OSUnalignedU64 { + pub __val: u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union wait { + pub w_status: ::std::os::raw::c_int, + pub w_T: wait__bindgen_ty_1, + pub w_S: wait__bindgen_ty_2, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct wait__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +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]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 7u8, { + let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) }; + w_Termsig as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) }; + w_Coredump as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) }; + w_Retcode as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct wait__bindgen_ty_2 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +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]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) }; + w_Stopval as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) }; + w_Stopsig as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +extern "C" { + pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; +} +extern "C" { + pub fn waitpid( + arg1: pid_t, + arg2: *mut ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + ) -> pid_t; +} +extern "C" { + pub fn waitid( + arg1: idtype_t, + arg2: id_t, + arg3: *mut siginfo_t, + arg4: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wait3( + arg1: *mut ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut rusage, + ) -> pid_t; +} +extern "C" { + pub fn wait4( + arg1: pid_t, + arg2: *mut ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: *mut rusage, + ) -> pid_t; +} +extern "C" { + pub fn alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +pub type ct_rune_t = __darwin_ct_rune_t; +pub type rune_t = __darwin_rune_t; +pub type wchar_t = __darwin_wchar_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +extern "C" { + pub static mut __mb_cur_max: ::std::os::raw::c_int; +} +extern "C" { + pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn calloc( + __count: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn free(arg1: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn realloc( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn valloc(arg1: size_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn aligned_alloc( + __alignment: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn posix_memalign( + __memptr: *mut *mut ::std::os::raw::c_void, + __alignment: size_t, + __size: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn abort(); +} +extern "C" { + pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn bsearch( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; +} +extern "C" { + pub fn exit(arg1: ::std::os::raw::c_int); +} +extern "C" { + pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; +} +extern "C" { + pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; +} +extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: size_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbstowcs( + arg1: *mut wchar_t, + arg2: *const ::std::os::raw::c_char, + arg3: size_t, + ) -> size_t; +} +extern "C" { + pub fn mbtowc( + arg1: *mut wchar_t, + arg2: *const ::std::os::raw::c_char, + arg3: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +extern "C" { + pub fn rand() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srand(arg1: ::std::os::raw::c_uint); +} +extern "C" { + pub fn strtod( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtof( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn strtol( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtold( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtoll( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoul( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoull( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcstombs( + arg1: *mut ::std::os::raw::c_char, + arg2: *const wchar_t, + arg3: size_t, + ) -> size_t; +} +extern "C" { + pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _Exit(arg1: ::std::os::raw::c_int); +} +extern "C" { + pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn drand48() -> f64; +} +extern "C" { + pub fn ecvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_int, + arg4: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; +} +extern "C" { + pub fn fcvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_int, + arg4: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gcvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getsubopt( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *const *mut ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn initstate( + arg1: ::std::os::raw::c_uint, + arg2: *mut ::std::os::raw::c_char, + arg3: size_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); +} +extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ptsname_r( + fildes: ::std::os::raw::c_int, + buffer: *mut ::std::os::raw::c_char, + buflen: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn random() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_realpath$DARWIN_EXTSN"] + pub fn realpath( + arg1: *const ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; +} +extern "C" { + pub fn setenv( + __name: *const ::std::os::raw::c_char, + __value: *const ::std::os::raw::c_char, + __overwrite: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setkey(arg1: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn srand48(arg1: ::std::os::raw::c_long); +} +extern "C" { + pub fn srandom(arg1: ::std::os::raw::c_uint); +} +extern "C" { + pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +pub type dev_t = __darwin_dev_t; +pub type mode_t = __darwin_mode_t; +extern "C" { + pub fn arc4random() -> u32; +} +extern "C" { + pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int); +} +extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: size_t); +} +extern "C" { + pub fn arc4random_stir(); +} +extern "C" { + pub fn arc4random_uniform(__upper_bound: u32) -> u32; +} +extern "C" { + pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bsearch_b( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn cgetcap( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn cgetclose() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetent( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + arg3: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetfirst( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetmatch( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetnext( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetnum( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetstr( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetustr( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn daemon( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn devname_r( + arg1: dev_t, + arg2: mode_t, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getbsize( + arg1: *mut ::std::os::raw::c_int, + arg2: *mut ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getprogname() -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn setprogname(arg1: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn heapsort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn heapsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mergesort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mergesort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn psort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +extern "C" { + pub fn psort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn psort_r( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +extern "C" { + pub fn qsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn qsort_r( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +extern "C" { + pub fn radixsort( + __base: *mut *const ::std::os::raw::c_uchar, + __nel: ::std::os::raw::c_int, + __table: *const ::std::os::raw::c_uchar, + __endbyte: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sradixsort( + __base: *mut *const ::std::os::raw::c_uchar, + __nel: ::std::os::raw::c_int, + __table: *const ::std::os::raw::c_uchar, + __endbyte: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sranddev(); +} +extern "C" { + pub fn srandomdev(); +} +extern "C" { + pub fn reallocf( + __ptr: *mut ::std::os::raw::c_void, + __size: size_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strtonum( + __numstr: *const ::std::os::raw::c_char, + __minval: ::std::os::raw::c_longlong, + __maxval: ::std::os::raw::c_longlong, + __errstrp: *mut *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoq( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtouq( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub static mut suboptarg: *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn memchr( + __s: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memcpy( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memmove( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __len: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset( + __b: *mut ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __len: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strcat( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcoll( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcspn( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strncat( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strpbrk( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strspn( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strstr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok( + __str: *mut ::std::os::raw::c_char, + __sep: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strxfrm( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtok_r( + __str: *mut ::std::os::raw::c_char, + __sep: *const ::std::os::raw::c_char, + __lasts: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strerror_r( + __errnum: ::std::os::raw::c_int, + __strerrbuf: *mut ::std::os::raw::c_char, + __buflen: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn memccpy( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn stpcpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpncpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strndup( + __s1: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: size_t) -> size_t; +} +extern "C" { + pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +pub type rsize_t = __darwin_size_t; +pub type errno_t = ::std::os::raw::c_int; +extern "C" { + pub fn memset_s( + __s: *mut ::std::os::raw::c_void, + __smax: rsize_t, + __c: ::std::os::raw::c_int, + __n: rsize_t, + ) -> errno_t; +} +extern "C" { + pub fn memmem( + __big: *const ::std::os::raw::c_void, + __big_len: size_t, + __little: *const ::std::os::raw::c_void, + __little_len: size_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset_pattern4( + __b: *mut ::std::os::raw::c_void, + __pattern4: *const ::std::os::raw::c_void, + __len: size_t, + ); +} +extern "C" { + pub fn memset_pattern8( + __b: *mut ::std::os::raw::c_void, + __pattern8: *const ::std::os::raw::c_void, + __len: size_t, + ); +} +extern "C" { + pub fn memset_pattern16( + __b: *mut ::std::os::raw::c_void, + __pattern16: *const ::std::os::raw::c_void, + __len: size_t, + ); +} +extern "C" { + pub fn strcasestr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnstr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + __len: size_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlcat( + __dst: *mut ::std::os::raw::c_char, + __source: *const ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strlcpy( + __dst: *mut ::std::os::raw::c_char, + __source: *const ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char); +} +extern "C" { + pub fn strsep( + __stringp: *mut *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn swab( + arg1: *const ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + arg3: ssize_t, + ); +} +extern "C" { + pub fn timingsafe_bcmp( + __b1: *const ::std::os::raw::c_void, + __b2: *const ::std::os::raw::c_void, + __len: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strsignal_r( + __sig: ::std::os::raw::c_int, + __strsignalbuf: *mut ::std::os::raw::c_char, + __buflen: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bcmp( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bcopy( + arg1: *const ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + arg3: size_t, + ); +} +extern "C" { + pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong); +} +extern "C" { + pub fn index( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn rindex( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn imaxabs(j: intmax_t) -> intmax_t; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct imaxdiv_t { + pub quot: intmax_t, + pub rem: intmax_t, +} +extern "C" { + pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; +} +extern "C" { + pub fn strtoimax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn strtoumax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn wcstoimax( + __nptr: *const wchar_t, + __endptr: *mut *mut wchar_t, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn wcstoumax( + __nptr: *const wchar_t, + __endptr: *mut *mut wchar_t, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn xtoi(hexstr: *const ::std::os::raw::c_char) -> u64; +} +extern "C" { + pub fn strnlen_w(w_str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcmp_w( + w_str: *const ::std::os::raw::c_char, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strlcpy_w( + dst: *mut ::std::os::raw::c_char, + w_src: *const ::std::os::raw::c_char, + n: size_t, + ) -> size_t; +} +extern "C" { + pub fn yr_isalnum(s: *const u8) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_vasprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ap: va_list, + ); +} +extern "C" { + pub fn yr_asprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +pub type wint_t = __darwin_wint_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, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RuneRange { + pub __nranges: ::std::os::raw::c_int, + pub __ranges: *mut _RuneEntry, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RuneCharClass { + pub __name: [::std::os::raw::c_char; 14usize], + pub __mask: __uint32_t, +} +#[repr(C)] +#[derive(Debug, 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, +} +extern "C" { + pub static mut _DefaultRuneLocale: _RuneLocale; +} +extern "C" { + pub static mut _CurrentRuneLocale: *mut _RuneLocale; +} +extern "C" { + pub fn ___runetype(arg1: __darwin_ct_rune_t) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn ___tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; +} +extern "C" { + pub fn ___toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; +} +extern "C" { + pub fn __maskrune( + arg1: __darwin_ct_rune_t, + arg2: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; +} +extern "C" { + pub fn __tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t; +} +pub type max_align_t = f64; +pub type YR_STREAM_READ_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *mut ::std::os::raw::c_void, + size: size_t, + count: size_t, + user_data: *mut ::std::os::raw::c_void, + ) -> size_t, +>; +pub type YR_STREAM_WRITE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *const ::std::os::raw::c_void, + size: size_t, + count: size_t, + user_data: *mut ::std::os::raw::c_void, + ) -> size_t, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_STREAM { + pub user_data: *mut ::std::os::raw::c_void, + pub read: YR_STREAM_READ_FUNC, + pub write: YR_STREAM_WRITE_FUNC, +} +pub type YR_STREAM = _YR_STREAM; +extern "C" { + pub fn yr_stream_read( + ptr: *mut ::std::os::raw::c_void, + size: size_t, + count: size_t, + stream: *mut YR_STREAM, + ) -> size_t; +} +extern "C" { + pub fn yr_stream_write( + ptr: *const ::std::os::raw::c_void, + size: size_t, + count: size_t, + stream: *mut YR_STREAM, + ) -> size_t; +} +pub type yr_arena_off_t = u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_REF { + pub buffer_id: u32, + pub offset: yr_arena_off_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_BUFFER { + pub data: *mut u8, + pub size: size_t, + pub used: size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RELOC { + pub buffer_id: u32, + pub offset: yr_arena_off_t, + pub next: *mut YR_RELOC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA { + pub xrefs: u32, + pub num_buffers: u32, + pub buffers: [YR_ARENA_BUFFER; 16usize], + pub initial_buffer_size: size_t, + pub reloc_list_head: *mut YR_RELOC, + pub reloc_list_tail: *mut YR_RELOC, +} +extern "C" { + pub fn yr_arena_create( + num_buffers: u32, + initial_buffer_size: size_t, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_acquire(arena: *mut YR_ARENA); +} +extern "C" { + pub fn yr_arena_release(arena: *mut YR_ARENA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_ref_to_ptr( + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_ptr_to_ref( + arena: *mut YR_ARENA, + address: *const ::std::os::raw::c_void, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_get_ptr( + arena: *mut YR_ARENA, + buffer_id: u32, + offset: yr_arena_off_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_get_current_offset(arena: *mut YR_ARENA, buffer_id: u32) -> yr_arena_off_t; +} +extern "C" { + pub fn yr_arena_allocate_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: size_t, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_zeroed_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: size_t, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_struct( + arena: *mut YR_ARENA, + buffer_id: u32, + size: size_t, + ref_: *mut YR_ARENA_REF, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_make_ptr_relocatable( + arena: *mut YR_ARENA, + buffer_id: u32, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_data( + arena: *mut YR_ARENA, + buffer_id: u32, + data: *const ::std::os::raw::c_void, + size: size_t, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_string( + arena: *mut YR_ARENA, + buffer_id: u32, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_uint32( + arena: *mut YR_ARENA, + buffer_id: u32, + integer: u32, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_load_stream( + stream: *mut YR_STREAM, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_save_stream( + arena: *mut YR_ARENA, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SIZED_STRING { + pub length: u32, + pub flags: u32, + pub c_string: [::std::os::raw::c_char; 1usize], +} +pub type SIZED_STRING = _SIZED_STRING; +extern "C" { + pub fn ss_compare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_icompare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_contains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_icontains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_startswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_istartswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_endswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_iendswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_dup(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_new(s: *const ::std::os::raw::c_char) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_convert_to_wide(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_bitmask_find_non_colliding_offset( + a: *mut ::std::os::raw::c_ulong, + b: *mut ::std::os::raw::c_ulong, + len_a: u32, + len_b: u32, + off_a: *mut u32, + ) -> u32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE_ENTRY { + pub key: *mut ::std::os::raw::c_void, + pub key_length: size_t, + pub ns: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_void, + pub next: *mut _YR_HASH_TABLE_ENTRY, +} +pub type YR_HASH_TABLE_ENTRY = _YR_HASH_TABLE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE { + pub size: ::std::os::raw::c_int, + pub buckets: [*mut YR_HASH_TABLE_ENTRY; 1usize], +} +pub type YR_HASH_TABLE = _YR_HASH_TABLE; +pub type YR_HASH_TABLE_FREE_VALUE_FUNC = ::std::option::Option< + unsafe extern "C" fn(value: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, +>; +pub type YR_HASH_TABLE_ITERATE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + key: *mut ::std::os::raw::c_void, + key_length: size_t, + value: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_hash(seed: u32, buffer: *const ::std::os::raw::c_void, len: size_t) -> u32; +} +extern "C" { + pub fn yr_hash_table_create( + size: ::std::os::raw::c_int, + table: *mut *mut YR_HASH_TABLE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_clean( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_destroy( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_iterate( + table: *mut YR_HASH_TABLE, + ns: *const ::std::os::raw::c_char, + iterate_func: YR_HASH_TABLE_ITERATE_FUNC, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +extern "C" { + pub fn yr_hash_table_lookup_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: size_t, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: size_t, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: size_t, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: size_t, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: size_t, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +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, +} +#[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, +} +extern "C" { + pub static mut tzname: [*mut ::std::os::raw::c_char; 0usize]; +} +extern "C" { + pub static mut getdate_err: ::std::os::raw::c_int; +} +extern "C" { + pub static mut timezone: ::std::os::raw::c_long; +} +extern "C" { + pub static mut daylight: ::std::os::raw::c_int; +} +extern "C" { + pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn clock() -> clock_t; +} +extern "C" { + pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn difftime(arg1: time_t, arg2: time_t) -> f64; +} +extern "C" { + pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm; +} +extern "C" { + pub fn gmtime(arg1: *const time_t) -> *mut tm; +} +extern "C" { + pub fn localtime(arg1: *const time_t) -> *mut tm; +} +extern "C" { + pub fn mktime(arg1: *mut tm) -> time_t; +} +extern "C" { + pub fn strftime( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: *const ::std::os::raw::c_char, + arg4: *const tm, + ) -> size_t; +} +extern "C" { + 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" { + pub fn time(arg1: *mut time_t) -> time_t; +} +extern "C" { + pub fn tzset(); +} +extern "C" { + pub fn asctime_r( + arg1: *const tm, + arg2: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ctime_r( + arg1: *const time_t, + arg2: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm; +} +extern "C" { + pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm; +} +extern "C" { + pub fn posix2time(arg1: time_t) -> time_t; +} +extern "C" { + pub fn tzsetwall(); +} +extern "C" { + pub fn time2posix(arg1: time_t) -> time_t; +} +extern "C" { + pub fn timelocal(arg1: *mut tm) -> time_t; +} +extern "C" { + pub fn timegm(arg1: *mut tm) -> time_t; +} +extern "C" { + pub fn nanosleep(__rqtp: *const timespec, __rmtp: *mut timespec) -> ::std::os::raw::c_int; +} +pub const clockid_t__CLOCK_REALTIME: clockid_t = 0; +pub const clockid_t__CLOCK_MONOTONIC: clockid_t = 6; +pub const clockid_t__CLOCK_MONOTONIC_RAW: clockid_t = 4; +pub const clockid_t__CLOCK_MONOTONIC_RAW_APPROX: clockid_t = 5; +pub const clockid_t__CLOCK_UPTIME_RAW: clockid_t = 8; +pub const clockid_t__CLOCK_UPTIME_RAW_APPROX: clockid_t = 9; +pub const clockid_t__CLOCK_PROCESS_CPUTIME_ID: clockid_t = 12; +pub const clockid_t__CLOCK_THREAD_CPUTIME_ID: clockid_t = 16; +pub type clockid_t = ::std::os::raw::c_uint; +extern "C" { + pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_gettime_nsec_np(__clock_id: clockid_t) -> __uint64_t; +} +extern "C" { + pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timespec_get(ts: *mut timespec, base: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +pub type boolean_t = ::std::os::raw::c_int; +pub type natural_t = __darwin_natural_t; +pub type integer_t = ::std::os::raw::c_int; +pub type vm_offset_t = usize; +pub type vm_size_t = usize; +pub type mach_vm_address_t = u64; +pub type mach_vm_offset_t = u64; +pub type mach_vm_size_t = u64; +pub type vm_map_offset_t = u64; +pub type vm_map_address_t = u64; +pub type vm_map_size_t = u64; +pub type vm32_offset_t = u32; +pub type vm32_address_t = u32; +pub type vm32_size_t = u32; +pub type mach_port_context_t = vm_offset_t; +pub type mach_port_name_t = natural_t; +pub type mach_port_name_array_t = *mut mach_port_name_t; +pub type mach_port_t = __darwin_mach_port_t; +pub type mach_port_array_t = *mut mach_port_t; +pub type mach_port_right_t = natural_t; +pub type mach_port_type_t = natural_t; +pub type mach_port_type_array_t = *mut mach_port_type_t; +pub type mach_port_urefs_t = natural_t; +pub type mach_port_delta_t = integer_t; +pub type mach_port_seqno_t = natural_t; +pub type mach_port_mscount_t = natural_t; +pub type mach_port_msgcount_t = natural_t; +pub type mach_port_rights_t = natural_t; +pub type mach_port_srights_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_port_status { + pub mps_pset: mach_port_rights_t, + pub mps_seqno: mach_port_seqno_t, + pub mps_mscount: mach_port_mscount_t, + pub mps_qlimit: mach_port_msgcount_t, + pub mps_msgcount: mach_port_msgcount_t, + pub mps_sorights: mach_port_rights_t, + pub mps_srights: boolean_t, + pub mps_pdrequest: boolean_t, + pub mps_nsrequest: boolean_t, + pub mps_flags: natural_t, +} +pub type mach_port_status_t = mach_port_status; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_port_limits { + pub mpl_qlimit: mach_port_msgcount_t, +} +pub type mach_port_limits_t = mach_port_limits; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_port_info_ext { + pub mpie_status: mach_port_status_t, + pub mpie_boost_cnt: mach_port_msgcount_t, + pub reserved: [u32; 6usize], +} +pub type mach_port_info_ext_t = mach_port_info_ext; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_port_guard_info { + pub mpgi_guard: u64, +} +pub type mach_port_guard_info_t = mach_port_guard_info; +pub type mach_port_info_t = *mut integer_t; +pub type mach_port_flavor_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_port_qos { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub len: natural_t, +} +impl mach_port_qos { + #[inline] + pub fn name(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_name(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn prealloc(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_prealloc(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn pad1(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_pad1(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + name: ::std::os::raw::c_uint, + prealloc: ::std::os::raw::c_uint, + pad1: boolean_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let name: u32 = unsafe { ::std::mem::transmute(name) }; + name as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let prealloc: u32 = unsafe { ::std::mem::transmute(prealloc) }; + prealloc as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let pad1: u32 = unsafe { ::std::mem::transmute(pad1) }; + pad1 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type mach_port_qos_t = mach_port_qos; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_service_port_info { + pub mspi_string_name: [::std::os::raw::c_char; 255usize], + pub mspi_domain_type: u8, +} +pub type mach_service_port_info_data_t = mach_service_port_info; +pub type mach_service_port_info_t = *mut mach_service_port_info; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct mach_port_options { + pub flags: u32, + pub mpl: mach_port_limits_t, + pub __bindgen_anon_1: mach_port_options__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union mach_port_options__bindgen_ty_1 { + pub reserved: [u64; 2usize], + pub work_interval_port: mach_port_name_t, + pub service_port_info: mach_service_port_info_t, + pub service_port_name: mach_port_name_t, +} +pub type mach_port_options_t = mach_port_options; +pub type mach_port_options_ptr_t = *mut mach_port_options_t; +pub const mach_port_guard_exception_codes_kGUARD_EXC_DESTROY: mach_port_guard_exception_codes = 1; +pub const mach_port_guard_exception_codes_kGUARD_EXC_MOD_REFS: mach_port_guard_exception_codes = 2; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_OPTIONS: + mach_port_guard_exception_codes = 3; +pub const mach_port_guard_exception_codes_kGUARD_EXC_SET_CONTEXT: mach_port_guard_exception_codes = + 4; +pub const mach_port_guard_exception_codes_kGUARD_EXC_UNGUARDED: mach_port_guard_exception_codes = 8; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INCORRECT_GUARD: + mach_port_guard_exception_codes = 16; +pub const mach_port_guard_exception_codes_kGUARD_EXC_IMMOVABLE: mach_port_guard_exception_codes = + 32; +pub const mach_port_guard_exception_codes_kGUARD_EXC_STRICT_REPLY: mach_port_guard_exception_codes = + 64; +pub const mach_port_guard_exception_codes_kGUARD_EXC_MSG_FILTERED: mach_port_guard_exception_codes = + 128; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_RIGHT: + mach_port_guard_exception_codes = 256; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_NAME: mach_port_guard_exception_codes = + 512; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_VALUE: + mach_port_guard_exception_codes = 1024; +pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_ARGUMENT: + mach_port_guard_exception_codes = 2048; +pub const mach_port_guard_exception_codes_kGUARD_EXC_RIGHT_EXISTS: mach_port_guard_exception_codes = + 4096; +pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_NO_SPACE: + mach_port_guard_exception_codes = 8192; +pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_FAILURE: mach_port_guard_exception_codes = + 16384; +pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_RESOURCE: + mach_port_guard_exception_codes = 32768; +pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_REPLY: + mach_port_guard_exception_codes = 65536; +pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_VOUCHER: + mach_port_guard_exception_codes = 131072; +pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_RIGHT: + mach_port_guard_exception_codes = 262144; +pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_INVALID_NAME: + mach_port_guard_exception_codes = 524288; +pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_GUARDED_DESC: + mach_port_guard_exception_codes = 1048576; +pub const mach_port_guard_exception_codes_kGUARD_EXC_MOD_REFS_NON_FATAL: + mach_port_guard_exception_codes = 2097152; +pub const mach_port_guard_exception_codes_kGUARD_EXC_IMMOVABLE_NON_FATAL: + mach_port_guard_exception_codes = 4194304; +pub const mach_port_guard_exception_codes_kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS: + mach_port_guard_exception_codes = 8388608; +pub type mach_port_guard_exception_codes = ::std::os::raw::c_uint; +pub type kern_return_t = ::std::os::raw::c_int; +pub type mach_msg_timeout_t = natural_t; +pub type mach_msg_bits_t = ::std::os::raw::c_uint; +pub type mach_msg_size_t = natural_t; +pub type mach_msg_id_t = integer_t; +pub type mach_msg_priority_t = ::std::os::raw::c_uint; +pub type mach_msg_type_name_t = ::std::os::raw::c_uint; +pub type mach_msg_copy_options_t = ::std::os::raw::c_uint; +pub type mach_msg_guard_flags_t = ::std::os::raw::c_uint; +pub type mach_msg_descriptor_type_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_type_descriptor_t { + pub pad1: natural_t, + pub pad2: mach_msg_size_t, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl mach_msg_type_descriptor_t { + #[inline] + pub fn pad3(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) } + } + #[inline] + pub fn set_pad3(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 24u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pad3: ::std::os::raw::c_uint, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 24u8, { + let pad3: u32 = unsafe { ::std::mem::transmute(pad3) }; + pad3 as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_port_descriptor_t { + pub name: mach_port_t, + pub pad1: mach_msg_size_t, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl mach_msg_port_descriptor_t { + #[inline] + pub fn pad2(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_pad2(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pad2: ::std::os::raw::c_uint, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let pad2: u32 = unsafe { ::std::mem::transmute(pad2) }; + pad2 as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_descriptor32_t { + pub address: u32, + pub size: mach_msg_size_t, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl mach_msg_ool_descriptor32_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn pad1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + pad1: ::std::os::raw::c_uint, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let pad1: u32 = unsafe { ::std::mem::transmute(pad1) }; + pad1 as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_descriptor64_t { + pub address: u64, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub size: mach_msg_size_t, +} +impl mach_msg_ool_descriptor64_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn pad1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + pad1: ::std::os::raw::c_uint, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let pad1: u32 = unsafe { ::std::mem::transmute(pad1) }; + pad1 as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_descriptor_t { + pub address: *mut ::std::os::raw::c_void, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub size: mach_msg_size_t, +} +impl mach_msg_ool_descriptor_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn pad1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + pad1: ::std::os::raw::c_uint, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let pad1: u32 = unsafe { ::std::mem::transmute(pad1) }; + pad1 as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_ports_descriptor32_t { + pub address: u32, + pub count: mach_msg_size_t, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl mach_msg_ool_ports_descriptor32_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_ports_descriptor64_t { + pub address: u64, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub count: mach_msg_size_t, +} +impl mach_msg_ool_ports_descriptor64_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_ool_ports_descriptor_t { + pub address: *mut ::std::os::raw::c_void, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub count: mach_msg_size_t, +} +impl mach_msg_ool_ports_descriptor_t { + #[inline] + pub fn deallocate(&self) -> boolean_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_deallocate(&mut self, val: boolean_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn copy(&self) -> mach_msg_copy_options_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_copy(&mut self, val: mach_msg_copy_options_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + deallocate: boolean_t, + copy: mach_msg_copy_options_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) }; + deallocate as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let copy: u32 = unsafe { ::std::mem::transmute(copy) }; + copy as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_guarded_port_descriptor32_t { + pub context: u32, + pub name: mach_port_name_t, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl mach_msg_guarded_port_descriptor32_t { + #[inline] + pub fn flags(&self) -> mach_msg_guard_flags_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + flags: mach_msg_guard_flags_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let flags: u32 = unsafe { ::std::mem::transmute(flags) }; + flags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_guarded_port_descriptor64_t { + pub context: u64, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub name: mach_port_name_t, +} +impl mach_msg_guarded_port_descriptor64_t { + #[inline] + pub fn flags(&self) -> mach_msg_guard_flags_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + flags: mach_msg_guard_flags_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let flags: u32 = unsafe { ::std::mem::transmute(flags) }; + flags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_guarded_port_descriptor_t { + pub context: mach_port_context_t, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub name: mach_port_name_t, +} +impl mach_msg_guarded_port_descriptor_t { + #[inline] + pub fn flags(&self) -> mach_msg_guard_flags_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn disposition(&self) -> mach_msg_type_name_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_disposition(&mut self, val: mach_msg_type_name_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn type_(&self) -> mach_msg_descriptor_type_t { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + flags: mach_msg_guard_flags_t, + disposition: mach_msg_type_name_t, + type_: mach_msg_descriptor_type_t, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let flags: u32 = unsafe { ::std::mem::transmute(flags) }; + flags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let disposition: u32 = unsafe { ::std::mem::transmute(disposition) }; + disposition as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union mach_msg_descriptor_t { + pub port: mach_msg_port_descriptor_t, + pub out_of_line: mach_msg_ool_descriptor_t, + pub ool_ports: mach_msg_ool_ports_descriptor_t, + pub type_: mach_msg_type_descriptor_t, + pub guarded_port: mach_msg_guarded_port_descriptor_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_body_t { + pub msgh_descriptor_count: mach_msg_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_header_t { + pub msgh_bits: mach_msg_bits_t, + pub msgh_size: mach_msg_size_t, + pub msgh_remote_port: mach_port_t, + pub msgh_local_port: mach_port_t, + pub msgh_voucher_port: mach_port_name_t, + pub msgh_id: mach_msg_id_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_base_t { + pub header: mach_msg_header_t, + pub body: mach_msg_body_t, +} +pub type mach_msg_trailer_type_t = ::std::os::raw::c_uint; +pub type mach_msg_trailer_size_t = ::std::os::raw::c_uint; +pub type mach_msg_trailer_info_t = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_seqno_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, + pub msgh_seqno: mach_port_seqno_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct security_token_t { + pub val: [::std::os::raw::c_uint; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_security_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, + pub msgh_seqno: mach_port_seqno_t, + pub msgh_sender: security_token_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_token_t { + pub val: [::std::os::raw::c_uint; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_audit_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, + pub msgh_seqno: mach_port_seqno_t, + pub msgh_sender: security_token_t, + pub msgh_audit: audit_token_t, +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_context_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, + pub msgh_seqno: mach_port_seqno_t, + pub msgh_sender: security_token_t, + pub msgh_audit: audit_token_t, + pub msgh_context: mach_port_context_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msg_labels_t { + pub sender: mach_port_name_t, +} +pub type mach_msg_filter_id = ::std::os::raw::c_int; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_mac_trailer_t { + pub msgh_trailer_type: mach_msg_trailer_type_t, + pub msgh_trailer_size: mach_msg_trailer_size_t, + pub msgh_seqno: mach_port_seqno_t, + pub msgh_sender: security_token_t, + pub msgh_audit: audit_token_t, + pub msgh_context: mach_port_context_t, + pub msgh_ad: mach_msg_filter_id, + pub msgh_labels: msg_labels_t, +} +pub type mach_msg_max_trailer_t = mach_msg_mac_trailer_t; +pub type mach_msg_format_0_trailer_t = mach_msg_security_trailer_t; +extern "C" { + pub static KERNEL_SECURITY_TOKEN: security_token_t; +} +extern "C" { + pub static KERNEL_AUDIT_TOKEN: audit_token_t; +} +pub type mach_msg_options_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_empty_send_t { + pub header: mach_msg_header_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_msg_empty_rcv_t { + pub header: mach_msg_header_t, + pub trailer: mach_msg_trailer_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union mach_msg_empty_t { + pub send: mach_msg_empty_send_t, + pub rcv: mach_msg_empty_rcv_t, +} +pub type mach_msg_type_size_t = natural_t; +pub type mach_msg_type_number_t = natural_t; +pub type mach_msg_option_t = integer_t; +pub type mach_msg_return_t = kern_return_t; +extern "C" { + pub fn mach_msg_overwrite( + msg: *mut mach_msg_header_t, + option: mach_msg_option_t, + send_size: mach_msg_size_t, + rcv_size: mach_msg_size_t, + rcv_name: mach_port_name_t, + timeout: mach_msg_timeout_t, + notify: mach_port_name_t, + rcv_msg: *mut mach_msg_header_t, + rcv_limit: mach_msg_size_t, + ) -> mach_msg_return_t; +} +extern "C" { + pub fn mach_msg( + msg: *mut mach_msg_header_t, + option: mach_msg_option_t, + send_size: mach_msg_size_t, + rcv_size: mach_msg_size_t, + rcv_name: mach_port_name_t, + timeout: mach_msg_timeout_t, + notify: mach_port_name_t, + ) -> mach_msg_return_t; +} +extern "C" { + pub fn mach_voucher_deallocate(voucher: mach_port_name_t) -> kern_return_t; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_statistics { + pub free_count: natural_t, + pub active_count: natural_t, + pub inactive_count: natural_t, + pub wire_count: natural_t, + pub zero_fill_count: natural_t, + pub reactivations: natural_t, + pub pageins: natural_t, + pub pageouts: natural_t, + pub faults: natural_t, + pub cow_faults: natural_t, + pub lookups: natural_t, + pub hits: natural_t, + pub purgeable_count: natural_t, + pub purges: natural_t, + pub speculative_count: natural_t, +} +pub type vm_statistics_t = *mut vm_statistics; +pub type vm_statistics_data_t = vm_statistics; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_statistics64 { + pub free_count: natural_t, + pub active_count: natural_t, + pub inactive_count: natural_t, + pub wire_count: natural_t, + pub zero_fill_count: u64, + pub reactivations: u64, + pub pageins: u64, + pub pageouts: u64, + pub faults: u64, + pub cow_faults: u64, + pub lookups: u64, + pub hits: u64, + pub purges: u64, + pub purgeable_count: natural_t, + pub speculative_count: natural_t, + pub decompressions: u64, + pub compressions: u64, + pub swapins: u64, + pub swapouts: u64, + pub compressor_page_count: natural_t, + pub throttled_count: natural_t, + pub external_page_count: natural_t, + pub internal_page_count: natural_t, + pub total_uncompressed_pages_in_compressor: u64, +} +pub type vm_statistics64_t = *mut vm_statistics64; +pub type vm_statistics64_data_t = vm_statistics64; +extern "C" { + pub fn vm_stats( + info: *mut ::std::os::raw::c_void, + count: *mut ::std::os::raw::c_uint, + ) -> kern_return_t; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_extmod_statistics { + pub task_for_pid_count: i64, + pub task_for_pid_caller_count: i64, + pub thread_creation_count: i64, + pub thread_creation_caller_count: i64, + pub thread_set_state_count: i64, + pub thread_set_state_caller_count: i64, +} +pub type vm_extmod_statistics_t = *mut vm_extmod_statistics; +pub type vm_extmod_statistics_data_t = vm_extmod_statistics; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_purgeable_stat { + pub count: u64, + pub size: u64, +} +pub type vm_purgeable_stat_t = vm_purgeable_stat; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_purgeable_info { + pub fifo_data: [vm_purgeable_stat_t; 8usize], + pub obsolete_data: vm_purgeable_stat_t, + pub lifo_data: [vm_purgeable_stat_t; 8usize], +} +pub type vm_purgeable_info_t = *mut vm_purgeable_info; +pub const virtual_memory_guard_exception_codes_kGUARD_EXC_DEALLOC_GAP: + virtual_memory_guard_exception_codes = 1; +pub const virtual_memory_guard_exception_codes_kGUARD_EXC_RECLAIM_COPYIO_FAILURE: + virtual_memory_guard_exception_codes = 2; +pub const virtual_memory_guard_exception_codes_kGUARD_EXC_RECLAIM_INDEX_FAILURE: + virtual_memory_guard_exception_codes = 4; +pub const virtual_memory_guard_exception_codes_kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE: + virtual_memory_guard_exception_codes = 8; +pub type virtual_memory_guard_exception_codes = ::std::os::raw::c_uint; +pub type cpu_type_t = integer_t; +pub type cpu_subtype_t = integer_t; +pub type cpu_threadtype_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct time_value { + pub seconds: integer_t, + pub microseconds: integer_t, +} +pub type time_value_t = time_value; +pub type host_info_t = *mut integer_t; +pub type host_info64_t = *mut integer_t; +pub type host_info_data_t = [integer_t; 1024usize]; +pub type kernel_version_t = [::std::os::raw::c_char; 512usize]; +pub type kernel_boot_info_t = [::std::os::raw::c_char; 4096usize]; +pub type host_flavor_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_can_has_debugger_info { + pub can_has_debugger: boolean_t, +} +pub type host_can_has_debugger_info_data_t = host_can_has_debugger_info; +pub type host_can_has_debugger_info_t = *mut host_can_has_debugger_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct host_basic_info { + pub max_cpus: integer_t, + pub avail_cpus: integer_t, + pub memory_size: natural_t, + pub cpu_type: cpu_type_t, + pub cpu_subtype: cpu_subtype_t, + pub cpu_threadtype: cpu_threadtype_t, + pub physical_cpu: integer_t, + pub physical_cpu_max: integer_t, + pub logical_cpu: integer_t, + pub logical_cpu_max: integer_t, + pub max_mem: u64, +} +pub type host_basic_info_data_t = host_basic_info; +pub type host_basic_info_t = *mut host_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_sched_info { + pub min_timeout: integer_t, + pub min_quantum: integer_t, +} +pub type host_sched_info_data_t = host_sched_info; +pub type host_sched_info_t = *mut host_sched_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_resource_sizes { + pub task: natural_t, + pub thread: natural_t, + pub port: natural_t, + pub memory_region: natural_t, + pub memory_object: natural_t, +} +pub type kernel_resource_sizes_data_t = kernel_resource_sizes; +pub type kernel_resource_sizes_t = *mut kernel_resource_sizes; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_priority_info { + pub kernel_priority: integer_t, + pub system_priority: integer_t, + pub server_priority: integer_t, + pub user_priority: integer_t, + pub depress_priority: integer_t, + pub idle_priority: integer_t, + pub minimum_priority: integer_t, + pub maximum_priority: integer_t, +} +pub type host_priority_info_data_t = host_priority_info; +pub type host_priority_info_t = *mut host_priority_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_load_info { + pub avenrun: [integer_t; 3usize], + pub mach_factor: [integer_t; 3usize], +} +pub type host_load_info_data_t = host_load_info; +pub type host_load_info_t = *mut host_load_info; +pub type host_purgable_info_data_t = vm_purgeable_info; +pub type host_purgable_info_t = *mut vm_purgeable_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_cpu_load_info { + pub cpu_ticks: [natural_t; 4usize], +} +pub type host_cpu_load_info_data_t = host_cpu_load_info; +pub type host_cpu_load_info_t = *mut host_cpu_load_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct host_preferred_user_arch { + pub cpu_type: cpu_type_t, + pub cpu_subtype: cpu_subtype_t, +} +pub type host_preferred_user_arch_data_t = host_preferred_user_arch; +pub type host_preferred_user_arch_t = *mut host_preferred_user_arch; +pub type vm_prot_t = ::std::os::raw::c_int; +pub type vm_sync_t = ::std::os::raw::c_uint; +pub type pointer_t = vm_offset_t; +pub type vm_address_t = vm_offset_t; +pub type addr64_t = u64; +pub type reg64_t = u32; +pub type ppnum_t = u32; +pub type vm_map_t = mach_port_t; +pub type vm_map_read_t = mach_port_t; +pub type vm_map_inspect_t = mach_port_t; +pub type vm_object_offset_t = u64; +pub type vm_object_size_t = u64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_vm_range { + pub min_address: mach_vm_offset_t, + pub max_address: mach_vm_offset_t, +} +pub type mach_vm_range_t = *mut mach_vm_range; +pub type upl_t = mach_port_t; +pub type vm_named_entry_t = mach_port_t; +pub type memory_object_offset_t = ::std::os::raw::c_ulonglong; +pub type memory_object_size_t = ::std::os::raw::c_ulonglong; +pub type memory_object_cluster_size_t = natural_t; +pub type memory_object_fault_info_t = *mut natural_t; +pub type vm_object_id_t = ::std::os::raw::c_ulonglong; +pub type memory_object_t = mach_port_t; +pub type memory_object_control_t = mach_port_t; +pub type memory_object_array_t = *mut memory_object_t; +pub type memory_object_name_t = mach_port_t; +pub type memory_object_default_t = mach_port_t; +pub type memory_object_copy_strategy_t = ::std::os::raw::c_int; +pub type memory_object_return_t = ::std::os::raw::c_int; +pub type memory_object_info_t = *mut ::std::os::raw::c_int; +pub type memory_object_flavor_t = ::std::os::raw::c_int; +pub type memory_object_info_data_t = [::std::os::raw::c_int; 1024usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct memory_object_perf_info { + pub cluster_size: memory_object_cluster_size_t, + pub may_cache: boolean_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct memory_object_attr_info { + pub copy_strategy: memory_object_copy_strategy_t, + pub cluster_size: memory_object_cluster_size_t, + pub may_cache_object: boolean_t, + pub temporary: boolean_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct memory_object_behave_info { + pub copy_strategy: memory_object_copy_strategy_t, + pub temporary: boolean_t, + pub invalidate: boolean_t, + pub silent_overwrite: boolean_t, + pub advisory_pageout: boolean_t, +} +pub type memory_object_behave_info_t = *mut memory_object_behave_info; +pub type memory_object_behave_info_data_t = memory_object_behave_info; +pub type memory_object_perf_info_t = *mut memory_object_perf_info; +pub type memory_object_perf_info_data_t = memory_object_perf_info; +pub type memory_object_attr_info_t = *mut memory_object_attr_info; +pub type memory_object_attr_info_data_t = memory_object_attr_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arm_state_hdr { + pub flavor: u32, + pub count: u32, +} +pub type arm_state_hdr_t = arm_state_hdr; +pub type arm_thread_state_t = __darwin_arm_thread_state; +pub type arm_thread_state32_t = __darwin_arm_thread_state; +pub type arm_thread_state64_t = __darwin_arm_thread_state64; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arm_unified_thread_state { + pub ash: arm_state_hdr_t, + pub uts: arm_unified_thread_state__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union arm_unified_thread_state__bindgen_ty_1 { + pub ts_32: arm_thread_state32_t, + pub ts_64: arm_thread_state64_t, +} +pub type arm_unified_thread_state_t = arm_unified_thread_state; +pub type arm_vfp_state_t = __darwin_arm_vfp_state; +pub type arm_neon_state_t = __darwin_arm_neon_state; +pub type arm_neon_state32_t = __darwin_arm_neon_state; +pub type arm_neon_state64_t = __darwin_arm_neon_state64; +pub type arm_exception_state_t = __darwin_arm_exception_state; +pub type arm_exception_state32_t = __darwin_arm_exception_state; +pub type arm_exception_state64_t = __darwin_arm_exception_state64; +pub type arm_debug_state32_t = __darwin_arm_debug_state32; +pub type arm_debug_state64_t = __darwin_arm_debug_state64; +pub type arm_pagein_state_t = __arm_pagein_state; +pub type arm_debug_state_t = __arm_legacy_debug_state; +pub type thread_state_t = *mut natural_t; +pub type thread_state_data_t = [natural_t; 1296usize]; +pub type thread_state_flavor_t = ::std::os::raw::c_int; +pub type thread_state_flavor_array_t = *mut thread_state_flavor_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipc_info_space { + pub iis_genno_mask: natural_t, + pub iis_table_size: natural_t, + pub iis_table_next: natural_t, + pub iis_tree_size: natural_t, + pub iis_tree_small: natural_t, + pub iis_tree_hash: natural_t, +} +pub type ipc_info_space_t = ipc_info_space; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipc_info_space_basic { + pub iisb_genno_mask: natural_t, + pub iisb_table_size: natural_t, + pub iisb_table_next: natural_t, + pub iisb_table_inuse: natural_t, + pub iisb_reserved: [natural_t; 2usize], +} +pub type ipc_info_space_basic_t = ipc_info_space_basic; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipc_info_name { + pub iin_name: mach_port_name_t, + pub iin_collision: integer_t, + pub iin_type: mach_port_type_t, + pub iin_urefs: mach_port_urefs_t, + pub iin_object: natural_t, + pub iin_next: natural_t, + pub iin_hash: natural_t, +} +pub type ipc_info_name_t = ipc_info_name; +pub type ipc_info_name_array_t = *mut ipc_info_name_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipc_info_tree_name { + pub iitn_name: ipc_info_name_t, + pub iitn_lchild: mach_port_name_t, + pub iitn_rchild: mach_port_name_t, +} +pub type ipc_info_tree_name_t = ipc_info_tree_name; +pub type ipc_info_tree_name_array_t = *mut ipc_info_tree_name_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipc_info_port { + pub iip_port_object: natural_t, + pub iip_receiver_object: natural_t, +} +pub type ipc_info_port_t = ipc_info_port; +pub type exception_handler_info_array_t = *mut ipc_info_port_t; +pub type exception_type_t = ::std::os::raw::c_int; +pub type exception_data_type_t = integer_t; +pub type mach_exception_data_type_t = i64; +pub type exception_behavior_t = ::std::os::raw::c_int; +pub type exception_data_t = *mut exception_data_type_t; +pub type mach_exception_data_t = *mut mach_exception_data_type_t; +pub type exception_mask_t = ::std::os::raw::c_uint; +pub type exception_mask_array_t = *mut exception_mask_t; +pub type exception_behavior_array_t = *mut exception_behavior_t; +pub type exception_flavor_array_t = *mut thread_state_flavor_t; +pub type exception_port_array_t = *mut mach_port_t; +pub type exception_port_info_array_t = *mut ipc_info_port_t; +pub type mach_exception_code_t = mach_exception_data_type_t; +pub type mach_exception_subcode_t = mach_exception_data_type_t; +pub type uuid_t = __darwin_uuid_t; +pub type mach_voucher_t = mach_port_t; +pub type mach_voucher_name_t = mach_port_name_t; +pub type mach_voucher_name_array_t = *mut mach_voucher_name_t; +pub type ipc_voucher_t = mach_voucher_t; +pub type mach_voucher_selector_t = u32; +pub type mach_voucher_attr_key_t = u32; +pub type mach_voucher_attr_key_array_t = *mut mach_voucher_attr_key_t; +pub type mach_voucher_attr_content_t = *mut u8; +pub type mach_voucher_attr_content_size_t = u32; +pub type mach_voucher_attr_command_t = u32; +pub type mach_voucher_attr_recipe_command_t = u32; +pub type mach_voucher_attr_recipe_command_array_t = *mut mach_voucher_attr_recipe_command_t; +#[repr(C, packed)] +pub struct mach_voucher_attr_recipe_data { + pub key: mach_voucher_attr_key_t, + pub command: mach_voucher_attr_recipe_command_t, + pub previous_voucher: mach_voucher_name_t, + pub content_size: mach_voucher_attr_content_size_t, + pub content: __IncompleteArrayField, +} +pub type mach_voucher_attr_recipe_data_t = mach_voucher_attr_recipe_data; +pub type mach_voucher_attr_recipe_t = *mut mach_voucher_attr_recipe_data_t; +pub type mach_voucher_attr_recipe_size_t = mach_msg_type_number_t; +pub type mach_voucher_attr_raw_recipe_t = *mut u8; +pub type mach_voucher_attr_raw_recipe_array_t = mach_voucher_attr_raw_recipe_t; +pub type mach_voucher_attr_raw_recipe_size_t = mach_msg_type_number_t; +pub type mach_voucher_attr_raw_recipe_array_size_t = mach_msg_type_number_t; +pub type mach_voucher_attr_manager_t = mach_port_t; +pub type mach_voucher_attr_control_t = mach_port_t; +pub type ipc_voucher_attr_manager_t = mach_port_t; +pub type ipc_voucher_attr_control_t = mach_port_t; +pub type mach_voucher_attr_value_handle_t = u64; +pub type mach_voucher_attr_value_handle_array_t = *mut mach_voucher_attr_value_handle_t; +pub type mach_voucher_attr_value_handle_array_size_t = mach_msg_type_number_t; +pub type mach_voucher_attr_value_reference_t = u32; +pub type mach_voucher_attr_value_flags_t = u32; +pub type mach_voucher_attr_control_flags_t = u32; +pub type mach_voucher_attr_importance_refs = u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct processor_cpu_stat { + pub irq_ex_cnt: u32, + pub ipi_cnt: u32, + pub timer_cnt: u32, + pub undef_ex_cnt: u32, + pub unaligned_cnt: u32, + pub vfp_cnt: u32, + pub vfp_shortv_cnt: u32, + pub data_ex_cnt: u32, + pub instr_ex_cnt: u32, +} +pub type processor_cpu_stat_data_t = processor_cpu_stat; +pub type processor_cpu_stat_t = *mut processor_cpu_stat; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct processor_cpu_stat64 { + pub irq_ex_cnt: u64, + pub ipi_cnt: u64, + pub timer_cnt: u64, + pub undef_ex_cnt: u64, + pub unaligned_cnt: u64, + pub vfp_cnt: u64, + pub vfp_shortv_cnt: u64, + pub data_ex_cnt: u64, + pub instr_ex_cnt: u64, + pub pmi_cnt: u64, +} +pub type processor_cpu_stat64_data_t = processor_cpu_stat64; +pub type processor_cpu_stat64_t = *mut processor_cpu_stat64; +pub type processor_info_t = *mut integer_t; +pub type processor_info_array_t = *mut integer_t; +pub type processor_info_data_t = [integer_t; 1024usize]; +pub type processor_set_info_t = *mut integer_t; +pub type processor_set_info_data_t = [integer_t; 1024usize]; +pub type processor_flavor_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct processor_basic_info { + pub cpu_type: cpu_type_t, + pub cpu_subtype: cpu_subtype_t, + pub running: boolean_t, + pub slot_num: ::std::os::raw::c_int, + pub __bindgen_anon_1: processor_basic_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union processor_basic_info__bindgen_ty_1 { + pub is_master: boolean_t, + pub is_main: boolean_t, +} +pub type processor_basic_info_data_t = processor_basic_info; +pub type processor_basic_info_t = *mut processor_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct processor_cpu_load_info { + pub cpu_ticks: [::std::os::raw::c_uint; 4usize], +} +pub type processor_cpu_load_info_data_t = processor_cpu_load_info; +pub type processor_cpu_load_info_t = *mut processor_cpu_load_info; +pub type processor_set_flavor_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct processor_set_basic_info { + pub processor_count: ::std::os::raw::c_int, + pub default_policy: ::std::os::raw::c_int, +} +pub type processor_set_basic_info_data_t = processor_set_basic_info; +pub type processor_set_basic_info_t = *mut processor_set_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct processor_set_load_info { + pub task_count: ::std::os::raw::c_int, + pub thread_count: ::std::os::raw::c_int, + pub load_average: integer_t, + pub mach_factor: integer_t, +} +pub type processor_set_load_info_data_t = processor_set_load_info; +pub type processor_set_load_info_t = *mut processor_set_load_info; +pub type policy_t = ::std::os::raw::c_int; +pub type policy_info_t = *mut integer_t; +pub type policy_base_t = *mut integer_t; +pub type policy_limit_t = *mut integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_timeshare_base { + pub base_priority: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_timeshare_limit { + pub max_priority: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_timeshare_info { + pub max_priority: integer_t, + pub base_priority: integer_t, + pub cur_priority: integer_t, + pub depressed: boolean_t, + pub depress_priority: integer_t, +} +pub type policy_timeshare_base_t = *mut policy_timeshare_base; +pub type policy_timeshare_limit_t = *mut policy_timeshare_limit; +pub type policy_timeshare_info_t = *mut policy_timeshare_info; +pub type policy_timeshare_base_data_t = policy_timeshare_base; +pub type policy_timeshare_limit_data_t = policy_timeshare_limit; +pub type policy_timeshare_info_data_t = policy_timeshare_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_rr_base { + pub base_priority: integer_t, + pub quantum: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_rr_limit { + pub max_priority: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_rr_info { + pub max_priority: integer_t, + pub base_priority: integer_t, + pub quantum: integer_t, + pub depressed: boolean_t, + pub depress_priority: integer_t, +} +pub type policy_rr_base_t = *mut policy_rr_base; +pub type policy_rr_limit_t = *mut policy_rr_limit; +pub type policy_rr_info_t = *mut policy_rr_info; +pub type policy_rr_base_data_t = policy_rr_base; +pub type policy_rr_limit_data_t = policy_rr_limit; +pub type policy_rr_info_data_t = policy_rr_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_fifo_base { + pub base_priority: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_fifo_limit { + pub max_priority: integer_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_fifo_info { + pub max_priority: integer_t, + pub base_priority: integer_t, + pub depressed: boolean_t, + pub depress_priority: integer_t, +} +pub type policy_fifo_base_t = *mut policy_fifo_base; +pub type policy_fifo_limit_t = *mut policy_fifo_limit; +pub type policy_fifo_info_t = *mut policy_fifo_info; +pub type policy_fifo_base_data_t = policy_fifo_base; +pub type policy_fifo_limit_data_t = policy_fifo_limit; +pub type policy_fifo_info_data_t = policy_fifo_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_bases { + pub ts: policy_timeshare_base_data_t, + pub rr: policy_rr_base_data_t, + pub fifo: policy_fifo_base_data_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_limits { + pub ts: policy_timeshare_limit_data_t, + pub rr: policy_rr_limit_data_t, + pub fifo: policy_fifo_limit_data_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct policy_infos { + pub ts: policy_timeshare_info_data_t, + pub rr: policy_rr_info_data_t, + pub fifo: policy_fifo_info_data_t, +} +pub type policy_base_data_t = policy_bases; +pub type policy_limit_data_t = policy_limits; +pub type policy_info_data_t = policy_infos; +pub type task_flavor_t = natural_t; +pub type task_info_t = *mut integer_t; +pub type task_info_data_t = [integer_t; 1024usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_basic_info_32 { + pub suspend_count: integer_t, + pub virtual_size: natural_t, + pub resident_size: natural_t, + pub user_time: time_value_t, + pub system_time: time_value_t, + pub policy: policy_t, +} +pub type task_basic_info_32_data_t = task_basic_info_32; +pub type task_basic_info_32_t = *mut task_basic_info_32; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_basic_info_64 { + pub suspend_count: integer_t, + pub virtual_size: mach_vm_size_t, + pub resident_size: mach_vm_size_t, + pub user_time: time_value_t, + pub system_time: time_value_t, + pub policy: policy_t, +} +pub type task_basic_info_64_data_t = task_basic_info_64; +pub type task_basic_info_64_t = *mut task_basic_info_64; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_basic_info { + pub suspend_count: integer_t, + pub virtual_size: vm_size_t, + pub resident_size: vm_size_t, + pub user_time: time_value_t, + pub system_time: time_value_t, + pub policy: policy_t, +} +pub type task_basic_info_data_t = task_basic_info; +pub type task_basic_info_t = *mut task_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_events_info { + pub faults: integer_t, + pub pageins: integer_t, + pub cow_faults: integer_t, + pub messages_sent: integer_t, + pub messages_received: integer_t, + pub syscalls_mach: integer_t, + pub syscalls_unix: integer_t, + pub csw: integer_t, +} +pub type task_events_info_data_t = task_events_info; +pub type task_events_info_t = *mut task_events_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_thread_times_info { + pub user_time: time_value_t, + pub system_time: time_value_t, +} +pub type task_thread_times_info_data_t = task_thread_times_info; +pub type task_thread_times_info_t = *mut task_thread_times_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_absolutetime_info { + pub total_user: u64, + pub total_system: u64, + pub threads_user: u64, + pub threads_system: u64, +} +pub type task_absolutetime_info_data_t = task_absolutetime_info; +pub type task_absolutetime_info_t = *mut task_absolutetime_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_kernelmemory_info { + pub total_palloc: u64, + pub total_pfree: u64, + pub total_salloc: u64, + pub total_sfree: u64, +} +pub type task_kernelmemory_info_data_t = task_kernelmemory_info; +pub type task_kernelmemory_info_t = *mut task_kernelmemory_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_affinity_tag_info { + pub set_count: integer_t, + pub min: integer_t, + pub max: integer_t, + pub task_count: integer_t, +} +pub type task_affinity_tag_info_data_t = task_affinity_tag_info; +pub type task_affinity_tag_info_t = *mut task_affinity_tag_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_dyld_info { + pub all_image_info_addr: mach_vm_address_t, + pub all_image_info_size: mach_vm_size_t, + pub all_image_info_format: integer_t, +} +pub type task_dyld_info_data_t = task_dyld_info; +pub type task_dyld_info_t = *mut task_dyld_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_basic_info_64_2 { + pub suspend_count: integer_t, + pub virtual_size: mach_vm_size_t, + pub resident_size: mach_vm_size_t, + pub user_time: time_value_t, + pub system_time: time_value_t, + pub policy: policy_t, +} +pub type task_basic_info_64_2_data_t = task_basic_info_64_2; +pub type task_basic_info_64_2_t = *mut task_basic_info_64_2; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_extmod_info { + pub task_uuid: [::std::os::raw::c_uchar; 16usize], + pub extmod_statistics: vm_extmod_statistics_data_t, +} +pub type task_extmod_info_data_t = task_extmod_info; +pub type task_extmod_info_t = *mut task_extmod_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_task_basic_info { + pub virtual_size: mach_vm_size_t, + pub resident_size: mach_vm_size_t, + pub resident_size_max: mach_vm_size_t, + pub user_time: time_value_t, + pub system_time: time_value_t, + pub policy: policy_t, + pub suspend_count: integer_t, +} +pub type mach_task_basic_info_data_t = mach_task_basic_info; +pub type mach_task_basic_info_t = *mut mach_task_basic_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_power_info { + pub total_user: u64, + pub total_system: u64, + pub task_interrupt_wakeups: u64, + pub task_platform_idle_wakeups: u64, + pub task_timer_wakeups_bin_1: u64, + pub task_timer_wakeups_bin_2: u64, +} +pub type task_power_info_data_t = task_power_info; +pub type task_power_info_t = *mut task_power_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_vm_info { + pub virtual_size: mach_vm_size_t, + pub region_count: integer_t, + pub page_size: integer_t, + pub resident_size: mach_vm_size_t, + pub resident_size_peak: mach_vm_size_t, + pub device: mach_vm_size_t, + pub device_peak: mach_vm_size_t, + pub internal: mach_vm_size_t, + pub internal_peak: mach_vm_size_t, + pub external: mach_vm_size_t, + pub external_peak: mach_vm_size_t, + pub reusable: mach_vm_size_t, + pub reusable_peak: mach_vm_size_t, + pub purgeable_volatile_pmap: mach_vm_size_t, + pub purgeable_volatile_resident: mach_vm_size_t, + pub purgeable_volatile_virtual: mach_vm_size_t, + pub compressed: mach_vm_size_t, + pub compressed_peak: mach_vm_size_t, + pub compressed_lifetime: mach_vm_size_t, + pub phys_footprint: mach_vm_size_t, + pub min_address: mach_vm_address_t, + pub max_address: mach_vm_address_t, + pub ledger_phys_footprint_peak: i64, + pub ledger_purgeable_nonvolatile: i64, + pub ledger_purgeable_novolatile_compressed: i64, + pub ledger_purgeable_volatile: i64, + pub ledger_purgeable_volatile_compressed: i64, + pub ledger_tag_network_nonvolatile: i64, + pub ledger_tag_network_nonvolatile_compressed: i64, + pub ledger_tag_network_volatile: i64, + pub ledger_tag_network_volatile_compressed: i64, + pub ledger_tag_media_footprint: i64, + pub ledger_tag_media_footprint_compressed: i64, + pub ledger_tag_media_nofootprint: i64, + pub ledger_tag_media_nofootprint_compressed: i64, + pub ledger_tag_graphics_footprint: i64, + pub ledger_tag_graphics_footprint_compressed: i64, + pub ledger_tag_graphics_nofootprint: i64, + pub ledger_tag_graphics_nofootprint_compressed: i64, + pub ledger_tag_neural_footprint: i64, + pub ledger_tag_neural_footprint_compressed: i64, + pub ledger_tag_neural_nofootprint: i64, + pub ledger_tag_neural_nofootprint_compressed: i64, + pub limit_bytes_remaining: u64, + pub decompressions: integer_t, + pub ledger_swapins: i64, +} +pub type task_vm_info_data_t = task_vm_info; +pub type task_vm_info_t = *mut task_vm_info; +pub type task_purgable_info_t = vm_purgeable_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_trace_memory_info { + pub user_memory_address: u64, + pub buffer_size: u64, + pub mailbox_array_size: u64, +} +pub type task_trace_memory_info_data_t = task_trace_memory_info; +pub type task_trace_memory_info_t = *mut task_trace_memory_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_wait_state_info { + pub total_wait_state_time: u64, + pub total_wait_sfi_state_time: u64, + pub _reserved: [u32; 4usize], +} +pub type task_wait_state_info_data_t = task_wait_state_info; +pub type task_wait_state_info_t = *mut task_wait_state_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct gpu_energy_data { + pub task_gpu_utilisation: u64, + pub task_gpu_stat_reserved0: u64, + pub task_gpu_stat_reserved1: u64, + pub task_gpu_stat_reserved2: u64, +} +pub type gpu_energy_data_t = *mut gpu_energy_data; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct task_power_info_v2 { + pub cpu_energy: task_power_info_data_t, + pub gpu_energy: gpu_energy_data, + pub task_energy: u64, + pub task_ptime: u64, + pub task_pset_switches: u64, +} +pub type task_power_info_v2_data_t = task_power_info_v2; +pub type task_power_info_v2_t = *mut task_power_info_v2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_flags_info { + pub flags: u32, +} +pub type task_flags_info_data_t = task_flags_info; +pub type task_flags_info_t = *mut task_flags_info; +pub type task_exc_guard_behavior_t = u32; +pub type task_corpse_forking_behavior_t = u32; +pub type task_inspect_flavor_t = natural_t; +pub const task_inspect_flavor_TASK_INSPECT_BASIC_COUNTS: task_inspect_flavor = 1; +pub type task_inspect_flavor = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_inspect_basic_counts { + pub instructions: u64, + pub cycles: u64, +} +pub type task_inspect_basic_counts_data_t = task_inspect_basic_counts; +pub type task_inspect_basic_counts_t = *mut task_inspect_basic_counts; +pub type task_inspect_info_t = *mut integer_t; +pub type task_policy_flavor_t = natural_t; +pub type task_policy_t = *mut integer_t; +pub const task_role_TASK_RENICED: task_role = -1; +pub const task_role_TASK_UNSPECIFIED: task_role = 0; +pub const task_role_TASK_FOREGROUND_APPLICATION: task_role = 1; +pub const task_role_TASK_BACKGROUND_APPLICATION: task_role = 2; +pub const task_role_TASK_CONTROL_APPLICATION: task_role = 3; +pub const task_role_TASK_GRAPHICS_SERVER: task_role = 4; +pub const task_role_TASK_THROTTLE_APPLICATION: task_role = 5; +pub const task_role_TASK_NONUI_APPLICATION: task_role = 6; +pub const task_role_TASK_DEFAULT_APPLICATION: task_role = 7; +pub const task_role_TASK_DARWINBG_APPLICATION: task_role = 8; +pub type task_role = ::std::os::raw::c_int; +pub use self::task_role as task_role_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_category_policy { + pub role: task_role_t, +} +pub type task_category_policy_data_t = task_category_policy; +pub type task_category_policy_t = *mut task_category_policy; +pub const task_latency_qos_LATENCY_QOS_TIER_UNSPECIFIED: task_latency_qos = 0; +pub const task_latency_qos_LATENCY_QOS_TIER_0: task_latency_qos = 16711681; +pub const task_latency_qos_LATENCY_QOS_TIER_1: task_latency_qos = 16711682; +pub const task_latency_qos_LATENCY_QOS_TIER_2: task_latency_qos = 16711683; +pub const task_latency_qos_LATENCY_QOS_TIER_3: task_latency_qos = 16711684; +pub const task_latency_qos_LATENCY_QOS_TIER_4: task_latency_qos = 16711685; +pub const task_latency_qos_LATENCY_QOS_TIER_5: task_latency_qos = 16711686; +pub type task_latency_qos = ::std::os::raw::c_uint; +pub type task_latency_qos_t = integer_t; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_UNSPECIFIED: task_throughput_qos = 0; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_0: task_throughput_qos = 16646145; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_1: task_throughput_qos = 16646146; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_2: task_throughput_qos = 16646147; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_3: task_throughput_qos = 16646148; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_4: task_throughput_qos = 16646149; +pub const task_throughput_qos_THROUGHPUT_QOS_TIER_5: task_throughput_qos = 16646150; +pub type task_throughput_qos = ::std::os::raw::c_uint; +pub type task_throughput_qos_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct task_qos_policy { + pub task_latency_qos_tier: task_latency_qos_t, + pub task_throughput_qos_tier: task_throughput_qos_t, +} +pub type task_qos_policy_t = *mut task_qos_policy; +pub type task_special_port_t = ::std::os::raw::c_int; +pub type thread_flavor_t = natural_t; +pub type thread_info_t = *mut integer_t; +pub type thread_info_data_t = [integer_t; 32usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_basic_info { + pub user_time: time_value_t, + pub system_time: time_value_t, + pub cpu_usage: integer_t, + pub policy: policy_t, + pub run_state: integer_t, + pub flags: integer_t, + pub suspend_count: integer_t, + pub sleep_time: integer_t, +} +pub type thread_basic_info_data_t = thread_basic_info; +pub type thread_basic_info_t = *mut thread_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_identifier_info { + pub thread_id: u64, + pub thread_handle: u64, + pub dispatch_qaddr: u64, +} +pub type thread_identifier_info_data_t = thread_identifier_info; +pub type thread_identifier_info_t = *mut thread_identifier_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_extended_info { + pub pth_user_time: u64, + pub pth_system_time: u64, + pub pth_cpu_usage: i32, + pub pth_policy: i32, + pub pth_run_state: i32, + pub pth_flags: i32, + pub pth_sleep_time: i32, + pub pth_curpri: i32, + pub pth_priority: i32, + pub pth_maxpriority: i32, + pub pth_name: [::std::os::raw::c_char; 64usize], +} +pub type thread_extended_info_data_t = thread_extended_info; +pub type thread_extended_info_t = *mut thread_extended_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_stat_entry { + pub count: u64, + pub size: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_stat_info { + pub disk_reads: io_stat_entry, + pub io_priority: [io_stat_entry; 4usize], + pub paging: io_stat_entry, + pub metadata: io_stat_entry, + pub total_io: io_stat_entry, +} +pub type io_stat_info_t = *mut io_stat_info; +pub type thread_policy_flavor_t = natural_t; +pub type thread_policy_t = *mut integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_standard_policy { + pub no_data: natural_t, +} +pub type thread_standard_policy_data_t = thread_standard_policy; +pub type thread_standard_policy_t = *mut thread_standard_policy; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_extended_policy { + pub timeshare: boolean_t, +} +pub type thread_extended_policy_data_t = thread_extended_policy; +pub type thread_extended_policy_t = *mut thread_extended_policy; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_time_constraint_policy { + pub period: u32, + pub computation: u32, + pub constraint: u32, + pub preemptible: boolean_t, +} +pub type thread_time_constraint_policy_data_t = thread_time_constraint_policy; +pub type thread_time_constraint_policy_t = *mut thread_time_constraint_policy; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_precedence_policy { + pub importance: integer_t, +} +pub type thread_precedence_policy_data_t = thread_precedence_policy; +pub type thread_precedence_policy_t = *mut thread_precedence_policy; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_affinity_policy { + pub affinity_tag: integer_t, +} +pub type thread_affinity_policy_data_t = thread_affinity_policy; +pub type thread_affinity_policy_t = *mut thread_affinity_policy; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_background_policy { + pub priority: integer_t, +} +pub type thread_background_policy_data_t = thread_background_policy; +pub type thread_background_policy_t = *mut thread_background_policy; +pub type thread_latency_qos_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_latency_qos_policy { + pub thread_latency_qos_tier: thread_latency_qos_t, +} +pub type thread_latency_qos_policy_data_t = thread_latency_qos_policy; +pub type thread_latency_qos_policy_t = *mut thread_latency_qos_policy; +pub type thread_throughput_qos_t = integer_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct thread_throughput_qos_policy { + pub thread_throughput_qos_tier: thread_throughput_qos_t, +} +pub type thread_throughput_qos_policy_data_t = thread_throughput_qos_policy; +pub type thread_throughput_qos_policy_t = *mut thread_throughput_qos_policy; +pub type alarm_type_t = ::std::os::raw::c_int; +pub type sleep_type_t = ::std::os::raw::c_int; +pub type clock_id_t = ::std::os::raw::c_int; +pub type clock_flavor_t = ::std::os::raw::c_int; +pub type clock_attr_t = *mut ::std::os::raw::c_int; +pub type clock_res_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_timespec { + pub tv_sec: ::std::os::raw::c_uint, + pub tv_nsec: clock_res_t, +} +pub type mach_timespec_t = mach_timespec; +pub type vm_machine_attribute_t = ::std::os::raw::c_uint; +pub type vm_machine_attribute_val_t = ::std::os::raw::c_int; +pub type vm_inherit_t = ::std::os::raw::c_uint; +pub type vm_purgable_t = ::std::os::raw::c_int; +pub type vm_behavior_t = ::std::os::raw::c_int; +extern "C" { + pub static mut vm_page_size: vm_size_t; +} +extern "C" { + pub static mut vm_page_mask: vm_size_t; +} +extern "C" { + pub static mut vm_page_shift: ::std::os::raw::c_int; +} +extern "C" { + pub static mut vm_kernel_page_size: vm_size_t; +} +extern "C" { + pub static mut vm_kernel_page_mask: vm_size_t; +} +extern "C" { + pub static mut vm_kernel_page_shift: ::std::os::raw::c_int; +} +pub type vm32_object_id_t = u32; +pub type vm_region_info_t = *mut ::std::os::raw::c_int; +pub type vm_region_info_64_t = *mut ::std::os::raw::c_int; +pub type vm_region_recurse_info_t = *mut ::std::os::raw::c_int; +pub type vm_region_recurse_info_64_t = *mut ::std::os::raw::c_int; +pub type vm_region_flavor_t = ::std::os::raw::c_int; +pub type vm_region_info_data_t = [::std::os::raw::c_int; 1024usize]; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_basic_info_64 { + pub protection: vm_prot_t, + pub max_protection: vm_prot_t, + pub inheritance: vm_inherit_t, + pub shared: boolean_t, + pub reserved: boolean_t, + pub offset: memory_object_offset_t, + pub behavior: vm_behavior_t, + pub user_wired_count: ::std::os::raw::c_ushort, +} +pub type vm_region_basic_info_64_t = *mut vm_region_basic_info_64; +pub type vm_region_basic_info_data_64_t = vm_region_basic_info_64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_basic_info { + pub protection: vm_prot_t, + pub max_protection: vm_prot_t, + pub inheritance: vm_inherit_t, + pub shared: boolean_t, + pub reserved: boolean_t, + pub offset: u32, + pub behavior: vm_behavior_t, + pub user_wired_count: ::std::os::raw::c_ushort, +} +pub type vm_region_basic_info_t = *mut vm_region_basic_info; +pub type vm_region_basic_info_data_t = vm_region_basic_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_extended_info { + pub protection: vm_prot_t, + pub user_tag: ::std::os::raw::c_uint, + pub pages_resident: ::std::os::raw::c_uint, + pub pages_shared_now_private: ::std::os::raw::c_uint, + pub pages_swapped_out: ::std::os::raw::c_uint, + pub pages_dirtied: ::std::os::raw::c_uint, + pub ref_count: ::std::os::raw::c_uint, + pub shadow_depth: ::std::os::raw::c_ushort, + pub external_pager: ::std::os::raw::c_uchar, + pub share_mode: ::std::os::raw::c_uchar, + pub pages_reusable: ::std::os::raw::c_uint, +} +pub type vm_region_extended_info_t = *mut vm_region_extended_info; +pub type vm_region_extended_info_data_t = vm_region_extended_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_top_info { + pub obj_id: ::std::os::raw::c_uint, + pub ref_count: ::std::os::raw::c_uint, + pub private_pages_resident: ::std::os::raw::c_uint, + pub shared_pages_resident: ::std::os::raw::c_uint, + pub share_mode: ::std::os::raw::c_uchar, +} +pub type vm_region_top_info_t = *mut vm_region_top_info; +pub type vm_region_top_info_data_t = vm_region_top_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_submap_info { + pub protection: vm_prot_t, + pub max_protection: vm_prot_t, + pub inheritance: vm_inherit_t, + pub offset: u32, + pub user_tag: ::std::os::raw::c_uint, + pub pages_resident: ::std::os::raw::c_uint, + pub pages_shared_now_private: ::std::os::raw::c_uint, + pub pages_swapped_out: ::std::os::raw::c_uint, + pub pages_dirtied: ::std::os::raw::c_uint, + pub ref_count: ::std::os::raw::c_uint, + pub shadow_depth: ::std::os::raw::c_ushort, + pub external_pager: ::std::os::raw::c_uchar, + pub share_mode: ::std::os::raw::c_uchar, + pub is_submap: boolean_t, + pub behavior: vm_behavior_t, + pub object_id: vm32_object_id_t, + pub user_wired_count: ::std::os::raw::c_ushort, +} +pub type vm_region_submap_info_t = *mut vm_region_submap_info; +pub type vm_region_submap_info_data_t = vm_region_submap_info; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_submap_info_64 { + pub protection: vm_prot_t, + pub max_protection: vm_prot_t, + pub inheritance: vm_inherit_t, + pub offset: memory_object_offset_t, + pub user_tag: ::std::os::raw::c_uint, + pub pages_resident: ::std::os::raw::c_uint, + pub pages_shared_now_private: ::std::os::raw::c_uint, + pub pages_swapped_out: ::std::os::raw::c_uint, + pub pages_dirtied: ::std::os::raw::c_uint, + pub ref_count: ::std::os::raw::c_uint, + pub shadow_depth: ::std::os::raw::c_ushort, + pub external_pager: ::std::os::raw::c_uchar, + pub share_mode: ::std::os::raw::c_uchar, + pub is_submap: boolean_t, + pub behavior: vm_behavior_t, + pub object_id: vm32_object_id_t, + pub user_wired_count: ::std::os::raw::c_ushort, + pub pages_reusable: ::std::os::raw::c_uint, + pub object_id_full: vm_object_id_t, +} +pub type vm_region_submap_info_64_t = *mut vm_region_submap_info_64; +pub type vm_region_submap_info_data_64_t = vm_region_submap_info_64; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct vm_region_submap_short_info_64 { + pub protection: vm_prot_t, + pub max_protection: vm_prot_t, + pub inheritance: vm_inherit_t, + pub offset: memory_object_offset_t, + pub user_tag: ::std::os::raw::c_uint, + pub ref_count: ::std::os::raw::c_uint, + pub shadow_depth: ::std::os::raw::c_ushort, + pub external_pager: ::std::os::raw::c_uchar, + pub share_mode: ::std::os::raw::c_uchar, + pub is_submap: boolean_t, + pub behavior: vm_behavior_t, + pub object_id: vm32_object_id_t, + pub user_wired_count: ::std::os::raw::c_ushort, +} +pub type vm_region_submap_short_info_64_t = *mut vm_region_submap_short_info_64; +pub type vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct mach_vm_read_entry { + pub address: mach_vm_address_t, + pub size: mach_vm_size_t, +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct vm_read_entry { + pub address: vm_address_t, + pub size: vm_size_t, +} +pub type mach_vm_read_entry_t = [mach_vm_read_entry; 256usize]; +pub type vm_read_entry_t = [vm_read_entry; 256usize]; +pub type vm_page_info_t = *mut ::std::os::raw::c_int; +pub type vm_page_info_data_t = [::std::os::raw::c_int; 0usize]; +pub type vm_page_info_flavor_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vm_page_info_basic { + pub disposition: ::std::os::raw::c_int, + pub ref_count: ::std::os::raw::c_int, + pub object_id: vm_object_id_t, + pub offset: memory_object_offset_t, + pub depth: ::std::os::raw::c_int, + pub __pad: ::std::os::raw::c_int, +} +pub type vm_page_info_basic_t = *mut vm_page_info_basic; +pub type vm_page_info_basic_data_t = vm_page_info_basic; +pub type kmod_t = ::std::os::raw::c_int; +pub type kmod_start_func_t = ::std::option::Option< + unsafe extern "C" fn(ki: *mut kmod_info, data: *mut ::std::os::raw::c_void) -> kern_return_t, +>; +pub type kmod_stop_func_t = ::std::option::Option< + unsafe extern "C" fn(ki: *mut kmod_info, data: *mut ::std::os::raw::c_void) -> kern_return_t, +>; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct kmod_reference { + pub next: *mut kmod_reference, + pub info: *mut kmod_info, +} +pub type kmod_reference_t = kmod_reference; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct kmod_info { + pub next: *mut kmod_info, + pub info_version: i32, + pub id: u32, + pub name: [::std::os::raw::c_char; 64usize], + pub version: [::std::os::raw::c_char; 64usize], + pub reference_count: i32, + pub reference_list: *mut kmod_reference_t, + pub address: vm_address_t, + pub size: vm_size_t, + pub hdr_size: vm_size_t, + pub start: kmod_start_func_t, + pub stop: kmod_stop_func_t, +} +pub type kmod_info_t = kmod_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kmod_info_32_v1 { + pub next_addr: u32, + pub info_version: i32, + pub id: u32, + pub name: [u8; 64usize], + pub version: [u8; 64usize], + pub reference_count: i32, + pub reference_list_addr: u32, + pub address: u32, + pub size: u32, + pub hdr_size: u32, + pub start_addr: u32, + pub stop_addr: u32, +} +pub type kmod_info_32_v1_t = kmod_info_32_v1; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct kmod_info_64_v1 { + pub next_addr: u64, + pub info_version: i32, + pub id: u32, + pub name: [u8; 64usize], + pub version: [u8; 64usize], + pub reference_count: i32, + pub reference_list_addr: u64, + pub address: u64, + pub size: u64, + pub hdr_size: u64, + pub start_addr: u64, + pub stop_addr: u64, +} +pub type kmod_info_64_v1_t = kmod_info_64_v1; +pub type kmod_args_t = *mut ::std::os::raw::c_void; +pub type kmod_control_flavor_t = ::std::os::raw::c_int; +pub type kmod_info_array_t = *mut kmod_info_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsid { + pub val: [i32; 2usize], +} +pub type fsid_t = fsid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsobj_id { + pub fid_objno: u_int32_t, + pub fid_generation: u_int32_t, +} +pub type fsobj_id_t = fsobj_id; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dyld_kernel_image_info { + pub uuid: uuid_t, + pub fsobjid: fsobj_id_t, + pub fsid: fsid_t, + pub load_addr: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dyld_kernel_process_info { + pub cache_image_info: dyld_kernel_image_info, + pub timestamp: u64, + pub imageCount: u32, + pub initialImageCount: u32, + pub dyldState: u8, + pub no_cache: boolean_t, + pub private_cache: boolean_t, +} +pub type dyld_kernel_image_info_t = dyld_kernel_image_info; +pub type dyld_kernel_process_info_t = dyld_kernel_process_info; +pub type dyld_kernel_image_info_array_t = *mut dyld_kernel_image_info_t; +pub type task_t = mach_port_t; +pub type task_name_t = mach_port_t; +pub type task_policy_set_t = mach_port_t; +pub type task_policy_get_t = mach_port_t; +pub type task_inspect_t = mach_port_t; +pub type task_read_t = mach_port_t; +pub type task_suspension_token_t = mach_port_t; +pub type thread_t = mach_port_t; +pub type thread_act_t = mach_port_t; +pub type thread_inspect_t = mach_port_t; +pub type thread_read_t = mach_port_t; +pub type ipc_space_t = mach_port_t; +pub type ipc_space_read_t = mach_port_t; +pub type ipc_space_inspect_t = mach_port_t; +pub type coalition_t = mach_port_t; +pub type host_t = mach_port_t; +pub type host_priv_t = mach_port_t; +pub type host_security_t = mach_port_t; +pub type processor_t = mach_port_t; +pub type processor_set_t = mach_port_t; +pub type processor_set_control_t = mach_port_t; +pub type semaphore_t = mach_port_t; +pub type lock_set_t = mach_port_t; +pub type ledger_t = mach_port_t; +pub type alarm_t = mach_port_t; +pub type clock_serv_t = mach_port_t; +pub type clock_ctrl_t = mach_port_t; +pub type arcade_register_t = mach_port_t; +pub type ipc_eventlink_t = mach_port_t; +pub type eventlink_port_pair_t = [mach_port_t; 2usize]; +pub type task_id_token_t = mach_port_t; +pub type kcdata_object_t = mach_port_t; +pub type processor_set_name_t = processor_set_t; +pub type clock_reply_t = mach_port_t; +pub type bootstrap_t = mach_port_t; +pub type mem_entry_name_port_t = mach_port_t; +pub type exception_handler_t = mach_port_t; +pub type exception_handler_array_t = *mut exception_handler_t; +pub type vm_task_entry_t = mach_port_t; +pub type io_main_t = mach_port_t; +pub type UNDServerRef = mach_port_t; +pub type mach_eventlink_t = mach_port_t; +pub type exception_handler_info_t = ipc_info_port_t; +pub type task_array_t = *mut task_t; +pub type thread_array_t = *mut thread_t; +pub type processor_set_array_t = *mut processor_set_t; +pub type processor_set_name_array_t = *mut processor_set_t; +pub type processor_array_t = *mut processor_t; +pub type thread_act_array_t = *mut thread_act_t; +pub type ledger_array_t = *mut ledger_t; +pub type task_port_t = task_t; +pub type task_port_array_t = task_array_t; +pub type thread_port_t = thread_t; +pub type thread_port_array_t = thread_array_t; +pub type ipc_space_port_t = ipc_space_t; +pub type host_name_t = host_t; +pub type host_name_port_t = host_t; +pub type processor_set_port_t = processor_set_t; +pub type processor_set_name_port_t = processor_set_t; +pub type processor_set_name_port_array_t = processor_set_array_t; +pub type processor_set_control_port_t = processor_set_t; +pub type processor_port_t = processor_t; +pub type processor_port_array_t = processor_array_t; +pub type thread_act_port_t = thread_act_t; +pub type thread_act_port_array_t = thread_act_array_t; +pub type semaphore_port_t = semaphore_t; +pub type lock_set_port_t = lock_set_t; +pub type ledger_port_t = ledger_t; +pub type ledger_port_array_t = ledger_array_t; +pub type alarm_port_t = alarm_t; +pub type clock_serv_port_t = clock_serv_t; +pub type clock_ctrl_port_t = clock_ctrl_t; +pub type exception_port_t = exception_handler_t; +pub type exception_port_arrary_t = exception_handler_array_t; +pub type vfs_path_t = [::std::os::raw::c_char; 4096usize]; +pub type nspace_path_t = [::std::os::raw::c_char; 1024usize]; +pub type nspace_name_t = [::std::os::raw::c_char; 1024usize]; +pub type mach_task_flavor_t = ::std::os::raw::c_uint; +pub type mach_thread_flavor_t = ::std::os::raw::c_uint; +pub type ledger_item_t = natural_t; +pub type ledger_amount_t = i64; +pub type emulation_vector_t = *mut mach_vm_offset_t; +pub type user_subsystem_t = *mut ::std::os::raw::c_char; +pub type labelstr_t = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mach_timebase_info { + pub numer: u32, + pub denom: u32, +} +pub type mach_timebase_info_t = *mut mach_timebase_info; +pub type mach_timebase_info_data_t = mach_timebase_info; +extern "C" { + pub fn mach_timebase_info(info: mach_timebase_info_t) -> kern_return_t; +} +extern "C" { + pub fn mach_wait_until(deadline: u64) -> kern_return_t; +} +extern "C" { + pub fn mach_absolute_time() -> u64; +} +extern "C" { + pub fn mach_approximate_time() -> u64; +} +extern "C" { + pub fn mach_continuous_time() -> u64; +} +extern "C" { + pub fn mach_continuous_approximate_time() -> u64; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_STOPWATCH { + pub timebase: mach_timebase_info_data_t, + pub start: u64, +} +pub type YR_STOPWATCH = _YR_STOPWATCH; +extern "C" { + pub fn yr_stopwatch_start(stopwatch: *mut YR_STOPWATCH); +} +extern "C" { + pub fn yr_stopwatch_elapsed_ns(stopwatch: *mut YR_STOPWATCH) -> u64; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sched_param { + pub sched_priority: ::std::os::raw::c_int, + pub __opaque: [::std::os::raw::c_char; 4usize], +} +extern "C" { + pub fn sched_yield() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_min(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_max(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +pub type pthread_cond_t = __darwin_pthread_cond_t; +pub type pthread_condattr_t = __darwin_pthread_condattr_t; +pub type pthread_key_t = __darwin_pthread_key_t; +pub type pthread_mutex_t = __darwin_pthread_mutex_t; +pub type pthread_mutexattr_t = __darwin_pthread_mutexattr_t; +pub type pthread_once_t = __darwin_pthread_once_t; +pub type pthread_rwlock_t = __darwin_pthread_rwlock_t; +pub type pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; +pub type pthread_t = __darwin_pthread_t; +pub const QOS_CLASS_USER_INTERACTIVE: _bindgen_ty_1 = 33; +pub const QOS_CLASS_USER_INITIATED: _bindgen_ty_1 = 25; +pub const QOS_CLASS_DEFAULT: _bindgen_ty_1 = 21; +pub const QOS_CLASS_UTILITY: _bindgen_ty_1 = 17; +pub const QOS_CLASS_BACKGROUND: _bindgen_ty_1 = 9; +pub const QOS_CLASS_UNSPECIFIED: _bindgen_ty_1 = 0; +pub type _bindgen_ty_1 = ::std::os::raw::c_uint; +pub type qos_class_t = ::std::os::raw::c_uint; +extern "C" { + pub fn qos_class_self() -> qos_class_t; +} +extern "C" { + pub fn qos_class_main() -> qos_class_t; +} +extern "C" { + pub fn pthread_attr_set_qos_class_np( + __attr: *mut pthread_attr_t, + __qos_class: qos_class_t, + __relative_priority: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_get_qos_class_np( + __attr: *mut pthread_attr_t, + __qos_class: *mut qos_class_t, + __relative_priority: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_set_qos_class_self_np( + __qos_class: qos_class_t, + __relative_priority: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_get_qos_class_np( + __pthread: pthread_t, + __qos_class: *mut qos_class_t, + __relative_priority: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pthread_override_s { + _unused: [u8; 0], +} +pub type pthread_override_t = *mut pthread_override_s; +extern "C" { + pub fn pthread_override_qos_class_start_np( + __pthread: pthread_t, + __qos_class: qos_class_t, + __relative_priority: ::std::os::raw::c_int, + ) -> pthread_override_t; +} +extern "C" { + pub fn pthread_override_qos_class_end_np( + __override: pthread_override_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_atfork( + arg1: ::std::option::Option, + arg2: ::std::option::Option, + arg3: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_destroy(arg1: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getdetachstate( + arg1: *const pthread_attr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getguardsize( + arg1: *const pthread_attr_t, + arg2: *mut size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getinheritsched( + arg1: *const pthread_attr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedparam( + arg1: *const pthread_attr_t, + arg2: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedpolicy( + arg1: *const pthread_attr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getscope( + arg1: *const pthread_attr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstack( + arg1: *const pthread_attr_t, + arg2: *mut *mut ::std::os::raw::c_void, + arg3: *mut size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstackaddr( + arg1: *const pthread_attr_t, + arg2: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstacksize( + arg1: *const pthread_attr_t, + arg2: *mut size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_init(arg1: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setdetachstate( + arg1: *mut pthread_attr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setguardsize( + arg1: *mut pthread_attr_t, + arg2: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setinheritsched( + arg1: *mut pthread_attr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedparam( + arg1: *mut pthread_attr_t, + arg2: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedpolicy( + arg1: *mut pthread_attr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setscope( + arg1: *mut pthread_attr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstack( + arg1: *mut pthread_attr_t, + arg2: *mut ::std::os::raw::c_void, + arg3: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstackaddr( + arg1: *mut pthread_attr_t, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstacksize( + arg1: *mut pthread_attr_t, + arg2: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cancel(arg1: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_broadcast(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_destroy(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_init( + arg1: *mut pthread_cond_t, + arg2: *const pthread_condattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_signal(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_timedwait( + arg1: *mut pthread_cond_t, + arg2: *mut pthread_mutex_t, + arg3: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_wait( + arg1: *mut pthread_cond_t, + arg2: *mut pthread_mutex_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_destroy(arg1: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_init(arg1: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_getpshared( + arg1: *const pthread_condattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_setpshared( + arg1: *mut pthread_condattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_create( + arg1: *mut pthread_t, + arg2: *const pthread_attr_t, + arg3: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_detach(arg1: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_equal(arg1: pthread_t, arg2: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_exit(arg1: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn pthread_getconcurrency() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getschedparam( + arg1: pthread_t, + arg2: *mut ::std::os::raw::c_int, + arg3: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getspecific(arg1: pthread_key_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn pthread_join( + arg1: pthread_t, + arg2: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_create( + arg1: *mut pthread_key_t, + arg2: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_delete(arg1: pthread_key_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_destroy(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_getprioceiling( + arg1: *const pthread_mutex_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_init( + arg1: *mut pthread_mutex_t, + arg2: *const pthread_mutexattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_lock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_setprioceiling( + arg1: *mut pthread_mutex_t, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_trylock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_unlock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_destroy(arg1: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprioceiling( + arg1: *const pthread_mutexattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprotocol( + arg1: *const pthread_mutexattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getpshared( + arg1: *const pthread_mutexattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_gettype( + arg1: *const pthread_mutexattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getpolicy_np( + arg1: *const pthread_mutexattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_init(arg1: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprioceiling( + arg1: *mut pthread_mutexattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprotocol( + arg1: *mut pthread_mutexattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setpshared( + arg1: *mut pthread_mutexattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_settype( + arg1: *mut pthread_mutexattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setpolicy_np( + arg1: *mut pthread_mutexattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_once( + arg1: *mut pthread_once_t, + arg2: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_destroy(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_init( + arg1: *mut pthread_rwlock_t, + arg2: *const pthread_rwlockattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_rdlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_tryrdlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_trywrlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_wrlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_unlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_destroy(arg1: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_getpshared( + arg1: *const pthread_rwlockattr_t, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_init(arg1: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_setpshared( + arg1: *mut pthread_rwlockattr_t, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_self() -> pthread_t; +} +extern "C" { + pub fn pthread_setcancelstate( + arg1: ::std::os::raw::c_int, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setcanceltype( + arg1: ::std::os::raw::c_int, + arg2: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setconcurrency(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setschedparam( + arg1: pthread_t, + arg2: ::std::os::raw::c_int, + arg3: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setspecific( + arg1: pthread_key_t, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_testcancel(); +} +extern "C" { + pub fn pthread_is_threaded_np() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_threadid_np(arg1: pthread_t, arg2: *mut __uint64_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getname_np( + arg1: pthread_t, + arg2: *mut ::std::os::raw::c_char, + arg3: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setname_np(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_main_np() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mach_thread_np(arg1: pthread_t) -> mach_port_t; +} +extern "C" { + pub fn pthread_get_stacksize_np(arg1: pthread_t) -> size_t; +} +extern "C" { + pub fn pthread_get_stackaddr_np(arg1: pthread_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn pthread_cond_signal_thread_np( + arg1: *mut pthread_cond_t, + arg2: pthread_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_timedwait_relative_np( + arg1: *mut pthread_cond_t, + arg2: *mut pthread_mutex_t, + arg3: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_create_suspended_np( + arg1: *mut pthread_t, + arg2: *const pthread_attr_t, + arg3: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_kill(arg1: pthread_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_from_mach_thread_np(arg1: mach_port_t) -> pthread_t; +} +extern "C" { + pub fn pthread_sigmask( + arg1: ::std::os::raw::c_int, + arg2: *const sigset_t, + arg3: *mut sigset_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_yield_np(); +} +extern "C" { + pub fn pthread_jit_write_protect_np(enabled: ::std::os::raw::c_int); +} +extern "C" { + pub fn pthread_jit_write_protect_supported_np() -> ::std::os::raw::c_int; +} +pub type pthread_jit_write_callback_t = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn pthread_jit_write_with_callback_np( + callback: pthread_jit_write_callback_t, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_jit_write_freeze_callbacks_np(); +} +extern "C" { + pub fn pthread_cpu_number_np(cpu_number_out: *mut size_t) -> ::std::os::raw::c_int; +} +pub type YR_THREAD_ID = pthread_t; +pub type YR_THREAD_STORAGE_KEY = pthread_key_t; +pub type YR_MUTEX = pthread_mutex_t; +extern "C" { + pub fn yr_current_thread_id() -> YR_THREAD_ID; +} +extern "C" { + pub fn yr_mutex_create(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_destroy(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_lock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_unlock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_create(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_destroy(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_set_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_get_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_NOTEBOOK { + _unused: [u8; 0], +} +extern "C" { + pub fn yr_notebook_create( + page_size: size_t, + pool: *mut *mut YR_NOTEBOOK, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_destroy(pool: *mut YR_NOTEBOOK) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_alloc( + notebook: *mut YR_NOTEBOOK, + size: size_t, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_LIST { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_TABLES { + _unused: [u8; 0], +} +pub type YR_AC_TRANSITION = u32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_NAMESPACE { + pub __bindgen_anon_1: YR_NAMESPACE__bindgen_ty_1, + pub idx: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_NAMESPACE__bindgen_ty_1 { + pub name: *const ::std::os::raw::c_char, + pub name_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_META { + pub __bindgen_anon_1: YR_META__bindgen_ty_1, + pub __bindgen_anon_2: YR_META__bindgen_ty_2, + pub integer: i64, + pub type_: i32, + pub flags: i32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_2 { + pub string: *const ::std::os::raw::c_char, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_STRING { + pub flags: u32, + pub idx: u32, + pub fixed_offset: i64, + pub rule_idx: u32, + pub length: i32, + pub __bindgen_anon_1: YR_STRING__bindgen_ty_1, + pub __bindgen_anon_2: YR_STRING__bindgen_ty_2, + pub chain_gap_min: i32, + pub chain_gap_max: i32, + pub __bindgen_anon_3: YR_STRING__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_1 { + pub string: *mut u8, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_2 { + pub chained_to: *mut YR_STRING, + pub chained_to_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_3 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULE { + pub flags: i32, + pub num_atoms: i32, + pub __bindgen_anon_1: YR_RULE__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULE__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULE__bindgen_ty_3, + pub __bindgen_anon_4: YR_RULE__bindgen_ty_4, + pub __bindgen_anon_5: YR_RULE__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_2 { + pub tags: *const ::std::os::raw::c_char, + pub tags_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_3 { + pub metas: *mut YR_META, + pub metas_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_4 { + pub strings: *mut YR_STRING, + pub strings_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_5 { + pub ns: *mut YR_NAMESPACE, + pub ns_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_SUMMARY { + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_EXTERNAL_VARIABLE { + pub type_: i32, + pub value: YR_EXTERNAL_VARIABLE__bindgen_ty_1, + pub __bindgen_anon_1: YR_EXTERNAL_VARIABLE__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_1 { + pub i: i64, + pub f: f64, + pub s: *mut ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_2 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_AC_MATCH { + pub __bindgen_anon_1: YR_AC_MATCH__bindgen_ty_1, + pub __bindgen_anon_2: YR_AC_MATCH__bindgen_ty_2, + pub __bindgen_anon_3: YR_AC_MATCH__bindgen_ty_3, + pub __bindgen_anon_4: YR_AC_MATCH__bindgen_ty_4, + pub backtrack: u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_1 { + pub string: *mut YR_STRING, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_2 { + pub forward_code: *const u8, + pub forward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_3 { + pub backward_code: *const u8, + pub backward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_4 { + pub next: *mut YR_AC_MATCH, + pub next_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RE_NODE { + pub type_: ::std::os::raw::c_int, + pub __bindgen_anon_1: RE_NODE__bindgen_ty_1, + pub __bindgen_anon_2: RE_NODE__bindgen_ty_2, + pub greedy: ::std::os::raw::c_int, + pub re_class: *mut RE_CLASS, + pub children_head: *mut RE_NODE, + pub children_tail: *mut RE_NODE, + pub prev_sibling: *mut RE_NODE, + pub next_sibling: *mut RE_NODE, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_1 { + pub value: ::std::os::raw::c_int, + pub count: ::std::os::raw::c_int, + pub start: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_2 { + pub mask: ::std::os::raw::c_int, + pub end: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_CLASS { + pub negated: u8, + pub bitmap: [u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_AST { + pub flags: u32, + pub root_node: *mut RE_NODE, +} +#[repr(C, packed)] +pub struct RE { + pub flags: u32, + pub code: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_ERROR { + pub message: [::std::os::raw::c_char; 384usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER { + pub ip: *const u8, + pub sp: i32, + pub rc: i32, + pub prev: *mut RE_FIBER, + pub next: *mut RE_FIBER, + pub stack: [u16; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_LIST { + pub head: *mut RE_FIBER, + pub tail: *mut RE_FIBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_POOL { + pub fiber_count: ::std::os::raw::c_int, + pub fibers: RE_FIBER_LIST, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION { + pub round: ::std::os::raw::c_int, + pub input: *const u8, + pub prev: *mut RE_FAST_EXEC_POSITION, + pub next: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_POOL { + pub head: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODIFIER { + pub flags: i32, + pub xor_min: u8, + pub xor_max: u8, + pub alphabet: *mut SIZED_STRING, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCHES { + pub head: *mut YR_MATCH, + pub tail: *mut YR_MATCH, + pub count: i32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCH { + pub base: i64, + pub offset: i64, + pub match_length: i32, + pub data_length: i32, + pub data: *const u8, + pub prev: *mut YR_MATCH, + pub next: *mut YR_MATCH, + pub chain_length: i32, + pub is_private: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_STATE { + pub failure: *mut YR_AC_STATE, + pub first_child: *mut YR_AC_STATE, + pub siblings: *mut YR_AC_STATE, + pub matches_ref: YR_ARENA_REF, + pub depth: u8, + pub input: u8, + pub t_table_slot: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_MATCH_LIST_ENTRY { + pub backtrack: u16, + pub string_idx: u32, + pub ref_: YR_ARENA_REF, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_AC_MATCH_LIST_ENTRY, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_AUTOMATON { + pub arena: *mut YR_ARENA, + pub tables_size: u32, + pub t_table_unused_candidate: u32, + pub bitmask: *mut ::std::os::raw::c_ulong, + pub root: *mut YR_AC_STATE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULES { + pub arena: *mut YR_ARENA, + pub __bindgen_anon_1: YR_RULES__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULES__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULES__bindgen_ty_3, + pub ac_transition_table: *mut YR_AC_TRANSITION, + pub ac_match_pool: *mut YR_AC_MATCH, + pub ac_match_table: *mut u32, + pub code_start: *const u8, + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_1 { + pub rules_table: *mut YR_RULE, + pub rules_list_head: *mut YR_RULE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_2 { + pub strings_table: *mut YR_STRING, + pub strings_list_head: *mut YR_STRING, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_3 { + pub ext_vars_table: *mut YR_EXTERNAL_VARIABLE, + pub externals_list_head: *mut YR_EXTERNAL_VARIABLE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULES_STATS { + pub num_rules: u32, + pub num_strings: u32, + pub ac_matches: u32, + pub ac_root_match_list_length: u32, + pub ac_average_match_list_length: f32, + pub top_ac_match_list_lengths: [u32; 100usize], + pub ac_match_list_length_pctls: [u32; 101usize], + pub ac_tables_size: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_PROFILING_INFO { + pub atom_matches: u32, + pub match_time: u64, + pub exec_time: u64, +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULE_PROFILING_INFO { + pub rule: *mut YR_RULE, + pub cost: u64, +} +pub type YR_MEMORY_BLOCK_FETCH_DATA_FUNC = + ::std::option::Option *const u8>; +pub type YR_MEMORY_BLOCK_ITERATOR_FUNC = ::std::option::Option< + unsafe extern "C" fn(self_: *mut YR_MEMORY_BLOCK_ITERATOR) -> *mut YR_MEMORY_BLOCK, +>; +pub type YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC = + ::std::option::Option u64>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK { + pub size: size_t, + pub base: u64, + pub context: *mut ::std::os::raw::c_void, + pub fetch_data: YR_MEMORY_BLOCK_FETCH_DATA_FUNC, +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK_ITERATOR { + pub context: *mut ::std::os::raw::c_void, + pub first: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub next: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub file_size: YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC, + pub last_error: ::std::os::raw::c_int, +} +pub type YR_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + message: ::std::os::raw::c_int, + message_data: *mut ::std::os::raw::c_void, + user_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_SCAN_CONTEXT { + pub file_size: u64, + pub entry_point: u64, + pub flags: ::std::os::raw::c_int, + pub canary: ::std::os::raw::c_int, + pub timeout: u64, + pub user_data: *mut ::std::os::raw::c_void, + pub callback: YR_CALLBACK_FUNC, + pub rules: *mut YR_RULES, + pub last_error_string: *mut YR_STRING, + pub iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + pub objects_table: *mut YR_HASH_TABLE, + pub matches_notebook: *mut YR_NOTEBOOK, + pub stopwatch: YR_STOPWATCH, + pub re_fiber_pool: RE_FIBER_POOL, + pub re_fast_exec_position_pool: RE_FAST_EXEC_POSITION_POOL, + pub rule_matches_flags: *mut ::std::os::raw::c_ulong, + pub ns_unsatisfied_flags: *mut ::std::os::raw::c_ulong, + pub strings_temp_disabled: *mut ::std::os::raw::c_ulong, + pub matches: *mut YR_MATCHES, + pub unconfirmed_matches: *mut YR_MATCHES, + pub profiling_info: *mut YR_PROFILING_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_VALUE { + pub i: i64, + pub d: f64, + pub p: *mut ::std::os::raw::c_void, + pub o: *mut YR_OBJECT, + pub s: *mut YR_STRING, + pub it: *mut YR_ITERATOR, + pub ss: *mut SIZED_STRING, + pub re: *mut RE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_VALUE_STACK { + pub sp: u32, + pub capacity: u32, + pub items: *mut YR_VALUE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_OBJECT { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub value: YR_VALUE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_STRUCTURE { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub members: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_ARRAY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_ARRAY_ITEMS, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_DICTIONARY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_DICTIONARY_ITEMS, +} +pub type YR_MODULE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + args: *mut YR_VALUE, + context: *mut YR_SCAN_CONTEXT, + function_obj: *mut YR_OBJECT_FUNCTION, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub return_obj: *mut YR_OBJECT, + pub prototypes: [YR_OBJECT_FUNCTION__bindgen_ty_1; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION__bindgen_ty_1 { + pub arguments_fmt: *const ::std::os::raw::c_char, + pub code: YR_MODULE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_STRUCTURE_MEMBER { + pub object: *mut YR_OBJECT, + pub next: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITEMS { + pub capacity: ::std::os::raw::c_int, + pub length: ::std::os::raw::c_int, + pub objects: [*mut YR_OBJECT; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS { + pub used: ::std::os::raw::c_int, + pub free: ::std::os::raw::c_int, + pub objects: [YR_DICTIONARY_ITEMS__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS__bindgen_ty_1 { + pub key: *mut SIZED_STRING, + pub obj: *mut YR_OBJECT, +} +pub type YR_ITERATOR_NEXT_FUNC = ::std::option::Option< + unsafe extern "C" fn( + self_: *mut YR_ITERATOR, + stack: *mut YR_VALUE_STACK, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITERATOR { + pub array: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICT_ITERATOR { + pub dict: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_RANGE_ITERATOR { + pub next: i64, + pub last: i64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_ENUM_ITERATOR { + pub next: i64, + pub count: i64, + pub items: [i64; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_ITERATOR { + pub next_func_idx: ::std::os::raw::c_int, + pub __bindgen_anon_1: YR_ITERATOR__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_ITERATOR__bindgen_ty_1 { + pub array_it: YR_ARRAY_ITERATOR, + pub dict_it: YR_DICT_ITERATOR, + pub int_range_it: YR_INT_RANGE_ITERATOR, + pub int_enum_it: YR_INT_ENUM_ITERATOR, +} +pub type RE_MATCH_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + match_: *const u8, + match_length: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + args: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_re_ast_create(re_ast: *mut *mut RE_AST) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_destroy(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_print(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_extract_literal(re_ast: *mut RE_AST) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_re_ast_has_unbounded_quantifier_for_dot(re_ast: *mut RE_AST) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_split_at_chaining_point( + re_ast: *mut RE_AST, + remainder_re_ast: *mut *mut RE_AST, + min_gap: *mut i32, + max_gap: *mut i32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_emit_code( + re_ast: *mut RE_AST, + arena: *mut YR_ARENA, + backwards_code: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_node_create(type_: ::std::os::raw::c_int) -> *mut RE_NODE; +} +extern "C" { + pub fn yr_re_node_destroy(node: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_append_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_prepend_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: size_t, + input_backwards_size: size_t, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_fast_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: size_t, + input_backwards_size: size_t, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse( + re_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse_hex( + hex_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_compile( + re_string: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_match( + context: *mut YR_SCAN_CONTEXT, + re: *mut RE, + target: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM { + pub length: u8, + pub bytes: [u8; 4usize], + pub mask: [u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE_NODE { + pub type_: u8, + pub atom: YR_ATOM, + pub re_nodes: [*mut RE_NODE; 4usize], + pub children_head: *mut YR_ATOM_TREE_NODE, + pub children_tail: *mut YR_ATOM_TREE_NODE, + pub next_sibling: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE { + pub root_node: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_LIST_ITEM { + pub atom: YR_ATOM, + pub backtrack: u16, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_ATOM_LIST_ITEM, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_QUALITY_TABLE_ENTRY { + pub atom: [u8; 4usize], + pub quality: u8, +} +pub type YR_ATOMS_QUALITY_FUNC = ::std::option::Option< + unsafe extern "C" fn(config: *mut YR_ATOMS_CONFIG, atom: *mut YR_ATOM) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOMS_CONFIG { + pub get_atom_quality: YR_ATOMS_QUALITY_FUNC, + pub quality_table: *mut YR_ATOM_QUALITY_TABLE_ENTRY, + pub quality_warning_threshold: ::std::os::raw::c_int, + pub quality_table_entries: ::std::os::raw::c_int, + pub free_quality_table: bool, +} +extern "C" { + pub fn yr_atoms_extract_from_re( + config: *mut YR_ATOMS_CONFIG, + re_ast: *mut RE_AST, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_from_string( + config: *mut YR_ATOMS_CONFIG, + string: *mut u8, + string_length: ::std::os::raw::c_int, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_triplets( + re_node: *mut RE_NODE, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_heuristic_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_table_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_min_quality( + config: *mut YR_ATOMS_CONFIG, + atom_list: *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_list_destroy(list_head: *mut YR_ATOM_LIST_ITEM); +} +extern "C" { + pub fn yr_ac_automaton_create( + arena: *mut YR_ARENA, + automaton: *mut *mut YR_AC_AUTOMATON, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_automaton_destroy(automaton: *mut YR_AC_AUTOMATON) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_add_string( + automaton: *mut YR_AC_AUTOMATON, + string: *mut YR_STRING, + string_idx: u32, + atom: *mut YR_ATOM_LIST_ITEM, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_compile( + automaton: *mut YR_AC_AUTOMATON, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_print_automaton(automaton: *mut YR_AC_AUTOMATON); +} +pub type u_char = ::std::os::raw::c_uchar; +pub type u_short = ::std::os::raw::c_ushort; +pub type u_int = ::std::os::raw::c_uint; +pub type u_long = ::std::os::raw::c_ulong; +pub type ushort = ::std::os::raw::c_ushort; +pub type uint = ::std::os::raw::c_uint; +pub type u_quad_t = u_int64_t; +pub type quad_t = i64; +pub type qaddr_t = *mut quad_t; +pub type caddr_t = *mut ::std::os::raw::c_char; +pub type daddr_t = i32; +pub type fixpt_t = u_int32_t; +pub type blkcnt_t = __darwin_blkcnt_t; +pub type blksize_t = __darwin_blksize_t; +pub type gid_t = __darwin_gid_t; +pub type in_addr_t = __uint32_t; +pub type in_port_t = __uint16_t; +pub type ino_t = __darwin_ino_t; +pub type ino64_t = __darwin_ino64_t; +pub type key_t = __int32_t; +pub type nlink_t = __uint16_t; +pub type segsz_t = i32; +pub type swblk_t = i32; +pub type useconds_t = __darwin_useconds_t; +pub type suseconds_t = __darwin_suseconds_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fd_set { + pub fds_bits: [__int32_t; 32usize], +} +extern "C" { + pub fn __darwin_check_fd_set_overflow( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_void, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +pub type fd_mask = __int32_t; +pub type fsblkcnt_t = __darwin_fsblkcnt_t; +pub type fsfilcnt_t = __darwin_fsfilcnt_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_MAPPED_FILE { + pub file: ::std::os::raw::c_int, + pub size: size_t, + pub data: *const u8, +} +pub type YR_MAPPED_FILE = _YR_MAPPED_FILE; +extern "C" { + pub fn yr_filemap_map( + file_path: *const ::std::os::raw::c_char, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_fd( + file: ::std::os::raw::c_int, + offset: u64, + size: size_t, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_ex( + file_path: *const ::std::os::raw::c_char, + offset: u64, + size: size_t, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_unmap(pmapped_file: *mut YR_MAPPED_FILE); +} +extern "C" { + pub fn yr_filemap_unmap_fd(pmapped_file: *mut YR_MAPPED_FILE); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_EXPRESSION { + pub type_: ::std::os::raw::c_int, + pub value: _YR_EXPRESSION__bindgen_ty_1, + pub identifier: _YR_EXPRESSION__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _YR_EXPRESSION__bindgen_ty_1 { + pub integer: i64, + pub object: *mut YR_OBJECT, + pub sized_string_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_EXPRESSION__bindgen_ty_2 { + pub ptr: *const ::std::os::raw::c_char, + pub ref_: YR_ARENA_REF, +} +pub type YR_EXPRESSION = _YR_EXPRESSION; +pub type YR_COMPILER_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + error_level: ::std::os::raw::c_int, + file_name: *const ::std::os::raw::c_char, + line_number: ::std::os::raw::c_int, + rule: *const YR_RULE, + message: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_INCLUDE_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char, +>; +pub type YR_COMPILER_INCLUDE_FREE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + callback_result_ptr: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_RE_AST_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + rule: *const YR_RULE, + string_identifier: *const ::std::os::raw::c_char, + re_ast: *const RE_AST, + user_data: *mut ::std::os::raw::c_void, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_FIXUP { + pub ref_: YR_ARENA_REF, + pub next: *mut _YR_FIXUP, +} +pub type YR_FIXUP = _YR_FIXUP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_LOOP_CONTEXT { + pub start_ref: YR_ARENA_REF, + pub vars_count: ::std::os::raw::c_int, + pub vars: [YR_EXPRESSION; 2usize], + pub vars_internal_count: ::std::os::raw::c_int, +} +pub type YR_LOOP_CONTEXT = _YR_LOOP_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_COMPILER { + pub arena: *mut YR_ARENA, + pub current_rule_idx: u32, + pub next_rule_idx: u32, + pub current_string_idx: u32, + pub current_namespace_idx: u32, + pub current_meta_idx: u32, + pub rules: *mut YR_RULES, + pub errors: ::std::os::raw::c_int, + pub current_line: ::std::os::raw::c_int, + pub last_error: ::std::os::raw::c_int, + pub last_error_line: ::std::os::raw::c_int, + pub error_recovery: jmp_buf, + pub automaton: *mut YR_AC_AUTOMATON, + pub rules_table: *mut YR_HASH_TABLE, + pub objects_table: *mut YR_HASH_TABLE, + pub strings_table: *mut YR_HASH_TABLE, + pub wildcard_identifiers_table: *mut YR_HASH_TABLE, + pub sz_table: *mut YR_HASH_TABLE, + pub fixup_stack_head: *mut YR_FIXUP, + pub num_namespaces: ::std::os::raw::c_int, + pub loop_: [YR_LOOP_CONTEXT; 4usize], + pub loop_index: ::std::os::raw::c_int, + pub loop_for_of_var_index: ::std::os::raw::c_int, + pub file_name_stack: [*mut ::std::os::raw::c_char; 16usize], + pub file_name_stack_ptr: ::std::os::raw::c_int, + pub last_error_extra_info: [::std::os::raw::c_char; 256usize], + pub lex_buf: [::std::os::raw::c_char; 8192usize], + pub lex_buf_ptr: *mut ::std::os::raw::c_char, + pub lex_buf_len: ::std::os::raw::c_ushort, + pub include_base_dir: [::std::os::raw::c_char; 1024usize], + pub user_data: *mut ::std::os::raw::c_void, + pub incl_clbk_user_data: *mut ::std::os::raw::c_void, + pub re_ast_clbk_user_data: *mut ::std::os::raw::c_void, + pub callback: YR_COMPILER_CALLBACK_FUNC, + pub include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + pub include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + pub re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + pub atoms_config: YR_ATOMS_CONFIG, +} +pub type YR_COMPILER = _YR_COMPILER; +extern "C" { + pub fn _yr_compiler_push_file_name( + compiler: *mut YR_COMPILER, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_pop_file_name(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn _yr_compiler_get_var_frame(compiler: *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_default_include_callback( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn _yr_compiler_get_rule_by_idx(compiler: *mut YR_COMPILER, rule_idx: u32) -> *mut YR_RULE; +} +extern "C" { + pub fn _yr_compiler_store_string( + compiler: *mut YR_COMPILER, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_store_data( + compiler: *mut YR_COMPILER, + data: *const ::std::os::raw::c_void, + data_length: size_t, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_create(compiler: *mut *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_destroy(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn yr_compiler_set_callback( + compiler: *mut YR_COMPILER, + callback: YR_COMPILER_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_include_callback( + compiler: *mut YR_COMPILER, + include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_re_ast_callback( + compiler: *mut YR_COMPILER, + re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_atom_quality_table( + compiler: *mut YR_COMPILER, + table: *const ::std::os::raw::c_void, + entries: ::std::os::raw::c_int, + warning_threshold: ::std::os::raw::c_uchar, + ); +} +extern "C" { + pub fn yr_compiler_load_atom_quality_table( + compiler: *mut YR_COMPILER, + filename: *const ::std::os::raw::c_char, + warning_threshold: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_file( + compiler: *mut YR_COMPILER, + rules_file: *mut FILE, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_fd( + compiler: *mut YR_COMPILER, + rules_fd: ::std::os::raw::c_int, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_string( + compiler: *mut YR_COMPILER, + rules_string: *const ::std::os::raw::c_char, + namespace_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_error_message( + compiler: *mut YR_COMPILER, + buffer: *mut ::std::os::raw::c_char, + buffer_size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_get_current_file_name( + compiler: *mut YR_COMPILER, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_define_integer_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_boolean_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_float_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_string_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_rules( + compiler: *mut YR_COMPILER, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +pub const _YR_CONFIG_NAME_YR_CONFIG_STACK_SIZE: _YR_CONFIG_NAME = 0; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_STRINGS_PER_RULE: _YR_CONFIG_NAME = 1; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_MATCH_DATA: _YR_CONFIG_NAME = 2; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_PROCESS_MEMORY_CHUNK: _YR_CONFIG_NAME = 3; +pub const _YR_CONFIG_NAME_YR_CONFIG_LAST: _YR_CONFIG_NAME = 4; +pub type _YR_CONFIG_NAME = ::std::os::raw::c_uint; +pub use self::_YR_CONFIG_NAME as YR_CONFIG_NAME; +extern "C" { + pub fn yr_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint32(arg1: YR_CONFIG_NAME, arg2: u32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint64(arg1: YR_CONFIG_NAME, arg2: u64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint32( + arg1: YR_CONFIG_NAME, + arg2: *mut u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint64( + arg1: YR_CONFIG_NAME, + arg2: *mut u64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_calloc(count: size_t, size: size_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_malloc(size: size_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_realloc( + ptr: *mut ::std::os::raw::c_void, + size: size_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_strndup( + str_: *const ::std::os::raw::c_char, + n: size_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_free(ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn yr_heap_alloc() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_heap_free() -> ::std::os::raw::c_int; +} +pub type float_t = f32; +pub type double_t = f64; +extern "C" { + pub fn __math_errhandling() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __fpclassifyf(arg1: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __fpclassifyd(arg1: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __fpclassifyl(arg1: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acosf(arg1: f32) -> f32; +} +extern "C" { + pub fn acos(arg1: f64) -> f64; +} +extern "C" { + pub fn acosl(arg1: f64) -> f64; +} +extern "C" { + pub fn asinf(arg1: f32) -> f32; +} +extern "C" { + pub fn asin(arg1: f64) -> f64; +} +extern "C" { + pub fn asinl(arg1: f64) -> f64; +} +extern "C" { + pub fn atanf(arg1: f32) -> f32; +} +extern "C" { + pub fn atan(arg1: f64) -> f64; +} +extern "C" { + pub fn atanl(arg1: f64) -> f64; +} +extern "C" { + pub fn atan2f(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn atan2(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn atan2l(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn cosf(arg1: f32) -> f32; +} +extern "C" { + pub fn cos(arg1: f64) -> f64; +} +extern "C" { + pub fn cosl(arg1: f64) -> f64; +} +extern "C" { + pub fn sinf(arg1: f32) -> f32; +} +extern "C" { + pub fn sin(arg1: f64) -> f64; +} +extern "C" { + pub fn sinl(arg1: f64) -> f64; +} +extern "C" { + pub fn tanf(arg1: f32) -> f32; +} +extern "C" { + pub fn tan(arg1: f64) -> f64; +} +extern "C" { + pub fn tanl(arg1: f64) -> f64; +} +extern "C" { + pub fn acoshf(arg1: f32) -> f32; +} +extern "C" { + pub fn acosh(arg1: f64) -> f64; +} +extern "C" { + pub fn acoshl(arg1: f64) -> f64; +} +extern "C" { + pub fn asinhf(arg1: f32) -> f32; +} +extern "C" { + pub fn asinh(arg1: f64) -> f64; +} +extern "C" { + pub fn asinhl(arg1: f64) -> f64; +} +extern "C" { + pub fn atanhf(arg1: f32) -> f32; +} +extern "C" { + pub fn atanh(arg1: f64) -> f64; +} +extern "C" { + pub fn atanhl(arg1: f64) -> f64; +} +extern "C" { + pub fn coshf(arg1: f32) -> f32; +} +extern "C" { + pub fn cosh(arg1: f64) -> f64; +} +extern "C" { + pub fn coshl(arg1: f64) -> f64; +} +extern "C" { + pub fn sinhf(arg1: f32) -> f32; +} +extern "C" { + pub fn sinh(arg1: f64) -> f64; +} +extern "C" { + pub fn sinhl(arg1: f64) -> f64; +} +extern "C" { + pub fn tanhf(arg1: f32) -> f32; +} +extern "C" { + pub fn tanh(arg1: f64) -> f64; +} +extern "C" { + pub fn tanhl(arg1: f64) -> f64; +} +extern "C" { + pub fn expf(arg1: f32) -> f32; +} +extern "C" { + pub fn exp(arg1: f64) -> f64; +} +extern "C" { + pub fn expl(arg1: f64) -> f64; +} +extern "C" { + pub fn exp2f(arg1: f32) -> f32; +} +extern "C" { + pub fn exp2(arg1: f64) -> f64; +} +extern "C" { + pub fn exp2l(arg1: f64) -> f64; +} +extern "C" { + pub fn expm1f(arg1: f32) -> f32; +} +extern "C" { + pub fn expm1(arg1: f64) -> f64; +} +extern "C" { + pub fn expm1l(arg1: f64) -> f64; +} +extern "C" { + pub fn logf(arg1: f32) -> f32; +} +extern "C" { + pub fn log(arg1: f64) -> f64; +} +extern "C" { + pub fn logl(arg1: f64) -> f64; +} +extern "C" { + pub fn log10f(arg1: f32) -> f32; +} +extern "C" { + pub fn log10(arg1: f64) -> f64; +} +extern "C" { + pub fn log10l(arg1: f64) -> f64; +} +extern "C" { + pub fn log2f(arg1: f32) -> f32; +} +extern "C" { + pub fn log2(arg1: f64) -> f64; +} +extern "C" { + pub fn log2l(arg1: f64) -> f64; +} +extern "C" { + pub fn log1pf(arg1: f32) -> f32; +} +extern "C" { + pub fn log1p(arg1: f64) -> f64; +} +extern "C" { + pub fn log1pl(arg1: f64) -> f64; +} +extern "C" { + pub fn logbf(arg1: f32) -> f32; +} +extern "C" { + pub fn logb(arg1: f64) -> f64; +} +extern "C" { + pub fn logbl(arg1: f64) -> f64; +} +extern "C" { + pub fn modff(arg1: f32, arg2: *mut f32) -> f32; +} +extern "C" { + pub fn modf(arg1: f64, arg2: *mut f64) -> f64; +} +extern "C" { + pub fn modfl(arg1: f64, arg2: *mut f64) -> f64; +} +extern "C" { + pub fn ldexpf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn ldexp(arg1: f64, arg2: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ldexpl(arg1: f64, arg2: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn frexpf(arg1: f32, arg2: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn frexp(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn frexpl(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ilogbf(arg1: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ilogb(arg1: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ilogbl(arg1: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalbnf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn scalbn(arg1: f64, arg2: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn scalbnl(arg1: f64, arg2: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn scalblnf(arg1: f32, arg2: ::std::os::raw::c_long) -> f32; +} +extern "C" { + pub fn scalbln(arg1: f64, arg2: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn scalblnl(arg1: f64, arg2: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn fabsf(arg1: f32) -> f32; +} +extern "C" { + pub fn fabs(arg1: f64) -> f64; +} +extern "C" { + pub fn fabsl(arg1: f64) -> f64; +} +extern "C" { + pub fn cbrtf(arg1: f32) -> f32; +} +extern "C" { + pub fn cbrt(arg1: f64) -> f64; +} +extern "C" { + pub fn cbrtl(arg1: f64) -> f64; +} +extern "C" { + pub fn hypotf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn hypot(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn hypotl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn powf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn pow(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn powl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn sqrtf(arg1: f32) -> f32; +} +extern "C" { + pub fn sqrt(arg1: f64) -> f64; +} +extern "C" { + pub fn sqrtl(arg1: f64) -> f64; +} +extern "C" { + pub fn erff(arg1: f32) -> f32; +} +extern "C" { + pub fn erf(arg1: f64) -> f64; +} +extern "C" { + pub fn erfl(arg1: f64) -> f64; +} +extern "C" { + pub fn erfcf(arg1: f32) -> f32; +} +extern "C" { + pub fn erfc(arg1: f64) -> f64; +} +extern "C" { + pub fn erfcl(arg1: f64) -> f64; +} +extern "C" { + pub fn lgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn lgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn lgammal(arg1: f64) -> f64; +} +extern "C" { + pub fn tgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn tgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn tgammal(arg1: f64) -> f64; +} +extern "C" { + pub fn ceilf(arg1: f32) -> f32; +} +extern "C" { + pub fn ceil(arg1: f64) -> f64; +} +extern "C" { + pub fn ceill(arg1: f64) -> f64; +} +extern "C" { + pub fn floorf(arg1: f32) -> f32; +} +extern "C" { + pub fn floor(arg1: f64) -> f64; +} +extern "C" { + pub fn floorl(arg1: f64) -> f64; +} +extern "C" { + pub fn nearbyintf(arg1: f32) -> f32; +} +extern "C" { + pub fn nearbyint(arg1: f64) -> f64; +} +extern "C" { + pub fn nearbyintl(arg1: f64) -> f64; +} +extern "C" { + pub fn rintf(arg1: f32) -> f32; +} +extern "C" { + pub fn rint(arg1: f64) -> f64; +} +extern "C" { + pub fn rintl(arg1: f64) -> f64; +} +extern "C" { + pub fn lrintf(arg1: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn lrint(arg1: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn lrintl(arg1: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn roundf(arg1: f32) -> f32; +} +extern "C" { + pub fn round(arg1: f64) -> f64; +} +extern "C" { + pub fn roundl(arg1: f64) -> f64; +} +extern "C" { + pub fn lroundf(arg1: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn lround(arg1: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn lroundl(arg1: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrintf(arg1: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn llrint(arg1: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn llrintl(arg1: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn llroundf(arg1: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn llround(arg1: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn llroundl(arg1: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn truncf(arg1: f32) -> f32; +} +extern "C" { + pub fn trunc(arg1: f64) -> f64; +} +extern "C" { + pub fn truncl(arg1: f64) -> f64; +} +extern "C" { + pub fn fmodf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn fmod(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fmodl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn remainderf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn remainder(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn remainderl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn remquof(arg1: f32, arg2: f32, arg3: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn remquo(arg1: f64, arg2: f64, arg3: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn remquol(arg1: f64, arg2: f64, arg3: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn copysignf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn copysign(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn copysignl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn nanf(arg1: *const ::std::os::raw::c_char) -> f32; +} +extern "C" { + pub fn nan(arg1: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn nanl(arg1: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn nextafterf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn nextafter(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn nextafterl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn nexttoward(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn nexttowardf(arg1: f32, arg2: f64) -> f32; +} +extern "C" { + pub fn nexttowardl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fdimf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn fdim(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fdiml(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fmaxf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn fmax(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fmaxl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fminf(arg1: f32, arg2: f32) -> f32; +} +extern "C" { + pub fn fmin(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fminl(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub fn fmaf(arg1: f32, arg2: f32, arg3: f32) -> f32; +} +extern "C" { + pub fn fma(arg1: f64, arg2: f64, arg3: f64) -> f64; +} +extern "C" { + pub fn fmal(arg1: f64, arg2: f64, arg3: f64) -> f64; +} +extern "C" { + pub fn __exp10f(arg1: f32) -> f32; +} +extern "C" { + pub fn __exp10(arg1: f64) -> f64; +} +extern "C" { + pub fn __cospif(arg1: f32) -> f32; +} +extern "C" { + pub fn __cospi(arg1: f64) -> f64; +} +extern "C" { + pub fn __sinpif(arg1: f32) -> f32; +} +extern "C" { + pub fn __sinpi(arg1: f64) -> f64; +} +extern "C" { + pub fn __tanpif(arg1: f32) -> f32; +} +extern "C" { + pub fn __tanpi(arg1: f64) -> f64; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __float2 { + pub __sinval: f32, + pub __cosval: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __double2 { + pub __sinval: f64, + pub __cosval: f64, +} +extern "C" { + pub fn __sincosf_stret(arg1: f32) -> __float2; +} +extern "C" { + pub fn __sincos_stret(arg1: f64) -> __double2; +} +extern "C" { + pub fn __sincospif_stret(arg1: f32) -> __float2; +} +extern "C" { + pub fn __sincospi_stret(arg1: f64) -> __double2; +} +extern "C" { + pub fn j0(arg1: f64) -> f64; +} +extern "C" { + pub fn j1(arg1: f64) -> f64; +} +extern "C" { + pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn y0(arg1: f64) -> f64; +} +extern "C" { + pub fn y1(arg1: f64) -> f64; +} +extern "C" { + pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn scalb(arg1: f64, arg2: f64) -> f64; +} +extern "C" { + pub static mut signgam: ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct exception { + pub type_: ::std::os::raw::c_int, + pub name: *mut ::std::os::raw::c_char, + pub arg1: f64, + pub arg2: f64, + pub retval: f64, +} +pub type YR_SCANNER = YR_SCAN_CONTEXT; +extern "C" { + pub fn yr_scanner_create( + rules: *mut YR_RULES, + scanner: *mut *mut YR_SCANNER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_destroy(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_set_callback( + scanner: *mut YR_SCANNER, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_scanner_set_timeout(scanner: *mut YR_SCANNER, timeout: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_set_flags(scanner: *mut YR_SCANNER, flags: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_define_integer_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_boolean_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_float_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_string_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem_blocks( + scanner: *mut YR_SCANNER, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem( + scanner: *mut YR_SCANNER, + buffer: *const u8, + buffer_size: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_file( + scanner: *mut YR_SCANNER, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_fd( + scanner: *mut YR_SCANNER, + fd: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_proc( + scanner: *mut YR_SCANNER, + pid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_last_error_rule(scanner: *mut YR_SCANNER) -> *mut YR_RULE; +} +extern "C" { + pub fn yr_scanner_last_error_string(scanner: *mut YR_SCANNER) -> *mut YR_STRING; +} +extern "C" { + pub fn yr_scanner_get_profiling_info(scanner: *mut YR_SCANNER) -> *mut YR_RULE_PROFILING_INFO; +} +extern "C" { + pub fn yr_scanner_reset_profiling_info(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_print_profiling_info(scanner: *mut YR_SCANNER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem_blocks( + rules: *mut YR_RULES, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem( + rules: *mut YR_RULES, + buffer: *const u8, + buffer_size: size_t, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_file( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_fd( + rules: *mut YR_RULES, + fd: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_proc( + rules: *mut YR_RULES, + pid: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save_stream( + rules: *mut YR_RULES, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load( + filename: *const ::std::os::raw::c_char, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load_stream( + stream: *mut YR_STREAM, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_destroy(rules: *mut YR_RULES) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_integer_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_boolean_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_float_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_string_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_get_stats( + rules: *mut YR_RULES, + stats: *mut YR_RULES_STATS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rule_disable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rule_enable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rules_from_arena( + arena: *mut YR_ARENA, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scan_verify_match( + context: *mut YR_SCAN_CONTEXT, + ac_match: *mut YR_AC_MATCH, + data: *const u8, + data_size: size_t, + data_base: u64, + offset: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_execute_code(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_create( + type_: i8, + identifier: *const ::std::os::raw::c_char, + parent: *mut YR_OBJECT, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_canary(object: *mut YR_OBJECT, canary: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_object_function_create( + identifier: *const ::std::os::raw::c_char, + arguments_fmt: *const ::std::os::raw::c_char, + return_fmt: *const ::std::os::raw::c_char, + func: YR_MODULE_FUNC, + parent: *mut YR_OBJECT, + function: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_from_external_variable( + external: *mut YR_EXTERNAL_VARIABLE, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_destroy(object: *mut YR_OBJECT); +} +extern "C" { + pub fn yr_object_copy( + object: *mut YR_OBJECT, + object_copy: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_lookup_field( + object: *mut YR_OBJECT, + field_name: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_lookup( + root: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + pattern: *const ::std::os::raw::c_char, + ... + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_has_undefined_value( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn yr_object_get_float( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> f64; +} +extern "C" { + pub fn yr_object_get_integer( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> i64; +} +extern "C" { + pub fn yr_object_get_string( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_object_set_integer( + value: i64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_float( + value: f64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_string( + value: *const ::std::os::raw::c_char, + len: size_t, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_length(object: *mut YR_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + index: ::std::os::raw::c_int, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_array_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_dict_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + key: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_dict_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + key: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_structure_set_member( + object: *mut YR_OBJECT, + member: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_get_root(object: *mut YR_OBJECT) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_print_data( + object: *mut YR_OBJECT, + indent: ::std::os::raw::c_int, + print_identifier: ::std::os::raw::c_int, + ); +} +pub type YR_EXT_INITIALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_FINALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_DECLARATIONS_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_LOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + module_object: *mut YR_OBJECT, + module_data: *mut ::std::os::raw::c_void, + module_data_size: size_t, + ) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_UNLOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE { + pub name: *mut ::std::os::raw::c_char, + pub declarations: YR_EXT_DECLARATIONS_FUNC, + pub load: YR_EXT_LOAD_FUNC, + pub unload: YR_EXT_UNLOAD_FUNC, + pub initialize: YR_EXT_INITIALIZE_FUNC, + pub finalize: YR_EXT_FINALIZE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE_IMPORT { + pub module_name: *const ::std::os::raw::c_char, + pub module_data: *mut ::std::os::raw::c_void, + pub module_data_size: size_t, +} +extern "C" { + pub fn yr_modules_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_do_declarations( + module_name: *const ::std::os::raw::c_char, + main_structure: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_load( + module_name: *const ::std::os::raw::c_char, + context: *mut YR_SCAN_CONTEXT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_unload_all(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +pub type __builtin_va_list = *mut ::std::os::raw::c_char; +pub type __uint128_t = u128; From 4592c981e8e1371535f79049a5ca0b2b173edb21 Mon Sep 17 00:00:00 2001 From: rustysec Date: Wed, 8 Feb 2023 11:43:13 -0800 Subject: [PATCH 2/3] linux aarch64 targets --- .../yara-4.2.3-aarch64-unknown-linux-gnu.rs | 7120 ++++++++++++++++ .../yara-4.2.3-aarch64-unknown-linux-musl.rs | 7121 +++++++++++++++++ 2 files changed, 14241 insertions(+) create mode 100644 yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-gnu.rs create mode 100644 yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-musl.rs diff --git a/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-gnu.rs b/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-gnu.rs new file mode 100644 index 0000000..4391d6f --- /dev/null +++ b/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-gnu.rs @@ -0,0 +1,7120 @@ +/* automatically generated by rust-bindgen 0.64.0 */ + +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +impl __IncompleteArrayField { + #[inline] + pub const fn new() -> Self { + __IncompleteArrayField(::std::marker::PhantomData, []) + } + #[inline] + pub fn as_ptr(&self) -> *const T { + self as *const _ as *const T + } + #[inline] + pub fn as_mut_ptr(&mut self) -> *mut T { + self as *mut _ as *mut T + } + #[inline] + pub unsafe fn as_slice(&self, len: usize) -> &[T] { + ::std::slice::from_raw_parts(self.as_ptr(), len) + } + #[inline] + pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { + ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) + } +} +impl ::std::fmt::Debug for __IncompleteArrayField { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + fmt.write_str("__IncompleteArrayField") + } +} +pub const _SETJMP_H: u32 = 1; +pub const _FEATURES_H: u32 = 1; +pub const _DEFAULT_SOURCE: u32 = 1; +pub const __GLIBC_USE_ISOC2X: u32 = 0; +pub const __USE_ISOC11: u32 = 1; +pub const __USE_ISOC99: u32 = 1; +pub const __USE_ISOC95: u32 = 1; +pub const __USE_POSIX_IMPLICITLY: u32 = 1; +pub const _POSIX_SOURCE: u32 = 1; +pub const _POSIX_C_SOURCE: u32 = 200809; +pub const __USE_POSIX: u32 = 1; +pub const __USE_POSIX2: u32 = 1; +pub const __USE_POSIX199309: u32 = 1; +pub const __USE_POSIX199506: u32 = 1; +pub const __USE_XOPEN2K: u32 = 1; +pub const __USE_XOPEN2K8: u32 = 1; +pub const _ATFILE_SOURCE: u32 = 1; +pub const __WORDSIZE: u32 = 64; +pub const __WORDSIZE_TIME64_COMPAT32: u32 = 0; +pub const __TIMESIZE: u32 = 64; +pub const __USE_MISC: u32 = 1; +pub const __USE_ATFILE: u32 = 1; +pub const __USE_FORTIFY_LEVEL: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; +pub const _STDC_PREDEF_H: u32 = 1; +pub const __STDC_IEC_559__: u32 = 1; +pub const __STDC_IEC_60559_BFP__: u32 = 201404; +pub const __STDC_IEC_559_COMPLEX__: u32 = 1; +pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; +pub const __STDC_ISO_10646__: u32 = 201706; +pub const __GNU_LIBRARY__: u32 = 6; +pub const __GLIBC__: u32 = 2; +pub const __GLIBC_MINOR__: u32 = 36; +pub const _SYS_CDEFS_H: u32 = 1; +pub const __glibc_c99_flexarr_available: u32 = 1; +pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; +pub const __HAVE_GENERIC_SELECTION: u32 = 1; +pub const _BITS_SETJMP_H: u32 = 1; +pub const __jmp_buf_tag_defined: u32 = 1; +pub const _STDIO_H: u32 = 1; +pub const __GLIBC_USE_LIB_EXT2: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; +pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; +pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; +pub const __GNUC_VA_LIST: u32 = 1; +pub const _BITS_TYPES_H: u32 = 1; +pub const _BITS_TYPESIZES_H: u32 = 1; +pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; +pub const __INO_T_MATCHES_INO64_T: u32 = 1; +pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; +pub const __STATFS_MATCHES_STATFS64: u32 = 1; +pub const __FD_SETSIZE: u32 = 1024; +pub const _BITS_TIME64_H: u32 = 1; +pub const _____fpos_t_defined: u32 = 1; +pub const ____mbstate_t_defined: u32 = 1; +pub const _____fpos64_t_defined: u32 = 1; +pub const ____FILE_defined: u32 = 1; +pub const __FILE_defined: u32 = 1; +pub const __struct_FILE_defined: u32 = 1; +pub const _IO_EOF_SEEN: u32 = 16; +pub const _IO_ERR_SEEN: u32 = 32; +pub const _IO_USER_LOCK: u32 = 32768; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 8192; +pub const EOF: i32 = -1; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const _BITS_STDIO_LIM_H: u32 = 1; +pub const L_tmpnam: u32 = 20; +pub const TMP_MAX: u32 = 238328; +pub const FILENAME_MAX: u32 = 4096; +pub const L_ctermid: u32 = 9; +pub const FOPEN_MAX: u32 = 16; +pub const __HAVE_FLOAT128: u32 = 1; +pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; +pub const __HAVE_FLOAT64X: u32 = 1; +pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; +pub const __HAVE_FLOAT16: u32 = 0; +pub const __HAVE_FLOAT32: u32 = 1; +pub const __HAVE_FLOAT64: u32 = 1; +pub const __HAVE_FLOAT32X: u32 = 1; +pub const __HAVE_FLOAT128X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; +pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; +pub const _LIBC_LIMITS_H_: u32 = 1; +pub const MB_LEN_MAX: u32 = 16; +pub const _BITS_POSIX1_LIM_H: u32 = 1; +pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; +pub const _POSIX_AIO_MAX: u32 = 1; +pub const _POSIX_ARG_MAX: u32 = 4096; +pub const _POSIX_CHILD_MAX: u32 = 25; +pub const _POSIX_DELAYTIMER_MAX: u32 = 32; +pub const _POSIX_HOST_NAME_MAX: u32 = 255; +pub const _POSIX_LINK_MAX: u32 = 8; +pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; +pub const _POSIX_MAX_CANON: u32 = 255; +pub const _POSIX_MAX_INPUT: u32 = 255; +pub const _POSIX_MQ_OPEN_MAX: u32 = 8; +pub const _POSIX_MQ_PRIO_MAX: u32 = 32; +pub const _POSIX_NAME_MAX: u32 = 14; +pub const _POSIX_NGROUPS_MAX: u32 = 8; +pub const _POSIX_OPEN_MAX: u32 = 20; +pub const _POSIX_PATH_MAX: u32 = 256; +pub const _POSIX_PIPE_BUF: u32 = 512; +pub const _POSIX_RE_DUP_MAX: u32 = 255; +pub const _POSIX_RTSIG_MAX: u32 = 8; +pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; +pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; +pub const _POSIX_SIGQUEUE_MAX: u32 = 32; +pub const _POSIX_SSIZE_MAX: u32 = 32767; +pub const _POSIX_STREAM_MAX: u32 = 8; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const PTHREAD_KEYS_MAX: u32 = 1024; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const AIO_PRIO_DELTA_MAX: u32 = 20; +pub const PTHREAD_STACK_MIN: u32 = 131072; +pub const DELAYTIMER_MAX: u32 = 2147483647; +pub const TTY_NAME_MAX: u32 = 32; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const HOST_NAME_MAX: u32 = 64; +pub const MQ_PRIO_MAX: u32 = 32768; +pub const SEM_VALUE_MAX: u32 = 2147483647; +pub const _BITS_POSIX2_LIM_H: u32 = 1; +pub const _POSIX2_BC_BASE_MAX: u32 = 99; +pub const _POSIX2_BC_DIM_MAX: u32 = 2048; +pub const _POSIX2_BC_SCALE_MAX: u32 = 99; +pub const _POSIX2_BC_STRING_MAX: u32 = 1000; +pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; +pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; +pub const _POSIX2_LINE_MAX: u32 = 2048; +pub const _POSIX2_RE_DUP_MAX: u32 = 255; +pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; +pub const BC_BASE_MAX: u32 = 99; +pub const BC_DIM_MAX: u32 = 2048; +pub const BC_SCALE_MAX: u32 = 99; +pub const BC_STRING_MAX: u32 = 1000; +pub const COLL_WEIGHTS_MAX: u32 = 255; +pub const EXPR_NEST_MAX: u32 = 32; +pub const LINE_MAX: u32 = 2048; +pub const CHARCLASS_NAME_MAX: u32 = 2048; +pub const RE_DUP_MAX: u32 = 32767; +pub const CHAR_MIN: u32 = 0; +pub const _ASSERT_H: u32 = 1; +pub const _STDLIB_H: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const __W_CONTINUED: u32 = 65535; +pub const __WCOREFLAG: u32 = 128; +pub const __ldiv_t_defined: u32 = 1; +pub const __lldiv_t_defined: u32 = 1; +pub const RAND_MAX: u32 = 2147483647; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const _SYS_TYPES_H: u32 = 1; +pub const __clock_t_defined: u32 = 1; +pub const __clockid_t_defined: u32 = 1; +pub const __time_t_defined: u32 = 1; +pub const __timer_t_defined: u32 = 1; +pub const _BITS_STDINT_INTN_H: u32 = 1; +pub const __BIT_TYPES_DEFINED__: u32 = 1; +pub const _ENDIAN_H: u32 = 1; +pub const _BITS_ENDIAN_H: u32 = 1; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BIG_ENDIAN: u32 = 4321; +pub const __PDP_ENDIAN: u32 = 3412; +pub const _BITS_ENDIANNESS_H: u32 = 1; +pub const __BYTE_ORDER: u32 = 1234; +pub const __FLOAT_WORD_ORDER: u32 = 1234; +pub const LITTLE_ENDIAN: u32 = 1234; +pub const BIG_ENDIAN: u32 = 4321; +pub const PDP_ENDIAN: u32 = 3412; +pub const BYTE_ORDER: u32 = 1234; +pub const _BITS_BYTESWAP_H: u32 = 1; +pub const _BITS_UINTN_IDENTITY_H: u32 = 1; +pub const _SYS_SELECT_H: u32 = 1; +pub const __sigset_t_defined: u32 = 1; +pub const __timeval_defined: u32 = 1; +pub const _STRUCT_TIMESPEC: u32 = 1; +pub const FD_SETSIZE: u32 = 1024; +pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; +pub const _THREAD_SHARED_TYPES_H: u32 = 1; +pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; +pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 64; +pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 48; +pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56; +pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32; +pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; +pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; +pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; +pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; +pub const __have_pthread_attr_t: u32 = 1; +pub const _ALLOCA_H: u32 = 1; +pub const _STRING_H: u32 = 1; +pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; +pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; +pub const _STRINGS_H: u32 = 1; +pub const _STDINT_H: u32 = 1; +pub const _BITS_WCHAR_H: u32 = 1; +pub const _BITS_STDINT_UINTN_H: u32 = 1; +pub const INT8_MIN: i32 = -128; +pub const INT16_MIN: i32 = -32768; +pub const INT32_MIN: i32 = -2147483648; +pub const INT8_MAX: u32 = 127; +pub const INT16_MAX: u32 = 32767; +pub const INT32_MAX: u32 = 2147483647; +pub const UINT8_MAX: u32 = 255; +pub const UINT16_MAX: u32 = 65535; +pub const UINT32_MAX: u32 = 4294967295; +pub const INT_LEAST8_MIN: i32 = -128; +pub const INT_LEAST16_MIN: i32 = -32768; +pub const INT_LEAST32_MIN: i32 = -2147483648; +pub const INT_LEAST8_MAX: u32 = 127; +pub const INT_LEAST16_MAX: u32 = 32767; +pub const INT_LEAST32_MAX: u32 = 2147483647; +pub const UINT_LEAST8_MAX: u32 = 255; +pub const UINT_LEAST16_MAX: u32 = 65535; +pub const UINT_LEAST32_MAX: u32 = 4294967295; +pub const INT_FAST8_MIN: i32 = -128; +pub const INT_FAST16_MIN: i64 = -9223372036854775808; +pub const INT_FAST32_MIN: i64 = -9223372036854775808; +pub const INT_FAST8_MAX: u32 = 127; +pub const INT_FAST16_MAX: u64 = 9223372036854775807; +pub const INT_FAST32_MAX: u64 = 9223372036854775807; +pub const UINT_FAST8_MAX: u32 = 255; +pub const UINT_FAST16_MAX: i32 = -1; +pub const UINT_FAST32_MAX: i32 = -1; +pub const INTPTR_MIN: i64 = -9223372036854775808; +pub const INTPTR_MAX: u64 = 9223372036854775807; +pub const UINTPTR_MAX: i32 = -1; +pub const PTRDIFF_MIN: i64 = -9223372036854775808; +pub const PTRDIFF_MAX: u64 = 9223372036854775807; +pub const SIG_ATOMIC_MIN: i32 = -2147483648; +pub const SIG_ATOMIC_MAX: u32 = 2147483647; +pub const SIZE_MAX: i32 = -1; +pub const WINT_MIN: u32 = 0; +pub const WINT_MAX: u32 = 4294967295; +pub const _INTTYPES_H: u32 = 1; +pub const ____gwchar_t_defined: u32 = 1; +pub const __PRI64_PREFIX: &[u8; 2usize] = b"l\0"; +pub const __PRIPTR_PREFIX: &[u8; 2usize] = b"l\0"; +pub const PRId8: &[u8; 2usize] = b"d\0"; +pub const PRId16: &[u8; 2usize] = b"d\0"; +pub const PRId32: &[u8; 2usize] = b"d\0"; +pub const PRId64: &[u8; 3usize] = b"ld\0"; +pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST64: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; +pub const PRIdFAST16: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST32: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST64: &[u8; 3usize] = b"ld\0"; +pub const PRIi8: &[u8; 2usize] = b"i\0"; +pub const PRIi16: &[u8; 2usize] = b"i\0"; +pub const PRIi32: &[u8; 2usize] = b"i\0"; +pub const PRIi64: &[u8; 3usize] = b"li\0"; +pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST64: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; +pub const PRIiFAST16: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST32: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST64: &[u8; 3usize] = b"li\0"; +pub const PRIo8: &[u8; 2usize] = b"o\0"; +pub const PRIo16: &[u8; 2usize] = b"o\0"; +pub const PRIo32: &[u8; 2usize] = b"o\0"; +pub const PRIo64: &[u8; 3usize] = b"lo\0"; +pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST64: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; +pub const PRIoFAST16: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST32: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST64: &[u8; 3usize] = b"lo\0"; +pub const PRIu8: &[u8; 2usize] = b"u\0"; +pub const PRIu16: &[u8; 2usize] = b"u\0"; +pub const PRIu32: &[u8; 2usize] = b"u\0"; +pub const PRIu64: &[u8; 3usize] = b"lu\0"; +pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST64: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; +pub const PRIuFAST16: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST32: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST64: &[u8; 3usize] = b"lu\0"; +pub const PRIx8: &[u8; 2usize] = b"x\0"; +pub const PRIx16: &[u8; 2usize] = b"x\0"; +pub const PRIx32: &[u8; 2usize] = b"x\0"; +pub const PRIx64: &[u8; 3usize] = b"lx\0"; +pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST64: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; +pub const PRIxFAST16: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST32: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST64: &[u8; 3usize] = b"lx\0"; +pub const PRIX8: &[u8; 2usize] = b"X\0"; +pub const PRIX16: &[u8; 2usize] = b"X\0"; +pub const PRIX32: &[u8; 2usize] = b"X\0"; +pub const PRIX64: &[u8; 3usize] = b"lX\0"; +pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST64: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; +pub const PRIXFAST16: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST32: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST64: &[u8; 3usize] = b"lX\0"; +pub const PRIdMAX: &[u8; 3usize] = b"ld\0"; +pub const PRIiMAX: &[u8; 3usize] = b"li\0"; +pub const PRIoMAX: &[u8; 3usize] = b"lo\0"; +pub const PRIuMAX: &[u8; 3usize] = b"lu\0"; +pub const PRIxMAX: &[u8; 3usize] = b"lx\0"; +pub const PRIXMAX: &[u8; 3usize] = b"lX\0"; +pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; +pub const PRIiPTR: &[u8; 3usize] = b"li\0"; +pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; +pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; +pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; +pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; +pub const SCNd8: &[u8; 4usize] = b"hhd\0"; +pub const SCNd16: &[u8; 3usize] = b"hd\0"; +pub const SCNd32: &[u8; 2usize] = b"d\0"; +pub const SCNd64: &[u8; 3usize] = b"ld\0"; +pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; +pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; +pub const SCNdLEAST64: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNdFAST16: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST32: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST64: &[u8; 3usize] = b"ld\0"; +pub const SCNi8: &[u8; 4usize] = b"hhi\0"; +pub const SCNi16: &[u8; 3usize] = b"hi\0"; +pub const SCNi32: &[u8; 2usize] = b"i\0"; +pub const SCNi64: &[u8; 3usize] = b"li\0"; +pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; +pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; +pub const SCNiLEAST64: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNiFAST16: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST32: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST64: &[u8; 3usize] = b"li\0"; +pub const SCNu8: &[u8; 4usize] = b"hhu\0"; +pub const SCNu16: &[u8; 3usize] = b"hu\0"; +pub const SCNu32: &[u8; 2usize] = b"u\0"; +pub const SCNu64: &[u8; 3usize] = b"lu\0"; +pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; +pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; +pub const SCNuLEAST64: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNuFAST16: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST32: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST64: &[u8; 3usize] = b"lu\0"; +pub const SCNo8: &[u8; 4usize] = b"hho\0"; +pub const SCNo16: &[u8; 3usize] = b"ho\0"; +pub const SCNo32: &[u8; 2usize] = b"o\0"; +pub const SCNo64: &[u8; 3usize] = b"lo\0"; +pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; +pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; +pub const SCNoLEAST64: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNoFAST16: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST32: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST64: &[u8; 3usize] = b"lo\0"; +pub const SCNx8: &[u8; 4usize] = b"hhx\0"; +pub const SCNx16: &[u8; 3usize] = b"hx\0"; +pub const SCNx32: &[u8; 2usize] = b"x\0"; +pub const SCNx64: &[u8; 3usize] = b"lx\0"; +pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; +pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; +pub const SCNxLEAST64: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNxFAST16: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST32: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST64: &[u8; 3usize] = b"lx\0"; +pub const SCNdMAX: &[u8; 3usize] = b"ld\0"; +pub const SCNiMAX: &[u8; 3usize] = b"li\0"; +pub const SCNoMAX: &[u8; 3usize] = b"lo\0"; +pub const SCNuMAX: &[u8; 3usize] = b"lu\0"; +pub const SCNxMAX: &[u8; 3usize] = b"lx\0"; +pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; +pub const SCNiPTR: &[u8; 3usize] = b"li\0"; +pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; +pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; +pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; +pub const true_: u32 = 1; +pub const false_: u32 = 0; +pub const MAX_PATH: u32 = 1024; +pub const YR_MAX_THREADS: u32 = 32; +pub const YR_MAX_ARENA_BUFFERS: u32 = 16; +pub const YR_MAX_COMPILER_ERROR_EXTRA_INFO: u32 = 256; +pub const YR_MAX_ATOM_LENGTH: u32 = 4; +pub const YR_MAX_ATOM_QUALITY: u32 = 255; +pub const YR_MIN_ATOM_QUALITY: u32 = 0; +pub const YR_ATOM_QUALITY_WARNING_THRESHOLD: u32 = 205; +pub const YR_ATOMS_PER_RULE_WARNING_THRESHOLD: u32 = 12000; +pub const YR_MAX_LOOP_NESTING: u32 = 4; +pub const YR_MAX_LOOP_VARS: u32 = 2; +pub const YR_MAX_INCLUDE_DEPTH: u32 = 16; +pub const YR_MAX_STRING_MATCHES: u32 = 1000000; +pub const YR_MAX_FUNCTION_ARGS: u32 = 128; +pub const YR_MAX_OVERLOADED_FUNCTIONS: u32 = 10; +pub const YR_STRING_CHAINING_THRESHOLD: u32 = 200; +pub const YR_LEX_BUF_SIZE: u32 = 8192; +pub const YR_MATCH_VERIFICATION_PROFILING_RATE: u32 = 1024; +pub const RE_MAX_SPLIT_ID: u32 = 128; +pub const RE_MAX_STACK: u32 = 1024; +pub const YR_RE_SCAN_LIMIT: u32 = 4096; +pub const RE_MAX_FIBERS: u32 = 1024; +pub const _CTYPE_H: u32 = 1; +pub const YR_ARENA_FILE_VERSION: u32 = 19; +pub const SIZED_STRING_FLAGS_NO_CASE: u32 = 1; +pub const SIZED_STRING_FLAGS_DOT_ALL: u32 = 2; +pub const _TIME_H: u32 = 1; +pub const _BITS_TIME_H: u32 = 1; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_TAI: u32 = 11; +pub const TIMER_ABSTIME: u32 = 1; +pub const __struct_tm_defined: u32 = 1; +pub const __itimerspec_defined: u32 = 1; +pub const TIME_UTC: u32 = 1; +pub const _SYS_TIME_H: u32 = 1; +pub const _PTHREAD_H: u32 = 1; +pub const _SCHED_H: u32 = 1; +pub const _BITS_SCHED_H: u32 = 1; +pub const SCHED_OTHER: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const _BITS_TYPES_STRUCT_SCHED_PARAM: u32 = 1; +pub const _BITS_CPU_SET_H: u32 = 1; +pub const __CPU_SETSIZE: u32 = 1024; +pub const PTHREAD_ONCE_INIT: u32 = 0; +pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1; +pub const RULE_FLAGS_PRIVATE: u32 = 1; +pub const RULE_FLAGS_GLOBAL: u32 = 2; +pub const RULE_FLAGS_NULL: u32 = 4; +pub const RULE_FLAGS_DISABLED: u32 = 8; +pub const STRING_FLAGS_REFERENCED: u32 = 1; +pub const STRING_FLAGS_HEXADECIMAL: u32 = 2; +pub const STRING_FLAGS_NO_CASE: u32 = 4; +pub const STRING_FLAGS_ASCII: u32 = 8; +pub const STRING_FLAGS_WIDE: u32 = 16; +pub const STRING_FLAGS_REGEXP: u32 = 32; +pub const STRING_FLAGS_FAST_REGEXP: u32 = 64; +pub const STRING_FLAGS_FULL_WORD: u32 = 128; +pub const STRING_FLAGS_ANONYMOUS: u32 = 256; +pub const STRING_FLAGS_SINGLE_MATCH: u32 = 512; +pub const STRING_FLAGS_LITERAL: u32 = 1024; +pub const STRING_FLAGS_FITS_IN_ATOM: u32 = 2048; +pub const STRING_FLAGS_LAST_IN_RULE: u32 = 4096; +pub const STRING_FLAGS_CHAIN_PART: u32 = 8192; +pub const STRING_FLAGS_CHAIN_TAIL: u32 = 16384; +pub const STRING_FLAGS_FIXED_OFFSET: u32 = 32768; +pub const STRING_FLAGS_GREEDY_REGEXP: u32 = 65536; +pub const STRING_FLAGS_DOT_ALL: u32 = 131072; +pub const STRING_FLAGS_DISABLED: u32 = 262144; +pub const STRING_FLAGS_XOR: u32 = 524288; +pub const STRING_FLAGS_PRIVATE: u32 = 1048576; +pub const STRING_FLAGS_BASE64: u32 = 2097152; +pub const STRING_FLAGS_BASE64_WIDE: u32 = 4194304; +pub const META_TYPE_INTEGER: u32 = 1; +pub const META_TYPE_STRING: u32 = 2; +pub const META_TYPE_BOOLEAN: u32 = 3; +pub const META_FLAGS_LAST_IN_RULE: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_NULL: u32 = 0; +pub const EXTERNAL_VARIABLE_TYPE_FLOAT: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_INTEGER: u32 = 2; +pub const EXTERNAL_VARIABLE_TYPE_BOOLEAN: u32 = 3; +pub const EXTERNAL_VARIABLE_TYPE_STRING: u32 = 4; +pub const EXTERNAL_VARIABLE_TYPE_MALLOC_STRING: u32 = 5; +pub const RE_MAX_RANGE: u32 = 32767; +pub const RE_NODE_LITERAL: u32 = 1; +pub const RE_NODE_MASKED_LITERAL: u32 = 2; +pub const RE_NODE_ANY: u32 = 3; +pub const RE_NODE_CONCAT: u32 = 4; +pub const RE_NODE_ALT: u32 = 5; +pub const RE_NODE_RANGE: u32 = 6; +pub const RE_NODE_STAR: u32 = 7; +pub const RE_NODE_PLUS: u32 = 8; +pub const RE_NODE_CLASS: u32 = 9; +pub const RE_NODE_WORD_CHAR: u32 = 10; +pub const RE_NODE_NON_WORD_CHAR: u32 = 11; +pub const RE_NODE_SPACE: u32 = 12; +pub const RE_NODE_NON_SPACE: u32 = 13; +pub const RE_NODE_DIGIT: u32 = 14; +pub const RE_NODE_NON_DIGIT: u32 = 15; +pub const RE_NODE_EMPTY: u32 = 16; +pub const RE_NODE_ANCHOR_START: u32 = 17; +pub const RE_NODE_ANCHOR_END: u32 = 18; +pub const RE_NODE_WORD_BOUNDARY: u32 = 19; +pub const RE_NODE_NON_WORD_BOUNDARY: u32 = 20; +pub const RE_NODE_RANGE_ANY: u32 = 21; +pub const RE_OPCODE_ANY: u32 = 160; +pub const RE_OPCODE_LITERAL: u32 = 162; +pub const RE_OPCODE_MASKED_LITERAL: u32 = 164; +pub const RE_OPCODE_CLASS: u32 = 165; +pub const RE_OPCODE_WORD_CHAR: u32 = 167; +pub const RE_OPCODE_NON_WORD_CHAR: u32 = 168; +pub const RE_OPCODE_SPACE: u32 = 169; +pub const RE_OPCODE_NON_SPACE: u32 = 170; +pub const RE_OPCODE_DIGIT: u32 = 171; +pub const RE_OPCODE_NON_DIGIT: u32 = 172; +pub const RE_OPCODE_MATCH: u32 = 173; +pub const RE_OPCODE_MATCH_AT_END: u32 = 176; +pub const RE_OPCODE_MATCH_AT_START: u32 = 177; +pub const RE_OPCODE_WORD_BOUNDARY: u32 = 178; +pub const RE_OPCODE_NON_WORD_BOUNDARY: u32 = 179; +pub const RE_OPCODE_REPEAT_ANY_GREEDY: u32 = 180; +pub const RE_OPCODE_REPEAT_ANY_UNGREEDY: u32 = 181; +pub const RE_OPCODE_SPLIT_A: u32 = 192; +pub const RE_OPCODE_SPLIT_B: u32 = 193; +pub const RE_OPCODE_JUMP: u32 = 194; +pub const RE_OPCODE_REPEAT_START_GREEDY: u32 = 195; +pub const RE_OPCODE_REPEAT_END_GREEDY: u32 = 196; +pub const RE_OPCODE_REPEAT_START_UNGREEDY: u32 = 197; +pub const RE_OPCODE_REPEAT_END_UNGREEDY: u32 = 198; +pub const RE_FLAGS_FAST_REGEXP: u32 = 2; +pub const RE_FLAGS_BACKWARDS: u32 = 4; +pub const RE_FLAGS_EXHAUSTIVE: u32 = 8; +pub const RE_FLAGS_WIDE: u32 = 16; +pub const RE_FLAGS_NO_CASE: u32 = 32; +pub const RE_FLAGS_SCAN: u32 = 64; +pub const RE_FLAGS_DOT_ALL: u32 = 128; +pub const RE_FLAGS_GREEDY: u32 = 1024; +pub const RE_FLAGS_UNGREEDY: u32 = 2048; +pub const ATOM_TREE_LEAF: u32 = 1; +pub const ATOM_TREE_AND: u32 = 2; +pub const ATOM_TREE_OR: u32 = 3; +pub const YR_AC_SLOT_OFFSET_BITS: u32 = 9; +pub const YR_AC_MAX_TRANSITION_TABLE_SIZE: u32 = 8388608; +pub const YR_AC_ROOT_STATE: u32 = 0; +pub const YARA_ERROR_LEVEL_ERROR: u32 = 0; +pub const YARA_ERROR_LEVEL_WARNING: u32 = 1; +pub const EXPRESSION_TYPE_UNKNOWN: u32 = 0; +pub const EXPRESSION_TYPE_BOOLEAN: u32 = 1; +pub const EXPRESSION_TYPE_INTEGER: u32 = 2; +pub const EXPRESSION_TYPE_STRING: u32 = 4; +pub const EXPRESSION_TYPE_REGEXP: u32 = 8; +pub const EXPRESSION_TYPE_OBJECT: u32 = 16; +pub const EXPRESSION_TYPE_FLOAT: u32 = 32; +pub const YR_NAMESPACES_TABLE: u32 = 0; +pub const YR_RULES_TABLE: u32 = 1; +pub const YR_METAS_TABLE: u32 = 2; +pub const YR_STRINGS_TABLE: u32 = 3; +pub const YR_EXTERNAL_VARIABLES_TABLE: u32 = 4; +pub const YR_SZ_POOL: u32 = 5; +pub const YR_CODE_SECTION: u32 = 6; +pub const YR_RE_CODE_SECTION: u32 = 7; +pub const YR_AC_TRANSITION_TABLE: u32 = 8; +pub const YR_AC_STATE_MATCHES_TABLE: u32 = 9; +pub const YR_AC_STATE_MATCHES_POOL: u32 = 10; +pub const YR_SUMMARY_SECTION: u32 = 11; +pub const YR_NUM_SECTIONS: u32 = 12; +pub const YR_INTERNAL_LOOP_VARS: u32 = 3; +pub const ERROR_SUCCESS: u32 = 0; +pub const ERROR_INSUFICIENT_MEMORY: u32 = 1; +pub const ERROR_INSUFFICIENT_MEMORY: u32 = 1; +pub const ERROR_COULD_NOT_ATTACH_TO_PROCESS: u32 = 2; +pub const ERROR_COULD_NOT_OPEN_FILE: u32 = 3; +pub const ERROR_COULD_NOT_MAP_FILE: u32 = 4; +pub const ERROR_INVALID_FILE: u32 = 6; +pub const ERROR_CORRUPT_FILE: u32 = 7; +pub const ERROR_UNSUPPORTED_FILE_VERSION: u32 = 8; +pub const ERROR_INVALID_REGULAR_EXPRESSION: u32 = 9; +pub const ERROR_INVALID_HEX_STRING: u32 = 10; +pub const ERROR_SYNTAX_ERROR: u32 = 11; +pub const ERROR_LOOP_NESTING_LIMIT_EXCEEDED: u32 = 12; +pub const ERROR_DUPLICATED_LOOP_IDENTIFIER: u32 = 13; +pub const ERROR_DUPLICATED_IDENTIFIER: u32 = 14; +pub const ERROR_DUPLICATED_TAG_IDENTIFIER: u32 = 15; +pub const ERROR_DUPLICATED_META_IDENTIFIER: u32 = 16; +pub const ERROR_DUPLICATED_STRING_IDENTIFIER: u32 = 17; +pub const ERROR_UNREFERENCED_STRING: u32 = 18; +pub const ERROR_UNDEFINED_STRING: u32 = 19; +pub const ERROR_UNDEFINED_IDENTIFIER: u32 = 20; +pub const ERROR_MISPLACED_ANONYMOUS_STRING: u32 = 21; +pub const ERROR_INCLUDES_CIRCULAR_REFERENCE: u32 = 22; +pub const ERROR_INCLUDE_DEPTH_EXCEEDED: u32 = 23; +pub const ERROR_WRONG_TYPE: u32 = 24; +pub const ERROR_EXEC_STACK_OVERFLOW: u32 = 25; +pub const ERROR_SCAN_TIMEOUT: u32 = 26; +pub const ERROR_TOO_MANY_SCAN_THREADS: u32 = 27; +pub const ERROR_CALLBACK_ERROR: u32 = 28; +pub const ERROR_INVALID_ARGUMENT: u32 = 29; +pub const ERROR_TOO_MANY_MATCHES: u32 = 30; +pub const ERROR_INTERNAL_FATAL_ERROR: u32 = 31; +pub const ERROR_NESTED_FOR_OF_LOOP: u32 = 32; +pub const ERROR_INVALID_FIELD_NAME: u32 = 33; +pub const ERROR_UNKNOWN_MODULE: u32 = 34; +pub const ERROR_NOT_A_STRUCTURE: u32 = 35; +pub const ERROR_NOT_INDEXABLE: u32 = 36; +pub const ERROR_NOT_A_FUNCTION: u32 = 37; +pub const ERROR_INVALID_FORMAT: u32 = 38; +pub const ERROR_TOO_MANY_ARGUMENTS: u32 = 39; +pub const ERROR_WRONG_ARGUMENTS: u32 = 40; +pub const ERROR_WRONG_RETURN_TYPE: u32 = 41; +pub const ERROR_DUPLICATED_STRUCTURE_MEMBER: u32 = 42; +pub const ERROR_EMPTY_STRING: u32 = 43; +pub const ERROR_DIVISION_BY_ZERO: u32 = 44; +pub const ERROR_REGULAR_EXPRESSION_TOO_LARGE: u32 = 45; +pub const ERROR_TOO_MANY_RE_FIBERS: u32 = 46; +pub const ERROR_COULD_NOT_READ_PROCESS_MEMORY: u32 = 47; +pub const ERROR_INVALID_EXTERNAL_VARIABLE_TYPE: u32 = 48; +pub const ERROR_REGULAR_EXPRESSION_TOO_COMPLEX: u32 = 49; +pub const ERROR_INVALID_MODULE_NAME: u32 = 50; +pub const ERROR_TOO_MANY_STRINGS: u32 = 51; +pub const ERROR_INTEGER_OVERFLOW: u32 = 52; +pub const ERROR_CALLBACK_REQUIRED: u32 = 53; +pub const ERROR_INVALID_OPERAND: u32 = 54; +pub const ERROR_COULD_NOT_READ_FILE: u32 = 55; +pub const ERROR_DUPLICATED_EXTERNAL_VARIABLE: u32 = 56; +pub const ERROR_INVALID_MODULE_DATA: u32 = 57; +pub const ERROR_WRITING_FILE: u32 = 58; +pub const ERROR_INVALID_MODIFIER: u32 = 59; +pub const ERROR_DUPLICATED_MODIFIER: u32 = 60; +pub const ERROR_BLOCK_NOT_READY: u32 = 61; +pub const ERROR_INVALID_PERCENTAGE: u32 = 62; +pub const ERROR_IDENTIFIER_MATCHES_WILDCARD: u32 = 63; +pub const YR_MAJOR_VERSION: u32 = 4; +pub const YR_MINOR_VERSION: u32 = 2; +pub const YR_MICRO_VERSION: u32 = 3; +pub const YR_VERSION_HEX: u32 = 262659; +pub const YR_PARANOID_EXEC: u32 = 1; +pub const DEFAULT_STACK_SIZE: u32 = 16384; +pub const DEFAULT_MAX_STRINGS_PER_RULE: u32 = 10000; +pub const DEFAULT_MAX_MATCH_DATA: u32 = 512; +pub const DEFAULT_MAX_PROCESS_MEMORY_CHUNK: u32 = 1073741824; +pub const _MATH_H: u32 = 1; +pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; +pub const __FP_LOGB0_IS_MIN: u32 = 0; +pub const __FP_LOGBNAN_IS_MIN: u32 = 0; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const FP_FAST_FMA: u32 = 1; +pub const FP_FAST_FMAF: u32 = 1; +pub const __MATH_DECLARING_DOUBLE: u32 = 1; +pub const __MATH_DECLARING_FLOATN: u32 = 0; +pub const __MATH_DECLARE_LDOUBLE: u32 = 1; +pub const FP_NAN: u32 = 0; +pub const FP_INFINITE: u32 = 1; +pub const FP_ZERO: u32 = 2; +pub const FP_SUBNORMAL: u32 = 3; +pub const FP_NORMAL: u32 = 4; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 3; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const CALLBACK_MSG_RULE_MATCHING: u32 = 1; +pub const CALLBACK_MSG_RULE_NOT_MATCHING: u32 = 2; +pub const CALLBACK_MSG_SCAN_FINISHED: u32 = 3; +pub const CALLBACK_MSG_IMPORT_MODULE: u32 = 4; +pub const CALLBACK_MSG_MODULE_IMPORTED: u32 = 5; +pub const CALLBACK_MSG_TOO_MANY_MATCHES: u32 = 6; +pub const CALLBACK_MSG_CONSOLE_LOG: u32 = 7; +pub const CALLBACK_CONTINUE: u32 = 0; +pub const CALLBACK_ABORT: u32 = 1; +pub const CALLBACK_ERROR: u32 = 2; +pub const SCAN_FLAGS_FAST_MODE: u32 = 1; +pub const SCAN_FLAGS_PROCESS_MEMORY: u32 = 2; +pub const SCAN_FLAGS_NO_TRYCATCH: u32 = 4; +pub const SCAN_FLAGS_REPORT_RULES_MATCHING: u32 = 8; +pub const SCAN_FLAGS_REPORT_RULES_NOT_MATCHING: u32 = 16; +pub const YR_UNDEFINED: i64 = -1483400188077313; +pub const OF_STRING_SET: u32 = 0; +pub const OF_RULE_SET: u32 = 1; +pub const OP_ERROR: u32 = 0; +pub const OP_HALT: u32 = 255; +pub const OP_NOP: u32 = 254; +pub const OP_AND: u32 = 1; +pub const OP_OR: u32 = 2; +pub const OP_NOT: u32 = 3; +pub const OP_BITWISE_NOT: u32 = 4; +pub const OP_BITWISE_AND: u32 = 5; +pub const OP_BITWISE_OR: u32 = 6; +pub const OP_BITWISE_XOR: u32 = 7; +pub const OP_SHL: u32 = 8; +pub const OP_SHR: u32 = 9; +pub const OP_MOD: u32 = 10; +pub const OP_INT_TO_DBL: u32 = 11; +pub const OP_STR_TO_BOOL: u32 = 12; +pub const OP_PUSH: u32 = 13; +pub const OP_POP: u32 = 14; +pub const OP_CALL: u32 = 15; +pub const OP_OBJ_LOAD: u32 = 16; +pub const OP_OBJ_VALUE: u32 = 17; +pub const OP_OBJ_FIELD: u32 = 18; +pub const OP_INDEX_ARRAY: u32 = 19; +pub const OP_COUNT: u32 = 20; +pub const OP_LENGTH: u32 = 21; +pub const OP_FOUND: u32 = 22; +pub const OP_FOUND_AT: u32 = 23; +pub const OP_FOUND_IN: u32 = 24; +pub const OP_OFFSET: u32 = 25; +pub const OP_OF: u32 = 26; +pub const OP_PUSH_RULE: u32 = 27; +pub const OP_INIT_RULE: u32 = 28; +pub const OP_MATCH_RULE: u32 = 29; +pub const OP_INCR_M: u32 = 30; +pub const OP_CLEAR_M: u32 = 31; +pub const OP_ADD_M: u32 = 32; +pub const OP_POP_M: u32 = 33; +pub const OP_PUSH_M: u32 = 34; +pub const OP_SET_M: u32 = 35; +pub const OP_SWAPUNDEF: u32 = 36; +pub const OP_FILESIZE: u32 = 37; +pub const OP_ENTRYPOINT: u32 = 38; +pub const OP_UNUSED: u32 = 39; +pub const OP_MATCHES: u32 = 40; +pub const OP_IMPORT: u32 = 41; +pub const OP_LOOKUP_DICT: u32 = 42; +pub const OP_JUNDEF: u32 = 43; +pub const OP_JUNDEF_P: u32 = 44; +pub const OP_JNUNDEF: u32 = 45; +pub const OP_JNUNDEF_P: u32 = 46; +pub const OP_JFALSE: u32 = 47; +pub const OP_JFALSE_P: u32 = 48; +pub const OP_JTRUE: u32 = 49; +pub const OP_JTRUE_P: u32 = 50; +pub const OP_JL_P: u32 = 51; +pub const OP_JLE_P: u32 = 52; +pub const OP_ITER_NEXT: u32 = 53; +pub const OP_ITER_START_ARRAY: u32 = 54; +pub const OP_ITER_START_DICT: u32 = 55; +pub const OP_ITER_START_INT_RANGE: u32 = 56; +pub const OP_ITER_START_INT_ENUM: u32 = 57; +pub const OP_JZ: u32 = 58; +pub const OP_JZ_P: u32 = 59; +pub const OP_PUSH_8: u32 = 60; +pub const OP_PUSH_16: u32 = 61; +pub const OP_PUSH_32: u32 = 62; +pub const OP_PUSH_U: u32 = 63; +pub const OP_CONTAINS: u32 = 64; +pub const OP_STARTSWITH: u32 = 65; +pub const OP_ENDSWITH: u32 = 66; +pub const OP_ICONTAINS: u32 = 67; +pub const OP_ISTARTSWITH: u32 = 68; +pub const OP_IENDSWITH: u32 = 69; +pub const OP_IEQUALS: u32 = 70; +pub const OP_OF_PERCENT: u32 = 71; +pub const OP_OF_FOUND_IN: u32 = 72; +pub const OP_COUNT_IN: u32 = 73; +pub const OP_DEFINED: u32 = 74; +pub const _OP_EQ: u32 = 0; +pub const _OP_NEQ: u32 = 1; +pub const _OP_LT: u32 = 2; +pub const _OP_GT: u32 = 3; +pub const _OP_LE: u32 = 4; +pub const _OP_GE: u32 = 5; +pub const _OP_ADD: u32 = 6; +pub const _OP_SUB: u32 = 7; +pub const _OP_MUL: u32 = 8; +pub const _OP_DIV: u32 = 9; +pub const _OP_MINUS: u32 = 10; +pub const OP_INT_BEGIN: u32 = 100; +pub const OP_INT_EQ: u32 = 100; +pub const OP_INT_NEQ: u32 = 101; +pub const OP_INT_LT: u32 = 102; +pub const OP_INT_GT: u32 = 103; +pub const OP_INT_LE: u32 = 104; +pub const OP_INT_GE: u32 = 105; +pub const OP_INT_ADD: u32 = 106; +pub const OP_INT_SUB: u32 = 107; +pub const OP_INT_MUL: u32 = 108; +pub const OP_INT_DIV: u32 = 109; +pub const OP_INT_MINUS: u32 = 110; +pub const OP_INT_END: u32 = 110; +pub const OP_DBL_BEGIN: u32 = 120; +pub const OP_DBL_EQ: u32 = 120; +pub const OP_DBL_NEQ: u32 = 121; +pub const OP_DBL_LT: u32 = 122; +pub const OP_DBL_GT: u32 = 123; +pub const OP_DBL_LE: u32 = 124; +pub const OP_DBL_GE: u32 = 125; +pub const OP_DBL_ADD: u32 = 126; +pub const OP_DBL_SUB: u32 = 127; +pub const OP_DBL_MUL: u32 = 128; +pub const OP_DBL_DIV: u32 = 129; +pub const OP_DBL_MINUS: u32 = 130; +pub const OP_DBL_END: u32 = 130; +pub const OP_STR_BEGIN: u32 = 140; +pub const OP_STR_EQ: u32 = 140; +pub const OP_STR_NEQ: u32 = 141; +pub const OP_STR_LT: u32 = 142; +pub const OP_STR_GT: u32 = 143; +pub const OP_STR_LE: u32 = 144; +pub const OP_STR_GE: u32 = 145; +pub const OP_STR_END: u32 = 145; +pub const OP_READ_INT: u32 = 240; +pub const OP_INT8: u32 = 240; +pub const OP_INT16: u32 = 241; +pub const OP_INT32: u32 = 242; +pub const OP_UINT8: u32 = 243; +pub const OP_UINT16: u32 = 244; +pub const OP_UINT32: u32 = 245; +pub const OP_INT8BE: u32 = 246; +pub const OP_INT16BE: u32 = 247; +pub const OP_INT32BE: u32 = 248; +pub const OP_UINT8BE: u32 = 249; +pub const OP_UINT16BE: u32 = 250; +pub const OP_UINT32BE: u32 = 251; +pub const OBJECT_CREATE: u32 = 1; +pub const OBJECT_TYPE_INTEGER: u32 = 1; +pub const OBJECT_TYPE_STRING: u32 = 2; +pub const OBJECT_TYPE_STRUCTURE: u32 = 3; +pub const OBJECT_TYPE_ARRAY: u32 = 4; +pub const OBJECT_TYPE_FUNCTION: u32 = 5; +pub const OBJECT_TYPE_DICTIONARY: u32 = 6; +pub const OBJECT_TYPE_FLOAT: u32 = 7; +pub type __jmp_buf = [::std::os::raw::c_ulonglong; 22usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __jmp_buf_tag { + pub __jmpbuf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, + pub __saved_mask: __sigset_t, +} +pub type jmp_buf = [__jmp_buf_tag; 1usize]; +extern "C" { + pub fn setjmp(__env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __sigsetjmp( + __env: *mut __jmp_buf_tag, + __savemask: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _setjmp(__env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn longjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _longjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; +extern "C" { + pub fn siglongjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +pub type va_list = [u64; 4usize]; +pub type __gnuc_va_list = [u64; 4usize]; +pub type __u_char = ::std::os::raw::c_uchar; +pub type __u_short = ::std::os::raw::c_ushort; +pub type __u_int = ::std::os::raw::c_uint; +pub type __u_long = ::std::os::raw::c_ulong; +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_long; +pub type __uint64_t = ::std::os::raw::c_ulong; +pub type __int_least8_t = __int8_t; +pub type __uint_least8_t = __uint8_t; +pub type __int_least16_t = __int16_t; +pub type __uint_least16_t = __uint16_t; +pub type __int_least32_t = __int32_t; +pub type __uint_least32_t = __uint32_t; +pub type __int_least64_t = __int64_t; +pub type __uint_least64_t = __uint64_t; +pub type __quad_t = ::std::os::raw::c_long; +pub type __u_quad_t = ::std::os::raw::c_ulong; +pub type __intmax_t = ::std::os::raw::c_long; +pub type __uintmax_t = ::std::os::raw::c_ulong; +pub type __dev_t = ::std::os::raw::c_ulong; +pub type __uid_t = ::std::os::raw::c_uint; +pub type __gid_t = ::std::os::raw::c_uint; +pub type __ino_t = ::std::os::raw::c_ulong; +pub type __ino64_t = ::std::os::raw::c_ulong; +pub type __mode_t = ::std::os::raw::c_uint; +pub type __nlink_t = ::std::os::raw::c_uint; +pub type __off_t = ::std::os::raw::c_long; +pub type __off64_t = ::std::os::raw::c_long; +pub type __pid_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __fsid_t { + pub __val: [::std::os::raw::c_int; 2usize], +} +pub type __clock_t = ::std::os::raw::c_long; +pub type __rlim_t = ::std::os::raw::c_ulong; +pub type __rlim64_t = ::std::os::raw::c_ulong; +pub type __id_t = ::std::os::raw::c_uint; +pub type __time_t = ::std::os::raw::c_long; +pub type __useconds_t = ::std::os::raw::c_uint; +pub type __suseconds_t = ::std::os::raw::c_long; +pub type __suseconds64_t = ::std::os::raw::c_long; +pub type __daddr_t = ::std::os::raw::c_int; +pub type __key_t = ::std::os::raw::c_int; +pub type __clockid_t = ::std::os::raw::c_int; +pub type __timer_t = *mut ::std::os::raw::c_void; +pub type __blksize_t = ::std::os::raw::c_int; +pub type __blkcnt_t = ::std::os::raw::c_long; +pub type __blkcnt64_t = ::std::os::raw::c_long; +pub type __fsblkcnt_t = ::std::os::raw::c_ulong; +pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; +pub type __fsword_t = ::std::os::raw::c_long; +pub type __ssize_t = ::std::os::raw::c_long; +pub type __syscall_slong_t = ::std::os::raw::c_long; +pub type __syscall_ulong_t = ::std::os::raw::c_ulong; +pub type __loff_t = __off64_t; +pub type __caddr_t = *mut ::std::os::raw::c_char; +pub type __intptr_t = ::std::os::raw::c_long; +pub type __socklen_t = ::std::os::raw::c_uint; +pub type __sig_atomic_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __mbstate_t { + pub __count: ::std::os::raw::c_int, + pub __value: __mbstate_t__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __mbstate_t__bindgen_ty_1 { + pub __wch: ::std::os::raw::c_uint, + pub __wchb: [::std::os::raw::c_char; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos_t { + pub __pos: __off_t, + pub __state: __mbstate_t, +} +pub type __fpos_t = _G_fpos_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos64_t { + pub __pos: __off64_t, + pub __state: __mbstate_t, +} +pub type __fpos64_t = _G_fpos64_t; +pub type __FILE = _IO_FILE; +pub type FILE = _IO_FILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_marker { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_codecvt { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_wide_data { + _unused: [u8; 0], +} +pub type _IO_lock_t = ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_FILE { + pub _flags: ::std::os::raw::c_int, + pub _IO_read_ptr: *mut ::std::os::raw::c_char, + pub _IO_read_end: *mut ::std::os::raw::c_char, + pub _IO_read_base: *mut ::std::os::raw::c_char, + pub _IO_write_base: *mut ::std::os::raw::c_char, + pub _IO_write_ptr: *mut ::std::os::raw::c_char, + pub _IO_write_end: *mut ::std::os::raw::c_char, + pub _IO_buf_base: *mut ::std::os::raw::c_char, + pub _IO_buf_end: *mut ::std::os::raw::c_char, + pub _IO_save_base: *mut ::std::os::raw::c_char, + pub _IO_backup_base: *mut ::std::os::raw::c_char, + pub _IO_save_end: *mut ::std::os::raw::c_char, + pub _markers: *mut _IO_marker, + pub _chain: *mut _IO_FILE, + pub _fileno: ::std::os::raw::c_int, + pub _flags2: ::std::os::raw::c_int, + pub _old_offset: __off_t, + pub _cur_column: ::std::os::raw::c_ushort, + pub _vtable_offset: ::std::os::raw::c_schar, + pub _shortbuf: [::std::os::raw::c_char; 1usize], + pub _lock: *mut _IO_lock_t, + pub _offset: __off64_t, + pub _codecvt: *mut _IO_codecvt, + pub _wide_data: *mut _IO_wide_data, + pub _freeres_list: *mut _IO_FILE, + pub _freeres_buf: *mut ::std::os::raw::c_void, + pub __pad5: usize, + pub _mode: ::std::os::raw::c_int, + pub _unused2: [::std::os::raw::c_char; 20usize], +} +pub type off_t = __off_t; +pub type fpos_t = __fpos_t; +extern "C" { + pub static mut stdin: *mut FILE; +} +extern "C" { + pub static mut stdout: *mut FILE; +} +extern "C" { + pub static mut stderr: *mut FILE; +} +extern "C" { + pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rename( + __old: *const ::std::os::raw::c_char, + __new: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn renameat( + __oldfd: ::std::os::raw::c_int, + __old: *const ::std::os::raw::c_char, + __newfd: ::std::os::raw::c_int, + __new: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tmpfile() -> *mut FILE; +} +extern "C" { + pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn tempnam( + __dir: *const ::std::os::raw::c_char, + __pfx: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn freopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + __stream: *mut FILE, + ) -> *mut FILE; +} +extern "C" { + pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char) + -> *mut FILE; +} +extern "C" { + pub fn fmemopen( + __s: *mut ::std::os::raw::c_void, + __len: usize, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn open_memstream( + __bufloc: *mut *mut ::std::os::raw::c_char, + __sizeloc: *mut usize, + ) -> *mut FILE; +} +extern "C" { + pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); +} +extern "C" { + pub fn setvbuf( + __stream: *mut FILE, + __buf: *mut ::std::os::raw::c_char, + __modes: ::std::os::raw::c_int, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize); +} +extern "C" { + pub fn setlinebuf(__stream: *mut FILE); +} +extern "C" { + pub fn fprintf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sprintf( + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfprintf( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vprintf( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsprintf( + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn snprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsnprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vdprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + __arg: __gnuc_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fscanf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sscanf( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +pub type _Float128 = u128; +pub type _Float32 = f32; +pub type _Float64 = f64; +pub type _Float32x = f64; +pub type _Float64x = u128; +extern "C" { + #[link_name = "\u{1}__isoc99_fscanf"] + pub fn fscanf1( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_scanf"] + pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_sscanf"] + pub fn sscanf1( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfscanf( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vscanf( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsscanf( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vfscanf"] + pub fn vfscanf1( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vscanf"] + pub fn vscanf1( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vsscanf"] + pub fn vsscanf1( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar_unlocked() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgets( + __s: *mut ::std::os::raw::c_char, + __n: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __getdelim( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn getdelim( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn getline( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fread( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fwrite( + __ptr: *const ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __s: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fread_unlocked( + __ptr: *mut ::std::os::raw::c_void, + __size: usize, + __n: usize, + __stream: *mut FILE, + ) -> usize; +} +extern "C" { + pub fn fwrite_unlocked( + __ptr: *const ::std::os::raw::c_void, + __size: usize, + __n: usize, + __stream: *mut FILE, + ) -> usize; +} +extern "C" { + pub fn fseek( + __stream: *mut FILE, + __off: ::std::os::raw::c_long, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn rewind(__stream: *mut FILE); +} +extern "C" { + pub fn fseeko( + __stream: *mut FILE, + __off: __off_t, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftello(__stream: *mut FILE) -> __off_t; +} +extern "C" { + pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearerr(__stream: *mut FILE); +} +extern "C" { + pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearerr_unlocked(__stream: *mut FILE); +} +extern "C" { + pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn perror(__s: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn popen( + __command: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn flockfile(__stream: *mut FILE); +} +extern "C" { + pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn funlockfile(__stream: *mut FILE); +} +extern "C" { + pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __assert_fail( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert_perror_fail( + __errnum: ::std::os::raw::c_int, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_int, + ) -> !; +} +pub type wchar_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +extern "C" { + pub fn __ctype_get_mb_cur_max() -> usize; +} +extern "C" { + pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtod( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtof( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn strtold( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> u128; +} +extern "C" { + pub fn strtol( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtoul( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtouq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn strtoll( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoull( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +pub type u_char = __u_char; +pub type u_short = __u_short; +pub type u_int = __u_int; +pub type u_long = __u_long; +pub type quad_t = __quad_t; +pub type u_quad_t = __u_quad_t; +pub type fsid_t = __fsid_t; +pub type loff_t = __loff_t; +pub type ino_t = __ino_t; +pub type dev_t = __dev_t; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type nlink_t = __nlink_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +pub type id_t = __id_t; +pub type daddr_t = __daddr_t; +pub type caddr_t = __caddr_t; +pub type key_t = __key_t; +pub type clock_t = __clock_t; +pub type clockid_t = __clockid_t; +pub type time_t = __time_t; +pub type timer_t = __timer_t; +pub type ulong = ::std::os::raw::c_ulong; +pub type ushort = ::std::os::raw::c_ushort; +pub type uint = ::std::os::raw::c_uint; +pub type u_int8_t = __uint8_t; +pub type u_int16_t = __uint16_t; +pub type u_int32_t = __uint32_t; +pub type u_int64_t = __uint64_t; +pub type register_t = ::std::os::raw::c_long; +pub type sigset_t = __sigset_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { + pub tv_sec: __time_t, + pub tv_usec: __suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, +} +pub type suseconds_t = __suseconds_t; +pub type __fd_mask = ::std::os::raw::c_long; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fd_set { + pub __fds_bits: [__fd_mask; 16usize], +} +pub type fd_mask = __fd_mask; +extern "C" { + pub fn select( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *mut timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pselect( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *const timespec, + __sigmask: *const __sigset_t, + ) -> ::std::os::raw::c_int; +} +pub type blksize_t = __blksize_t; +pub type blkcnt_t = __blkcnt_t; +pub type fsblkcnt_t = __fsblkcnt_t; +pub type fsfilcnt_t = __fsfilcnt_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, +} +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_slist { + pub __next: *mut __pthread_internal_slist, +} +pub type __pthread_slist_t = __pthread_internal_slist; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_int, + pub __list: __pthread_list_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __pad1: ::std::os::raw::c_ulong, + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], +} +pub type __tss_t = ::std::os::raw::c_uint; +pub type __thrd_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __once_flag { + pub __data: ::std::os::raw::c_int, +} +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 64usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, +} +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +extern "C" { + pub fn random() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn srandom(__seed: ::std::os::raw::c_uint); +} +extern "C" { + pub fn initstate( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct random_data { + pub fptr: *mut i32, + pub rptr: *mut i32, + pub state: *mut i32, + pub rand_type: ::std::os::raw::c_int, + pub rand_deg: ::std::os::raw::c_int, + pub rand_sep: ::std::os::raw::c_int, + pub end_ptr: *mut i32, +} +extern "C" { + pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srandom_r( + __seed: ::std::os::raw::c_uint, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn initstate_r( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setstate_r( + __statebuf: *mut ::std::os::raw::c_char, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rand() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srand(__seed: ::std::os::raw::c_uint); +} +extern "C" { + pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn drand48() -> f64; +} +extern "C" { + pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; +} +extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn srand48(__seedval: ::std::os::raw::c_long); +} +extern "C" { + pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; +} +extern "C" { + pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct drand48_data { + pub __x: [::std::os::raw::c_ushort; 3usize], + pub __old_x: [::std::os::raw::c_ushort; 3usize], + pub __c: ::std::os::raw::c_ushort, + pub __init: ::std::os::raw::c_ushort, + pub __a: ::std::os::raw::c_ulonglong, +} +extern "C" { + pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn erand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn nrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn jrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srand48_r( + __seedval: ::std::os::raw::c_long, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn seed48_r( + __seed16v: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lcong48_r( + __param: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn arc4random() -> __uint32_t; +} +extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __size: usize); +} +extern "C" { + pub fn arc4random_uniform(__upper_bound: __uint32_t) -> __uint32_t; +} +extern "C" { + pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn calloc( + __nmemb: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn realloc( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn free(__ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn reallocarray( + __ptr: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn posix_memalign( + __memptr: *mut *mut ::std::os::raw::c_void, + __alignment: usize, + __size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn aligned_alloc( + __alignment: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn abort() -> !; +} +extern "C" { + pub fn atexit(__func: ::std::option::Option) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn at_quick_exit( + __func: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn on_exit( + __func: ::std::option::Option< + unsafe extern "C" fn( + __status: ::std::os::raw::c_int, + __arg: *mut ::std::os::raw::c_void, + ), + >, + __arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn quick_exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setenv( + __name: *const ::std::os::raw::c_char, + __value: *const ::std::os::raw::c_char, + __replace: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearenv() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mkstemps( + __template: *mut ::std::os::raw::c_char, + __suffixlen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn realpath( + __name: *const ::std::os::raw::c_char, + __resolved: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +pub type __compar_fn_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn bsearch( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, + ); +} +extern "C" { + pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t; +} +extern "C" { + pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t; +} +extern "C" { + pub fn lldiv( + __numer: ::std::os::raw::c_longlong, + __denom: ::std::os::raw::c_longlong, + ) -> lldiv_t; +} +extern "C" { + pub fn ecvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qecvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qfcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qgcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ecvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fcvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qecvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qfcvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbtowc( + __pwc: *mut wchar_t, + __s: *const ::std::os::raw::c_char, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize; +} +extern "C" { + pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize; +} +extern "C" { + pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getsubopt( + __optionp: *mut *mut ::std::os::raw::c_char, + __tokens: *const *mut ::std::os::raw::c_char, + __valuep: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memcpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memmove( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memccpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset( + __s: *mut ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __memcmpeq( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memchr( + __s: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcoll( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strxfrm( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_struct { + pub __locales: [*mut __locale_data; 13usize], + pub __ctype_b: *const ::std::os::raw::c_ushort, + pub __ctype_tolower: *const ::std::os::raw::c_int, + pub __ctype_toupper: *const ::std::os::raw::c_int, + pub __names: [*const ::std::os::raw::c_char; 13usize], +} +pub type __locale_t = *mut __locale_struct; +pub type locale_t = __locale_t; +extern "C" { + pub fn strcoll_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __l: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strxfrm_l( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + __l: locale_t, + ) -> usize; +} +extern "C" { + pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strndup( + __string: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcspn( + __s: *const ::std::os::raw::c_char, + __reject: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strspn( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strpbrk( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strstr( + __haystack: *const ::std::os::raw::c_char, + __needle: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize; +} +extern "C" { + pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}__xpg_strerror_r"] + pub fn strerror_r( + __errnum: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __buflen: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strerror_l( + __errnum: ::std::os::raw::c_int, + __l: locale_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn bcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bcopy( + __src: *const ::std::os::raw::c_void, + __dest: *mut ::std::os::raw::c_void, + __n: usize, + ); +} +extern "C" { + pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); +} +extern "C" { + pub fn index( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn rindex( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __loc: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: usize, + __loc: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize); +} +extern "C" { + pub fn strsep( + __stringp: *mut *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +pub type int_least8_t = __int_least8_t; +pub type int_least16_t = __int_least16_t; +pub type int_least32_t = __int_least32_t; +pub type int_least64_t = __int_least64_t; +pub type uint_least8_t = __uint_least8_t; +pub type uint_least16_t = __uint_least16_t; +pub type uint_least32_t = __uint_least32_t; +pub type uint_least64_t = __uint_least64_t; +pub type int_fast8_t = ::std::os::raw::c_schar; +pub type int_fast16_t = ::std::os::raw::c_long; +pub type int_fast32_t = ::std::os::raw::c_long; +pub type int_fast64_t = ::std::os::raw::c_long; +pub type uint_fast8_t = ::std::os::raw::c_uchar; +pub type uint_fast16_t = ::std::os::raw::c_ulong; +pub type uint_fast32_t = ::std::os::raw::c_ulong; +pub type uint_fast64_t = ::std::os::raw::c_ulong; +pub type intmax_t = __intmax_t; +pub type uintmax_t = __uintmax_t; +pub type __gwchar_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct imaxdiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +extern "C" { + pub fn imaxabs(__n: intmax_t) -> intmax_t; +} +extern "C" { + pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; +} +extern "C" { + pub fn strtoimax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn strtoumax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn wcstoimax( + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn wcstoumax( + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn xtoi(hexstr: *const ::std::os::raw::c_char) -> u64; +} +extern "C" { + pub fn strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + size: usize, + ) -> usize; +} +extern "C" { + pub fn strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + size: usize, + ) -> usize; +} +extern "C" { + pub fn memmem( + haystack: *const ::std::os::raw::c_void, + haystack_size: usize, + needle: *const ::std::os::raw::c_void, + needle_size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strnlen_w(w_str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcmp_w( + w_str: *const ::std::os::raw::c_char, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strlcpy_w( + dst: *mut ::std::os::raw::c_char, + w_src: *const ::std::os::raw::c_char, + n: usize, + ) -> usize; +} +extern "C" { + pub fn yr_isalnum(s: *const u8) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_vasprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ap: va_list, + ); +} +extern "C" { + pub fn yr_asprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +pub const _ISupper: _bindgen_ty_1 = 256; +pub const _ISlower: _bindgen_ty_1 = 512; +pub const _ISalpha: _bindgen_ty_1 = 1024; +pub const _ISdigit: _bindgen_ty_1 = 2048; +pub const _ISxdigit: _bindgen_ty_1 = 4096; +pub const _ISspace: _bindgen_ty_1 = 8192; +pub const _ISprint: _bindgen_ty_1 = 16384; +pub const _ISgraph: _bindgen_ty_1 = 32768; +pub const _ISblank: _bindgen_ty_1 = 1; +pub const _IScntrl: _bindgen_ty_1 = 2; +pub const _ISpunct: _bindgen_ty_1 = 4; +pub const _ISalnum: _bindgen_ty_1 = 8; +pub type _bindgen_ty_1 = ::std::os::raw::c_uint; +extern "C" { + pub fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; +} +extern "C" { + pub fn __ctype_tolower_loc() -> *mut *const __int32_t; +} +extern "C" { + pub fn __ctype_toupper_loc() -> *mut *const __int32_t; +} +extern "C" { + pub fn isalnum(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalpha(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iscntrl(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isdigit(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn islower(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isgraph(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isprint(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ispunct(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isspace(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isupper(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isxdigit(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tolower(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toupper(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isblank(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isascii(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toascii(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _toupper(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _tolower(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalnum_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalpha_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iscntrl_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isdigit_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn islower_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isgraph_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isprint_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ispunct_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isspace_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isupper_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isxdigit_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isblank_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __tolower_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tolower_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __toupper_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toupper_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct max_align_t { + pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, + pub __bindgen_padding_0: u64, + pub __clang_max_align_nonce2: u128, +} +pub type YR_STREAM_READ_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *mut ::std::os::raw::c_void, + size: usize, + count: usize, + user_data: *mut ::std::os::raw::c_void, + ) -> usize, +>; +pub type YR_STREAM_WRITE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *const ::std::os::raw::c_void, + size: usize, + count: usize, + user_data: *mut ::std::os::raw::c_void, + ) -> usize, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_STREAM { + pub user_data: *mut ::std::os::raw::c_void, + pub read: YR_STREAM_READ_FUNC, + pub write: YR_STREAM_WRITE_FUNC, +} +pub type YR_STREAM = _YR_STREAM; +extern "C" { + pub fn yr_stream_read( + ptr: *mut ::std::os::raw::c_void, + size: usize, + count: usize, + stream: *mut YR_STREAM, + ) -> usize; +} +extern "C" { + pub fn yr_stream_write( + ptr: *const ::std::os::raw::c_void, + size: usize, + count: usize, + stream: *mut YR_STREAM, + ) -> usize; +} +pub type yr_arena_off_t = u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_REF { + pub buffer_id: u32, + pub offset: yr_arena_off_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_BUFFER { + pub data: *mut u8, + pub size: usize, + pub used: usize, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RELOC { + pub buffer_id: u32, + pub offset: yr_arena_off_t, + pub next: *mut YR_RELOC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA { + pub xrefs: u32, + pub num_buffers: u32, + pub buffers: [YR_ARENA_BUFFER; 16usize], + pub initial_buffer_size: usize, + pub reloc_list_head: *mut YR_RELOC, + pub reloc_list_tail: *mut YR_RELOC, +} +extern "C" { + pub fn yr_arena_create( + num_buffers: u32, + initial_buffer_size: usize, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_acquire(arena: *mut YR_ARENA); +} +extern "C" { + pub fn yr_arena_release(arena: *mut YR_ARENA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_ref_to_ptr( + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_ptr_to_ref( + arena: *mut YR_ARENA, + address: *const ::std::os::raw::c_void, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_get_ptr( + arena: *mut YR_ARENA, + buffer_id: u32, + offset: yr_arena_off_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_get_current_offset(arena: *mut YR_ARENA, buffer_id: u32) -> yr_arena_off_t; +} +extern "C" { + pub fn yr_arena_allocate_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_zeroed_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_struct( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_make_ptr_relocatable( + arena: *mut YR_ARENA, + buffer_id: u32, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_data( + arena: *mut YR_ARENA, + buffer_id: u32, + data: *const ::std::os::raw::c_void, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_string( + arena: *mut YR_ARENA, + buffer_id: u32, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_uint32( + arena: *mut YR_ARENA, + buffer_id: u32, + integer: u32, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_load_stream( + stream: *mut YR_STREAM, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_save_stream( + arena: *mut YR_ARENA, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SIZED_STRING { + pub length: u32, + pub flags: u32, + pub c_string: [::std::os::raw::c_char; 1usize], +} +pub type SIZED_STRING = _SIZED_STRING; +extern "C" { + pub fn ss_compare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_icompare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_contains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_icontains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_startswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_istartswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_endswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_iendswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_dup(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_new(s: *const ::std::os::raw::c_char) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_convert_to_wide(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_bitmask_find_non_colliding_offset( + a: *mut ::std::os::raw::c_ulong, + b: *mut ::std::os::raw::c_ulong, + len_a: u32, + len_b: u32, + off_a: *mut u32, + ) -> u32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE_ENTRY { + pub key: *mut ::std::os::raw::c_void, + pub key_length: usize, + pub ns: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_void, + pub next: *mut _YR_HASH_TABLE_ENTRY, +} +pub type YR_HASH_TABLE_ENTRY = _YR_HASH_TABLE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE { + pub size: ::std::os::raw::c_int, + pub buckets: [*mut YR_HASH_TABLE_ENTRY; 1usize], +} +pub type YR_HASH_TABLE = _YR_HASH_TABLE; +pub type YR_HASH_TABLE_FREE_VALUE_FUNC = ::std::option::Option< + unsafe extern "C" fn(value: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, +>; +pub type YR_HASH_TABLE_ITERATE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + key: *mut ::std::os::raw::c_void, + key_length: usize, + value: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_hash(seed: u32, buffer: *const ::std::os::raw::c_void, len: usize) -> u32; +} +extern "C" { + pub fn yr_hash_table_create( + size: ::std::os::raw::c_int, + table: *mut *mut YR_HASH_TABLE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_clean( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_destroy( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_iterate( + table: *mut YR_HASH_TABLE, + ns: *const ::std::os::raw::c_char, + iterate_func: YR_HASH_TABLE_ITERATE_FUNC, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +extern "C" { + pub fn yr_hash_table_lookup_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +#[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: *const ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { + pub it_interval: timespec, + pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent { + _unused: [u8; 0], +} +extern "C" { + pub fn clock() -> clock_t; +} +extern "C" { + pub fn time(__timer: *mut time_t) -> time_t; +} +extern "C" { + pub fn difftime(__time1: time_t, __time0: time_t) -> f64; +} +extern "C" { + pub fn mktime(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn strftime( + __s: *mut ::std::os::raw::c_char, + __maxsize: usize, + __format: *const ::std::os::raw::c_char, + __tp: *const tm, + ) -> usize; +} +extern "C" { + pub fn strftime_l( + __s: *mut ::std::os::raw::c_char, + __maxsize: usize, + __format: *const ::std::os::raw::c_char, + __tp: *const tm, + __loc: locale_t, + ) -> usize; +} +extern "C" { + pub fn gmtime(__timer: *const time_t) -> *mut tm; +} +extern "C" { + pub fn localtime(__timer: *const time_t) -> *mut tm; +} +extern "C" { + pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; +} +extern "C" { + pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; +} +extern "C" { + pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn asctime_r( + __tp: *const tm, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ctime_r( + __timer: *const time_t, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; +} +extern "C" { + pub static mut __daylight: ::std::os::raw::c_int; +} +extern "C" { + pub static mut __timezone: ::std::os::raw::c_long; +} +extern "C" { + pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; +} +extern "C" { + pub fn tzset(); +} +extern "C" { + pub static mut daylight: ::std::os::raw::c_int; +} +extern "C" { + pub static mut timezone: ::std::os::raw::c_long; +} +extern "C" { + pub fn timegm(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn timelocal(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn nanosleep( + __requested_time: *const timespec, + __remaining: *mut timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_nanosleep( + __clock_id: clockid_t, + __flags: ::std::os::raw::c_int, + __req: *const timespec, + __rem: *mut timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_create( + __clock_id: clockid_t, + __evp: *mut sigevent, + __timerid: *mut timer_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_settime( + __timerid: timer_t, + __flags: ::std::os::raw::c_int, + __value: *const itimerspec, + __ovalue: *mut itimerspec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timespec_get( + __ts: *mut timespec, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { + pub tz_minuteswest: ::std::os::raw::c_int, + pub tz_dsttime: ::std::os::raw::c_int, +} +extern "C" { + pub fn gettimeofday( + __tv: *mut timeval, + __tz: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn settimeofday(__tv: *const timeval, __tz: *const timezone) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn adjtime(__delta: *const timeval, __olddelta: *mut timeval) -> ::std::os::raw::c_int; +} +pub const __itimer_which_ITIMER_REAL: __itimer_which = 0; +pub const __itimer_which_ITIMER_VIRTUAL: __itimer_which = 1; +pub const __itimer_which_ITIMER_PROF: __itimer_which = 2; +pub type __itimer_which = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { + pub it_interval: timeval, + pub it_value: timeval, +} +pub type __itimer_which_t = ::std::os::raw::c_int; +extern "C" { + pub fn getitimer(__which: __itimer_which_t, __value: *mut itimerval) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setitimer( + __which: __itimer_which_t, + __new: *const itimerval, + __old: *mut itimerval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn utimes( + __file: *const ::std::os::raw::c_char, + __tvp: *const timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lutimes( + __file: *const ::std::os::raw::c_char, + __tvp: *const timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn futimes(__fd: ::std::os::raw::c_int, __tvp: *const timeval) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_STOPWATCH { + pub __bindgen_anon_1: _YR_STOPWATCH__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _YR_STOPWATCH__bindgen_ty_1 { + pub tv_start: timeval, + pub ts_start: timespec, +} +pub type YR_STOPWATCH = _YR_STOPWATCH; +extern "C" { + pub fn yr_stopwatch_start(stopwatch: *mut YR_STOPWATCH); +} +extern "C" { + pub fn yr_stopwatch_elapsed_ns(stopwatch: *mut YR_STOPWATCH) -> u64; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sched_param { + pub sched_priority: ::std::os::raw::c_int, +} +pub type __cpu_mask = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cpu_set_t { + pub __bits: [__cpu_mask; 16usize], +} +extern "C" { + pub fn __sched_cpucount(__setsize: usize, __setp: *const cpu_set_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __sched_cpualloc(__count: usize) -> *mut cpu_set_t; +} +extern "C" { + pub fn __sched_cpufree(__set: *mut cpu_set_t); +} +extern "C" { + pub fn sched_setparam(__pid: __pid_t, __param: *const sched_param) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_getparam(__pid: __pid_t, __param: *mut sched_param) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_setscheduler( + __pid: __pid_t, + __policy: ::std::os::raw::c_int, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_getscheduler(__pid: __pid_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_yield() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_max(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_min(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_rr_get_interval(__pid: __pid_t, __t: *mut timespec) -> ::std::os::raw::c_int; +} +pub const PTHREAD_CREATE_JOINABLE: _bindgen_ty_2 = 0; +pub const PTHREAD_CREATE_DETACHED: _bindgen_ty_2 = 1; +pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub const PTHREAD_MUTEX_TIMED_NP: _bindgen_ty_3 = 0; +pub const PTHREAD_MUTEX_RECURSIVE_NP: _bindgen_ty_3 = 1; +pub const PTHREAD_MUTEX_ERRORCHECK_NP: _bindgen_ty_3 = 2; +pub const PTHREAD_MUTEX_ADAPTIVE_NP: _bindgen_ty_3 = 3; +pub const PTHREAD_MUTEX_NORMAL: _bindgen_ty_3 = 0; +pub const PTHREAD_MUTEX_RECURSIVE: _bindgen_ty_3 = 1; +pub const PTHREAD_MUTEX_ERRORCHECK: _bindgen_ty_3 = 2; +pub const PTHREAD_MUTEX_DEFAULT: _bindgen_ty_3 = 0; +pub type _bindgen_ty_3 = ::std::os::raw::c_uint; +pub const PTHREAD_MUTEX_STALLED: _bindgen_ty_4 = 0; +pub const PTHREAD_MUTEX_STALLED_NP: _bindgen_ty_4 = 0; +pub const PTHREAD_MUTEX_ROBUST: _bindgen_ty_4 = 1; +pub const PTHREAD_MUTEX_ROBUST_NP: _bindgen_ty_4 = 1; +pub type _bindgen_ty_4 = ::std::os::raw::c_uint; +pub const PTHREAD_PRIO_NONE: _bindgen_ty_5 = 0; +pub const PTHREAD_PRIO_INHERIT: _bindgen_ty_5 = 1; +pub const PTHREAD_PRIO_PROTECT: _bindgen_ty_5 = 2; +pub type _bindgen_ty_5 = ::std::os::raw::c_uint; +pub const PTHREAD_RWLOCK_PREFER_READER_NP: _bindgen_ty_6 = 0; +pub const PTHREAD_RWLOCK_PREFER_WRITER_NP: _bindgen_ty_6 = 1; +pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP: _bindgen_ty_6 = 2; +pub const PTHREAD_RWLOCK_DEFAULT_NP: _bindgen_ty_6 = 0; +pub type _bindgen_ty_6 = ::std::os::raw::c_uint; +pub const PTHREAD_INHERIT_SCHED: _bindgen_ty_7 = 0; +pub const PTHREAD_EXPLICIT_SCHED: _bindgen_ty_7 = 1; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +pub const PTHREAD_SCOPE_SYSTEM: _bindgen_ty_8 = 0; +pub const PTHREAD_SCOPE_PROCESS: _bindgen_ty_8 = 1; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const PTHREAD_PROCESS_PRIVATE: _bindgen_ty_9 = 0; +pub const PTHREAD_PROCESS_SHARED: _bindgen_ty_9 = 1; +pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _pthread_cleanup_buffer { + pub __routine: ::std::option::Option, + pub __arg: *mut ::std::os::raw::c_void, + pub __canceltype: ::std::os::raw::c_int, + pub __prev: *mut _pthread_cleanup_buffer, +} +pub const PTHREAD_CANCEL_ENABLE: _bindgen_ty_10 = 0; +pub const PTHREAD_CANCEL_DISABLE: _bindgen_ty_10 = 1; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const PTHREAD_CANCEL_DEFERRED: _bindgen_ty_11 = 0; +pub const PTHREAD_CANCEL_ASYNCHRONOUS: _bindgen_ty_11 = 1; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +extern "C" { + pub fn pthread_create( + __newthread: *mut pthread_t, + __attr: *const pthread_attr_t, + __start_routine: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + __arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_exit(__retval: *mut ::std::os::raw::c_void) -> !; +} +extern "C" { + pub fn pthread_join( + __th: pthread_t, + __thread_return: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_detach(__th: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_self() -> pthread_t; +} +extern "C" { + pub fn pthread_equal(__thread1: pthread_t, __thread2: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_init(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_destroy(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getdetachstate( + __attr: *const pthread_attr_t, + __detachstate: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setdetachstate( + __attr: *mut pthread_attr_t, + __detachstate: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getguardsize( + __attr: *const pthread_attr_t, + __guardsize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setguardsize( + __attr: *mut pthread_attr_t, + __guardsize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedparam( + __attr: *const pthread_attr_t, + __param: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedparam( + __attr: *mut pthread_attr_t, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedpolicy( + __attr: *const pthread_attr_t, + __policy: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedpolicy( + __attr: *mut pthread_attr_t, + __policy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getinheritsched( + __attr: *const pthread_attr_t, + __inherit: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setinheritsched( + __attr: *mut pthread_attr_t, + __inherit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getscope( + __attr: *const pthread_attr_t, + __scope: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setscope( + __attr: *mut pthread_attr_t, + __scope: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstackaddr( + __attr: *const pthread_attr_t, + __stackaddr: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstackaddr( + __attr: *mut pthread_attr_t, + __stackaddr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstacksize( + __attr: *const pthread_attr_t, + __stacksize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstacksize( + __attr: *mut pthread_attr_t, + __stacksize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstack( + __attr: *const pthread_attr_t, + __stackaddr: *mut *mut ::std::os::raw::c_void, + __stacksize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstack( + __attr: *mut pthread_attr_t, + __stackaddr: *mut ::std::os::raw::c_void, + __stacksize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setschedparam( + __target_thread: pthread_t, + __policy: ::std::os::raw::c_int, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getschedparam( + __target_thread: pthread_t, + __policy: *mut ::std::os::raw::c_int, + __param: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setschedprio( + __target_thread: pthread_t, + __prio: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_once( + __once_control: *mut pthread_once_t, + __init_routine: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setcancelstate( + __state: ::std::os::raw::c_int, + __oldstate: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setcanceltype( + __type: ::std::os::raw::c_int, + __oldtype: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cancel(__th: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_testcancel(); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __cancel_jmp_buf_tag { + pub __cancel_jmp_buf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_unwind_buf_t { + pub __cancel_jmp_buf: [__cancel_jmp_buf_tag; 1usize], + pub __pad: [*mut ::std::os::raw::c_void; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_cleanup_frame { + pub __cancel_routine: + ::std::option::Option, + pub __cancel_arg: *mut ::std::os::raw::c_void, + pub __do_it: ::std::os::raw::c_int, + pub __cancel_type: ::std::os::raw::c_int, +} +extern "C" { + pub fn __pthread_register_cancel(__buf: *mut __pthread_unwind_buf_t); +} +extern "C" { + pub fn __pthread_unregister_cancel(__buf: *mut __pthread_unwind_buf_t); +} +extern "C" { + pub fn __pthread_unwind_next(__buf: *mut __pthread_unwind_buf_t) -> !; +} +extern "C" { + pub fn pthread_mutex_init( + __mutex: *mut pthread_mutex_t, + __mutexattr: *const pthread_mutexattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_destroy(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_trylock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_lock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_timedlock( + __mutex: *mut pthread_mutex_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_unlock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_getprioceiling( + __mutex: *const pthread_mutex_t, + __prioceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_setprioceiling( + __mutex: *mut pthread_mutex_t, + __prioceiling: ::std::os::raw::c_int, + __old_ceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_consistent(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_init(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_destroy(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getpshared( + __attr: *const pthread_mutexattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setpshared( + __attr: *mut pthread_mutexattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_gettype( + __attr: *const pthread_mutexattr_t, + __kind: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_settype( + __attr: *mut pthread_mutexattr_t, + __kind: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprotocol( + __attr: *const pthread_mutexattr_t, + __protocol: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprotocol( + __attr: *mut pthread_mutexattr_t, + __protocol: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprioceiling( + __attr: *const pthread_mutexattr_t, + __prioceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprioceiling( + __attr: *mut pthread_mutexattr_t, + __prioceiling: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getrobust( + __attr: *const pthread_mutexattr_t, + __robustness: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setrobust( + __attr: *mut pthread_mutexattr_t, + __robustness: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_init( + __rwlock: *mut pthread_rwlock_t, + __attr: *const pthread_rwlockattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_destroy(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_rdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_tryrdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_timedrdlock( + __rwlock: *mut pthread_rwlock_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_wrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_trywrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_timedwrlock( + __rwlock: *mut pthread_rwlock_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_unlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_init(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_destroy(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_getpshared( + __attr: *const pthread_rwlockattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_setpshared( + __attr: *mut pthread_rwlockattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_getkind_np( + __attr: *const pthread_rwlockattr_t, + __pref: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_setkind_np( + __attr: *mut pthread_rwlockattr_t, + __pref: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_init( + __cond: *mut pthread_cond_t, + __cond_attr: *const pthread_condattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_destroy(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_signal(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_broadcast(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_wait( + __cond: *mut pthread_cond_t, + __mutex: *mut pthread_mutex_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_timedwait( + __cond: *mut pthread_cond_t, + __mutex: *mut pthread_mutex_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_init(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_destroy(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_getpshared( + __attr: *const pthread_condattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_setpshared( + __attr: *mut pthread_condattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_getclock( + __attr: *const pthread_condattr_t, + __clock_id: *mut __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_setclock( + __attr: *mut pthread_condattr_t, + __clock_id: __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_init( + __lock: *mut pthread_spinlock_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_destroy(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_lock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_trylock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_unlock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_init( + __barrier: *mut pthread_barrier_t, + __attr: *const pthread_barrierattr_t, + __count: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_destroy(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_wait(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_init(__attr: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_destroy(__attr: *mut pthread_barrierattr_t) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_getpshared( + __attr: *const pthread_barrierattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_setpshared( + __attr: *mut pthread_barrierattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_create( + __key: *mut pthread_key_t, + __destr_function: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_delete(__key: pthread_key_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getspecific(__key: pthread_key_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn pthread_setspecific( + __key: pthread_key_t, + __pointer: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getcpuclockid( + __thread_id: pthread_t, + __clock_id: *mut __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_atfork( + __prepare: ::std::option::Option, + __parent: ::std::option::Option, + __child: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +pub type YR_THREAD_ID = pthread_t; +pub type YR_THREAD_STORAGE_KEY = pthread_key_t; +pub type YR_MUTEX = pthread_mutex_t; +extern "C" { + pub fn yr_current_thread_id() -> YR_THREAD_ID; +} +extern "C" { + pub fn yr_mutex_create(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_destroy(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_lock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_unlock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_create(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_destroy(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_set_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_get_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_NOTEBOOK { + _unused: [u8; 0], +} +extern "C" { + pub fn yr_notebook_create( + page_size: usize, + pool: *mut *mut YR_NOTEBOOK, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_destroy(pool: *mut YR_NOTEBOOK) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_alloc( + notebook: *mut YR_NOTEBOOK, + size: usize, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_LIST { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_TABLES { + _unused: [u8; 0], +} +pub type YR_AC_TRANSITION = u32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_NAMESPACE { + pub __bindgen_anon_1: YR_NAMESPACE__bindgen_ty_1, + pub idx: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_NAMESPACE__bindgen_ty_1 { + pub name: *const ::std::os::raw::c_char, + pub name_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_META { + pub __bindgen_anon_1: YR_META__bindgen_ty_1, + pub __bindgen_anon_2: YR_META__bindgen_ty_2, + pub integer: i64, + pub type_: i32, + pub flags: i32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_2 { + pub string: *const ::std::os::raw::c_char, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_STRING { + pub flags: u32, + pub idx: u32, + pub fixed_offset: i64, + pub rule_idx: u32, + pub length: i32, + pub __bindgen_anon_1: YR_STRING__bindgen_ty_1, + pub __bindgen_anon_2: YR_STRING__bindgen_ty_2, + pub chain_gap_min: i32, + pub chain_gap_max: i32, + pub __bindgen_anon_3: YR_STRING__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_1 { + pub string: *mut u8, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_2 { + pub chained_to: *mut YR_STRING, + pub chained_to_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_3 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULE { + pub flags: i32, + pub num_atoms: i32, + pub __bindgen_anon_1: YR_RULE__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULE__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULE__bindgen_ty_3, + pub __bindgen_anon_4: YR_RULE__bindgen_ty_4, + pub __bindgen_anon_5: YR_RULE__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_2 { + pub tags: *const ::std::os::raw::c_char, + pub tags_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_3 { + pub metas: *mut YR_META, + pub metas_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_4 { + pub strings: *mut YR_STRING, + pub strings_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_5 { + pub ns: *mut YR_NAMESPACE, + pub ns_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_SUMMARY { + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_EXTERNAL_VARIABLE { + pub type_: i32, + pub value: YR_EXTERNAL_VARIABLE__bindgen_ty_1, + pub __bindgen_anon_1: YR_EXTERNAL_VARIABLE__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_1 { + pub i: i64, + pub f: f64, + pub s: *mut ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_2 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_AC_MATCH { + pub __bindgen_anon_1: YR_AC_MATCH__bindgen_ty_1, + pub __bindgen_anon_2: YR_AC_MATCH__bindgen_ty_2, + pub __bindgen_anon_3: YR_AC_MATCH__bindgen_ty_3, + pub __bindgen_anon_4: YR_AC_MATCH__bindgen_ty_4, + pub backtrack: u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_1 { + pub string: *mut YR_STRING, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_2 { + pub forward_code: *const u8, + pub forward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_3 { + pub backward_code: *const u8, + pub backward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_4 { + pub next: *mut YR_AC_MATCH, + pub next_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RE_NODE { + pub type_: ::std::os::raw::c_int, + pub __bindgen_anon_1: RE_NODE__bindgen_ty_1, + pub __bindgen_anon_2: RE_NODE__bindgen_ty_2, + pub greedy: ::std::os::raw::c_int, + pub re_class: *mut RE_CLASS, + pub children_head: *mut RE_NODE, + pub children_tail: *mut RE_NODE, + pub prev_sibling: *mut RE_NODE, + pub next_sibling: *mut RE_NODE, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_1 { + pub value: ::std::os::raw::c_int, + pub count: ::std::os::raw::c_int, + pub start: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_2 { + pub mask: ::std::os::raw::c_int, + pub end: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_CLASS { + pub negated: u8, + pub bitmap: [u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_AST { + pub flags: u32, + pub root_node: *mut RE_NODE, +} +#[repr(C, packed)] +pub struct RE { + pub flags: u32, + pub code: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_ERROR { + pub message: [::std::os::raw::c_char; 384usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER { + pub ip: *const u8, + pub sp: i32, + pub rc: i32, + pub prev: *mut RE_FIBER, + pub next: *mut RE_FIBER, + pub stack: [u16; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_LIST { + pub head: *mut RE_FIBER, + pub tail: *mut RE_FIBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_POOL { + pub fiber_count: ::std::os::raw::c_int, + pub fibers: RE_FIBER_LIST, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION { + pub round: ::std::os::raw::c_int, + pub input: *const u8, + pub prev: *mut RE_FAST_EXEC_POSITION, + pub next: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_POOL { + pub head: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODIFIER { + pub flags: i32, + pub xor_min: u8, + pub xor_max: u8, + pub alphabet: *mut SIZED_STRING, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCHES { + pub head: *mut YR_MATCH, + pub tail: *mut YR_MATCH, + pub count: i32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCH { + pub base: i64, + pub offset: i64, + pub match_length: i32, + pub data_length: i32, + pub data: *const u8, + pub prev: *mut YR_MATCH, + pub next: *mut YR_MATCH, + pub chain_length: i32, + pub is_private: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_STATE { + pub failure: *mut YR_AC_STATE, + pub first_child: *mut YR_AC_STATE, + pub siblings: *mut YR_AC_STATE, + pub matches_ref: YR_ARENA_REF, + pub depth: u8, + pub input: u8, + pub t_table_slot: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_MATCH_LIST_ENTRY { + pub backtrack: u16, + pub string_idx: u32, + pub ref_: YR_ARENA_REF, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_AC_MATCH_LIST_ENTRY, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_AUTOMATON { + pub arena: *mut YR_ARENA, + pub tables_size: u32, + pub t_table_unused_candidate: u32, + pub bitmask: *mut ::std::os::raw::c_ulong, + pub root: *mut YR_AC_STATE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULES { + pub arena: *mut YR_ARENA, + pub __bindgen_anon_1: YR_RULES__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULES__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULES__bindgen_ty_3, + pub ac_transition_table: *mut YR_AC_TRANSITION, + pub ac_match_pool: *mut YR_AC_MATCH, + pub ac_match_table: *mut u32, + pub code_start: *const u8, + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_1 { + pub rules_table: *mut YR_RULE, + pub rules_list_head: *mut YR_RULE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_2 { + pub strings_table: *mut YR_STRING, + pub strings_list_head: *mut YR_STRING, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_3 { + pub ext_vars_table: *mut YR_EXTERNAL_VARIABLE, + pub externals_list_head: *mut YR_EXTERNAL_VARIABLE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULES_STATS { + pub num_rules: u32, + pub num_strings: u32, + pub ac_matches: u32, + pub ac_root_match_list_length: u32, + pub ac_average_match_list_length: f32, + pub top_ac_match_list_lengths: [u32; 100usize], + pub ac_match_list_length_pctls: [u32; 101usize], + pub ac_tables_size: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_PROFILING_INFO { + pub atom_matches: u32, + pub match_time: u64, + pub exec_time: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULE_PROFILING_INFO { + pub rule: *mut YR_RULE, + pub cost: u64, +} +pub type YR_MEMORY_BLOCK_FETCH_DATA_FUNC = + ::std::option::Option *const u8>; +pub type YR_MEMORY_BLOCK_ITERATOR_FUNC = ::std::option::Option< + unsafe extern "C" fn(self_: *mut YR_MEMORY_BLOCK_ITERATOR) -> *mut YR_MEMORY_BLOCK, +>; +pub type YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC = + ::std::option::Option u64>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK { + pub size: usize, + pub base: u64, + pub context: *mut ::std::os::raw::c_void, + pub fetch_data: YR_MEMORY_BLOCK_FETCH_DATA_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK_ITERATOR { + pub context: *mut ::std::os::raw::c_void, + pub first: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub next: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub file_size: YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC, + pub last_error: ::std::os::raw::c_int, +} +pub type YR_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + message: ::std::os::raw::c_int, + message_data: *mut ::std::os::raw::c_void, + user_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_SCAN_CONTEXT { + pub file_size: u64, + pub entry_point: u64, + pub flags: ::std::os::raw::c_int, + pub canary: ::std::os::raw::c_int, + pub timeout: u64, + pub user_data: *mut ::std::os::raw::c_void, + pub callback: YR_CALLBACK_FUNC, + pub rules: *mut YR_RULES, + pub last_error_string: *mut YR_STRING, + pub iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + pub objects_table: *mut YR_HASH_TABLE, + pub matches_notebook: *mut YR_NOTEBOOK, + pub stopwatch: YR_STOPWATCH, + pub re_fiber_pool: RE_FIBER_POOL, + pub re_fast_exec_position_pool: RE_FAST_EXEC_POSITION_POOL, + pub rule_matches_flags: *mut ::std::os::raw::c_ulong, + pub ns_unsatisfied_flags: *mut ::std::os::raw::c_ulong, + pub strings_temp_disabled: *mut ::std::os::raw::c_ulong, + pub matches: *mut YR_MATCHES, + pub unconfirmed_matches: *mut YR_MATCHES, + pub profiling_info: *mut YR_PROFILING_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_VALUE { + pub i: i64, + pub d: f64, + pub p: *mut ::std::os::raw::c_void, + pub o: *mut YR_OBJECT, + pub s: *mut YR_STRING, + pub it: *mut YR_ITERATOR, + pub ss: *mut SIZED_STRING, + pub re: *mut RE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_VALUE_STACK { + pub sp: u32, + pub capacity: u32, + pub items: *mut YR_VALUE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_OBJECT { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub value: YR_VALUE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_STRUCTURE { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub members: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_ARRAY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_ARRAY_ITEMS, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_DICTIONARY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_DICTIONARY_ITEMS, +} +pub type YR_MODULE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + args: *mut YR_VALUE, + context: *mut YR_SCAN_CONTEXT, + function_obj: *mut YR_OBJECT_FUNCTION, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub return_obj: *mut YR_OBJECT, + pub prototypes: [YR_OBJECT_FUNCTION__bindgen_ty_1; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION__bindgen_ty_1 { + pub arguments_fmt: *const ::std::os::raw::c_char, + pub code: YR_MODULE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_STRUCTURE_MEMBER { + pub object: *mut YR_OBJECT, + pub next: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITEMS { + pub capacity: ::std::os::raw::c_int, + pub length: ::std::os::raw::c_int, + pub objects: [*mut YR_OBJECT; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS { + pub used: ::std::os::raw::c_int, + pub free: ::std::os::raw::c_int, + pub objects: [YR_DICTIONARY_ITEMS__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS__bindgen_ty_1 { + pub key: *mut SIZED_STRING, + pub obj: *mut YR_OBJECT, +} +pub type YR_ITERATOR_NEXT_FUNC = ::std::option::Option< + unsafe extern "C" fn( + self_: *mut YR_ITERATOR, + stack: *mut YR_VALUE_STACK, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITERATOR { + pub array: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICT_ITERATOR { + pub dict: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_RANGE_ITERATOR { + pub next: i64, + pub last: i64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_ENUM_ITERATOR { + pub next: i64, + pub count: i64, + pub items: [i64; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_ITERATOR { + pub next_func_idx: ::std::os::raw::c_int, + pub __bindgen_anon_1: YR_ITERATOR__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_ITERATOR__bindgen_ty_1 { + pub array_it: YR_ARRAY_ITERATOR, + pub dict_it: YR_DICT_ITERATOR, + pub int_range_it: YR_INT_RANGE_ITERATOR, + pub int_enum_it: YR_INT_ENUM_ITERATOR, +} +pub type RE_MATCH_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + match_: *const u8, + match_length: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + args: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_re_ast_create(re_ast: *mut *mut RE_AST) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_destroy(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_print(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_extract_literal(re_ast: *mut RE_AST) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_re_ast_has_unbounded_quantifier_for_dot(re_ast: *mut RE_AST) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_split_at_chaining_point( + re_ast: *mut RE_AST, + remainder_re_ast: *mut *mut RE_AST, + min_gap: *mut i32, + max_gap: *mut i32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_emit_code( + re_ast: *mut RE_AST, + arena: *mut YR_ARENA, + backwards_code: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_node_create(type_: ::std::os::raw::c_int) -> *mut RE_NODE; +} +extern "C" { + pub fn yr_re_node_destroy(node: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_append_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_prepend_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: usize, + input_backwards_size: usize, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_fast_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: usize, + input_backwards_size: usize, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse( + re_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse_hex( + hex_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_compile( + re_string: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_match( + context: *mut YR_SCAN_CONTEXT, + re: *mut RE, + target: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM { + pub length: u8, + pub bytes: [u8; 4usize], + pub mask: [u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE_NODE { + pub type_: u8, + pub atom: YR_ATOM, + pub re_nodes: [*mut RE_NODE; 4usize], + pub children_head: *mut YR_ATOM_TREE_NODE, + pub children_tail: *mut YR_ATOM_TREE_NODE, + pub next_sibling: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE { + pub root_node: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_LIST_ITEM { + pub atom: YR_ATOM, + pub backtrack: u16, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_ATOM_LIST_ITEM, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_QUALITY_TABLE_ENTRY { + pub atom: [u8; 4usize], + pub quality: u8, +} +pub type YR_ATOMS_QUALITY_FUNC = ::std::option::Option< + unsafe extern "C" fn(config: *mut YR_ATOMS_CONFIG, atom: *mut YR_ATOM) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOMS_CONFIG { + pub get_atom_quality: YR_ATOMS_QUALITY_FUNC, + pub quality_table: *mut YR_ATOM_QUALITY_TABLE_ENTRY, + pub quality_warning_threshold: ::std::os::raw::c_int, + pub quality_table_entries: ::std::os::raw::c_int, + pub free_quality_table: bool, +} +extern "C" { + pub fn yr_atoms_extract_from_re( + config: *mut YR_ATOMS_CONFIG, + re_ast: *mut RE_AST, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_from_string( + config: *mut YR_ATOMS_CONFIG, + string: *mut u8, + string_length: ::std::os::raw::c_int, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_triplets( + re_node: *mut RE_NODE, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_heuristic_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_table_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_min_quality( + config: *mut YR_ATOMS_CONFIG, + atom_list: *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_list_destroy(list_head: *mut YR_ATOM_LIST_ITEM); +} +extern "C" { + pub fn yr_ac_automaton_create( + arena: *mut YR_ARENA, + automaton: *mut *mut YR_AC_AUTOMATON, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_automaton_destroy(automaton: *mut YR_AC_AUTOMATON) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_add_string( + automaton: *mut YR_AC_AUTOMATON, + string: *mut YR_STRING, + string_idx: u32, + atom: *mut YR_ATOM_LIST_ITEM, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_compile( + automaton: *mut YR_AC_AUTOMATON, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_print_automaton(automaton: *mut YR_AC_AUTOMATON); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_MAPPED_FILE { + pub file: ::std::os::raw::c_int, + pub size: usize, + pub data: *const u8, +} +pub type YR_MAPPED_FILE = _YR_MAPPED_FILE; +extern "C" { + pub fn yr_filemap_map( + file_path: *const ::std::os::raw::c_char, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_fd( + file: ::std::os::raw::c_int, + offset: u64, + size: usize, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_ex( + file_path: *const ::std::os::raw::c_char, + offset: u64, + size: usize, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_unmap(pmapped_file: *mut YR_MAPPED_FILE); +} +extern "C" { + pub fn yr_filemap_unmap_fd(pmapped_file: *mut YR_MAPPED_FILE); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_EXPRESSION { + pub type_: ::std::os::raw::c_int, + pub value: _YR_EXPRESSION__bindgen_ty_1, + pub identifier: _YR_EXPRESSION__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _YR_EXPRESSION__bindgen_ty_1 { + pub integer: i64, + pub object: *mut YR_OBJECT, + pub sized_string_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_EXPRESSION__bindgen_ty_2 { + pub ptr: *const ::std::os::raw::c_char, + pub ref_: YR_ARENA_REF, +} +pub type YR_EXPRESSION = _YR_EXPRESSION; +pub type YR_COMPILER_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + error_level: ::std::os::raw::c_int, + file_name: *const ::std::os::raw::c_char, + line_number: ::std::os::raw::c_int, + rule: *const YR_RULE, + message: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_INCLUDE_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char, +>; +pub type YR_COMPILER_INCLUDE_FREE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + callback_result_ptr: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_RE_AST_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + rule: *const YR_RULE, + string_identifier: *const ::std::os::raw::c_char, + re_ast: *const RE_AST, + user_data: *mut ::std::os::raw::c_void, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_FIXUP { + pub ref_: YR_ARENA_REF, + pub next: *mut _YR_FIXUP, +} +pub type YR_FIXUP = _YR_FIXUP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_LOOP_CONTEXT { + pub start_ref: YR_ARENA_REF, + pub vars_count: ::std::os::raw::c_int, + pub vars: [YR_EXPRESSION; 2usize], + pub vars_internal_count: ::std::os::raw::c_int, +} +pub type YR_LOOP_CONTEXT = _YR_LOOP_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_COMPILER { + pub arena: *mut YR_ARENA, + pub current_rule_idx: u32, + pub next_rule_idx: u32, + pub current_string_idx: u32, + pub current_namespace_idx: u32, + pub current_meta_idx: u32, + pub rules: *mut YR_RULES, + pub errors: ::std::os::raw::c_int, + pub current_line: ::std::os::raw::c_int, + pub last_error: ::std::os::raw::c_int, + pub last_error_line: ::std::os::raw::c_int, + pub error_recovery: jmp_buf, + pub automaton: *mut YR_AC_AUTOMATON, + pub rules_table: *mut YR_HASH_TABLE, + pub objects_table: *mut YR_HASH_TABLE, + pub strings_table: *mut YR_HASH_TABLE, + pub wildcard_identifiers_table: *mut YR_HASH_TABLE, + pub sz_table: *mut YR_HASH_TABLE, + pub fixup_stack_head: *mut YR_FIXUP, + pub num_namespaces: ::std::os::raw::c_int, + pub loop_: [YR_LOOP_CONTEXT; 4usize], + pub loop_index: ::std::os::raw::c_int, + pub loop_for_of_var_index: ::std::os::raw::c_int, + pub file_name_stack: [*mut ::std::os::raw::c_char; 16usize], + pub file_name_stack_ptr: ::std::os::raw::c_int, + pub last_error_extra_info: [::std::os::raw::c_char; 256usize], + pub lex_buf: [::std::os::raw::c_char; 8192usize], + pub lex_buf_ptr: *mut ::std::os::raw::c_char, + pub lex_buf_len: ::std::os::raw::c_ushort, + pub include_base_dir: [::std::os::raw::c_char; 1024usize], + pub user_data: *mut ::std::os::raw::c_void, + pub incl_clbk_user_data: *mut ::std::os::raw::c_void, + pub re_ast_clbk_user_data: *mut ::std::os::raw::c_void, + pub callback: YR_COMPILER_CALLBACK_FUNC, + pub include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + pub include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + pub re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + pub atoms_config: YR_ATOMS_CONFIG, +} +pub type YR_COMPILER = _YR_COMPILER; +extern "C" { + pub fn _yr_compiler_push_file_name( + compiler: *mut YR_COMPILER, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_pop_file_name(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn _yr_compiler_get_var_frame(compiler: *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_default_include_callback( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn _yr_compiler_get_rule_by_idx(compiler: *mut YR_COMPILER, rule_idx: u32) -> *mut YR_RULE; +} +extern "C" { + pub fn _yr_compiler_store_string( + compiler: *mut YR_COMPILER, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_store_data( + compiler: *mut YR_COMPILER, + data: *const ::std::os::raw::c_void, + data_length: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_create(compiler: *mut *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_destroy(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn yr_compiler_set_callback( + compiler: *mut YR_COMPILER, + callback: YR_COMPILER_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_include_callback( + compiler: *mut YR_COMPILER, + include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_re_ast_callback( + compiler: *mut YR_COMPILER, + re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_atom_quality_table( + compiler: *mut YR_COMPILER, + table: *const ::std::os::raw::c_void, + entries: ::std::os::raw::c_int, + warning_threshold: ::std::os::raw::c_uchar, + ); +} +extern "C" { + pub fn yr_compiler_load_atom_quality_table( + compiler: *mut YR_COMPILER, + filename: *const ::std::os::raw::c_char, + warning_threshold: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_file( + compiler: *mut YR_COMPILER, + rules_file: *mut FILE, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_fd( + compiler: *mut YR_COMPILER, + rules_fd: ::std::os::raw::c_int, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_string( + compiler: *mut YR_COMPILER, + rules_string: *const ::std::os::raw::c_char, + namespace_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_error_message( + compiler: *mut YR_COMPILER, + buffer: *mut ::std::os::raw::c_char, + buffer_size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_get_current_file_name( + compiler: *mut YR_COMPILER, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_define_integer_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_boolean_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_float_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_string_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_rules( + compiler: *mut YR_COMPILER, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +pub const _YR_CONFIG_NAME_YR_CONFIG_STACK_SIZE: _YR_CONFIG_NAME = 0; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_STRINGS_PER_RULE: _YR_CONFIG_NAME = 1; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_MATCH_DATA: _YR_CONFIG_NAME = 2; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_PROCESS_MEMORY_CHUNK: _YR_CONFIG_NAME = 3; +pub const _YR_CONFIG_NAME_YR_CONFIG_LAST: _YR_CONFIG_NAME = 4; +pub type _YR_CONFIG_NAME = ::std::os::raw::c_uint; +pub use self::_YR_CONFIG_NAME as YR_CONFIG_NAME; +extern "C" { + pub fn yr_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint32(arg1: YR_CONFIG_NAME, arg2: u32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint64(arg1: YR_CONFIG_NAME, arg2: u64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint32( + arg1: YR_CONFIG_NAME, + arg2: *mut u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint64( + arg1: YR_CONFIG_NAME, + arg2: *mut u64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_calloc(count: usize, size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_malloc(size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_realloc(ptr: *mut ::std::os::raw::c_void, size: usize) + -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_strndup(str_: *const ::std::os::raw::c_char, n: usize) + -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_free(ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn yr_heap_alloc() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_heap_free() -> ::std::os::raw::c_int; +} +pub type float_t = f32; +pub type double_t = f64; +extern "C" { + pub fn __fpclassify(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbit(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinf(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finite(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnan(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsig(__x: f64, __y: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignaling(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acos(__x: f64) -> f64; +} +extern "C" { + pub fn __acos(__x: f64) -> f64; +} +extern "C" { + pub fn asin(__x: f64) -> f64; +} +extern "C" { + pub fn __asin(__x: f64) -> f64; +} +extern "C" { + pub fn atan(__x: f64) -> f64; +} +extern "C" { + pub fn __atan(__x: f64) -> f64; +} +extern "C" { + pub fn atan2(__y: f64, __x: f64) -> f64; +} +extern "C" { + pub fn __atan2(__y: f64, __x: f64) -> f64; +} +extern "C" { + pub fn cos(__x: f64) -> f64; +} +extern "C" { + pub fn __cos(__x: f64) -> f64; +} +extern "C" { + pub fn sin(__x: f64) -> f64; +} +extern "C" { + pub fn __sin(__x: f64) -> f64; +} +extern "C" { + pub fn tan(__x: f64) -> f64; +} +extern "C" { + pub fn __tan(__x: f64) -> f64; +} +extern "C" { + pub fn cosh(__x: f64) -> f64; +} +extern "C" { + pub fn __cosh(__x: f64) -> f64; +} +extern "C" { + pub fn sinh(__x: f64) -> f64; +} +extern "C" { + pub fn __sinh(__x: f64) -> f64; +} +extern "C" { + pub fn tanh(__x: f64) -> f64; +} +extern "C" { + pub fn __tanh(__x: f64) -> f64; +} +extern "C" { + pub fn acosh(__x: f64) -> f64; +} +extern "C" { + pub fn __acosh(__x: f64) -> f64; +} +extern "C" { + pub fn asinh(__x: f64) -> f64; +} +extern "C" { + pub fn __asinh(__x: f64) -> f64; +} +extern "C" { + pub fn atanh(__x: f64) -> f64; +} +extern "C" { + pub fn __atanh(__x: f64) -> f64; +} +extern "C" { + pub fn exp(__x: f64) -> f64; +} +extern "C" { + pub fn __exp(__x: f64) -> f64; +} +extern "C" { + pub fn frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn log(__x: f64) -> f64; +} +extern "C" { + pub fn __log(__x: f64) -> f64; +} +extern "C" { + pub fn log10(__x: f64) -> f64; +} +extern "C" { + pub fn __log10(__x: f64) -> f64; +} +extern "C" { + pub fn modf(__x: f64, __iptr: *mut f64) -> f64; +} +extern "C" { + pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; +} +extern "C" { + pub fn expm1(__x: f64) -> f64; +} +extern "C" { + pub fn __expm1(__x: f64) -> f64; +} +extern "C" { + pub fn log1p(__x: f64) -> f64; +} +extern "C" { + pub fn __log1p(__x: f64) -> f64; +} +extern "C" { + pub fn logb(__x: f64) -> f64; +} +extern "C" { + pub fn __logb(__x: f64) -> f64; +} +extern "C" { + pub fn exp2(__x: f64) -> f64; +} +extern "C" { + pub fn __exp2(__x: f64) -> f64; +} +extern "C" { + pub fn log2(__x: f64) -> f64; +} +extern "C" { + pub fn __log2(__x: f64) -> f64; +} +extern "C" { + pub fn pow(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __pow(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn sqrt(__x: f64) -> f64; +} +extern "C" { + pub fn __sqrt(__x: f64) -> f64; +} +extern "C" { + pub fn hypot(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __hypot(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn cbrt(__x: f64) -> f64; +} +extern "C" { + pub fn __cbrt(__x: f64) -> f64; +} +extern "C" { + pub fn ceil(__x: f64) -> f64; +} +extern "C" { + pub fn __ceil(__x: f64) -> f64; +} +extern "C" { + pub fn fabs(__x: f64) -> f64; +} +extern "C" { + pub fn __fabs(__x: f64) -> f64; +} +extern "C" { + pub fn floor(__x: f64) -> f64; +} +extern "C" { + pub fn __floor(__x: f64) -> f64; +} +extern "C" { + pub fn fmod(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmod(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn isinf(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finite(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn drem(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __drem(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn significand(__x: f64) -> f64; +} +extern "C" { + pub fn __significand(__x: f64) -> f64; +} +extern "C" { + pub fn copysign(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __copysign(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn nan(__tagb: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn __nan(__tagb: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn isnan(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0(arg1: f64) -> f64; +} +extern "C" { + pub fn __j0(arg1: f64) -> f64; +} +extern "C" { + pub fn j1(arg1: f64) -> f64; +} +extern "C" { + pub fn __j1(arg1: f64) -> f64; +} +extern "C" { + pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn __jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn y0(arg1: f64) -> f64; +} +extern "C" { + pub fn __y0(arg1: f64) -> f64; +} +extern "C" { + pub fn y1(arg1: f64) -> f64; +} +extern "C" { + pub fn __y1(arg1: f64) -> f64; +} +extern "C" { + pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn __yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn erf(arg1: f64) -> f64; +} +extern "C" { + pub fn __erf(arg1: f64) -> f64; +} +extern "C" { + pub fn erfc(arg1: f64) -> f64; +} +extern "C" { + pub fn __erfc(arg1: f64) -> f64; +} +extern "C" { + pub fn lgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __lgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn tgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __tgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn gamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __gamma(arg1: f64) -> f64; +} +extern "C" { + pub fn lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn rint(__x: f64) -> f64; +} +extern "C" { + pub fn __rint(__x: f64) -> f64; +} +extern "C" { + pub fn nextafter(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __nextafter(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn nexttoward(__x: f64, __y: u128) -> f64; +} +extern "C" { + pub fn __nexttoward(__x: f64, __y: u128) -> f64; +} +extern "C" { + pub fn remainder(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __remainder(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ilogb(__x: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogb(__x: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn __scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn nearbyint(__x: f64) -> f64; +} +extern "C" { + pub fn __nearbyint(__x: f64) -> f64; +} +extern "C" { + pub fn round(__x: f64) -> f64; +} +extern "C" { + pub fn __round(__x: f64) -> f64; +} +extern "C" { + pub fn trunc(__x: f64) -> f64; +} +extern "C" { + pub fn __trunc(__x: f64) -> f64; +} +extern "C" { + pub fn remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn lrint(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrint(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrint(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrint(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lround(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lround(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llround(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llround(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdim(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fdim(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fmax(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmax(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fmin(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmin(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fma(__x: f64, __y: f64, __z: f64) -> f64; +} +extern "C" { + pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; +} +extern "C" { + pub fn scalb(__x: f64, __n: f64) -> f64; +} +extern "C" { + pub fn __scalb(__x: f64, __n: f64) -> f64; +} +extern "C" { + pub fn __fpclassifyf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbitf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinff(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finitef(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnanf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsigf(__x: f32, __y: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignalingf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acosf(__x: f32) -> f32; +} +extern "C" { + pub fn __acosf(__x: f32) -> f32; +} +extern "C" { + pub fn asinf(__x: f32) -> f32; +} +extern "C" { + pub fn __asinf(__x: f32) -> f32; +} +extern "C" { + pub fn atanf(__x: f32) -> f32; +} +extern "C" { + pub fn __atanf(__x: f32) -> f32; +} +extern "C" { + pub fn atan2f(__y: f32, __x: f32) -> f32; +} +extern "C" { + pub fn __atan2f(__y: f32, __x: f32) -> f32; +} +extern "C" { + pub fn cosf(__x: f32) -> f32; +} +extern "C" { + pub fn __cosf(__x: f32) -> f32; +} +extern "C" { + pub fn sinf(__x: f32) -> f32; +} +extern "C" { + pub fn __sinf(__x: f32) -> f32; +} +extern "C" { + pub fn tanf(__x: f32) -> f32; +} +extern "C" { + pub fn __tanf(__x: f32) -> f32; +} +extern "C" { + pub fn coshf(__x: f32) -> f32; +} +extern "C" { + pub fn __coshf(__x: f32) -> f32; +} +extern "C" { + pub fn sinhf(__x: f32) -> f32; +} +extern "C" { + pub fn __sinhf(__x: f32) -> f32; +} +extern "C" { + pub fn tanhf(__x: f32) -> f32; +} +extern "C" { + pub fn __tanhf(__x: f32) -> f32; +} +extern "C" { + pub fn acoshf(__x: f32) -> f32; +} +extern "C" { + pub fn __acoshf(__x: f32) -> f32; +} +extern "C" { + pub fn asinhf(__x: f32) -> f32; +} +extern "C" { + pub fn __asinhf(__x: f32) -> f32; +} +extern "C" { + pub fn atanhf(__x: f32) -> f32; +} +extern "C" { + pub fn __atanhf(__x: f32) -> f32; +} +extern "C" { + pub fn expf(__x: f32) -> f32; +} +extern "C" { + pub fn __expf(__x: f32) -> f32; +} +extern "C" { + pub fn frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn logf(__x: f32) -> f32; +} +extern "C" { + pub fn __logf(__x: f32) -> f32; +} +extern "C" { + pub fn log10f(__x: f32) -> f32; +} +extern "C" { + pub fn __log10f(__x: f32) -> f32; +} +extern "C" { + pub fn modff(__x: f32, __iptr: *mut f32) -> f32; +} +extern "C" { + pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; +} +extern "C" { + pub fn expm1f(__x: f32) -> f32; +} +extern "C" { + pub fn __expm1f(__x: f32) -> f32; +} +extern "C" { + pub fn log1pf(__x: f32) -> f32; +} +extern "C" { + pub fn __log1pf(__x: f32) -> f32; +} +extern "C" { + pub fn logbf(__x: f32) -> f32; +} +extern "C" { + pub fn __logbf(__x: f32) -> f32; +} +extern "C" { + pub fn exp2f(__x: f32) -> f32; +} +extern "C" { + pub fn __exp2f(__x: f32) -> f32; +} +extern "C" { + pub fn log2f(__x: f32) -> f32; +} +extern "C" { + pub fn __log2f(__x: f32) -> f32; +} +extern "C" { + pub fn powf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __powf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn sqrtf(__x: f32) -> f32; +} +extern "C" { + pub fn __sqrtf(__x: f32) -> f32; +} +extern "C" { + pub fn hypotf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __hypotf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn cbrtf(__x: f32) -> f32; +} +extern "C" { + pub fn __cbrtf(__x: f32) -> f32; +} +extern "C" { + pub fn ceilf(__x: f32) -> f32; +} +extern "C" { + pub fn __ceilf(__x: f32) -> f32; +} +extern "C" { + pub fn fabsf(__x: f32) -> f32; +} +extern "C" { + pub fn __fabsf(__x: f32) -> f32; +} +extern "C" { + pub fn floorf(__x: f32) -> f32; +} +extern "C" { + pub fn __floorf(__x: f32) -> f32; +} +extern "C" { + pub fn fmodf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fmodf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn isinff(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finitef(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dremf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __dremf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn significandf(__x: f32) -> f32; +} +extern "C" { + pub fn __significandf(__x: f32) -> f32; +} +extern "C" { + pub fn copysignf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __copysignf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn nanf(__tagb: *const ::std::os::raw::c_char) -> f32; +} +extern "C" { + pub fn __nanf(__tagb: *const ::std::os::raw::c_char) -> f32; +} +extern "C" { + pub fn isnanf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0f(arg1: f32) -> f32; +} +extern "C" { + pub fn __j0f(arg1: f32) -> f32; +} +extern "C" { + pub fn j1f(arg1: f32) -> f32; +} +extern "C" { + pub fn __j1f(arg1: f32) -> f32; +} +extern "C" { + pub fn jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn __jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn y0f(arg1: f32) -> f32; +} +extern "C" { + pub fn __y0f(arg1: f32) -> f32; +} +extern "C" { + pub fn y1f(arg1: f32) -> f32; +} +extern "C" { + pub fn __y1f(arg1: f32) -> f32; +} +extern "C" { + pub fn ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn __ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn erff(arg1: f32) -> f32; +} +extern "C" { + pub fn __erff(arg1: f32) -> f32; +} +extern "C" { + pub fn erfcf(arg1: f32) -> f32; +} +extern "C" { + pub fn __erfcf(arg1: f32) -> f32; +} +extern "C" { + pub fn lgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __lgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn tgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __tgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn gammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __gammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn rintf(__x: f32) -> f32; +} +extern "C" { + pub fn __rintf(__x: f32) -> f32; +} +extern "C" { + pub fn nextafterf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __nextafterf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn nexttowardf(__x: f32, __y: u128) -> f32; +} +extern "C" { + pub fn __nexttowardf(__x: f32, __y: u128) -> f32; +} +extern "C" { + pub fn remainderf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __remainderf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn ilogbf(__x: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogbf(__x: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32; +} +extern "C" { + pub fn __scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32; +} +extern "C" { + pub fn nearbyintf(__x: f32) -> f32; +} +extern "C" { + pub fn __nearbyintf(__x: f32) -> f32; +} +extern "C" { + pub fn roundf(__x: f32) -> f32; +} +extern "C" { + pub fn __roundf(__x: f32) -> f32; +} +extern "C" { + pub fn truncf(__x: f32) -> f32; +} +extern "C" { + pub fn __truncf(__x: f32) -> f32; +} +extern "C" { + pub fn remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn lrintf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrintf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrintf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrintf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lroundf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lroundf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llroundf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llroundf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdimf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fdimf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fmaxf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fmaxf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fminf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fminf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fmaf(__x: f32, __y: f32, __z: f32) -> f32; +} +extern "C" { + pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; +} +extern "C" { + pub fn scalbf(__x: f32, __n: f32) -> f32; +} +extern "C" { + pub fn __scalbf(__x: f32, __n: f32) -> f32; +} +extern "C" { + pub fn __fpclassifyl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbitl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinfl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finitel(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnanl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsigl(__x: u128, __y: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignalingl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acosl(__x: u128) -> u128; +} +extern "C" { + pub fn __acosl(__x: u128) -> u128; +} +extern "C" { + pub fn asinl(__x: u128) -> u128; +} +extern "C" { + pub fn __asinl(__x: u128) -> u128; +} +extern "C" { + pub fn atanl(__x: u128) -> u128; +} +extern "C" { + pub fn __atanl(__x: u128) -> u128; +} +extern "C" { + pub fn atan2l(__y: u128, __x: u128) -> u128; +} +extern "C" { + pub fn __atan2l(__y: u128, __x: u128) -> u128; +} +extern "C" { + pub fn cosl(__x: u128) -> u128; +} +extern "C" { + pub fn __cosl(__x: u128) -> u128; +} +extern "C" { + pub fn sinl(__x: u128) -> u128; +} +extern "C" { + pub fn __sinl(__x: u128) -> u128; +} +extern "C" { + pub fn tanl(__x: u128) -> u128; +} +extern "C" { + pub fn __tanl(__x: u128) -> u128; +} +extern "C" { + pub fn coshl(__x: u128) -> u128; +} +extern "C" { + pub fn __coshl(__x: u128) -> u128; +} +extern "C" { + pub fn sinhl(__x: u128) -> u128; +} +extern "C" { + pub fn __sinhl(__x: u128) -> u128; +} +extern "C" { + pub fn tanhl(__x: u128) -> u128; +} +extern "C" { + pub fn __tanhl(__x: u128) -> u128; +} +extern "C" { + pub fn acoshl(__x: u128) -> u128; +} +extern "C" { + pub fn __acoshl(__x: u128) -> u128; +} +extern "C" { + pub fn asinhl(__x: u128) -> u128; +} +extern "C" { + pub fn __asinhl(__x: u128) -> u128; +} +extern "C" { + pub fn atanhl(__x: u128) -> u128; +} +extern "C" { + pub fn __atanhl(__x: u128) -> u128; +} +extern "C" { + pub fn expl(__x: u128) -> u128; +} +extern "C" { + pub fn __expl(__x: u128) -> u128; +} +extern "C" { + pub fn frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn logl(__x: u128) -> u128; +} +extern "C" { + pub fn __logl(__x: u128) -> u128; +} +extern "C" { + pub fn log10l(__x: u128) -> u128; +} +extern "C" { + pub fn __log10l(__x: u128) -> u128; +} +extern "C" { + pub fn modfl(__x: u128, __iptr: *mut u128) -> u128; +} +extern "C" { + pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; +} +extern "C" { + pub fn expm1l(__x: u128) -> u128; +} +extern "C" { + pub fn __expm1l(__x: u128) -> u128; +} +extern "C" { + pub fn log1pl(__x: u128) -> u128; +} +extern "C" { + pub fn __log1pl(__x: u128) -> u128; +} +extern "C" { + pub fn logbl(__x: u128) -> u128; +} +extern "C" { + pub fn __logbl(__x: u128) -> u128; +} +extern "C" { + pub fn exp2l(__x: u128) -> u128; +} +extern "C" { + pub fn __exp2l(__x: u128) -> u128; +} +extern "C" { + pub fn log2l(__x: u128) -> u128; +} +extern "C" { + pub fn __log2l(__x: u128) -> u128; +} +extern "C" { + pub fn powl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __powl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn sqrtl(__x: u128) -> u128; +} +extern "C" { + pub fn __sqrtl(__x: u128) -> u128; +} +extern "C" { + pub fn hypotl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __hypotl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn cbrtl(__x: u128) -> u128; +} +extern "C" { + pub fn __cbrtl(__x: u128) -> u128; +} +extern "C" { + pub fn ceill(__x: u128) -> u128; +} +extern "C" { + pub fn __ceill(__x: u128) -> u128; +} +extern "C" { + pub fn fabsl(__x: u128) -> u128; +} +extern "C" { + pub fn __fabsl(__x: u128) -> u128; +} +extern "C" { + pub fn floorl(__x: u128) -> u128; +} +extern "C" { + pub fn __floorl(__x: u128) -> u128; +} +extern "C" { + pub fn fmodl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fmodl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn isinfl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finitel(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dreml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __dreml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn significandl(__x: u128) -> u128; +} +extern "C" { + pub fn __significandl(__x: u128) -> u128; +} +extern "C" { + pub fn copysignl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __copysignl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn nanl(__tagb: *const ::std::os::raw::c_char) -> u128; +} +extern "C" { + pub fn __nanl(__tagb: *const ::std::os::raw::c_char) -> u128; +} +extern "C" { + pub fn isnanl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0l(arg1: u128) -> u128; +} +extern "C" { + pub fn __j0l(arg1: u128) -> u128; +} +extern "C" { + pub fn j1l(arg1: u128) -> u128; +} +extern "C" { + pub fn __j1l(arg1: u128) -> u128; +} +extern "C" { + pub fn jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn __jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn y0l(arg1: u128) -> u128; +} +extern "C" { + pub fn __y0l(arg1: u128) -> u128; +} +extern "C" { + pub fn y1l(arg1: u128) -> u128; +} +extern "C" { + pub fn __y1l(arg1: u128) -> u128; +} +extern "C" { + pub fn ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn __ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn erfl(arg1: u128) -> u128; +} +extern "C" { + pub fn __erfl(arg1: u128) -> u128; +} +extern "C" { + pub fn erfcl(arg1: u128) -> u128; +} +extern "C" { + pub fn __erfcl(arg1: u128) -> u128; +} +extern "C" { + pub fn lgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __lgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn tgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __tgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn gammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __gammal(arg1: u128) -> u128; +} +extern "C" { + pub fn lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn rintl(__x: u128) -> u128; +} +extern "C" { + pub fn __rintl(__x: u128) -> u128; +} +extern "C" { + pub fn nextafterl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __nextafterl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn nexttowardl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __nexttowardl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn remainderl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __remainderl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn ilogbl(__x: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogbl(__x: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128; +} +extern "C" { + pub fn __scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128; +} +extern "C" { + pub fn nearbyintl(__x: u128) -> u128; +} +extern "C" { + pub fn __nearbyintl(__x: u128) -> u128; +} +extern "C" { + pub fn roundl(__x: u128) -> u128; +} +extern "C" { + pub fn __roundl(__x: u128) -> u128; +} +extern "C" { + pub fn truncl(__x: u128) -> u128; +} +extern "C" { + pub fn __truncl(__x: u128) -> u128; +} +extern "C" { + pub fn remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn lrintl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrintl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrintl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrintl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lroundl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lroundl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llroundl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llroundl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdiml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fdiml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fmaxl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fmaxl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fminl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fminl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fmal(__x: u128, __y: u128, __z: u128) -> u128; +} +extern "C" { + pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; +} +extern "C" { + pub fn scalbl(__x: u128, __n: u128) -> u128; +} +extern "C" { + pub fn __scalbl(__x: u128, __n: u128) -> u128; +} +extern "C" { + pub static mut signgam: ::std::os::raw::c_int; +} +pub type YR_SCANNER = YR_SCAN_CONTEXT; +extern "C" { + pub fn yr_scanner_create( + rules: *mut YR_RULES, + scanner: *mut *mut YR_SCANNER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_destroy(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_set_callback( + scanner: *mut YR_SCANNER, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_scanner_set_timeout(scanner: *mut YR_SCANNER, timeout: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_set_flags(scanner: *mut YR_SCANNER, flags: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_define_integer_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_boolean_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_float_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_string_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem_blocks( + scanner: *mut YR_SCANNER, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem( + scanner: *mut YR_SCANNER, + buffer: *const u8, + buffer_size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_file( + scanner: *mut YR_SCANNER, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_fd( + scanner: *mut YR_SCANNER, + fd: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_proc( + scanner: *mut YR_SCANNER, + pid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_last_error_rule(scanner: *mut YR_SCANNER) -> *mut YR_RULE; +} +extern "C" { + pub fn yr_scanner_last_error_string(scanner: *mut YR_SCANNER) -> *mut YR_STRING; +} +extern "C" { + pub fn yr_scanner_get_profiling_info(scanner: *mut YR_SCANNER) -> *mut YR_RULE_PROFILING_INFO; +} +extern "C" { + pub fn yr_scanner_reset_profiling_info(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_print_profiling_info(scanner: *mut YR_SCANNER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem_blocks( + rules: *mut YR_RULES, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem( + rules: *mut YR_RULES, + buffer: *const u8, + buffer_size: usize, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_file( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_fd( + rules: *mut YR_RULES, + fd: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_proc( + rules: *mut YR_RULES, + pid: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save_stream( + rules: *mut YR_RULES, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load( + filename: *const ::std::os::raw::c_char, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load_stream( + stream: *mut YR_STREAM, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_destroy(rules: *mut YR_RULES) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_integer_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_boolean_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_float_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_string_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_get_stats( + rules: *mut YR_RULES, + stats: *mut YR_RULES_STATS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rule_disable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rule_enable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rules_from_arena( + arena: *mut YR_ARENA, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scan_verify_match( + context: *mut YR_SCAN_CONTEXT, + ac_match: *mut YR_AC_MATCH, + data: *const u8, + data_size: usize, + data_base: u64, + offset: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_execute_code(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_create( + type_: i8, + identifier: *const ::std::os::raw::c_char, + parent: *mut YR_OBJECT, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_canary(object: *mut YR_OBJECT, canary: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_object_function_create( + identifier: *const ::std::os::raw::c_char, + arguments_fmt: *const ::std::os::raw::c_char, + return_fmt: *const ::std::os::raw::c_char, + func: YR_MODULE_FUNC, + parent: *mut YR_OBJECT, + function: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_from_external_variable( + external: *mut YR_EXTERNAL_VARIABLE, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_destroy(object: *mut YR_OBJECT); +} +extern "C" { + pub fn yr_object_copy( + object: *mut YR_OBJECT, + object_copy: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_lookup_field( + object: *mut YR_OBJECT, + field_name: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_lookup( + root: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + pattern: *const ::std::os::raw::c_char, + ... + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_has_undefined_value( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn yr_object_get_float( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> f64; +} +extern "C" { + pub fn yr_object_get_integer( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> i64; +} +extern "C" { + pub fn yr_object_get_string( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_object_set_integer( + value: i64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_float( + value: f64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_string( + value: *const ::std::os::raw::c_char, + len: usize, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_length(object: *mut YR_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + index: ::std::os::raw::c_int, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_array_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_dict_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + key: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_dict_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + key: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_structure_set_member( + object: *mut YR_OBJECT, + member: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_get_root(object: *mut YR_OBJECT) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_print_data( + object: *mut YR_OBJECT, + indent: ::std::os::raw::c_int, + print_identifier: ::std::os::raw::c_int, + ); +} +pub type YR_EXT_INITIALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_FINALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_DECLARATIONS_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_LOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + module_object: *mut YR_OBJECT, + module_data: *mut ::std::os::raw::c_void, + module_data_size: usize, + ) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_UNLOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE { + pub name: *mut ::std::os::raw::c_char, + pub declarations: YR_EXT_DECLARATIONS_FUNC, + pub load: YR_EXT_LOAD_FUNC, + pub unload: YR_EXT_UNLOAD_FUNC, + pub initialize: YR_EXT_INITIALIZE_FUNC, + pub finalize: YR_EXT_FINALIZE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE_IMPORT { + pub module_name: *const ::std::os::raw::c_char, + pub module_data: *mut ::std::os::raw::c_void, + pub module_data_size: usize, +} +extern "C" { + pub fn yr_modules_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_do_declarations( + module_name: *const ::std::os::raw::c_char, + main_structure: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_load( + module_name: *const ::std::os::raw::c_char, + context: *mut YR_SCAN_CONTEXT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_unload_all(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_data { + pub _address: u8, +} +pub type size_t = usize; diff --git a/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-musl.rs b/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-musl.rs new file mode 100644 index 0000000..a2fc187 --- /dev/null +++ b/yara-sys/bindings/yara-4.2.3-aarch64-unknown-linux-musl.rs @@ -0,0 +1,7121 @@ +/* automatically generated by rust-bindgen 0.64.0 */ + +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +impl __IncompleteArrayField { + #[inline] + pub const fn new() -> Self { + __IncompleteArrayField(::std::marker::PhantomData, []) + } + #[inline] + pub fn as_ptr(&self) -> *const T { + self as *const _ as *const T + } + #[inline] + pub fn as_mut_ptr(&mut self) -> *mut T { + self as *mut _ as *mut T + } + #[inline] + pub unsafe fn as_slice(&self, len: usize) -> &[T] { + ::std::slice::from_raw_parts(self.as_ptr(), len) + } + #[inline] + pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { + ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) + } +} +impl ::std::fmt::Debug for __IncompleteArrayField { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + fmt.write_str("__IncompleteArrayField") + } +} +pub const _SETJMP_H: u32 = 1; +pub const _FEATURES_H: u32 = 1; +pub const _DEFAULT_SOURCE: u32 = 1; +pub const __GLIBC_USE_ISOC2X: u32 = 0; +pub const __USE_ISOC11: u32 = 1; +pub const __USE_ISOC99: u32 = 1; +pub const __USE_ISOC95: u32 = 1; +pub const __USE_POSIX_IMPLICITLY: u32 = 1; +pub const _POSIX_SOURCE: u32 = 1; +pub const _POSIX_C_SOURCE: u32 = 200809; +pub const __USE_POSIX: u32 = 1; +pub const __USE_POSIX2: u32 = 1; +pub const __USE_POSIX199309: u32 = 1; +pub const __USE_POSIX199506: u32 = 1; +pub const __USE_XOPEN2K: u32 = 1; +pub const __USE_XOPEN2K8: u32 = 1; +pub const _ATFILE_SOURCE: u32 = 1; +pub const __WORDSIZE: u32 = 64; +pub const __WORDSIZE_TIME64_COMPAT32: u32 = 0; +pub const __TIMESIZE: u32 = 64; +pub const __USE_MISC: u32 = 1; +pub const __USE_ATFILE: u32 = 1; +pub const __USE_FORTIFY_LEVEL: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; +pub const _STDC_PREDEF_H: u32 = 1; +pub const __STDC_IEC_559__: u32 = 1; +pub const __STDC_IEC_60559_BFP__: u32 = 201404; +pub const __STDC_IEC_559_COMPLEX__: u32 = 1; +pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; +pub const __STDC_ISO_10646__: u32 = 201706; +pub const __GNU_LIBRARY__: u32 = 6; +pub const __GLIBC__: u32 = 2; +pub const __GLIBC_MINOR__: u32 = 36; +pub const _SYS_CDEFS_H: u32 = 1; +pub const __glibc_c99_flexarr_available: u32 = 1; +pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; +pub const __HAVE_GENERIC_SELECTION: u32 = 1; +pub const _BITS_SETJMP_H: u32 = 1; +pub const __jmp_buf_tag_defined: u32 = 1; +pub const _STDIO_H: u32 = 1; +pub const __GLIBC_USE_LIB_EXT2: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; +pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; +pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; +pub const __GNUC_VA_LIST: u32 = 1; +pub const _BITS_TYPES_H: u32 = 1; +pub const _BITS_TYPESIZES_H: u32 = 1; +pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; +pub const __INO_T_MATCHES_INO64_T: u32 = 1; +pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; +pub const __STATFS_MATCHES_STATFS64: u32 = 1; +pub const __FD_SETSIZE: u32 = 1024; +pub const _BITS_TIME64_H: u32 = 1; +pub const _____fpos_t_defined: u32 = 1; +pub const ____mbstate_t_defined: u32 = 1; +pub const _____fpos64_t_defined: u32 = 1; +pub const ____FILE_defined: u32 = 1; +pub const __FILE_defined: u32 = 1; +pub const __struct_FILE_defined: u32 = 1; +pub const _IO_EOF_SEEN: u32 = 16; +pub const _IO_ERR_SEEN: u32 = 32; +pub const _IO_USER_LOCK: u32 = 32768; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 8192; +pub const EOF: i32 = -1; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const _BITS_STDIO_LIM_H: u32 = 1; +pub const L_tmpnam: u32 = 20; +pub const TMP_MAX: u32 = 238328; +pub const FILENAME_MAX: u32 = 4096; +pub const L_ctermid: u32 = 9; +pub const FOPEN_MAX: u32 = 16; +pub const __HAVE_FLOAT128: u32 = 1; +pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; +pub const __HAVE_FLOAT64X: u32 = 1; +pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; +pub const __HAVE_FLOAT16: u32 = 0; +pub const __HAVE_FLOAT32: u32 = 1; +pub const __HAVE_FLOAT64: u32 = 1; +pub const __HAVE_FLOAT32X: u32 = 1; +pub const __HAVE_FLOAT128X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; +pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; +pub const _LIBC_LIMITS_H_: u32 = 1; +pub const MB_LEN_MAX: u32 = 16; +pub const CHAR_MIN: u32 = 0; +pub const _BITS_POSIX1_LIM_H: u32 = 1; +pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; +pub const _POSIX_AIO_MAX: u32 = 1; +pub const _POSIX_ARG_MAX: u32 = 4096; +pub const _POSIX_CHILD_MAX: u32 = 25; +pub const _POSIX_DELAYTIMER_MAX: u32 = 32; +pub const _POSIX_HOST_NAME_MAX: u32 = 255; +pub const _POSIX_LINK_MAX: u32 = 8; +pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; +pub const _POSIX_MAX_CANON: u32 = 255; +pub const _POSIX_MAX_INPUT: u32 = 255; +pub const _POSIX_MQ_OPEN_MAX: u32 = 8; +pub const _POSIX_MQ_PRIO_MAX: u32 = 32; +pub const _POSIX_NAME_MAX: u32 = 14; +pub const _POSIX_NGROUPS_MAX: u32 = 8; +pub const _POSIX_OPEN_MAX: u32 = 20; +pub const _POSIX_PATH_MAX: u32 = 256; +pub const _POSIX_PIPE_BUF: u32 = 512; +pub const _POSIX_RE_DUP_MAX: u32 = 255; +pub const _POSIX_RTSIG_MAX: u32 = 8; +pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; +pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; +pub const _POSIX_SIGQUEUE_MAX: u32 = 32; +pub const _POSIX_SSIZE_MAX: u32 = 32767; +pub const _POSIX_STREAM_MAX: u32 = 8; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const PTHREAD_KEYS_MAX: u32 = 1024; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const AIO_PRIO_DELTA_MAX: u32 = 20; +pub const PTHREAD_STACK_MIN: u32 = 131072; +pub const DELAYTIMER_MAX: u32 = 2147483647; +pub const TTY_NAME_MAX: u32 = 32; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const HOST_NAME_MAX: u32 = 64; +pub const MQ_PRIO_MAX: u32 = 32768; +pub const SEM_VALUE_MAX: u32 = 2147483647; +pub const _BITS_POSIX2_LIM_H: u32 = 1; +pub const _POSIX2_BC_BASE_MAX: u32 = 99; +pub const _POSIX2_BC_DIM_MAX: u32 = 2048; +pub const _POSIX2_BC_SCALE_MAX: u32 = 99; +pub const _POSIX2_BC_STRING_MAX: u32 = 1000; +pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; +pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; +pub const _POSIX2_LINE_MAX: u32 = 2048; +pub const _POSIX2_RE_DUP_MAX: u32 = 255; +pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; +pub const BC_BASE_MAX: u32 = 99; +pub const BC_DIM_MAX: u32 = 2048; +pub const BC_SCALE_MAX: u32 = 99; +pub const BC_STRING_MAX: u32 = 1000; +pub const COLL_WEIGHTS_MAX: u32 = 255; +pub const EXPR_NEST_MAX: u32 = 32; +pub const LINE_MAX: u32 = 2048; +pub const CHARCLASS_NAME_MAX: u32 = 2048; +pub const RE_DUP_MAX: u32 = 32767; +pub const _ASSERT_H: u32 = 1; +pub const _STDLIB_H: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const __W_CONTINUED: u32 = 65535; +pub const __WCOREFLAG: u32 = 128; +pub const __ldiv_t_defined: u32 = 1; +pub const __lldiv_t_defined: u32 = 1; +pub const RAND_MAX: u32 = 2147483647; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const _SYS_TYPES_H: u32 = 1; +pub const __clock_t_defined: u32 = 1; +pub const __clockid_t_defined: u32 = 1; +pub const __time_t_defined: u32 = 1; +pub const __timer_t_defined: u32 = 1; +pub const _BITS_STDINT_INTN_H: u32 = 1; +pub const __BIT_TYPES_DEFINED__: u32 = 1; +pub const _ENDIAN_H: u32 = 1; +pub const _BITS_ENDIAN_H: u32 = 1; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BIG_ENDIAN: u32 = 4321; +pub const __PDP_ENDIAN: u32 = 3412; +pub const _BITS_ENDIANNESS_H: u32 = 1; +pub const __BYTE_ORDER: u32 = 1234; +pub const __FLOAT_WORD_ORDER: u32 = 1234; +pub const LITTLE_ENDIAN: u32 = 1234; +pub const BIG_ENDIAN: u32 = 4321; +pub const PDP_ENDIAN: u32 = 3412; +pub const BYTE_ORDER: u32 = 1234; +pub const _BITS_BYTESWAP_H: u32 = 1; +pub const _BITS_UINTN_IDENTITY_H: u32 = 1; +pub const _SYS_SELECT_H: u32 = 1; +pub const __sigset_t_defined: u32 = 1; +pub const __timeval_defined: u32 = 1; +pub const _STRUCT_TIMESPEC: u32 = 1; +pub const FD_SETSIZE: u32 = 1024; +pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; +pub const _THREAD_SHARED_TYPES_H: u32 = 1; +pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; +pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 64; +pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 48; +pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56; +pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32; +pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; +pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; +pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; +pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; +pub const __have_pthread_attr_t: u32 = 1; +pub const _ALLOCA_H: u32 = 1; +pub const _STRING_H: u32 = 1; +pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; +pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; +pub const _STRINGS_H: u32 = 1; +pub const _STDINT_H: u32 = 1; +pub const _BITS_WCHAR_H: u32 = 1; +pub const _BITS_STDINT_UINTN_H: u32 = 1; +pub const INT8_MIN: i32 = -128; +pub const INT16_MIN: i32 = -32768; +pub const INT32_MIN: i32 = -2147483648; +pub const INT8_MAX: u32 = 127; +pub const INT16_MAX: u32 = 32767; +pub const INT32_MAX: u32 = 2147483647; +pub const UINT8_MAX: u32 = 255; +pub const UINT16_MAX: u32 = 65535; +pub const UINT32_MAX: u32 = 4294967295; +pub const INT_LEAST8_MIN: i32 = -128; +pub const INT_LEAST16_MIN: i32 = -32768; +pub const INT_LEAST32_MIN: i32 = -2147483648; +pub const INT_LEAST8_MAX: u32 = 127; +pub const INT_LEAST16_MAX: u32 = 32767; +pub const INT_LEAST32_MAX: u32 = 2147483647; +pub const UINT_LEAST8_MAX: u32 = 255; +pub const UINT_LEAST16_MAX: u32 = 65535; +pub const UINT_LEAST32_MAX: u32 = 4294967295; +pub const INT_FAST8_MIN: i32 = -128; +pub const INT_FAST16_MIN: i64 = -9223372036854775808; +pub const INT_FAST32_MIN: i64 = -9223372036854775808; +pub const INT_FAST8_MAX: u32 = 127; +pub const INT_FAST16_MAX: u64 = 9223372036854775807; +pub const INT_FAST32_MAX: u64 = 9223372036854775807; +pub const UINT_FAST8_MAX: u32 = 255; +pub const UINT_FAST16_MAX: i32 = -1; +pub const UINT_FAST32_MAX: i32 = -1; +pub const INTPTR_MIN: i64 = -9223372036854775808; +pub const INTPTR_MAX: u64 = 9223372036854775807; +pub const UINTPTR_MAX: i32 = -1; +pub const PTRDIFF_MIN: i64 = -9223372036854775808; +pub const PTRDIFF_MAX: u64 = 9223372036854775807; +pub const SIG_ATOMIC_MIN: i32 = -2147483648; +pub const SIG_ATOMIC_MAX: u32 = 2147483647; +pub const SIZE_MAX: i32 = -1; +pub const WINT_MIN: u32 = 0; +pub const WINT_MAX: u32 = 4294967295; +pub const _INTTYPES_H: u32 = 1; +pub const ____gwchar_t_defined: u32 = 1; +pub const __PRI64_PREFIX: &[u8; 2usize] = b"l\0"; +pub const __PRIPTR_PREFIX: &[u8; 2usize] = b"l\0"; +pub const PRId8: &[u8; 2usize] = b"d\0"; +pub const PRId16: &[u8; 2usize] = b"d\0"; +pub const PRId32: &[u8; 2usize] = b"d\0"; +pub const PRId64: &[u8; 3usize] = b"ld\0"; +pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; +pub const PRIdLEAST64: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; +pub const PRIdFAST16: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST32: &[u8; 3usize] = b"ld\0"; +pub const PRIdFAST64: &[u8; 3usize] = b"ld\0"; +pub const PRIi8: &[u8; 2usize] = b"i\0"; +pub const PRIi16: &[u8; 2usize] = b"i\0"; +pub const PRIi32: &[u8; 2usize] = b"i\0"; +pub const PRIi64: &[u8; 3usize] = b"li\0"; +pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; +pub const PRIiLEAST64: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; +pub const PRIiFAST16: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST32: &[u8; 3usize] = b"li\0"; +pub const PRIiFAST64: &[u8; 3usize] = b"li\0"; +pub const PRIo8: &[u8; 2usize] = b"o\0"; +pub const PRIo16: &[u8; 2usize] = b"o\0"; +pub const PRIo32: &[u8; 2usize] = b"o\0"; +pub const PRIo64: &[u8; 3usize] = b"lo\0"; +pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; +pub const PRIoLEAST64: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; +pub const PRIoFAST16: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST32: &[u8; 3usize] = b"lo\0"; +pub const PRIoFAST64: &[u8; 3usize] = b"lo\0"; +pub const PRIu8: &[u8; 2usize] = b"u\0"; +pub const PRIu16: &[u8; 2usize] = b"u\0"; +pub const PRIu32: &[u8; 2usize] = b"u\0"; +pub const PRIu64: &[u8; 3usize] = b"lu\0"; +pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; +pub const PRIuLEAST64: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; +pub const PRIuFAST16: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST32: &[u8; 3usize] = b"lu\0"; +pub const PRIuFAST64: &[u8; 3usize] = b"lu\0"; +pub const PRIx8: &[u8; 2usize] = b"x\0"; +pub const PRIx16: &[u8; 2usize] = b"x\0"; +pub const PRIx32: &[u8; 2usize] = b"x\0"; +pub const PRIx64: &[u8; 3usize] = b"lx\0"; +pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; +pub const PRIxLEAST64: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; +pub const PRIxFAST16: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST32: &[u8; 3usize] = b"lx\0"; +pub const PRIxFAST64: &[u8; 3usize] = b"lx\0"; +pub const PRIX8: &[u8; 2usize] = b"X\0"; +pub const PRIX16: &[u8; 2usize] = b"X\0"; +pub const PRIX32: &[u8; 2usize] = b"X\0"; +pub const PRIX64: &[u8; 3usize] = b"lX\0"; +pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; +pub const PRIXLEAST64: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; +pub const PRIXFAST16: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST32: &[u8; 3usize] = b"lX\0"; +pub const PRIXFAST64: &[u8; 3usize] = b"lX\0"; +pub const PRIdMAX: &[u8; 3usize] = b"ld\0"; +pub const PRIiMAX: &[u8; 3usize] = b"li\0"; +pub const PRIoMAX: &[u8; 3usize] = b"lo\0"; +pub const PRIuMAX: &[u8; 3usize] = b"lu\0"; +pub const PRIxMAX: &[u8; 3usize] = b"lx\0"; +pub const PRIXMAX: &[u8; 3usize] = b"lX\0"; +pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; +pub const PRIiPTR: &[u8; 3usize] = b"li\0"; +pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; +pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; +pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; +pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; +pub const SCNd8: &[u8; 4usize] = b"hhd\0"; +pub const SCNd16: &[u8; 3usize] = b"hd\0"; +pub const SCNd32: &[u8; 2usize] = b"d\0"; +pub const SCNd64: &[u8; 3usize] = b"ld\0"; +pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; +pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; +pub const SCNdLEAST64: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; +pub const SCNdFAST16: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST32: &[u8; 3usize] = b"ld\0"; +pub const SCNdFAST64: &[u8; 3usize] = b"ld\0"; +pub const SCNi8: &[u8; 4usize] = b"hhi\0"; +pub const SCNi16: &[u8; 3usize] = b"hi\0"; +pub const SCNi32: &[u8; 2usize] = b"i\0"; +pub const SCNi64: &[u8; 3usize] = b"li\0"; +pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; +pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; +pub const SCNiLEAST64: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; +pub const SCNiFAST16: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST32: &[u8; 3usize] = b"li\0"; +pub const SCNiFAST64: &[u8; 3usize] = b"li\0"; +pub const SCNu8: &[u8; 4usize] = b"hhu\0"; +pub const SCNu16: &[u8; 3usize] = b"hu\0"; +pub const SCNu32: &[u8; 2usize] = b"u\0"; +pub const SCNu64: &[u8; 3usize] = b"lu\0"; +pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; +pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; +pub const SCNuLEAST64: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; +pub const SCNuFAST16: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST32: &[u8; 3usize] = b"lu\0"; +pub const SCNuFAST64: &[u8; 3usize] = b"lu\0"; +pub const SCNo8: &[u8; 4usize] = b"hho\0"; +pub const SCNo16: &[u8; 3usize] = b"ho\0"; +pub const SCNo32: &[u8; 2usize] = b"o\0"; +pub const SCNo64: &[u8; 3usize] = b"lo\0"; +pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; +pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; +pub const SCNoLEAST64: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; +pub const SCNoFAST16: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST32: &[u8; 3usize] = b"lo\0"; +pub const SCNoFAST64: &[u8; 3usize] = b"lo\0"; +pub const SCNx8: &[u8; 4usize] = b"hhx\0"; +pub const SCNx16: &[u8; 3usize] = b"hx\0"; +pub const SCNx32: &[u8; 2usize] = b"x\0"; +pub const SCNx64: &[u8; 3usize] = b"lx\0"; +pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; +pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; +pub const SCNxLEAST64: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; +pub const SCNxFAST16: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST32: &[u8; 3usize] = b"lx\0"; +pub const SCNxFAST64: &[u8; 3usize] = b"lx\0"; +pub const SCNdMAX: &[u8; 3usize] = b"ld\0"; +pub const SCNiMAX: &[u8; 3usize] = b"li\0"; +pub const SCNoMAX: &[u8; 3usize] = b"lo\0"; +pub const SCNuMAX: &[u8; 3usize] = b"lu\0"; +pub const SCNxMAX: &[u8; 3usize] = b"lx\0"; +pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; +pub const SCNiPTR: &[u8; 3usize] = b"li\0"; +pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; +pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; +pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; +pub const true_: u32 = 1; +pub const false_: u32 = 0; +pub const MAX_PATH: u32 = 1024; +pub const YR_MAX_THREADS: u32 = 32; +pub const YR_MAX_ARENA_BUFFERS: u32 = 16; +pub const YR_MAX_COMPILER_ERROR_EXTRA_INFO: u32 = 256; +pub const YR_MAX_ATOM_LENGTH: u32 = 4; +pub const YR_MAX_ATOM_QUALITY: u32 = 255; +pub const YR_MIN_ATOM_QUALITY: u32 = 0; +pub const YR_ATOM_QUALITY_WARNING_THRESHOLD: u32 = 205; +pub const YR_ATOMS_PER_RULE_WARNING_THRESHOLD: u32 = 12000; +pub const YR_MAX_LOOP_NESTING: u32 = 4; +pub const YR_MAX_LOOP_VARS: u32 = 2; +pub const YR_MAX_INCLUDE_DEPTH: u32 = 16; +pub const YR_MAX_STRING_MATCHES: u32 = 1000000; +pub const YR_MAX_FUNCTION_ARGS: u32 = 128; +pub const YR_MAX_OVERLOADED_FUNCTIONS: u32 = 10; +pub const YR_STRING_CHAINING_THRESHOLD: u32 = 200; +pub const YR_LEX_BUF_SIZE: u32 = 8192; +pub const YR_MATCH_VERIFICATION_PROFILING_RATE: u32 = 1024; +pub const RE_MAX_SPLIT_ID: u32 = 128; +pub const RE_MAX_STACK: u32 = 1024; +pub const YR_RE_SCAN_LIMIT: u32 = 4096; +pub const RE_MAX_FIBERS: u32 = 1024; +pub const _CTYPE_H: u32 = 1; +pub const YR_ARENA_FILE_VERSION: u32 = 19; +pub const SIZED_STRING_FLAGS_NO_CASE: u32 = 1; +pub const SIZED_STRING_FLAGS_DOT_ALL: u32 = 2; +pub const _TIME_H: u32 = 1; +pub const _BITS_TIME_H: u32 = 1; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_TAI: u32 = 11; +pub const TIMER_ABSTIME: u32 = 1; +pub const __struct_tm_defined: u32 = 1; +pub const __itimerspec_defined: u32 = 1; +pub const TIME_UTC: u32 = 1; +pub const _SYS_TIME_H: u32 = 1; +pub const _PTHREAD_H: u32 = 1; +pub const _SCHED_H: u32 = 1; +pub const _BITS_SCHED_H: u32 = 1; +pub const SCHED_OTHER: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const _BITS_TYPES_STRUCT_SCHED_PARAM: u32 = 1; +pub const _BITS_CPU_SET_H: u32 = 1; +pub const __CPU_SETSIZE: u32 = 1024; +pub const PTHREAD_ONCE_INIT: u32 = 0; +pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1; +pub const RULE_FLAGS_PRIVATE: u32 = 1; +pub const RULE_FLAGS_GLOBAL: u32 = 2; +pub const RULE_FLAGS_NULL: u32 = 4; +pub const RULE_FLAGS_DISABLED: u32 = 8; +pub const STRING_FLAGS_REFERENCED: u32 = 1; +pub const STRING_FLAGS_HEXADECIMAL: u32 = 2; +pub const STRING_FLAGS_NO_CASE: u32 = 4; +pub const STRING_FLAGS_ASCII: u32 = 8; +pub const STRING_FLAGS_WIDE: u32 = 16; +pub const STRING_FLAGS_REGEXP: u32 = 32; +pub const STRING_FLAGS_FAST_REGEXP: u32 = 64; +pub const STRING_FLAGS_FULL_WORD: u32 = 128; +pub const STRING_FLAGS_ANONYMOUS: u32 = 256; +pub const STRING_FLAGS_SINGLE_MATCH: u32 = 512; +pub const STRING_FLAGS_LITERAL: u32 = 1024; +pub const STRING_FLAGS_FITS_IN_ATOM: u32 = 2048; +pub const STRING_FLAGS_LAST_IN_RULE: u32 = 4096; +pub const STRING_FLAGS_CHAIN_PART: u32 = 8192; +pub const STRING_FLAGS_CHAIN_TAIL: u32 = 16384; +pub const STRING_FLAGS_FIXED_OFFSET: u32 = 32768; +pub const STRING_FLAGS_GREEDY_REGEXP: u32 = 65536; +pub const STRING_FLAGS_DOT_ALL: u32 = 131072; +pub const STRING_FLAGS_DISABLED: u32 = 262144; +pub const STRING_FLAGS_XOR: u32 = 524288; +pub const STRING_FLAGS_PRIVATE: u32 = 1048576; +pub const STRING_FLAGS_BASE64: u32 = 2097152; +pub const STRING_FLAGS_BASE64_WIDE: u32 = 4194304; +pub const META_TYPE_INTEGER: u32 = 1; +pub const META_TYPE_STRING: u32 = 2; +pub const META_TYPE_BOOLEAN: u32 = 3; +pub const META_FLAGS_LAST_IN_RULE: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_NULL: u32 = 0; +pub const EXTERNAL_VARIABLE_TYPE_FLOAT: u32 = 1; +pub const EXTERNAL_VARIABLE_TYPE_INTEGER: u32 = 2; +pub const EXTERNAL_VARIABLE_TYPE_BOOLEAN: u32 = 3; +pub const EXTERNAL_VARIABLE_TYPE_STRING: u32 = 4; +pub const EXTERNAL_VARIABLE_TYPE_MALLOC_STRING: u32 = 5; +pub const RE_MAX_RANGE: u32 = 32767; +pub const RE_NODE_LITERAL: u32 = 1; +pub const RE_NODE_MASKED_LITERAL: u32 = 2; +pub const RE_NODE_ANY: u32 = 3; +pub const RE_NODE_CONCAT: u32 = 4; +pub const RE_NODE_ALT: u32 = 5; +pub const RE_NODE_RANGE: u32 = 6; +pub const RE_NODE_STAR: u32 = 7; +pub const RE_NODE_PLUS: u32 = 8; +pub const RE_NODE_CLASS: u32 = 9; +pub const RE_NODE_WORD_CHAR: u32 = 10; +pub const RE_NODE_NON_WORD_CHAR: u32 = 11; +pub const RE_NODE_SPACE: u32 = 12; +pub const RE_NODE_NON_SPACE: u32 = 13; +pub const RE_NODE_DIGIT: u32 = 14; +pub const RE_NODE_NON_DIGIT: u32 = 15; +pub const RE_NODE_EMPTY: u32 = 16; +pub const RE_NODE_ANCHOR_START: u32 = 17; +pub const RE_NODE_ANCHOR_END: u32 = 18; +pub const RE_NODE_WORD_BOUNDARY: u32 = 19; +pub const RE_NODE_NON_WORD_BOUNDARY: u32 = 20; +pub const RE_NODE_RANGE_ANY: u32 = 21; +pub const RE_OPCODE_ANY: u32 = 160; +pub const RE_OPCODE_LITERAL: u32 = 162; +pub const RE_OPCODE_MASKED_LITERAL: u32 = 164; +pub const RE_OPCODE_CLASS: u32 = 165; +pub const RE_OPCODE_WORD_CHAR: u32 = 167; +pub const RE_OPCODE_NON_WORD_CHAR: u32 = 168; +pub const RE_OPCODE_SPACE: u32 = 169; +pub const RE_OPCODE_NON_SPACE: u32 = 170; +pub const RE_OPCODE_DIGIT: u32 = 171; +pub const RE_OPCODE_NON_DIGIT: u32 = 172; +pub const RE_OPCODE_MATCH: u32 = 173; +pub const RE_OPCODE_MATCH_AT_END: u32 = 176; +pub const RE_OPCODE_MATCH_AT_START: u32 = 177; +pub const RE_OPCODE_WORD_BOUNDARY: u32 = 178; +pub const RE_OPCODE_NON_WORD_BOUNDARY: u32 = 179; +pub const RE_OPCODE_REPEAT_ANY_GREEDY: u32 = 180; +pub const RE_OPCODE_REPEAT_ANY_UNGREEDY: u32 = 181; +pub const RE_OPCODE_SPLIT_A: u32 = 192; +pub const RE_OPCODE_SPLIT_B: u32 = 193; +pub const RE_OPCODE_JUMP: u32 = 194; +pub const RE_OPCODE_REPEAT_START_GREEDY: u32 = 195; +pub const RE_OPCODE_REPEAT_END_GREEDY: u32 = 196; +pub const RE_OPCODE_REPEAT_START_UNGREEDY: u32 = 197; +pub const RE_OPCODE_REPEAT_END_UNGREEDY: u32 = 198; +pub const RE_FLAGS_FAST_REGEXP: u32 = 2; +pub const RE_FLAGS_BACKWARDS: u32 = 4; +pub const RE_FLAGS_EXHAUSTIVE: u32 = 8; +pub const RE_FLAGS_WIDE: u32 = 16; +pub const RE_FLAGS_NO_CASE: u32 = 32; +pub const RE_FLAGS_SCAN: u32 = 64; +pub const RE_FLAGS_DOT_ALL: u32 = 128; +pub const RE_FLAGS_GREEDY: u32 = 1024; +pub const RE_FLAGS_UNGREEDY: u32 = 2048; +pub const ATOM_TREE_LEAF: u32 = 1; +pub const ATOM_TREE_AND: u32 = 2; +pub const ATOM_TREE_OR: u32 = 3; +pub const YR_AC_SLOT_OFFSET_BITS: u32 = 9; +pub const YR_AC_MAX_TRANSITION_TABLE_SIZE: u32 = 8388608; +pub const YR_AC_ROOT_STATE: u32 = 0; +pub const YARA_ERROR_LEVEL_ERROR: u32 = 0; +pub const YARA_ERROR_LEVEL_WARNING: u32 = 1; +pub const EXPRESSION_TYPE_UNKNOWN: u32 = 0; +pub const EXPRESSION_TYPE_BOOLEAN: u32 = 1; +pub const EXPRESSION_TYPE_INTEGER: u32 = 2; +pub const EXPRESSION_TYPE_STRING: u32 = 4; +pub const EXPRESSION_TYPE_REGEXP: u32 = 8; +pub const EXPRESSION_TYPE_OBJECT: u32 = 16; +pub const EXPRESSION_TYPE_FLOAT: u32 = 32; +pub const YR_NAMESPACES_TABLE: u32 = 0; +pub const YR_RULES_TABLE: u32 = 1; +pub const YR_METAS_TABLE: u32 = 2; +pub const YR_STRINGS_TABLE: u32 = 3; +pub const YR_EXTERNAL_VARIABLES_TABLE: u32 = 4; +pub const YR_SZ_POOL: u32 = 5; +pub const YR_CODE_SECTION: u32 = 6; +pub const YR_RE_CODE_SECTION: u32 = 7; +pub const YR_AC_TRANSITION_TABLE: u32 = 8; +pub const YR_AC_STATE_MATCHES_TABLE: u32 = 9; +pub const YR_AC_STATE_MATCHES_POOL: u32 = 10; +pub const YR_SUMMARY_SECTION: u32 = 11; +pub const YR_NUM_SECTIONS: u32 = 12; +pub const YR_INTERNAL_LOOP_VARS: u32 = 3; +pub const ERROR_SUCCESS: u32 = 0; +pub const ERROR_INSUFICIENT_MEMORY: u32 = 1; +pub const ERROR_INSUFFICIENT_MEMORY: u32 = 1; +pub const ERROR_COULD_NOT_ATTACH_TO_PROCESS: u32 = 2; +pub const ERROR_COULD_NOT_OPEN_FILE: u32 = 3; +pub const ERROR_COULD_NOT_MAP_FILE: u32 = 4; +pub const ERROR_INVALID_FILE: u32 = 6; +pub const ERROR_CORRUPT_FILE: u32 = 7; +pub const ERROR_UNSUPPORTED_FILE_VERSION: u32 = 8; +pub const ERROR_INVALID_REGULAR_EXPRESSION: u32 = 9; +pub const ERROR_INVALID_HEX_STRING: u32 = 10; +pub const ERROR_SYNTAX_ERROR: u32 = 11; +pub const ERROR_LOOP_NESTING_LIMIT_EXCEEDED: u32 = 12; +pub const ERROR_DUPLICATED_LOOP_IDENTIFIER: u32 = 13; +pub const ERROR_DUPLICATED_IDENTIFIER: u32 = 14; +pub const ERROR_DUPLICATED_TAG_IDENTIFIER: u32 = 15; +pub const ERROR_DUPLICATED_META_IDENTIFIER: u32 = 16; +pub const ERROR_DUPLICATED_STRING_IDENTIFIER: u32 = 17; +pub const ERROR_UNREFERENCED_STRING: u32 = 18; +pub const ERROR_UNDEFINED_STRING: u32 = 19; +pub const ERROR_UNDEFINED_IDENTIFIER: u32 = 20; +pub const ERROR_MISPLACED_ANONYMOUS_STRING: u32 = 21; +pub const ERROR_INCLUDES_CIRCULAR_REFERENCE: u32 = 22; +pub const ERROR_INCLUDE_DEPTH_EXCEEDED: u32 = 23; +pub const ERROR_WRONG_TYPE: u32 = 24; +pub const ERROR_EXEC_STACK_OVERFLOW: u32 = 25; +pub const ERROR_SCAN_TIMEOUT: u32 = 26; +pub const ERROR_TOO_MANY_SCAN_THREADS: u32 = 27; +pub const ERROR_CALLBACK_ERROR: u32 = 28; +pub const ERROR_INVALID_ARGUMENT: u32 = 29; +pub const ERROR_TOO_MANY_MATCHES: u32 = 30; +pub const ERROR_INTERNAL_FATAL_ERROR: u32 = 31; +pub const ERROR_NESTED_FOR_OF_LOOP: u32 = 32; +pub const ERROR_INVALID_FIELD_NAME: u32 = 33; +pub const ERROR_UNKNOWN_MODULE: u32 = 34; +pub const ERROR_NOT_A_STRUCTURE: u32 = 35; +pub const ERROR_NOT_INDEXABLE: u32 = 36; +pub const ERROR_NOT_A_FUNCTION: u32 = 37; +pub const ERROR_INVALID_FORMAT: u32 = 38; +pub const ERROR_TOO_MANY_ARGUMENTS: u32 = 39; +pub const ERROR_WRONG_ARGUMENTS: u32 = 40; +pub const ERROR_WRONG_RETURN_TYPE: u32 = 41; +pub const ERROR_DUPLICATED_STRUCTURE_MEMBER: u32 = 42; +pub const ERROR_EMPTY_STRING: u32 = 43; +pub const ERROR_DIVISION_BY_ZERO: u32 = 44; +pub const ERROR_REGULAR_EXPRESSION_TOO_LARGE: u32 = 45; +pub const ERROR_TOO_MANY_RE_FIBERS: u32 = 46; +pub const ERROR_COULD_NOT_READ_PROCESS_MEMORY: u32 = 47; +pub const ERROR_INVALID_EXTERNAL_VARIABLE_TYPE: u32 = 48; +pub const ERROR_REGULAR_EXPRESSION_TOO_COMPLEX: u32 = 49; +pub const ERROR_INVALID_MODULE_NAME: u32 = 50; +pub const ERROR_TOO_MANY_STRINGS: u32 = 51; +pub const ERROR_INTEGER_OVERFLOW: u32 = 52; +pub const ERROR_CALLBACK_REQUIRED: u32 = 53; +pub const ERROR_INVALID_OPERAND: u32 = 54; +pub const ERROR_COULD_NOT_READ_FILE: u32 = 55; +pub const ERROR_DUPLICATED_EXTERNAL_VARIABLE: u32 = 56; +pub const ERROR_INVALID_MODULE_DATA: u32 = 57; +pub const ERROR_WRITING_FILE: u32 = 58; +pub const ERROR_INVALID_MODIFIER: u32 = 59; +pub const ERROR_DUPLICATED_MODIFIER: u32 = 60; +pub const ERROR_BLOCK_NOT_READY: u32 = 61; +pub const ERROR_INVALID_PERCENTAGE: u32 = 62; +pub const ERROR_IDENTIFIER_MATCHES_WILDCARD: u32 = 63; +pub const YR_MAJOR_VERSION: u32 = 4; +pub const YR_MINOR_VERSION: u32 = 2; +pub const YR_MICRO_VERSION: u32 = 3; +pub const YR_VERSION_HEX: u32 = 262659; +pub const YR_PARANOID_EXEC: u32 = 1; +pub const DEFAULT_STACK_SIZE: u32 = 16384; +pub const DEFAULT_MAX_STRINGS_PER_RULE: u32 = 10000; +pub const DEFAULT_MAX_MATCH_DATA: u32 = 512; +pub const DEFAULT_MAX_PROCESS_MEMORY_CHUNK: u32 = 1073741824; +pub const _MATH_H: u32 = 1; +pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; +pub const __FP_LOGB0_IS_MIN: u32 = 0; +pub const __FP_LOGBNAN_IS_MIN: u32 = 0; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const FP_FAST_FMA: u32 = 1; +pub const FP_FAST_FMAF: u32 = 1; +pub const __MATH_DECLARING_DOUBLE: u32 = 1; +pub const __MATH_DECLARING_FLOATN: u32 = 0; +pub const __MATH_DECLARE_LDOUBLE: u32 = 1; +pub const FP_NAN: u32 = 0; +pub const FP_INFINITE: u32 = 1; +pub const FP_ZERO: u32 = 2; +pub const FP_SUBNORMAL: u32 = 3; +pub const FP_NORMAL: u32 = 4; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const CALLBACK_MSG_RULE_MATCHING: u32 = 1; +pub const CALLBACK_MSG_RULE_NOT_MATCHING: u32 = 2; +pub const CALLBACK_MSG_SCAN_FINISHED: u32 = 3; +pub const CALLBACK_MSG_IMPORT_MODULE: u32 = 4; +pub const CALLBACK_MSG_MODULE_IMPORTED: u32 = 5; +pub const CALLBACK_MSG_TOO_MANY_MATCHES: u32 = 6; +pub const CALLBACK_MSG_CONSOLE_LOG: u32 = 7; +pub const CALLBACK_CONTINUE: u32 = 0; +pub const CALLBACK_ABORT: u32 = 1; +pub const CALLBACK_ERROR: u32 = 2; +pub const SCAN_FLAGS_FAST_MODE: u32 = 1; +pub const SCAN_FLAGS_PROCESS_MEMORY: u32 = 2; +pub const SCAN_FLAGS_NO_TRYCATCH: u32 = 4; +pub const SCAN_FLAGS_REPORT_RULES_MATCHING: u32 = 8; +pub const SCAN_FLAGS_REPORT_RULES_NOT_MATCHING: u32 = 16; +pub const YR_UNDEFINED: i64 = -1483400188077313; +pub const OF_STRING_SET: u32 = 0; +pub const OF_RULE_SET: u32 = 1; +pub const OP_ERROR: u32 = 0; +pub const OP_HALT: u32 = 255; +pub const OP_NOP: u32 = 254; +pub const OP_AND: u32 = 1; +pub const OP_OR: u32 = 2; +pub const OP_NOT: u32 = 3; +pub const OP_BITWISE_NOT: u32 = 4; +pub const OP_BITWISE_AND: u32 = 5; +pub const OP_BITWISE_OR: u32 = 6; +pub const OP_BITWISE_XOR: u32 = 7; +pub const OP_SHL: u32 = 8; +pub const OP_SHR: u32 = 9; +pub const OP_MOD: u32 = 10; +pub const OP_INT_TO_DBL: u32 = 11; +pub const OP_STR_TO_BOOL: u32 = 12; +pub const OP_PUSH: u32 = 13; +pub const OP_POP: u32 = 14; +pub const OP_CALL: u32 = 15; +pub const OP_OBJ_LOAD: u32 = 16; +pub const OP_OBJ_VALUE: u32 = 17; +pub const OP_OBJ_FIELD: u32 = 18; +pub const OP_INDEX_ARRAY: u32 = 19; +pub const OP_COUNT: u32 = 20; +pub const OP_LENGTH: u32 = 21; +pub const OP_FOUND: u32 = 22; +pub const OP_FOUND_AT: u32 = 23; +pub const OP_FOUND_IN: u32 = 24; +pub const OP_OFFSET: u32 = 25; +pub const OP_OF: u32 = 26; +pub const OP_PUSH_RULE: u32 = 27; +pub const OP_INIT_RULE: u32 = 28; +pub const OP_MATCH_RULE: u32 = 29; +pub const OP_INCR_M: u32 = 30; +pub const OP_CLEAR_M: u32 = 31; +pub const OP_ADD_M: u32 = 32; +pub const OP_POP_M: u32 = 33; +pub const OP_PUSH_M: u32 = 34; +pub const OP_SET_M: u32 = 35; +pub const OP_SWAPUNDEF: u32 = 36; +pub const OP_FILESIZE: u32 = 37; +pub const OP_ENTRYPOINT: u32 = 38; +pub const OP_UNUSED: u32 = 39; +pub const OP_MATCHES: u32 = 40; +pub const OP_IMPORT: u32 = 41; +pub const OP_LOOKUP_DICT: u32 = 42; +pub const OP_JUNDEF: u32 = 43; +pub const OP_JUNDEF_P: u32 = 44; +pub const OP_JNUNDEF: u32 = 45; +pub const OP_JNUNDEF_P: u32 = 46; +pub const OP_JFALSE: u32 = 47; +pub const OP_JFALSE_P: u32 = 48; +pub const OP_JTRUE: u32 = 49; +pub const OP_JTRUE_P: u32 = 50; +pub const OP_JL_P: u32 = 51; +pub const OP_JLE_P: u32 = 52; +pub const OP_ITER_NEXT: u32 = 53; +pub const OP_ITER_START_ARRAY: u32 = 54; +pub const OP_ITER_START_DICT: u32 = 55; +pub const OP_ITER_START_INT_RANGE: u32 = 56; +pub const OP_ITER_START_INT_ENUM: u32 = 57; +pub const OP_JZ: u32 = 58; +pub const OP_JZ_P: u32 = 59; +pub const OP_PUSH_8: u32 = 60; +pub const OP_PUSH_16: u32 = 61; +pub const OP_PUSH_32: u32 = 62; +pub const OP_PUSH_U: u32 = 63; +pub const OP_CONTAINS: u32 = 64; +pub const OP_STARTSWITH: u32 = 65; +pub const OP_ENDSWITH: u32 = 66; +pub const OP_ICONTAINS: u32 = 67; +pub const OP_ISTARTSWITH: u32 = 68; +pub const OP_IENDSWITH: u32 = 69; +pub const OP_IEQUALS: u32 = 70; +pub const OP_OF_PERCENT: u32 = 71; +pub const OP_OF_FOUND_IN: u32 = 72; +pub const OP_COUNT_IN: u32 = 73; +pub const OP_DEFINED: u32 = 74; +pub const _OP_EQ: u32 = 0; +pub const _OP_NEQ: u32 = 1; +pub const _OP_LT: u32 = 2; +pub const _OP_GT: u32 = 3; +pub const _OP_LE: u32 = 4; +pub const _OP_GE: u32 = 5; +pub const _OP_ADD: u32 = 6; +pub const _OP_SUB: u32 = 7; +pub const _OP_MUL: u32 = 8; +pub const _OP_DIV: u32 = 9; +pub const _OP_MINUS: u32 = 10; +pub const OP_INT_BEGIN: u32 = 100; +pub const OP_INT_EQ: u32 = 100; +pub const OP_INT_NEQ: u32 = 101; +pub const OP_INT_LT: u32 = 102; +pub const OP_INT_GT: u32 = 103; +pub const OP_INT_LE: u32 = 104; +pub const OP_INT_GE: u32 = 105; +pub const OP_INT_ADD: u32 = 106; +pub const OP_INT_SUB: u32 = 107; +pub const OP_INT_MUL: u32 = 108; +pub const OP_INT_DIV: u32 = 109; +pub const OP_INT_MINUS: u32 = 110; +pub const OP_INT_END: u32 = 110; +pub const OP_DBL_BEGIN: u32 = 120; +pub const OP_DBL_EQ: u32 = 120; +pub const OP_DBL_NEQ: u32 = 121; +pub const OP_DBL_LT: u32 = 122; +pub const OP_DBL_GT: u32 = 123; +pub const OP_DBL_LE: u32 = 124; +pub const OP_DBL_GE: u32 = 125; +pub const OP_DBL_ADD: u32 = 126; +pub const OP_DBL_SUB: u32 = 127; +pub const OP_DBL_MUL: u32 = 128; +pub const OP_DBL_DIV: u32 = 129; +pub const OP_DBL_MINUS: u32 = 130; +pub const OP_DBL_END: u32 = 130; +pub const OP_STR_BEGIN: u32 = 140; +pub const OP_STR_EQ: u32 = 140; +pub const OP_STR_NEQ: u32 = 141; +pub const OP_STR_LT: u32 = 142; +pub const OP_STR_GT: u32 = 143; +pub const OP_STR_LE: u32 = 144; +pub const OP_STR_GE: u32 = 145; +pub const OP_STR_END: u32 = 145; +pub const OP_READ_INT: u32 = 240; +pub const OP_INT8: u32 = 240; +pub const OP_INT16: u32 = 241; +pub const OP_INT32: u32 = 242; +pub const OP_UINT8: u32 = 243; +pub const OP_UINT16: u32 = 244; +pub const OP_UINT32: u32 = 245; +pub const OP_INT8BE: u32 = 246; +pub const OP_INT16BE: u32 = 247; +pub const OP_INT32BE: u32 = 248; +pub const OP_UINT8BE: u32 = 249; +pub const OP_UINT16BE: u32 = 250; +pub const OP_UINT32BE: u32 = 251; +pub const OBJECT_CREATE: u32 = 1; +pub const OBJECT_TYPE_INTEGER: u32 = 1; +pub const OBJECT_TYPE_STRING: u32 = 2; +pub const OBJECT_TYPE_STRUCTURE: u32 = 3; +pub const OBJECT_TYPE_ARRAY: u32 = 4; +pub const OBJECT_TYPE_FUNCTION: u32 = 5; +pub const OBJECT_TYPE_DICTIONARY: u32 = 6; +pub const OBJECT_TYPE_FLOAT: u32 = 7; +pub type __jmp_buf = [::std::os::raw::c_ulonglong; 22usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __jmp_buf_tag { + pub __jmpbuf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, + pub __saved_mask: __sigset_t, +} +pub type jmp_buf = [__jmp_buf_tag; 1usize]; +extern "C" { + pub fn setjmp(__env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __sigsetjmp( + __env: *mut __jmp_buf_tag, + __savemask: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _setjmp(__env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn longjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _longjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; +extern "C" { + pub fn siglongjmp(__env: *mut __jmp_buf_tag, __val: ::std::os::raw::c_int) -> !; +} +pub type va_list = [u64; 4usize]; +pub type __gnuc_va_list = [u64; 4usize]; +pub type __u_char = ::std::os::raw::c_uchar; +pub type __u_short = ::std::os::raw::c_ushort; +pub type __u_int = ::std::os::raw::c_uint; +pub type __u_long = ::std::os::raw::c_ulong; +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_long; +pub type __uint64_t = ::std::os::raw::c_ulong; +pub type __int_least8_t = __int8_t; +pub type __uint_least8_t = __uint8_t; +pub type __int_least16_t = __int16_t; +pub type __uint_least16_t = __uint16_t; +pub type __int_least32_t = __int32_t; +pub type __uint_least32_t = __uint32_t; +pub type __int_least64_t = __int64_t; +pub type __uint_least64_t = __uint64_t; +pub type __quad_t = ::std::os::raw::c_long; +pub type __u_quad_t = ::std::os::raw::c_ulong; +pub type __intmax_t = ::std::os::raw::c_long; +pub type __uintmax_t = ::std::os::raw::c_ulong; +pub type __dev_t = ::std::os::raw::c_ulong; +pub type __uid_t = ::std::os::raw::c_uint; +pub type __gid_t = ::std::os::raw::c_uint; +pub type __ino_t = ::std::os::raw::c_ulong; +pub type __ino64_t = ::std::os::raw::c_ulong; +pub type __mode_t = ::std::os::raw::c_uint; +pub type __nlink_t = ::std::os::raw::c_uint; +pub type __off_t = ::std::os::raw::c_long; +pub type __off64_t = ::std::os::raw::c_long; +pub type __pid_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __fsid_t { + pub __val: [::std::os::raw::c_int; 2usize], +} +pub type __clock_t = ::std::os::raw::c_long; +pub type __rlim_t = ::std::os::raw::c_ulong; +pub type __rlim64_t = ::std::os::raw::c_ulong; +pub type __id_t = ::std::os::raw::c_uint; +pub type __time_t = ::std::os::raw::c_long; +pub type __useconds_t = ::std::os::raw::c_uint; +pub type __suseconds_t = ::std::os::raw::c_long; +pub type __suseconds64_t = ::std::os::raw::c_long; +pub type __daddr_t = ::std::os::raw::c_int; +pub type __key_t = ::std::os::raw::c_int; +pub type __clockid_t = ::std::os::raw::c_int; +pub type __timer_t = *mut ::std::os::raw::c_void; +pub type __blksize_t = ::std::os::raw::c_int; +pub type __blkcnt_t = ::std::os::raw::c_long; +pub type __blkcnt64_t = ::std::os::raw::c_long; +pub type __fsblkcnt_t = ::std::os::raw::c_ulong; +pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; +pub type __fsword_t = ::std::os::raw::c_long; +pub type __ssize_t = ::std::os::raw::c_long; +pub type __syscall_slong_t = ::std::os::raw::c_long; +pub type __syscall_ulong_t = ::std::os::raw::c_ulong; +pub type __loff_t = __off64_t; +pub type __caddr_t = *mut ::std::os::raw::c_char; +pub type __intptr_t = ::std::os::raw::c_long; +pub type __socklen_t = ::std::os::raw::c_uint; +pub type __sig_atomic_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __mbstate_t { + pub __count: ::std::os::raw::c_int, + pub __value: __mbstate_t__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __mbstate_t__bindgen_ty_1 { + pub __wch: ::std::os::raw::c_uint, + pub __wchb: [::std::os::raw::c_char; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos_t { + pub __pos: __off_t, + pub __state: __mbstate_t, +} +pub type __fpos_t = _G_fpos_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos64_t { + pub __pos: __off64_t, + pub __state: __mbstate_t, +} +pub type __fpos64_t = _G_fpos64_t; +pub type __FILE = _IO_FILE; +pub type FILE = _IO_FILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_marker { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_codecvt { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_wide_data { + _unused: [u8; 0], +} +pub type _IO_lock_t = ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_FILE { + pub _flags: ::std::os::raw::c_int, + pub _IO_read_ptr: *mut ::std::os::raw::c_char, + pub _IO_read_end: *mut ::std::os::raw::c_char, + pub _IO_read_base: *mut ::std::os::raw::c_char, + pub _IO_write_base: *mut ::std::os::raw::c_char, + pub _IO_write_ptr: *mut ::std::os::raw::c_char, + pub _IO_write_end: *mut ::std::os::raw::c_char, + pub _IO_buf_base: *mut ::std::os::raw::c_char, + pub _IO_buf_end: *mut ::std::os::raw::c_char, + pub _IO_save_base: *mut ::std::os::raw::c_char, + pub _IO_backup_base: *mut ::std::os::raw::c_char, + pub _IO_save_end: *mut ::std::os::raw::c_char, + pub _markers: *mut _IO_marker, + pub _chain: *mut _IO_FILE, + pub _fileno: ::std::os::raw::c_int, + pub _flags2: ::std::os::raw::c_int, + pub _old_offset: __off_t, + pub _cur_column: ::std::os::raw::c_ushort, + pub _vtable_offset: ::std::os::raw::c_schar, + pub _shortbuf: [::std::os::raw::c_char; 1usize], + pub _lock: *mut _IO_lock_t, + pub _offset: __off64_t, + pub _codecvt: *mut _IO_codecvt, + pub _wide_data: *mut _IO_wide_data, + pub _freeres_list: *mut _IO_FILE, + pub _freeres_buf: *mut ::std::os::raw::c_void, + pub __pad5: usize, + pub _mode: ::std::os::raw::c_int, + pub _unused2: [::std::os::raw::c_char; 20usize], +} +pub type off_t = __off_t; +pub type fpos_t = __fpos_t; +extern "C" { + pub static mut stdin: *mut FILE; +} +extern "C" { + pub static mut stdout: *mut FILE; +} +extern "C" { + pub static mut stderr: *mut FILE; +} +extern "C" { + pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rename( + __old: *const ::std::os::raw::c_char, + __new: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn renameat( + __oldfd: ::std::os::raw::c_int, + __old: *const ::std::os::raw::c_char, + __newfd: ::std::os::raw::c_int, + __new: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tmpfile() -> *mut FILE; +} +extern "C" { + pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn tempnam( + __dir: *const ::std::os::raw::c_char, + __pfx: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn freopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + __stream: *mut FILE, + ) -> *mut FILE; +} +extern "C" { + pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char) + -> *mut FILE; +} +extern "C" { + pub fn fmemopen( + __s: *mut ::std::os::raw::c_void, + __len: usize, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn open_memstream( + __bufloc: *mut *mut ::std::os::raw::c_char, + __sizeloc: *mut usize, + ) -> *mut FILE; +} +extern "C" { + pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); +} +extern "C" { + pub fn setvbuf( + __stream: *mut FILE, + __buf: *mut ::std::os::raw::c_char, + __modes: ::std::os::raw::c_int, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize); +} +extern "C" { + pub fn setlinebuf(__stream: *mut FILE); +} +extern "C" { + pub fn fprintf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sprintf( + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfprintf( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vprintf( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsprintf( + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn snprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsnprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vdprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + __arg: __gnuc_va_list, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fscanf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sscanf( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +pub type _Float128 = u128; +pub type _Float32 = f32; +pub type _Float64 = f64; +pub type _Float32x = f64; +pub type _Float64x = u128; +extern "C" { + #[link_name = "\u{1}__isoc99_fscanf"] + pub fn fscanf1( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_scanf"] + pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_sscanf"] + pub fn sscanf1( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfscanf( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vscanf( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsscanf( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vfscanf"] + pub fn vfscanf1( + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vscanf"] + pub fn vscanf1( + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}__isoc99_vsscanf"] + pub fn vsscanf1( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: [u64; 4usize], + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar_unlocked() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgets( + __s: *mut ::std::os::raw::c_char, + __n: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __getdelim( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn getdelim( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn getline( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { + pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fread( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fwrite( + __ptr: *const ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __s: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fread_unlocked( + __ptr: *mut ::std::os::raw::c_void, + __size: usize, + __n: usize, + __stream: *mut FILE, + ) -> usize; +} +extern "C" { + pub fn fwrite_unlocked( + __ptr: *const ::std::os::raw::c_void, + __size: usize, + __n: usize, + __stream: *mut FILE, + ) -> usize; +} +extern "C" { + pub fn fseek( + __stream: *mut FILE, + __off: ::std::os::raw::c_long, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn rewind(__stream: *mut FILE); +} +extern "C" { + pub fn fseeko( + __stream: *mut FILE, + __off: __off_t, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ftello(__stream: *mut FILE) -> __off_t; +} +extern "C" { + pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearerr(__stream: *mut FILE); +} +extern "C" { + pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearerr_unlocked(__stream: *mut FILE); +} +extern "C" { + pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn perror(__s: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn popen( + __command: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn flockfile(__stream: *mut FILE); +} +extern "C" { + pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn funlockfile(__stream: *mut FILE); +} +extern "C" { + pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __assert_fail( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert_perror_fail( + __errnum: ::std::os::raw::c_int, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_int, + ) -> !; +} +pub type wchar_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +extern "C" { + pub fn __ctype_get_mb_cur_max() -> usize; +} +extern "C" { + pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtod( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtof( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn strtold( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> u128; +} +extern "C" { + pub fn strtol( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtoul( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtouq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn strtoll( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoull( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +pub type u_char = __u_char; +pub type u_short = __u_short; +pub type u_int = __u_int; +pub type u_long = __u_long; +pub type quad_t = __quad_t; +pub type u_quad_t = __u_quad_t; +pub type fsid_t = __fsid_t; +pub type loff_t = __loff_t; +pub type ino_t = __ino_t; +pub type dev_t = __dev_t; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type nlink_t = __nlink_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +pub type id_t = __id_t; +pub type daddr_t = __daddr_t; +pub type caddr_t = __caddr_t; +pub type key_t = __key_t; +pub type clock_t = __clock_t; +pub type clockid_t = __clockid_t; +pub type time_t = __time_t; +pub type timer_t = __timer_t; +pub type ulong = ::std::os::raw::c_ulong; +pub type ushort = ::std::os::raw::c_ushort; +pub type uint = ::std::os::raw::c_uint; +pub type u_int8_t = __uint8_t; +pub type u_int16_t = __uint16_t; +pub type u_int32_t = __uint32_t; +pub type u_int64_t = __uint64_t; +pub type register_t = ::std::os::raw::c_long; +pub type sigset_t = __sigset_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { + pub tv_sec: __time_t, + pub tv_usec: __suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, +} +pub type suseconds_t = __suseconds_t; +pub type __fd_mask = ::std::os::raw::c_long; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fd_set { + pub __fds_bits: [__fd_mask; 16usize], +} +pub type fd_mask = __fd_mask; +extern "C" { + pub fn select( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *mut timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pselect( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *const timespec, + __sigmask: *const __sigset_t, + ) -> ::std::os::raw::c_int; +} +pub type blksize_t = __blksize_t; +pub type blkcnt_t = __blkcnt_t; +pub type fsblkcnt_t = __fsblkcnt_t; +pub type fsfilcnt_t = __fsfilcnt_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, +} +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_slist { + pub __next: *mut __pthread_internal_slist, +} +pub type __pthread_slist_t = __pthread_internal_slist; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_int, + pub __list: __pthread_list_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __pad1: ::std::os::raw::c_ulong, + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], +} +pub type __tss_t = ::std::os::raw::c_uint; +pub type __thrd_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __once_flag { + pub __data: ::std::os::raw::c_int, +} +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 64usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, +} +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_int, +} +extern "C" { + pub fn random() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn srandom(__seed: ::std::os::raw::c_uint); +} +extern "C" { + pub fn initstate( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct random_data { + pub fptr: *mut i32, + pub rptr: *mut i32, + pub state: *mut i32, + pub rand_type: ::std::os::raw::c_int, + pub rand_deg: ::std::os::raw::c_int, + pub rand_sep: ::std::os::raw::c_int, + pub end_ptr: *mut i32, +} +extern "C" { + pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srandom_r( + __seed: ::std::os::raw::c_uint, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn initstate_r( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setstate_r( + __statebuf: *mut ::std::os::raw::c_char, + __buf: *mut random_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rand() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srand(__seed: ::std::os::raw::c_uint); +} +extern "C" { + pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn drand48() -> f64; +} +extern "C" { + pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; +} +extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn srand48(__seedval: ::std::os::raw::c_long); +} +extern "C" { + pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; +} +extern "C" { + pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct drand48_data { + pub __x: [::std::os::raw::c_ushort; 3usize], + pub __old_x: [::std::os::raw::c_ushort; 3usize], + pub __c: ::std::os::raw::c_ushort, + pub __init: ::std::os::raw::c_ushort, + pub __a: ::std::os::raw::c_ulonglong, +} +extern "C" { + pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn erand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn nrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn jrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn srand48_r( + __seedval: ::std::os::raw::c_long, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn seed48_r( + __seed16v: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lcong48_r( + __param: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn arc4random() -> __uint32_t; +} +extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __size: usize); +} +extern "C" { + pub fn arc4random_uniform(__upper_bound: __uint32_t) -> __uint32_t; +} +extern "C" { + pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn calloc( + __nmemb: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn realloc( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn free(__ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn reallocarray( + __ptr: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn posix_memalign( + __memptr: *mut *mut ::std::os::raw::c_void, + __alignment: usize, + __size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn aligned_alloc( + __alignment: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn abort() -> !; +} +extern "C" { + pub fn atexit(__func: ::std::option::Option) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn at_quick_exit( + __func: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn on_exit( + __func: ::std::option::Option< + unsafe extern "C" fn( + __status: ::std::os::raw::c_int, + __arg: *mut ::std::os::raw::c_void, + ), + >, + __arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn quick_exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setenv( + __name: *const ::std::os::raw::c_char, + __value: *const ::std::os::raw::c_char, + __replace: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clearenv() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mkstemps( + __template: *mut ::std::os::raw::c_char, + __suffixlen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn realpath( + __name: *const ::std::os::raw::c_char, + __resolved: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +pub type __compar_fn_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn bsearch( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, + ); +} +extern "C" { + pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t; +} +extern "C" { + pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t; +} +extern "C" { + pub fn lldiv( + __numer: ::std::os::raw::c_longlong, + __denom: ::std::os::raw::c_longlong, + ) -> lldiv_t; +} +extern "C" { + pub fn ecvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qecvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qfcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn qgcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ecvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fcvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qecvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qfcvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbtowc( + __pwc: *mut wchar_t, + __s: *const ::std::os::raw::c_char, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize; +} +extern "C" { + pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize; +} +extern "C" { + pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getsubopt( + __optionp: *mut *mut ::std::os::raw::c_char, + __tokens: *const *mut ::std::os::raw::c_char, + __valuep: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memcpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memmove( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memccpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset( + __s: *mut ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __memcmpeq( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memchr( + __s: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcoll( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strxfrm( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_struct { + pub __locales: [*mut __locale_data; 13usize], + pub __ctype_b: *const ::std::os::raw::c_ushort, + pub __ctype_tolower: *const ::std::os::raw::c_int, + pub __ctype_toupper: *const ::std::os::raw::c_int, + pub __names: [*const ::std::os::raw::c_char; 13usize], +} +pub type __locale_t = *mut __locale_struct; +pub type locale_t = __locale_t; +extern "C" { + pub fn strcoll_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __l: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strxfrm_l( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + __l: locale_t, + ) -> usize; +} +extern "C" { + pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strndup( + __string: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcspn( + __s: *const ::std::os::raw::c_char, + __reject: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strspn( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strpbrk( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strstr( + __haystack: *const ::std::os::raw::c_char, + __needle: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize; +} +extern "C" { + pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}__xpg_strerror_r"] + pub fn strerror_r( + __errnum: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __buflen: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strerror_l( + __errnum: ::std::os::raw::c_int, + __l: locale_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn bcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bcopy( + __src: *const ::std::os::raw::c_void, + __dest: *mut ::std::os::raw::c_void, + __n: usize, + ); +} +extern "C" { + pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); +} +extern "C" { + pub fn index( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn rindex( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __loc: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: usize, + __loc: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize); +} +extern "C" { + pub fn strsep( + __stringp: *mut *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +pub type int_least8_t = __int_least8_t; +pub type int_least16_t = __int_least16_t; +pub type int_least32_t = __int_least32_t; +pub type int_least64_t = __int_least64_t; +pub type uint_least8_t = __uint_least8_t; +pub type uint_least16_t = __uint_least16_t; +pub type uint_least32_t = __uint_least32_t; +pub type uint_least64_t = __uint_least64_t; +pub type int_fast8_t = ::std::os::raw::c_schar; +pub type int_fast16_t = ::std::os::raw::c_long; +pub type int_fast32_t = ::std::os::raw::c_long; +pub type int_fast64_t = ::std::os::raw::c_long; +pub type uint_fast8_t = ::std::os::raw::c_uchar; +pub type uint_fast16_t = ::std::os::raw::c_ulong; +pub type uint_fast32_t = ::std::os::raw::c_ulong; +pub type uint_fast64_t = ::std::os::raw::c_ulong; +pub type intmax_t = __intmax_t; +pub type uintmax_t = __uintmax_t; +pub type __gwchar_t = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct imaxdiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +extern "C" { + pub fn imaxabs(__n: intmax_t) -> intmax_t; +} +extern "C" { + pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; +} +extern "C" { + pub fn strtoimax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn strtoumax( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn wcstoimax( + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn wcstoumax( + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn xtoi(hexstr: *const ::std::os::raw::c_char) -> u64; +} +extern "C" { + pub fn strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + size: usize, + ) -> usize; +} +extern "C" { + pub fn strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + size: usize, + ) -> usize; +} +extern "C" { + pub fn memmem( + haystack: *const ::std::os::raw::c_void, + haystack_size: usize, + needle: *const ::std::os::raw::c_void, + needle_size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strnlen_w(w_str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcmp_w( + w_str: *const ::std::os::raw::c_char, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strlcpy_w( + dst: *mut ::std::os::raw::c_char, + w_src: *const ::std::os::raw::c_char, + n: usize, + ) -> usize; +} +extern "C" { + pub fn yr_isalnum(s: *const u8) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_vasprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ap: va_list, + ); +} +extern "C" { + pub fn yr_asprintf( + strp: *mut *mut ::std::os::raw::c_char, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +pub const _ISupper: _bindgen_ty_1 = 256; +pub const _ISlower: _bindgen_ty_1 = 512; +pub const _ISalpha: _bindgen_ty_1 = 1024; +pub const _ISdigit: _bindgen_ty_1 = 2048; +pub const _ISxdigit: _bindgen_ty_1 = 4096; +pub const _ISspace: _bindgen_ty_1 = 8192; +pub const _ISprint: _bindgen_ty_1 = 16384; +pub const _ISgraph: _bindgen_ty_1 = 32768; +pub const _ISblank: _bindgen_ty_1 = 1; +pub const _IScntrl: _bindgen_ty_1 = 2; +pub const _ISpunct: _bindgen_ty_1 = 4; +pub const _ISalnum: _bindgen_ty_1 = 8; +pub type _bindgen_ty_1 = ::std::os::raw::c_uint; +extern "C" { + pub fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; +} +extern "C" { + pub fn __ctype_tolower_loc() -> *mut *const __int32_t; +} +extern "C" { + pub fn __ctype_toupper_loc() -> *mut *const __int32_t; +} +extern "C" { + pub fn isalnum(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalpha(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iscntrl(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isdigit(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn islower(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isgraph(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isprint(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ispunct(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isspace(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isupper(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isxdigit(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tolower(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toupper(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isblank(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isascii(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toascii(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _toupper(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _tolower(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalnum_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalpha_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iscntrl_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isdigit_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn islower_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isgraph_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isprint_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ispunct_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isspace_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isupper_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isxdigit_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isblank_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __tolower_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tolower_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __toupper_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toupper_l(__c: ::std::os::raw::c_int, __l: locale_t) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct max_align_t { + pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, + pub __bindgen_padding_0: u64, + pub __clang_max_align_nonce2: u128, +} +pub type YR_STREAM_READ_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *mut ::std::os::raw::c_void, + size: usize, + count: usize, + user_data: *mut ::std::os::raw::c_void, + ) -> usize, +>; +pub type YR_STREAM_WRITE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + ptr: *const ::std::os::raw::c_void, + size: usize, + count: usize, + user_data: *mut ::std::os::raw::c_void, + ) -> usize, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_STREAM { + pub user_data: *mut ::std::os::raw::c_void, + pub read: YR_STREAM_READ_FUNC, + pub write: YR_STREAM_WRITE_FUNC, +} +pub type YR_STREAM = _YR_STREAM; +extern "C" { + pub fn yr_stream_read( + ptr: *mut ::std::os::raw::c_void, + size: usize, + count: usize, + stream: *mut YR_STREAM, + ) -> usize; +} +extern "C" { + pub fn yr_stream_write( + ptr: *const ::std::os::raw::c_void, + size: usize, + count: usize, + stream: *mut YR_STREAM, + ) -> usize; +} +pub type yr_arena_off_t = u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_REF { + pub buffer_id: u32, + pub offset: yr_arena_off_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA_BUFFER { + pub data: *mut u8, + pub size: usize, + pub used: usize, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RELOC { + pub buffer_id: u32, + pub offset: yr_arena_off_t, + pub next: *mut YR_RELOC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARENA { + pub xrefs: u32, + pub num_buffers: u32, + pub buffers: [YR_ARENA_BUFFER; 16usize], + pub initial_buffer_size: usize, + pub reloc_list_head: *mut YR_RELOC, + pub reloc_list_tail: *mut YR_RELOC, +} +extern "C" { + pub fn yr_arena_create( + num_buffers: u32, + initial_buffer_size: usize, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_acquire(arena: *mut YR_ARENA); +} +extern "C" { + pub fn yr_arena_release(arena: *mut YR_ARENA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_ref_to_ptr( + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_ptr_to_ref( + arena: *mut YR_ARENA, + address: *const ::std::os::raw::c_void, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_get_ptr( + arena: *mut YR_ARENA, + buffer_id: u32, + offset: yr_arena_off_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_arena_get_current_offset(arena: *mut YR_ARENA, buffer_id: u32) -> yr_arena_off_t; +} +extern "C" { + pub fn yr_arena_allocate_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_zeroed_memory( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_allocate_struct( + arena: *mut YR_ARENA, + buffer_id: u32, + size: usize, + ref_: *mut YR_ARENA_REF, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_make_ptr_relocatable( + arena: *mut YR_ARENA, + buffer_id: u32, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_data( + arena: *mut YR_ARENA, + buffer_id: u32, + data: *const ::std::os::raw::c_void, + size: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_string( + arena: *mut YR_ARENA, + buffer_id: u32, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_write_uint32( + arena: *mut YR_ARENA, + buffer_id: u32, + integer: u32, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_load_stream( + stream: *mut YR_STREAM, + arena: *mut *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_arena_save_stream( + arena: *mut YR_ARENA, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SIZED_STRING { + pub length: u32, + pub flags: u32, + pub c_string: [::std::os::raw::c_char; 1usize], +} +pub type SIZED_STRING = _SIZED_STRING; +extern "C" { + pub fn ss_compare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_icompare(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ss_contains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_icontains(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_startswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_istartswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_endswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_iendswith(s1: *mut SIZED_STRING, s2: *mut SIZED_STRING) -> bool; +} +extern "C" { + pub fn ss_dup(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_new(s: *const ::std::os::raw::c_char) -> *mut SIZED_STRING; +} +extern "C" { + pub fn ss_convert_to_wide(s: *mut SIZED_STRING) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_bitmask_find_non_colliding_offset( + a: *mut ::std::os::raw::c_ulong, + b: *mut ::std::os::raw::c_ulong, + len_a: u32, + len_b: u32, + off_a: *mut u32, + ) -> u32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE_ENTRY { + pub key: *mut ::std::os::raw::c_void, + pub key_length: usize, + pub ns: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_void, + pub next: *mut _YR_HASH_TABLE_ENTRY, +} +pub type YR_HASH_TABLE_ENTRY = _YR_HASH_TABLE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_HASH_TABLE { + pub size: ::std::os::raw::c_int, + pub buckets: [*mut YR_HASH_TABLE_ENTRY; 1usize], +} +pub type YR_HASH_TABLE = _YR_HASH_TABLE; +pub type YR_HASH_TABLE_FREE_VALUE_FUNC = ::std::option::Option< + unsafe extern "C" fn(value: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, +>; +pub type YR_HASH_TABLE_ITERATE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + key: *mut ::std::os::raw::c_void, + key_length: usize, + value: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_hash(seed: u32, buffer: *const ::std::os::raw::c_void, len: usize) -> u32; +} +extern "C" { + pub fn yr_hash_table_create( + size: ::std::os::raw::c_int, + table: *mut *mut YR_HASH_TABLE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_clean( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_destroy( + table: *mut YR_HASH_TABLE, + free_value: YR_HASH_TABLE_FREE_VALUE_FUNC, + ); +} +extern "C" { + pub fn yr_hash_table_iterate( + table: *mut YR_HASH_TABLE, + ns: *const ::std::os::raw::c_char, + iterate_func: YR_HASH_TABLE_ITERATE_FUNC, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_char, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +extern "C" { + pub fn yr_hash_table_lookup_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_remove_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_hash_table_add_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_add_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + value: u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_hash_table_lookup_uint32_raw_key( + table: *mut YR_HASH_TABLE, + key: *const ::std::os::raw::c_void, + key_length: usize, + ns: *const ::std::os::raw::c_char, + ) -> u32; +} +#[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: *const ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { + pub it_interval: timespec, + pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent { + _unused: [u8; 0], +} +extern "C" { + pub fn clock() -> clock_t; +} +extern "C" { + pub fn time(__timer: *mut time_t) -> time_t; +} +extern "C" { + pub fn difftime(__time1: time_t, __time0: time_t) -> f64; +} +extern "C" { + pub fn mktime(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn strftime( + __s: *mut ::std::os::raw::c_char, + __maxsize: usize, + __format: *const ::std::os::raw::c_char, + __tp: *const tm, + ) -> usize; +} +extern "C" { + pub fn strftime_l( + __s: *mut ::std::os::raw::c_char, + __maxsize: usize, + __format: *const ::std::os::raw::c_char, + __tp: *const tm, + __loc: locale_t, + ) -> usize; +} +extern "C" { + pub fn gmtime(__timer: *const time_t) -> *mut tm; +} +extern "C" { + pub fn localtime(__timer: *const time_t) -> *mut tm; +} +extern "C" { + pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; +} +extern "C" { + pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; +} +extern "C" { + pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn asctime_r( + __tp: *const tm, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ctime_r( + __timer: *const time_t, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; +} +extern "C" { + pub static mut __daylight: ::std::os::raw::c_int; +} +extern "C" { + pub static mut __timezone: ::std::os::raw::c_long; +} +extern "C" { + pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; +} +extern "C" { + pub fn tzset(); +} +extern "C" { + pub static mut daylight: ::std::os::raw::c_int; +} +extern "C" { + pub static mut timezone: ::std::os::raw::c_long; +} +extern "C" { + pub fn timegm(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn timelocal(__tp: *mut tm) -> time_t; +} +extern "C" { + pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn nanosleep( + __requested_time: *const timespec, + __remaining: *mut timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_nanosleep( + __clock_id: clockid_t, + __flags: ::std::os::raw::c_int, + __req: *const timespec, + __rem: *mut timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_create( + __clock_id: clockid_t, + __evp: *mut sigevent, + __timerid: *mut timer_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_settime( + __timerid: timer_t, + __flags: ::std::os::raw::c_int, + __value: *const itimerspec, + __ovalue: *mut itimerspec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn timespec_get( + __ts: *mut timespec, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { + pub tz_minuteswest: ::std::os::raw::c_int, + pub tz_dsttime: ::std::os::raw::c_int, +} +extern "C" { + pub fn gettimeofday( + __tv: *mut timeval, + __tz: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn settimeofday(__tv: *const timeval, __tz: *const timezone) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn adjtime(__delta: *const timeval, __olddelta: *mut timeval) -> ::std::os::raw::c_int; +} +pub const __itimer_which_ITIMER_REAL: __itimer_which = 0; +pub const __itimer_which_ITIMER_VIRTUAL: __itimer_which = 1; +pub const __itimer_which_ITIMER_PROF: __itimer_which = 2; +pub type __itimer_which = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { + pub it_interval: timeval, + pub it_value: timeval, +} +pub type __itimer_which_t = ::std::os::raw::c_int; +extern "C" { + pub fn getitimer(__which: __itimer_which_t, __value: *mut itimerval) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setitimer( + __which: __itimer_which_t, + __new: *const itimerval, + __old: *mut itimerval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn utimes( + __file: *const ::std::os::raw::c_char, + __tvp: *const timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lutimes( + __file: *const ::std::os::raw::c_char, + __tvp: *const timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn futimes(__fd: ::std::os::raw::c_int, __tvp: *const timeval) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_STOPWATCH { + pub __bindgen_anon_1: _YR_STOPWATCH__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _YR_STOPWATCH__bindgen_ty_1 { + pub tv_start: timeval, + pub ts_start: timespec, +} +pub type YR_STOPWATCH = _YR_STOPWATCH; +extern "C" { + pub fn yr_stopwatch_start(stopwatch: *mut YR_STOPWATCH); +} +extern "C" { + pub fn yr_stopwatch_elapsed_ns(stopwatch: *mut YR_STOPWATCH) -> u64; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sched_param { + pub sched_priority: ::std::os::raw::c_int, +} +pub type __cpu_mask = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cpu_set_t { + pub __bits: [__cpu_mask; 16usize], +} +extern "C" { + pub fn __sched_cpucount(__setsize: usize, __setp: *const cpu_set_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __sched_cpualloc(__count: usize) -> *mut cpu_set_t; +} +extern "C" { + pub fn __sched_cpufree(__set: *mut cpu_set_t); +} +extern "C" { + pub fn sched_setparam(__pid: __pid_t, __param: *const sched_param) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_getparam(__pid: __pid_t, __param: *mut sched_param) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_setscheduler( + __pid: __pid_t, + __policy: ::std::os::raw::c_int, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_getscheduler(__pid: __pid_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_yield() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_max(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_get_priority_min(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sched_rr_get_interval(__pid: __pid_t, __t: *mut timespec) -> ::std::os::raw::c_int; +} +pub const PTHREAD_CREATE_JOINABLE: _bindgen_ty_2 = 0; +pub const PTHREAD_CREATE_DETACHED: _bindgen_ty_2 = 1; +pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub const PTHREAD_MUTEX_TIMED_NP: _bindgen_ty_3 = 0; +pub const PTHREAD_MUTEX_RECURSIVE_NP: _bindgen_ty_3 = 1; +pub const PTHREAD_MUTEX_ERRORCHECK_NP: _bindgen_ty_3 = 2; +pub const PTHREAD_MUTEX_ADAPTIVE_NP: _bindgen_ty_3 = 3; +pub const PTHREAD_MUTEX_NORMAL: _bindgen_ty_3 = 0; +pub const PTHREAD_MUTEX_RECURSIVE: _bindgen_ty_3 = 1; +pub const PTHREAD_MUTEX_ERRORCHECK: _bindgen_ty_3 = 2; +pub const PTHREAD_MUTEX_DEFAULT: _bindgen_ty_3 = 0; +pub type _bindgen_ty_3 = ::std::os::raw::c_uint; +pub const PTHREAD_MUTEX_STALLED: _bindgen_ty_4 = 0; +pub const PTHREAD_MUTEX_STALLED_NP: _bindgen_ty_4 = 0; +pub const PTHREAD_MUTEX_ROBUST: _bindgen_ty_4 = 1; +pub const PTHREAD_MUTEX_ROBUST_NP: _bindgen_ty_4 = 1; +pub type _bindgen_ty_4 = ::std::os::raw::c_uint; +pub const PTHREAD_PRIO_NONE: _bindgen_ty_5 = 0; +pub const PTHREAD_PRIO_INHERIT: _bindgen_ty_5 = 1; +pub const PTHREAD_PRIO_PROTECT: _bindgen_ty_5 = 2; +pub type _bindgen_ty_5 = ::std::os::raw::c_uint; +pub const PTHREAD_RWLOCK_PREFER_READER_NP: _bindgen_ty_6 = 0; +pub const PTHREAD_RWLOCK_PREFER_WRITER_NP: _bindgen_ty_6 = 1; +pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP: _bindgen_ty_6 = 2; +pub const PTHREAD_RWLOCK_DEFAULT_NP: _bindgen_ty_6 = 0; +pub type _bindgen_ty_6 = ::std::os::raw::c_uint; +pub const PTHREAD_INHERIT_SCHED: _bindgen_ty_7 = 0; +pub const PTHREAD_EXPLICIT_SCHED: _bindgen_ty_7 = 1; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +pub const PTHREAD_SCOPE_SYSTEM: _bindgen_ty_8 = 0; +pub const PTHREAD_SCOPE_PROCESS: _bindgen_ty_8 = 1; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const PTHREAD_PROCESS_PRIVATE: _bindgen_ty_9 = 0; +pub const PTHREAD_PROCESS_SHARED: _bindgen_ty_9 = 1; +pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _pthread_cleanup_buffer { + pub __routine: ::std::option::Option, + pub __arg: *mut ::std::os::raw::c_void, + pub __canceltype: ::std::os::raw::c_int, + pub __prev: *mut _pthread_cleanup_buffer, +} +pub const PTHREAD_CANCEL_ENABLE: _bindgen_ty_10 = 0; +pub const PTHREAD_CANCEL_DISABLE: _bindgen_ty_10 = 1; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const PTHREAD_CANCEL_DEFERRED: _bindgen_ty_11 = 0; +pub const PTHREAD_CANCEL_ASYNCHRONOUS: _bindgen_ty_11 = 1; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +extern "C" { + pub fn pthread_create( + __newthread: *mut pthread_t, + __attr: *const pthread_attr_t, + __start_routine: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + __arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_exit(__retval: *mut ::std::os::raw::c_void) -> !; +} +extern "C" { + pub fn pthread_join( + __th: pthread_t, + __thread_return: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_detach(__th: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_self() -> pthread_t; +} +extern "C" { + pub fn pthread_equal(__thread1: pthread_t, __thread2: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_init(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_destroy(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getdetachstate( + __attr: *const pthread_attr_t, + __detachstate: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setdetachstate( + __attr: *mut pthread_attr_t, + __detachstate: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getguardsize( + __attr: *const pthread_attr_t, + __guardsize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setguardsize( + __attr: *mut pthread_attr_t, + __guardsize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedparam( + __attr: *const pthread_attr_t, + __param: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedparam( + __attr: *mut pthread_attr_t, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getschedpolicy( + __attr: *const pthread_attr_t, + __policy: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setschedpolicy( + __attr: *mut pthread_attr_t, + __policy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getinheritsched( + __attr: *const pthread_attr_t, + __inherit: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setinheritsched( + __attr: *mut pthread_attr_t, + __inherit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getscope( + __attr: *const pthread_attr_t, + __scope: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setscope( + __attr: *mut pthread_attr_t, + __scope: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstackaddr( + __attr: *const pthread_attr_t, + __stackaddr: *mut *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstackaddr( + __attr: *mut pthread_attr_t, + __stackaddr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstacksize( + __attr: *const pthread_attr_t, + __stacksize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstacksize( + __attr: *mut pthread_attr_t, + __stacksize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_getstack( + __attr: *const pthread_attr_t, + __stackaddr: *mut *mut ::std::os::raw::c_void, + __stacksize: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_attr_setstack( + __attr: *mut pthread_attr_t, + __stackaddr: *mut ::std::os::raw::c_void, + __stacksize: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setschedparam( + __target_thread: pthread_t, + __policy: ::std::os::raw::c_int, + __param: *const sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getschedparam( + __target_thread: pthread_t, + __policy: *mut ::std::os::raw::c_int, + __param: *mut sched_param, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setschedprio( + __target_thread: pthread_t, + __prio: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_once( + __once_control: *mut pthread_once_t, + __init_routine: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setcancelstate( + __state: ::std::os::raw::c_int, + __oldstate: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_setcanceltype( + __type: ::std::os::raw::c_int, + __oldtype: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cancel(__th: pthread_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_testcancel(); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __cancel_jmp_buf_tag { + pub __cancel_jmp_buf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_unwind_buf_t { + pub __cancel_jmp_buf: [__cancel_jmp_buf_tag; 1usize], + pub __pad: [*mut ::std::os::raw::c_void; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_cleanup_frame { + pub __cancel_routine: + ::std::option::Option, + pub __cancel_arg: *mut ::std::os::raw::c_void, + pub __do_it: ::std::os::raw::c_int, + pub __cancel_type: ::std::os::raw::c_int, +} +extern "C" { + pub fn __pthread_register_cancel(__buf: *mut __pthread_unwind_buf_t); +} +extern "C" { + pub fn __pthread_unregister_cancel(__buf: *mut __pthread_unwind_buf_t); +} +extern "C" { + pub fn __pthread_unwind_next(__buf: *mut __pthread_unwind_buf_t) -> !; +} +extern "C" { + pub fn pthread_mutex_init( + __mutex: *mut pthread_mutex_t, + __mutexattr: *const pthread_mutexattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_destroy(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_trylock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_lock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_timedlock( + __mutex: *mut pthread_mutex_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_unlock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_getprioceiling( + __mutex: *const pthread_mutex_t, + __prioceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_setprioceiling( + __mutex: *mut pthread_mutex_t, + __prioceiling: ::std::os::raw::c_int, + __old_ceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutex_consistent(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_init(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_destroy(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getpshared( + __attr: *const pthread_mutexattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setpshared( + __attr: *mut pthread_mutexattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_gettype( + __attr: *const pthread_mutexattr_t, + __kind: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_settype( + __attr: *mut pthread_mutexattr_t, + __kind: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprotocol( + __attr: *const pthread_mutexattr_t, + __protocol: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprotocol( + __attr: *mut pthread_mutexattr_t, + __protocol: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getprioceiling( + __attr: *const pthread_mutexattr_t, + __prioceiling: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setprioceiling( + __attr: *mut pthread_mutexattr_t, + __prioceiling: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_getrobust( + __attr: *const pthread_mutexattr_t, + __robustness: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_mutexattr_setrobust( + __attr: *mut pthread_mutexattr_t, + __robustness: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_init( + __rwlock: *mut pthread_rwlock_t, + __attr: *const pthread_rwlockattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_destroy(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_rdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_tryrdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_timedrdlock( + __rwlock: *mut pthread_rwlock_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_wrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_trywrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_timedwrlock( + __rwlock: *mut pthread_rwlock_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlock_unlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_init(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_destroy(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_getpshared( + __attr: *const pthread_rwlockattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_setpshared( + __attr: *mut pthread_rwlockattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_getkind_np( + __attr: *const pthread_rwlockattr_t, + __pref: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_rwlockattr_setkind_np( + __attr: *mut pthread_rwlockattr_t, + __pref: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_init( + __cond: *mut pthread_cond_t, + __cond_attr: *const pthread_condattr_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_destroy(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_signal(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_broadcast(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_wait( + __cond: *mut pthread_cond_t, + __mutex: *mut pthread_mutex_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_cond_timedwait( + __cond: *mut pthread_cond_t, + __mutex: *mut pthread_mutex_t, + __abstime: *const timespec, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_init(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_destroy(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_getpshared( + __attr: *const pthread_condattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_setpshared( + __attr: *mut pthread_condattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_getclock( + __attr: *const pthread_condattr_t, + __clock_id: *mut __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_condattr_setclock( + __attr: *mut pthread_condattr_t, + __clock_id: __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_init( + __lock: *mut pthread_spinlock_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_destroy(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_lock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_trylock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_spin_unlock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_init( + __barrier: *mut pthread_barrier_t, + __attr: *const pthread_barrierattr_t, + __count: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_destroy(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrier_wait(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_init(__attr: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_destroy(__attr: *mut pthread_barrierattr_t) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_getpshared( + __attr: *const pthread_barrierattr_t, + __pshared: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_barrierattr_setpshared( + __attr: *mut pthread_barrierattr_t, + __pshared: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_create( + __key: *mut pthread_key_t, + __destr_function: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_key_delete(__key: pthread_key_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getspecific(__key: pthread_key_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn pthread_setspecific( + __key: pthread_key_t, + __pointer: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_getcpuclockid( + __thread_id: pthread_t, + __clock_id: *mut __clockid_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pthread_atfork( + __prepare: ::std::option::Option, + __parent: ::std::option::Option, + __child: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +pub type YR_THREAD_ID = pthread_t; +pub type YR_THREAD_STORAGE_KEY = pthread_key_t; +pub type YR_MUTEX = pthread_mutex_t; +extern "C" { + pub fn yr_current_thread_id() -> YR_THREAD_ID; +} +extern "C" { + pub fn yr_mutex_create(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_destroy(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_lock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_mutex_unlock(arg1: *mut YR_MUTEX) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_create(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_destroy(arg1: *mut YR_THREAD_STORAGE_KEY) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_set_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_thread_storage_get_value( + arg1: *mut YR_THREAD_STORAGE_KEY, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_NOTEBOOK { + _unused: [u8; 0], +} +extern "C" { + pub fn yr_notebook_create( + page_size: usize, + pool: *mut *mut YR_NOTEBOOK, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_destroy(pool: *mut YR_NOTEBOOK) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_notebook_alloc( + notebook: *mut YR_NOTEBOOK, + size: usize, + ) -> *mut ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_LIST { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_TABLES { + _unused: [u8; 0], +} +pub type YR_AC_TRANSITION = u32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_NAMESPACE { + pub __bindgen_anon_1: YR_NAMESPACE__bindgen_ty_1, + pub idx: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_NAMESPACE__bindgen_ty_1 { + pub name: *const ::std::os::raw::c_char, + pub name_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_META { + pub __bindgen_anon_1: YR_META__bindgen_ty_1, + pub __bindgen_anon_2: YR_META__bindgen_ty_2, + pub integer: i64, + pub type_: i32, + pub flags: i32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_META__bindgen_ty_2 { + pub string: *const ::std::os::raw::c_char, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_STRING { + pub flags: u32, + pub idx: u32, + pub fixed_offset: i64, + pub rule_idx: u32, + pub length: i32, + pub __bindgen_anon_1: YR_STRING__bindgen_ty_1, + pub __bindgen_anon_2: YR_STRING__bindgen_ty_2, + pub chain_gap_min: i32, + pub chain_gap_max: i32, + pub __bindgen_anon_3: YR_STRING__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_1 { + pub string: *mut u8, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_2 { + pub chained_to: *mut YR_STRING, + pub chained_to_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_STRING__bindgen_ty_3 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULE { + pub flags: i32, + pub num_atoms: i32, + pub __bindgen_anon_1: YR_RULE__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULE__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULE__bindgen_ty_3, + pub __bindgen_anon_4: YR_RULE__bindgen_ty_4, + pub __bindgen_anon_5: YR_RULE__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_1 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_2 { + pub tags: *const ::std::os::raw::c_char, + pub tags_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_3 { + pub metas: *mut YR_META, + pub metas_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_4 { + pub strings: *mut YR_STRING, + pub strings_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULE__bindgen_ty_5 { + pub ns: *mut YR_NAMESPACE, + pub ns_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_SUMMARY { + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_EXTERNAL_VARIABLE { + pub type_: i32, + pub value: YR_EXTERNAL_VARIABLE__bindgen_ty_1, + pub __bindgen_anon_1: YR_EXTERNAL_VARIABLE__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_1 { + pub i: i64, + pub f: f64, + pub s: *mut ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_EXTERNAL_VARIABLE__bindgen_ty_2 { + pub identifier: *const ::std::os::raw::c_char, + pub identifier_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_AC_MATCH { + pub __bindgen_anon_1: YR_AC_MATCH__bindgen_ty_1, + pub __bindgen_anon_2: YR_AC_MATCH__bindgen_ty_2, + pub __bindgen_anon_3: YR_AC_MATCH__bindgen_ty_3, + pub __bindgen_anon_4: YR_AC_MATCH__bindgen_ty_4, + pub backtrack: u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_1 { + pub string: *mut YR_STRING, + pub string_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_2 { + pub forward_code: *const u8, + pub forward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_3 { + pub backward_code: *const u8, + pub backward_code_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_AC_MATCH__bindgen_ty_4 { + pub next: *mut YR_AC_MATCH, + pub next_: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RE_NODE { + pub type_: ::std::os::raw::c_int, + pub __bindgen_anon_1: RE_NODE__bindgen_ty_1, + pub __bindgen_anon_2: RE_NODE__bindgen_ty_2, + pub greedy: ::std::os::raw::c_int, + pub re_class: *mut RE_CLASS, + pub children_head: *mut RE_NODE, + pub children_tail: *mut RE_NODE, + pub prev_sibling: *mut RE_NODE, + pub next_sibling: *mut RE_NODE, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_1 { + pub value: ::std::os::raw::c_int, + pub count: ::std::os::raw::c_int, + pub start: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union RE_NODE__bindgen_ty_2 { + pub mask: ::std::os::raw::c_int, + pub end: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_CLASS { + pub negated: u8, + pub bitmap: [u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_AST { + pub flags: u32, + pub root_node: *mut RE_NODE, +} +#[repr(C, packed)] +pub struct RE { + pub flags: u32, + pub code: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_ERROR { + pub message: [::std::os::raw::c_char; 384usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER { + pub ip: *const u8, + pub sp: i32, + pub rc: i32, + pub prev: *mut RE_FIBER, + pub next: *mut RE_FIBER, + pub stack: [u16; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_LIST { + pub head: *mut RE_FIBER, + pub tail: *mut RE_FIBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FIBER_POOL { + pub fiber_count: ::std::os::raw::c_int, + pub fibers: RE_FIBER_LIST, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION { + pub round: ::std::os::raw::c_int, + pub input: *const u8, + pub prev: *mut RE_FAST_EXEC_POSITION, + pub next: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RE_FAST_EXEC_POSITION_POOL { + pub head: *mut RE_FAST_EXEC_POSITION, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODIFIER { + pub flags: i32, + pub xor_min: u8, + pub xor_max: u8, + pub alphabet: *mut SIZED_STRING, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCHES { + pub head: *mut YR_MATCH, + pub tail: *mut YR_MATCH, + pub count: i32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MATCH { + pub base: i64, + pub offset: i64, + pub match_length: i32, + pub data_length: i32, + pub data: *const u8, + pub prev: *mut YR_MATCH, + pub next: *mut YR_MATCH, + pub chain_length: i32, + pub is_private: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_STATE { + pub failure: *mut YR_AC_STATE, + pub first_child: *mut YR_AC_STATE, + pub siblings: *mut YR_AC_STATE, + pub matches_ref: YR_ARENA_REF, + pub depth: u8, + pub input: u8, + pub t_table_slot: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_MATCH_LIST_ENTRY { + pub backtrack: u16, + pub string_idx: u32, + pub ref_: YR_ARENA_REF, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_AC_MATCH_LIST_ENTRY, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_AC_AUTOMATON { + pub arena: *mut YR_ARENA, + pub tables_size: u32, + pub t_table_unused_candidate: u32, + pub bitmask: *mut ::std::os::raw::c_ulong, + pub root: *mut YR_AC_STATE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_RULES { + pub arena: *mut YR_ARENA, + pub __bindgen_anon_1: YR_RULES__bindgen_ty_1, + pub __bindgen_anon_2: YR_RULES__bindgen_ty_2, + pub __bindgen_anon_3: YR_RULES__bindgen_ty_3, + pub ac_transition_table: *mut YR_AC_TRANSITION, + pub ac_match_pool: *mut YR_AC_MATCH, + pub ac_match_table: *mut u32, + pub code_start: *const u8, + pub num_rules: u32, + pub num_strings: u32, + pub num_namespaces: u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_1 { + pub rules_table: *mut YR_RULE, + pub rules_list_head: *mut YR_RULE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_2 { + pub strings_table: *mut YR_STRING, + pub strings_list_head: *mut YR_STRING, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_RULES__bindgen_ty_3 { + pub ext_vars_table: *mut YR_EXTERNAL_VARIABLE, + pub externals_list_head: *mut YR_EXTERNAL_VARIABLE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULES_STATS { + pub num_rules: u32, + pub num_strings: u32, + pub ac_matches: u32, + pub ac_root_match_list_length: u32, + pub ac_average_match_list_length: f32, + pub top_ac_match_list_lengths: [u32; 100usize], + pub ac_match_list_length_pctls: [u32; 101usize], + pub ac_tables_size: u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_PROFILING_INFO { + pub atom_matches: u32, + pub match_time: u64, + pub exec_time: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_RULE_PROFILING_INFO { + pub rule: *mut YR_RULE, + pub cost: u64, +} +pub type YR_MEMORY_BLOCK_FETCH_DATA_FUNC = + ::std::option::Option *const u8>; +pub type YR_MEMORY_BLOCK_ITERATOR_FUNC = ::std::option::Option< + unsafe extern "C" fn(self_: *mut YR_MEMORY_BLOCK_ITERATOR) -> *mut YR_MEMORY_BLOCK, +>; +pub type YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC = + ::std::option::Option u64>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK { + pub size: usize, + pub base: u64, + pub context: *mut ::std::os::raw::c_void, + pub fetch_data: YR_MEMORY_BLOCK_FETCH_DATA_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MEMORY_BLOCK_ITERATOR { + pub context: *mut ::std::os::raw::c_void, + pub first: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub next: YR_MEMORY_BLOCK_ITERATOR_FUNC, + pub file_size: YR_MEMORY_BLOCK_ITERATOR_SIZE_FUNC, + pub last_error: ::std::os::raw::c_int, +} +pub type YR_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + message: ::std::os::raw::c_int, + message_data: *mut ::std::os::raw::c_void, + user_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_SCAN_CONTEXT { + pub file_size: u64, + pub entry_point: u64, + pub flags: ::std::os::raw::c_int, + pub canary: ::std::os::raw::c_int, + pub timeout: u64, + pub user_data: *mut ::std::os::raw::c_void, + pub callback: YR_CALLBACK_FUNC, + pub rules: *mut YR_RULES, + pub last_error_string: *mut YR_STRING, + pub iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + pub objects_table: *mut YR_HASH_TABLE, + pub matches_notebook: *mut YR_NOTEBOOK, + pub stopwatch: YR_STOPWATCH, + pub re_fiber_pool: RE_FIBER_POOL, + pub re_fast_exec_position_pool: RE_FAST_EXEC_POSITION_POOL, + pub rule_matches_flags: *mut ::std::os::raw::c_ulong, + pub ns_unsatisfied_flags: *mut ::std::os::raw::c_ulong, + pub strings_temp_disabled: *mut ::std::os::raw::c_ulong, + pub matches: *mut YR_MATCHES, + pub unconfirmed_matches: *mut YR_MATCHES, + pub profiling_info: *mut YR_PROFILING_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_VALUE { + pub i: i64, + pub d: f64, + pub p: *mut ::std::os::raw::c_void, + pub o: *mut YR_OBJECT, + pub s: *mut YR_STRING, + pub it: *mut YR_ITERATOR, + pub ss: *mut SIZED_STRING, + pub re: *mut RE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_VALUE_STACK { + pub sp: u32, + pub capacity: u32, + pub items: *mut YR_VALUE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_OBJECT { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub value: YR_VALUE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_STRUCTURE { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub members: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_ARRAY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_ARRAY_ITEMS, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_DICTIONARY { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub prototype_item: *mut YR_OBJECT, + pub items: *mut YR_DICTIONARY_ITEMS, +} +pub type YR_MODULE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + args: *mut YR_VALUE, + context: *mut YR_SCAN_CONTEXT, + function_obj: *mut YR_OBJECT_FUNCTION, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION { + pub canary: ::std::os::raw::c_int, + pub type_: i8, + pub identifier: *const ::std::os::raw::c_char, + pub parent: *mut YR_OBJECT, + pub data: *mut ::std::os::raw::c_void, + pub return_obj: *mut YR_OBJECT, + pub prototypes: [YR_OBJECT_FUNCTION__bindgen_ty_1; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_OBJECT_FUNCTION__bindgen_ty_1 { + pub arguments_fmt: *const ::std::os::raw::c_char, + pub code: YR_MODULE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_STRUCTURE_MEMBER { + pub object: *mut YR_OBJECT, + pub next: *mut YR_STRUCTURE_MEMBER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITEMS { + pub capacity: ::std::os::raw::c_int, + pub length: ::std::os::raw::c_int, + pub objects: [*mut YR_OBJECT; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS { + pub used: ::std::os::raw::c_int, + pub free: ::std::os::raw::c_int, + pub objects: [YR_DICTIONARY_ITEMS__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICTIONARY_ITEMS__bindgen_ty_1 { + pub key: *mut SIZED_STRING, + pub obj: *mut YR_OBJECT, +} +pub type YR_ITERATOR_NEXT_FUNC = ::std::option::Option< + unsafe extern "C" fn( + self_: *mut YR_ITERATOR, + stack: *mut YR_VALUE_STACK, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ARRAY_ITERATOR { + pub array: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_DICT_ITERATOR { + pub dict: *mut YR_OBJECT, + pub index: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_RANGE_ITERATOR { + pub next: i64, + pub last: i64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_INT_ENUM_ITERATOR { + pub next: i64, + pub count: i64, + pub items: [i64; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct YR_ITERATOR { + pub next_func_idx: ::std::os::raw::c_int, + pub __bindgen_anon_1: YR_ITERATOR__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union YR_ITERATOR__bindgen_ty_1 { + pub array_it: YR_ARRAY_ITERATOR, + pub dict_it: YR_DICT_ITERATOR, + pub int_range_it: YR_INT_RANGE_ITERATOR, + pub int_enum_it: YR_INT_ENUM_ITERATOR, +} +pub type RE_MATCH_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + match_: *const u8, + match_length: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + args: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn yr_re_ast_create(re_ast: *mut *mut RE_AST) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_destroy(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_print(re_ast: *mut RE_AST); +} +extern "C" { + pub fn yr_re_ast_extract_literal(re_ast: *mut RE_AST) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_re_ast_has_unbounded_quantifier_for_dot(re_ast: *mut RE_AST) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_split_at_chaining_point( + re_ast: *mut RE_AST, + remainder_re_ast: *mut *mut RE_AST, + min_gap: *mut i32, + max_gap: *mut i32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_ast_emit_code( + re_ast: *mut RE_AST, + arena: *mut YR_ARENA, + backwards_code: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_node_create(type_: ::std::os::raw::c_int) -> *mut RE_NODE; +} +extern "C" { + pub fn yr_re_node_destroy(node: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_append_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_node_prepend_child(node: *mut RE_NODE, child: *mut RE_NODE); +} +extern "C" { + pub fn yr_re_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: usize, + input_backwards_size: usize, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_fast_exec( + context: *mut YR_SCAN_CONTEXT, + code: *const u8, + input_data: *const u8, + input_forwards_size: usize, + input_backwards_size: usize, + flags: ::std::os::raw::c_int, + callback: RE_MATCH_CALLBACK_FUNC, + callback_args: *mut ::std::os::raw::c_void, + matches: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse( + re_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_parse_hex( + hex_string: *const ::std::os::raw::c_char, + re_ast: *mut *mut RE_AST, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_compile( + re_string: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + arena: *mut YR_ARENA, + ref_: *mut YR_ARENA_REF, + error: *mut RE_ERROR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_re_match( + context: *mut YR_SCAN_CONTEXT, + re: *mut RE, + target: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM { + pub length: u8, + pub bytes: [u8; 4usize], + pub mask: [u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE_NODE { + pub type_: u8, + pub atom: YR_ATOM, + pub re_nodes: [*mut RE_NODE; 4usize], + pub children_head: *mut YR_ATOM_TREE_NODE, + pub children_tail: *mut YR_ATOM_TREE_NODE, + pub next_sibling: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_TREE { + pub root_node: *mut YR_ATOM_TREE_NODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_LIST_ITEM { + pub atom: YR_ATOM, + pub backtrack: u16, + pub forward_code_ref: YR_ARENA_REF, + pub backward_code_ref: YR_ARENA_REF, + pub next: *mut YR_ATOM_LIST_ITEM, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOM_QUALITY_TABLE_ENTRY { + pub atom: [u8; 4usize], + pub quality: u8, +} +pub type YR_ATOMS_QUALITY_FUNC = ::std::option::Option< + unsafe extern "C" fn(config: *mut YR_ATOMS_CONFIG, atom: *mut YR_ATOM) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_ATOMS_CONFIG { + pub get_atom_quality: YR_ATOMS_QUALITY_FUNC, + pub quality_table: *mut YR_ATOM_QUALITY_TABLE_ENTRY, + pub quality_warning_threshold: ::std::os::raw::c_int, + pub quality_table_entries: ::std::os::raw::c_int, + pub free_quality_table: bool, +} +extern "C" { + pub fn yr_atoms_extract_from_re( + config: *mut YR_ATOMS_CONFIG, + re_ast: *mut RE_AST, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_from_string( + config: *mut YR_ATOMS_CONFIG, + string: *mut u8, + string_length: ::std::os::raw::c_int, + modifier: YR_MODIFIER, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + min_atom_quality: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_extract_triplets( + re_node: *mut RE_NODE, + atoms: *mut *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_heuristic_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_table_quality( + config: *mut YR_ATOMS_CONFIG, + atom: *mut YR_ATOM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_min_quality( + config: *mut YR_ATOMS_CONFIG, + atom_list: *mut YR_ATOM_LIST_ITEM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_atoms_list_destroy(list_head: *mut YR_ATOM_LIST_ITEM); +} +extern "C" { + pub fn yr_ac_automaton_create( + arena: *mut YR_ARENA, + automaton: *mut *mut YR_AC_AUTOMATON, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_automaton_destroy(automaton: *mut YR_AC_AUTOMATON) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_add_string( + automaton: *mut YR_AC_AUTOMATON, + string: *mut YR_STRING, + string_idx: u32, + atom: *mut YR_ATOM_LIST_ITEM, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_compile( + automaton: *mut YR_AC_AUTOMATON, + arena: *mut YR_ARENA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_ac_print_automaton(automaton: *mut YR_AC_AUTOMATON); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_MAPPED_FILE { + pub file: ::std::os::raw::c_int, + pub size: usize, + pub data: *const u8, +} +pub type YR_MAPPED_FILE = _YR_MAPPED_FILE; +extern "C" { + pub fn yr_filemap_map( + file_path: *const ::std::os::raw::c_char, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_fd( + file: ::std::os::raw::c_int, + offset: u64, + size: usize, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_map_ex( + file_path: *const ::std::os::raw::c_char, + offset: u64, + size: usize, + pmapped_file: *mut YR_MAPPED_FILE, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_filemap_unmap(pmapped_file: *mut YR_MAPPED_FILE); +} +extern "C" { + pub fn yr_filemap_unmap_fd(pmapped_file: *mut YR_MAPPED_FILE); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_EXPRESSION { + pub type_: ::std::os::raw::c_int, + pub value: _YR_EXPRESSION__bindgen_ty_1, + pub identifier: _YR_EXPRESSION__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _YR_EXPRESSION__bindgen_ty_1 { + pub integer: i64, + pub object: *mut YR_OBJECT, + pub sized_string_ref: YR_ARENA_REF, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_EXPRESSION__bindgen_ty_2 { + pub ptr: *const ::std::os::raw::c_char, + pub ref_: YR_ARENA_REF, +} +pub type YR_EXPRESSION = _YR_EXPRESSION; +pub type YR_COMPILER_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + error_level: ::std::os::raw::c_int, + file_name: *const ::std::os::raw::c_char, + line_number: ::std::os::raw::c_int, + rule: *const YR_RULE, + message: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_INCLUDE_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char, +>; +pub type YR_COMPILER_INCLUDE_FREE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + callback_result_ptr: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ), +>; +pub type YR_COMPILER_RE_AST_CALLBACK_FUNC = ::std::option::Option< + unsafe extern "C" fn( + rule: *const YR_RULE, + string_identifier: *const ::std::os::raw::c_char, + re_ast: *const RE_AST, + user_data: *mut ::std::os::raw::c_void, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _YR_FIXUP { + pub ref_: YR_ARENA_REF, + pub next: *mut _YR_FIXUP, +} +pub type YR_FIXUP = _YR_FIXUP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_LOOP_CONTEXT { + pub start_ref: YR_ARENA_REF, + pub vars_count: ::std::os::raw::c_int, + pub vars: [YR_EXPRESSION; 2usize], + pub vars_internal_count: ::std::os::raw::c_int, +} +pub type YR_LOOP_CONTEXT = _YR_LOOP_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _YR_COMPILER { + pub arena: *mut YR_ARENA, + pub current_rule_idx: u32, + pub next_rule_idx: u32, + pub current_string_idx: u32, + pub current_namespace_idx: u32, + pub current_meta_idx: u32, + pub rules: *mut YR_RULES, + pub errors: ::std::os::raw::c_int, + pub current_line: ::std::os::raw::c_int, + pub last_error: ::std::os::raw::c_int, + pub last_error_line: ::std::os::raw::c_int, + pub error_recovery: jmp_buf, + pub automaton: *mut YR_AC_AUTOMATON, + pub rules_table: *mut YR_HASH_TABLE, + pub objects_table: *mut YR_HASH_TABLE, + pub strings_table: *mut YR_HASH_TABLE, + pub wildcard_identifiers_table: *mut YR_HASH_TABLE, + pub sz_table: *mut YR_HASH_TABLE, + pub fixup_stack_head: *mut YR_FIXUP, + pub num_namespaces: ::std::os::raw::c_int, + pub loop_: [YR_LOOP_CONTEXT; 4usize], + pub loop_index: ::std::os::raw::c_int, + pub loop_for_of_var_index: ::std::os::raw::c_int, + pub file_name_stack: [*mut ::std::os::raw::c_char; 16usize], + pub file_name_stack_ptr: ::std::os::raw::c_int, + pub last_error_extra_info: [::std::os::raw::c_char; 256usize], + pub lex_buf: [::std::os::raw::c_char; 8192usize], + pub lex_buf_ptr: *mut ::std::os::raw::c_char, + pub lex_buf_len: ::std::os::raw::c_ushort, + pub include_base_dir: [::std::os::raw::c_char; 1024usize], + pub user_data: *mut ::std::os::raw::c_void, + pub incl_clbk_user_data: *mut ::std::os::raw::c_void, + pub re_ast_clbk_user_data: *mut ::std::os::raw::c_void, + pub callback: YR_COMPILER_CALLBACK_FUNC, + pub include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + pub include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + pub re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + pub atoms_config: YR_ATOMS_CONFIG, +} +pub type YR_COMPILER = _YR_COMPILER; +extern "C" { + pub fn _yr_compiler_push_file_name( + compiler: *mut YR_COMPILER, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_pop_file_name(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn _yr_compiler_get_var_frame(compiler: *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_default_include_callback( + include_name: *const ::std::os::raw::c_char, + calling_rule_filename: *const ::std::os::raw::c_char, + calling_rule_namespace: *const ::std::os::raw::c_char, + user_data: *mut ::std::os::raw::c_void, + ) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn _yr_compiler_get_rule_by_idx(compiler: *mut YR_COMPILER, rule_idx: u32) -> *mut YR_RULE; +} +extern "C" { + pub fn _yr_compiler_store_string( + compiler: *mut YR_COMPILER, + string: *const ::std::os::raw::c_char, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _yr_compiler_store_data( + compiler: *mut YR_COMPILER, + data: *const ::std::os::raw::c_void, + data_length: usize, + ref_: *mut YR_ARENA_REF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_create(compiler: *mut *mut YR_COMPILER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_destroy(compiler: *mut YR_COMPILER); +} +extern "C" { + pub fn yr_compiler_set_callback( + compiler: *mut YR_COMPILER, + callback: YR_COMPILER_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_include_callback( + compiler: *mut YR_COMPILER, + include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC, + include_free: YR_COMPILER_INCLUDE_FREE_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_re_ast_callback( + compiler: *mut YR_COMPILER, + re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_compiler_set_atom_quality_table( + compiler: *mut YR_COMPILER, + table: *const ::std::os::raw::c_void, + entries: ::std::os::raw::c_int, + warning_threshold: ::std::os::raw::c_uchar, + ); +} +extern "C" { + pub fn yr_compiler_load_atom_quality_table( + compiler: *mut YR_COMPILER, + filename: *const ::std::os::raw::c_char, + warning_threshold: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_file( + compiler: *mut YR_COMPILER, + rules_file: *mut FILE, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_fd( + compiler: *mut YR_COMPILER, + rules_fd: ::std::os::raw::c_int, + namespace_: *const ::std::os::raw::c_char, + file_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_add_string( + compiler: *mut YR_COMPILER, + rules_string: *const ::std::os::raw::c_char, + namespace_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_error_message( + compiler: *mut YR_COMPILER, + buffer: *mut ::std::os::raw::c_char, + buffer_size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_get_current_file_name( + compiler: *mut YR_COMPILER, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_compiler_define_integer_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_boolean_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_float_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_define_string_variable( + compiler: *mut YR_COMPILER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_compiler_get_rules( + compiler: *mut YR_COMPILER, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +pub const _YR_CONFIG_NAME_YR_CONFIG_STACK_SIZE: _YR_CONFIG_NAME = 0; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_STRINGS_PER_RULE: _YR_CONFIG_NAME = 1; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_MATCH_DATA: _YR_CONFIG_NAME = 2; +pub const _YR_CONFIG_NAME_YR_CONFIG_MAX_PROCESS_MEMORY_CHUNK: _YR_CONFIG_NAME = 3; +pub const _YR_CONFIG_NAME_YR_CONFIG_LAST: _YR_CONFIG_NAME = 4; +pub type _YR_CONFIG_NAME = ::std::os::raw::c_uint; +pub use self::_YR_CONFIG_NAME as YR_CONFIG_NAME; +extern "C" { + pub fn yr_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint32(arg1: YR_CONFIG_NAME, arg2: u32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_set_configuration_uint64(arg1: YR_CONFIG_NAME, arg2: u64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration( + arg1: YR_CONFIG_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint32( + arg1: YR_CONFIG_NAME, + arg2: *mut u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_get_configuration_uint64( + arg1: YR_CONFIG_NAME, + arg2: *mut u64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_calloc(count: usize, size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_malloc(size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_realloc(ptr: *mut ::std::os::raw::c_void, size: usize) + -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn yr_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_strndup(str_: *const ::std::os::raw::c_char, n: usize) + -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn yr_free(ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn yr_heap_alloc() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_heap_free() -> ::std::os::raw::c_int; +} +pub type float_t = f32; +pub type double_t = f64; +extern "C" { + pub fn __fpclassify(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbit(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinf(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finite(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnan(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsig(__x: f64, __y: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignaling(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acos(__x: f64) -> f64; +} +extern "C" { + pub fn __acos(__x: f64) -> f64; +} +extern "C" { + pub fn asin(__x: f64) -> f64; +} +extern "C" { + pub fn __asin(__x: f64) -> f64; +} +extern "C" { + pub fn atan(__x: f64) -> f64; +} +extern "C" { + pub fn __atan(__x: f64) -> f64; +} +extern "C" { + pub fn atan2(__y: f64, __x: f64) -> f64; +} +extern "C" { + pub fn __atan2(__y: f64, __x: f64) -> f64; +} +extern "C" { + pub fn cos(__x: f64) -> f64; +} +extern "C" { + pub fn __cos(__x: f64) -> f64; +} +extern "C" { + pub fn sin(__x: f64) -> f64; +} +extern "C" { + pub fn __sin(__x: f64) -> f64; +} +extern "C" { + pub fn tan(__x: f64) -> f64; +} +extern "C" { + pub fn __tan(__x: f64) -> f64; +} +extern "C" { + pub fn cosh(__x: f64) -> f64; +} +extern "C" { + pub fn __cosh(__x: f64) -> f64; +} +extern "C" { + pub fn sinh(__x: f64) -> f64; +} +extern "C" { + pub fn __sinh(__x: f64) -> f64; +} +extern "C" { + pub fn tanh(__x: f64) -> f64; +} +extern "C" { + pub fn __tanh(__x: f64) -> f64; +} +extern "C" { + pub fn acosh(__x: f64) -> f64; +} +extern "C" { + pub fn __acosh(__x: f64) -> f64; +} +extern "C" { + pub fn asinh(__x: f64) -> f64; +} +extern "C" { + pub fn __asinh(__x: f64) -> f64; +} +extern "C" { + pub fn atanh(__x: f64) -> f64; +} +extern "C" { + pub fn __atanh(__x: f64) -> f64; +} +extern "C" { + pub fn exp(__x: f64) -> f64; +} +extern "C" { + pub fn __exp(__x: f64) -> f64; +} +extern "C" { + pub fn frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn log(__x: f64) -> f64; +} +extern "C" { + pub fn __log(__x: f64) -> f64; +} +extern "C" { + pub fn log10(__x: f64) -> f64; +} +extern "C" { + pub fn __log10(__x: f64) -> f64; +} +extern "C" { + pub fn modf(__x: f64, __iptr: *mut f64) -> f64; +} +extern "C" { + pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; +} +extern "C" { + pub fn expm1(__x: f64) -> f64; +} +extern "C" { + pub fn __expm1(__x: f64) -> f64; +} +extern "C" { + pub fn log1p(__x: f64) -> f64; +} +extern "C" { + pub fn __log1p(__x: f64) -> f64; +} +extern "C" { + pub fn logb(__x: f64) -> f64; +} +extern "C" { + pub fn __logb(__x: f64) -> f64; +} +extern "C" { + pub fn exp2(__x: f64) -> f64; +} +extern "C" { + pub fn __exp2(__x: f64) -> f64; +} +extern "C" { + pub fn log2(__x: f64) -> f64; +} +extern "C" { + pub fn __log2(__x: f64) -> f64; +} +extern "C" { + pub fn pow(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __pow(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn sqrt(__x: f64) -> f64; +} +extern "C" { + pub fn __sqrt(__x: f64) -> f64; +} +extern "C" { + pub fn hypot(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __hypot(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn cbrt(__x: f64) -> f64; +} +extern "C" { + pub fn __cbrt(__x: f64) -> f64; +} +extern "C" { + pub fn ceil(__x: f64) -> f64; +} +extern "C" { + pub fn __ceil(__x: f64) -> f64; +} +extern "C" { + pub fn fabs(__x: f64) -> f64; +} +extern "C" { + pub fn __fabs(__x: f64) -> f64; +} +extern "C" { + pub fn floor(__x: f64) -> f64; +} +extern "C" { + pub fn __floor(__x: f64) -> f64; +} +extern "C" { + pub fn fmod(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmod(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn isinf(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finite(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn drem(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __drem(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn significand(__x: f64) -> f64; +} +extern "C" { + pub fn __significand(__x: f64) -> f64; +} +extern "C" { + pub fn copysign(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __copysign(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn nan(__tagb: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn __nan(__tagb: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn isnan(__value: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0(arg1: f64) -> f64; +} +extern "C" { + pub fn __j0(arg1: f64) -> f64; +} +extern "C" { + pub fn j1(arg1: f64) -> f64; +} +extern "C" { + pub fn __j1(arg1: f64) -> f64; +} +extern "C" { + pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn __jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn y0(arg1: f64) -> f64; +} +extern "C" { + pub fn __y0(arg1: f64) -> f64; +} +extern "C" { + pub fn y1(arg1: f64) -> f64; +} +extern "C" { + pub fn __y1(arg1: f64) -> f64; +} +extern "C" { + pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn __yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64; +} +extern "C" { + pub fn erf(arg1: f64) -> f64; +} +extern "C" { + pub fn __erf(arg1: f64) -> f64; +} +extern "C" { + pub fn erfc(arg1: f64) -> f64; +} +extern "C" { + pub fn __erfc(arg1: f64) -> f64; +} +extern "C" { + pub fn lgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __lgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn tgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __tgamma(arg1: f64) -> f64; +} +extern "C" { + pub fn gamma(arg1: f64) -> f64; +} +extern "C" { + pub fn __gamma(arg1: f64) -> f64; +} +extern "C" { + pub fn lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn rint(__x: f64) -> f64; +} +extern "C" { + pub fn __rint(__x: f64) -> f64; +} +extern "C" { + pub fn nextafter(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __nextafter(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn nexttoward(__x: f64, __y: u128) -> f64; +} +extern "C" { + pub fn __nexttoward(__x: f64, __y: u128) -> f64; +} +extern "C" { + pub fn remainder(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __remainder(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn ilogb(__x: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogb(__x: f64) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn __scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64; +} +extern "C" { + pub fn nearbyint(__x: f64) -> f64; +} +extern "C" { + pub fn __nearbyint(__x: f64) -> f64; +} +extern "C" { + pub fn round(__x: f64) -> f64; +} +extern "C" { + pub fn __round(__x: f64) -> f64; +} +extern "C" { + pub fn trunc(__x: f64) -> f64; +} +extern "C" { + pub fn __trunc(__x: f64) -> f64; +} +extern "C" { + pub fn remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64; +} +extern "C" { + pub fn lrint(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrint(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrint(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrint(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lround(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lround(__x: f64) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llround(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llround(__x: f64) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdim(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fdim(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fmax(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmax(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fmin(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn __fmin(__x: f64, __y: f64) -> f64; +} +extern "C" { + pub fn fma(__x: f64, __y: f64, __z: f64) -> f64; +} +extern "C" { + pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; +} +extern "C" { + pub fn scalb(__x: f64, __n: f64) -> f64; +} +extern "C" { + pub fn __scalb(__x: f64, __n: f64) -> f64; +} +extern "C" { + pub fn __fpclassifyf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbitf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinff(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finitef(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnanf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsigf(__x: f32, __y: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignalingf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acosf(__x: f32) -> f32; +} +extern "C" { + pub fn __acosf(__x: f32) -> f32; +} +extern "C" { + pub fn asinf(__x: f32) -> f32; +} +extern "C" { + pub fn __asinf(__x: f32) -> f32; +} +extern "C" { + pub fn atanf(__x: f32) -> f32; +} +extern "C" { + pub fn __atanf(__x: f32) -> f32; +} +extern "C" { + pub fn atan2f(__y: f32, __x: f32) -> f32; +} +extern "C" { + pub fn __atan2f(__y: f32, __x: f32) -> f32; +} +extern "C" { + pub fn cosf(__x: f32) -> f32; +} +extern "C" { + pub fn __cosf(__x: f32) -> f32; +} +extern "C" { + pub fn sinf(__x: f32) -> f32; +} +extern "C" { + pub fn __sinf(__x: f32) -> f32; +} +extern "C" { + pub fn tanf(__x: f32) -> f32; +} +extern "C" { + pub fn __tanf(__x: f32) -> f32; +} +extern "C" { + pub fn coshf(__x: f32) -> f32; +} +extern "C" { + pub fn __coshf(__x: f32) -> f32; +} +extern "C" { + pub fn sinhf(__x: f32) -> f32; +} +extern "C" { + pub fn __sinhf(__x: f32) -> f32; +} +extern "C" { + pub fn tanhf(__x: f32) -> f32; +} +extern "C" { + pub fn __tanhf(__x: f32) -> f32; +} +extern "C" { + pub fn acoshf(__x: f32) -> f32; +} +extern "C" { + pub fn __acoshf(__x: f32) -> f32; +} +extern "C" { + pub fn asinhf(__x: f32) -> f32; +} +extern "C" { + pub fn __asinhf(__x: f32) -> f32; +} +extern "C" { + pub fn atanhf(__x: f32) -> f32; +} +extern "C" { + pub fn __atanhf(__x: f32) -> f32; +} +extern "C" { + pub fn expf(__x: f32) -> f32; +} +extern "C" { + pub fn __expf(__x: f32) -> f32; +} +extern "C" { + pub fn frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn logf(__x: f32) -> f32; +} +extern "C" { + pub fn __logf(__x: f32) -> f32; +} +extern "C" { + pub fn log10f(__x: f32) -> f32; +} +extern "C" { + pub fn __log10f(__x: f32) -> f32; +} +extern "C" { + pub fn modff(__x: f32, __iptr: *mut f32) -> f32; +} +extern "C" { + pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; +} +extern "C" { + pub fn expm1f(__x: f32) -> f32; +} +extern "C" { + pub fn __expm1f(__x: f32) -> f32; +} +extern "C" { + pub fn log1pf(__x: f32) -> f32; +} +extern "C" { + pub fn __log1pf(__x: f32) -> f32; +} +extern "C" { + pub fn logbf(__x: f32) -> f32; +} +extern "C" { + pub fn __logbf(__x: f32) -> f32; +} +extern "C" { + pub fn exp2f(__x: f32) -> f32; +} +extern "C" { + pub fn __exp2f(__x: f32) -> f32; +} +extern "C" { + pub fn log2f(__x: f32) -> f32; +} +extern "C" { + pub fn __log2f(__x: f32) -> f32; +} +extern "C" { + pub fn powf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __powf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn sqrtf(__x: f32) -> f32; +} +extern "C" { + pub fn __sqrtf(__x: f32) -> f32; +} +extern "C" { + pub fn hypotf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __hypotf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn cbrtf(__x: f32) -> f32; +} +extern "C" { + pub fn __cbrtf(__x: f32) -> f32; +} +extern "C" { + pub fn ceilf(__x: f32) -> f32; +} +extern "C" { + pub fn __ceilf(__x: f32) -> f32; +} +extern "C" { + pub fn fabsf(__x: f32) -> f32; +} +extern "C" { + pub fn __fabsf(__x: f32) -> f32; +} +extern "C" { + pub fn floorf(__x: f32) -> f32; +} +extern "C" { + pub fn __floorf(__x: f32) -> f32; +} +extern "C" { + pub fn fmodf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fmodf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn isinff(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finitef(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dremf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __dremf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn significandf(__x: f32) -> f32; +} +extern "C" { + pub fn __significandf(__x: f32) -> f32; +} +extern "C" { + pub fn copysignf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __copysignf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn nanf(__tagb: *const ::std::os::raw::c_char) -> f32; +} +extern "C" { + pub fn __nanf(__tagb: *const ::std::os::raw::c_char) -> f32; +} +extern "C" { + pub fn isnanf(__value: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0f(arg1: f32) -> f32; +} +extern "C" { + pub fn __j0f(arg1: f32) -> f32; +} +extern "C" { + pub fn j1f(arg1: f32) -> f32; +} +extern "C" { + pub fn __j1f(arg1: f32) -> f32; +} +extern "C" { + pub fn jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn __jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn y0f(arg1: f32) -> f32; +} +extern "C" { + pub fn __y0f(arg1: f32) -> f32; +} +extern "C" { + pub fn y1f(arg1: f32) -> f32; +} +extern "C" { + pub fn __y1f(arg1: f32) -> f32; +} +extern "C" { + pub fn ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn __ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32; +} +extern "C" { + pub fn erff(arg1: f32) -> f32; +} +extern "C" { + pub fn __erff(arg1: f32) -> f32; +} +extern "C" { + pub fn erfcf(arg1: f32) -> f32; +} +extern "C" { + pub fn __erfcf(arg1: f32) -> f32; +} +extern "C" { + pub fn lgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __lgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn tgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __tgammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn gammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn __gammaf(arg1: f32) -> f32; +} +extern "C" { + pub fn lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn rintf(__x: f32) -> f32; +} +extern "C" { + pub fn __rintf(__x: f32) -> f32; +} +extern "C" { + pub fn nextafterf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __nextafterf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn nexttowardf(__x: f32, __y: u128) -> f32; +} +extern "C" { + pub fn __nexttowardf(__x: f32, __y: u128) -> f32; +} +extern "C" { + pub fn remainderf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __remainderf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn ilogbf(__x: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogbf(__x: f32) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32; +} +extern "C" { + pub fn __scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32; +} +extern "C" { + pub fn nearbyintf(__x: f32) -> f32; +} +extern "C" { + pub fn __nearbyintf(__x: f32) -> f32; +} +extern "C" { + pub fn roundf(__x: f32) -> f32; +} +extern "C" { + pub fn __roundf(__x: f32) -> f32; +} +extern "C" { + pub fn truncf(__x: f32) -> f32; +} +extern "C" { + pub fn __truncf(__x: f32) -> f32; +} +extern "C" { + pub fn remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32; +} +extern "C" { + pub fn lrintf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrintf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrintf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrintf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lroundf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lroundf(__x: f32) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llroundf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llroundf(__x: f32) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdimf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fdimf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fmaxf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fmaxf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fminf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn __fminf(__x: f32, __y: f32) -> f32; +} +extern "C" { + pub fn fmaf(__x: f32, __y: f32, __z: f32) -> f32; +} +extern "C" { + pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; +} +extern "C" { + pub fn scalbf(__x: f32, __n: f32) -> f32; +} +extern "C" { + pub fn __scalbf(__x: f32, __n: f32) -> f32; +} +extern "C" { + pub fn __fpclassifyl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __signbitl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isinfl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __finitel(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isnanl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iseqsigl(__x: u128, __y: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __issignalingl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn acosl(__x: u128) -> u128; +} +extern "C" { + pub fn __acosl(__x: u128) -> u128; +} +extern "C" { + pub fn asinl(__x: u128) -> u128; +} +extern "C" { + pub fn __asinl(__x: u128) -> u128; +} +extern "C" { + pub fn atanl(__x: u128) -> u128; +} +extern "C" { + pub fn __atanl(__x: u128) -> u128; +} +extern "C" { + pub fn atan2l(__y: u128, __x: u128) -> u128; +} +extern "C" { + pub fn __atan2l(__y: u128, __x: u128) -> u128; +} +extern "C" { + pub fn cosl(__x: u128) -> u128; +} +extern "C" { + pub fn __cosl(__x: u128) -> u128; +} +extern "C" { + pub fn sinl(__x: u128) -> u128; +} +extern "C" { + pub fn __sinl(__x: u128) -> u128; +} +extern "C" { + pub fn tanl(__x: u128) -> u128; +} +extern "C" { + pub fn __tanl(__x: u128) -> u128; +} +extern "C" { + pub fn coshl(__x: u128) -> u128; +} +extern "C" { + pub fn __coshl(__x: u128) -> u128; +} +extern "C" { + pub fn sinhl(__x: u128) -> u128; +} +extern "C" { + pub fn __sinhl(__x: u128) -> u128; +} +extern "C" { + pub fn tanhl(__x: u128) -> u128; +} +extern "C" { + pub fn __tanhl(__x: u128) -> u128; +} +extern "C" { + pub fn acoshl(__x: u128) -> u128; +} +extern "C" { + pub fn __acoshl(__x: u128) -> u128; +} +extern "C" { + pub fn asinhl(__x: u128) -> u128; +} +extern "C" { + pub fn __asinhl(__x: u128) -> u128; +} +extern "C" { + pub fn atanhl(__x: u128) -> u128; +} +extern "C" { + pub fn __atanhl(__x: u128) -> u128; +} +extern "C" { + pub fn expl(__x: u128) -> u128; +} +extern "C" { + pub fn __expl(__x: u128) -> u128; +} +extern "C" { + pub fn frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn logl(__x: u128) -> u128; +} +extern "C" { + pub fn __logl(__x: u128) -> u128; +} +extern "C" { + pub fn log10l(__x: u128) -> u128; +} +extern "C" { + pub fn __log10l(__x: u128) -> u128; +} +extern "C" { + pub fn modfl(__x: u128, __iptr: *mut u128) -> u128; +} +extern "C" { + pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; +} +extern "C" { + pub fn expm1l(__x: u128) -> u128; +} +extern "C" { + pub fn __expm1l(__x: u128) -> u128; +} +extern "C" { + pub fn log1pl(__x: u128) -> u128; +} +extern "C" { + pub fn __log1pl(__x: u128) -> u128; +} +extern "C" { + pub fn logbl(__x: u128) -> u128; +} +extern "C" { + pub fn __logbl(__x: u128) -> u128; +} +extern "C" { + pub fn exp2l(__x: u128) -> u128; +} +extern "C" { + pub fn __exp2l(__x: u128) -> u128; +} +extern "C" { + pub fn log2l(__x: u128) -> u128; +} +extern "C" { + pub fn __log2l(__x: u128) -> u128; +} +extern "C" { + pub fn powl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __powl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn sqrtl(__x: u128) -> u128; +} +extern "C" { + pub fn __sqrtl(__x: u128) -> u128; +} +extern "C" { + pub fn hypotl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __hypotl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn cbrtl(__x: u128) -> u128; +} +extern "C" { + pub fn __cbrtl(__x: u128) -> u128; +} +extern "C" { + pub fn ceill(__x: u128) -> u128; +} +extern "C" { + pub fn __ceill(__x: u128) -> u128; +} +extern "C" { + pub fn fabsl(__x: u128) -> u128; +} +extern "C" { + pub fn __fabsl(__x: u128) -> u128; +} +extern "C" { + pub fn floorl(__x: u128) -> u128; +} +extern "C" { + pub fn __floorl(__x: u128) -> u128; +} +extern "C" { + pub fn fmodl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fmodl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn isinfl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn finitel(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn dreml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __dreml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn significandl(__x: u128) -> u128; +} +extern "C" { + pub fn __significandl(__x: u128) -> u128; +} +extern "C" { + pub fn copysignl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __copysignl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn nanl(__tagb: *const ::std::os::raw::c_char) -> u128; +} +extern "C" { + pub fn __nanl(__tagb: *const ::std::os::raw::c_char) -> u128; +} +extern "C" { + pub fn isnanl(__value: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn j0l(arg1: u128) -> u128; +} +extern "C" { + pub fn __j0l(arg1: u128) -> u128; +} +extern "C" { + pub fn j1l(arg1: u128) -> u128; +} +extern "C" { + pub fn __j1l(arg1: u128) -> u128; +} +extern "C" { + pub fn jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn __jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn y0l(arg1: u128) -> u128; +} +extern "C" { + pub fn __y0l(arg1: u128) -> u128; +} +extern "C" { + pub fn y1l(arg1: u128) -> u128; +} +extern "C" { + pub fn __y1l(arg1: u128) -> u128; +} +extern "C" { + pub fn ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn __ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128; +} +extern "C" { + pub fn erfl(arg1: u128) -> u128; +} +extern "C" { + pub fn __erfl(arg1: u128) -> u128; +} +extern "C" { + pub fn erfcl(arg1: u128) -> u128; +} +extern "C" { + pub fn __erfcl(arg1: u128) -> u128; +} +extern "C" { + pub fn lgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __lgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn tgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __tgammal(arg1: u128) -> u128; +} +extern "C" { + pub fn gammal(arg1: u128) -> u128; +} +extern "C" { + pub fn __gammal(arg1: u128) -> u128; +} +extern "C" { + pub fn lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn rintl(__x: u128) -> u128; +} +extern "C" { + pub fn __rintl(__x: u128) -> u128; +} +extern "C" { + pub fn nextafterl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __nextafterl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn nexttowardl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __nexttowardl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn remainderl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __remainderl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn ilogbl(__x: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __ilogbl(__x: u128) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128; +} +extern "C" { + pub fn __scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128; +} +extern "C" { + pub fn nearbyintl(__x: u128) -> u128; +} +extern "C" { + pub fn __nearbyintl(__x: u128) -> u128; +} +extern "C" { + pub fn roundl(__x: u128) -> u128; +} +extern "C" { + pub fn __roundl(__x: u128) -> u128; +} +extern "C" { + pub fn truncl(__x: u128) -> u128; +} +extern "C" { + pub fn __truncl(__x: u128) -> u128; +} +extern "C" { + pub fn remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128; +} +extern "C" { + pub fn lrintl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lrintl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llrintl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llrintl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lroundl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn __lroundl(__x: u128) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llroundl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __llroundl(__x: u128) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn fdiml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fdiml(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fmaxl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fmaxl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fminl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn __fminl(__x: u128, __y: u128) -> u128; +} +extern "C" { + pub fn fmal(__x: u128, __y: u128, __z: u128) -> u128; +} +extern "C" { + pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; +} +extern "C" { + pub fn scalbl(__x: u128, __n: u128) -> u128; +} +extern "C" { + pub fn __scalbl(__x: u128, __n: u128) -> u128; +} +extern "C" { + pub static mut signgam: ::std::os::raw::c_int; +} +pub type _bindgen_ty_12 = ::std::os::raw::c_uint; +pub type YR_SCANNER = YR_SCAN_CONTEXT; +extern "C" { + pub fn yr_scanner_create( + rules: *mut YR_RULES, + scanner: *mut *mut YR_SCANNER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_destroy(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_set_callback( + scanner: *mut YR_SCANNER, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn yr_scanner_set_timeout(scanner: *mut YR_SCANNER, timeout: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_set_flags(scanner: *mut YR_SCANNER, flags: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_scanner_define_integer_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_boolean_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_float_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_define_string_variable( + scanner: *mut YR_SCANNER, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem_blocks( + scanner: *mut YR_SCANNER, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_mem( + scanner: *mut YR_SCANNER, + buffer: *const u8, + buffer_size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_file( + scanner: *mut YR_SCANNER, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_fd( + scanner: *mut YR_SCANNER, + fd: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_scan_proc( + scanner: *mut YR_SCANNER, + pid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scanner_last_error_rule(scanner: *mut YR_SCANNER) -> *mut YR_RULE; +} +extern "C" { + pub fn yr_scanner_last_error_string(scanner: *mut YR_SCANNER) -> *mut YR_STRING; +} +extern "C" { + pub fn yr_scanner_get_profiling_info(scanner: *mut YR_SCANNER) -> *mut YR_RULE_PROFILING_INFO; +} +extern "C" { + pub fn yr_scanner_reset_profiling_info(scanner: *mut YR_SCANNER); +} +extern "C" { + pub fn yr_scanner_print_profiling_info(scanner: *mut YR_SCANNER) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem_blocks( + rules: *mut YR_RULES, + iterator: *mut YR_MEMORY_BLOCK_ITERATOR, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_mem( + rules: *mut YR_RULES, + buffer: *const u8, + buffer_size: usize, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_file( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_fd( + rules: *mut YR_RULES, + fd: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_scan_proc( + rules: *mut YR_RULES, + pid: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + callback: YR_CALLBACK_FUNC, + user_data: *mut ::std::os::raw::c_void, + timeout: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save( + rules: *mut YR_RULES, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_save_stream( + rules: *mut YR_RULES, + stream: *mut YR_STREAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load( + filename: *const ::std::os::raw::c_char, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_load_stream( + stream: *mut YR_STREAM, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_destroy(rules: *mut YR_RULES) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_integer_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: i64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_boolean_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_float_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: f64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_define_string_variable( + rules: *mut YR_RULES, + identifier: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rules_get_stats( + rules: *mut YR_RULES, + stats: *mut YR_RULES_STATS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_rule_disable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rule_enable(rule: *mut YR_RULE); +} +extern "C" { + pub fn yr_rules_from_arena( + arena: *mut YR_ARENA, + rules: *mut *mut YR_RULES, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_scan_verify_match( + context: *mut YR_SCAN_CONTEXT, + ac_match: *mut YR_AC_MATCH, + data: *const u8, + data_size: usize, + data_base: u64, + offset: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_execute_code(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_create( + type_: i8, + identifier: *const ::std::os::raw::c_char, + parent: *mut YR_OBJECT, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_canary(object: *mut YR_OBJECT, canary: ::std::os::raw::c_int); +} +extern "C" { + pub fn yr_object_function_create( + identifier: *const ::std::os::raw::c_char, + arguments_fmt: *const ::std::os::raw::c_char, + return_fmt: *const ::std::os::raw::c_char, + func: YR_MODULE_FUNC, + parent: *mut YR_OBJECT, + function: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_from_external_variable( + external: *mut YR_EXTERNAL_VARIABLE, + object: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_destroy(object: *mut YR_OBJECT); +} +extern "C" { + pub fn yr_object_copy( + object: *mut YR_OBJECT, + object_copy: *mut *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_lookup_field( + object: *mut YR_OBJECT, + field_name: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_lookup( + root: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + pattern: *const ::std::os::raw::c_char, + ... + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_has_undefined_value( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn yr_object_get_float( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> f64; +} +extern "C" { + pub fn yr_object_get_integer( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> i64; +} +extern "C" { + pub fn yr_object_get_string( + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> *mut SIZED_STRING; +} +extern "C" { + pub fn yr_object_set_integer( + value: i64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_float( + value: f64, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_set_string( + value: *const ::std::os::raw::c_char, + len: usize, + object: *mut YR_OBJECT, + field: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_length(object: *mut YR_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_array_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + index: ::std::os::raw::c_int, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_array_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_dict_get_item( + object: *mut YR_OBJECT, + flags: ::std::os::raw::c_int, + key: *const ::std::os::raw::c_char, + ) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_dict_set_item( + object: *mut YR_OBJECT, + item: *mut YR_OBJECT, + key: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_structure_set_member( + object: *mut YR_OBJECT, + member: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_object_get_root(object: *mut YR_OBJECT) -> *mut YR_OBJECT; +} +extern "C" { + pub fn yr_object_print_data( + object: *mut YR_OBJECT, + indent: ::std::os::raw::c_int, + print_identifier: ::std::os::raw::c_int, + ); +} +pub type YR_EXT_INITIALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_FINALIZE_FUNC = + ::std::option::Option ::std::os::raw::c_int>; +pub type YR_EXT_DECLARATIONS_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_LOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn( + context: *mut YR_SCAN_CONTEXT, + module_object: *mut YR_OBJECT, + module_data: *mut ::std::os::raw::c_void, + module_data_size: usize, + ) -> ::std::os::raw::c_int, +>; +pub type YR_EXT_UNLOAD_FUNC = ::std::option::Option< + unsafe extern "C" fn(module_object: *mut YR_OBJECT) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE { + pub name: *mut ::std::os::raw::c_char, + pub declarations: YR_EXT_DECLARATIONS_FUNC, + pub load: YR_EXT_LOAD_FUNC, + pub unload: YR_EXT_UNLOAD_FUNC, + pub initialize: YR_EXT_INITIALIZE_FUNC, + pub finalize: YR_EXT_FINALIZE_FUNC, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct YR_MODULE_IMPORT { + pub module_name: *const ::std::os::raw::c_char, + pub module_data: *mut ::std::os::raw::c_void, + pub module_data_size: usize, +} +extern "C" { + pub fn yr_modules_initialize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_finalize() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_do_declarations( + module_name: *const ::std::os::raw::c_char, + main_structure: *mut YR_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_load( + module_name: *const ::std::os::raw::c_char, + context: *mut YR_SCAN_CONTEXT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn yr_modules_unload_all(context: *mut YR_SCAN_CONTEXT) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_data { + pub _address: u8, +} +pub type size_t = usize; From eb43475bc648307b5170557a858cfb72a1c0ba42 Mon Sep 17 00:00:00 2001 From: rustysec Date: Wed, 8 Feb 2023 11:43:47 -0800 Subject: [PATCH 3/3] build.rs: fixed old typo --- yara-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yara-sys/build.rs b/yara-sys/build.rs index 99abfa6..db2653a 100644 --- a/yara-sys/build.rs +++ b/yara-sys/build.rs @@ -315,7 +315,7 @@ mod bindings { fs::copy(binding_path, out_path).expect("Could not copy bindings to output directory"); } else { println!( - "cargo:warning=Bindigs for target=\"{}\" does not exists", + "cargo:warning=Bindings for target=\"{}\" does not exists", env::var("TARGET").unwrap() ); std::process::exit(1);