diff --git a/leechcore-sys/build.rs b/leechcore-sys/build.rs index 3270013..24c842d 100644 --- a/leechcore-sys/build.rs +++ b/leechcore-sys/build.rs @@ -20,7 +20,7 @@ fn os_define() -> &'static str { #[cfg(target_os = "macos")] fn os_define() -> &'static str { - "LINUX" + "MACOS" } fn build() { @@ -61,7 +61,22 @@ fn build() { .flag("-D_GNU_SOURCE"); // EXPORTED_FUNCTION= to not export any symbols - if !target().contains("windows") { + if target().contains("windows") { + // copy pre-compiled idl file into the leechcore folder + std::fs::copy("gen/leechrpc_c.c", "src/leechcore/leechcore/leechrpc_c.c") + .expect("Failed to copy leechrpc_c.c"); + std::fs::copy("gen/leechrpc_h.h", "src/leechcore/leechcore/leechrpc_h.h") + .expect("Failed to copy leechrpc_h.h"); + + // link against required libraries + println!("cargo:rustc-link-lib=rpcrt4"); + println!("cargo:rustc-link-lib=setupapi"); + println!("cargo:rustc-link-lib=winusb"); + println!("cargo:rustc-link-lib=ws2_32"); + println!("cargo:rustc-link-lib=secur32"); + println!("cargo:rustc-link-lib=credui"); + println!("cargo:rustc-link-lib=ole32"); + } else if target().contains("linux") { // setup additional flags cfg.flag("-fPIC"); cfg.flag("-pthread"); @@ -95,21 +110,42 @@ fn build() { { cfg.flag(flag); } - } else { - // copy pre-compiled idl file into the leechcore folder - std::fs::copy("gen/leechrpc_c.c", "src/leechcore/leechcore/leechrpc_c.c") - .expect("Failed to copy leechrpc_c.c"); - std::fs::copy("gen/leechrpc_h.h", "src/leechcore/leechcore/leechrpc_h.h") - .expect("Failed to copy leechrpc_h.h"); + } else if target().contains("macos") { + cfg.flag("-D_FILE_OFFSET_BITS=64"); + cfg.flag("-fPIC"); + cfg.flag("-pthread"); + cfg.flag("-fvisibility=hidden"); + cfg.flag("-fstack-protector-strong"); + cfg.flag("-D_FORTIFY_SOURCE=2"); + cfg.flag("-O1"); // this is necessary, otherwise inline funcs in leechcore will result in undefined external symbols + cfg.flag("-Wall"); + cfg.flag("-Wno-multichar"); + cfg.flag("-Wno-unused-result"); + cfg.flag("-Wno-unused-variable"); + cfg.flag("-Wno-unused-value"); + cfg.flag("-Wno-pointer-to-int-cast"); + cfg.flag("-Wno-int-to-pointer-cast"); - // link against required libraries - println!("cargo:rustc-link-lib=rpcrt4"); - println!("cargo:rustc-link-lib=setupapi"); - println!("cargo:rustc-link-lib=winusb"); - println!("cargo:rustc-link-lib=ws2_32"); - println!("cargo:rustc-link-lib=secur32"); - println!("cargo:rustc-link-lib=credui"); - println!("cargo:rustc-link-lib=ole32"); + if cfg!(debug_assertions) { + cfg.flag("-O0"); + cfg.flag("-fsanitize=address"); + } + + cfg.flag("-g"); + cfg.flag("-ldl"); + cfg.flag("-Wl,-rpath,@loader_path"); + cfg.flag("-mmacosx-version-min=11.0"); + + // libary linking search + println!("cargo:rustc-link-search=."); + println!("cargo:rustc-link-lib=dylib=leechcore"); + println!("cargo:rustc-link-lib=dylib=vmm"); + + // arch specification (not needed for now) + // let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default(); + // cfg.flag("-arch").flag("x86_64"); // or "arm64" + // cfg.flag("-arch").flag("arm64"); + // cfg.flag("-arch").flag(target_arch); } cfg.compile("libleechcore.a"); diff --git a/leechcore-sys/src/leechcore_mac.rs b/leechcore-sys/src/leechcore_mac.rs new file mode 100644 index 0000000..2956ad2 --- /dev/null +++ b/leechcore-sys/src/leechcore_mac.rs @@ -0,0 +1,3904 @@ +/* automatically generated by rust-bindgen 0.71.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] + fn extract_bit(byte: u8, index: usize) -> bool { + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + byte | mask + } else { + byte & !mask + } + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } +} +#[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 __PRI_8_LENGTH_MODIFIER__: &[u8; 3] = b"hh\0"; +pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0"; +pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0"; +pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0"; +pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0"; +pub const PRId8: &[u8; 4] = b"hhd\0"; +pub const PRIi8: &[u8; 4] = b"hhi\0"; +pub const PRIo8: &[u8; 4] = b"hho\0"; +pub const PRIu8: &[u8; 4] = b"hhu\0"; +pub const PRIx8: &[u8; 4] = b"hhx\0"; +pub const PRIX8: &[u8; 4] = b"hhX\0"; +pub const PRId16: &[u8; 3] = b"hd\0"; +pub const PRIi16: &[u8; 3] = b"hi\0"; +pub const PRIo16: &[u8; 3] = b"ho\0"; +pub const PRIu16: &[u8; 3] = b"hu\0"; +pub const PRIx16: &[u8; 3] = b"hx\0"; +pub const PRIX16: &[u8; 3] = b"hX\0"; +pub const PRId32: &[u8; 2] = b"d\0"; +pub const PRIi32: &[u8; 2] = b"i\0"; +pub const PRIo32: &[u8; 2] = b"o\0"; +pub const PRIu32: &[u8; 2] = b"u\0"; +pub const PRIx32: &[u8; 2] = b"x\0"; +pub const PRIX32: &[u8; 2] = b"X\0"; +pub const PRId64: &[u8; 4] = b"lld\0"; +pub const PRIi64: &[u8; 4] = b"lli\0"; +pub const PRIo64: &[u8; 4] = b"llo\0"; +pub const PRIu64: &[u8; 4] = b"llu\0"; +pub const PRIx64: &[u8; 4] = b"llx\0"; +pub const PRIX64: &[u8; 4] = b"llX\0"; +pub const PRIdLEAST8: &[u8; 4] = b"hhd\0"; +pub const PRIiLEAST8: &[u8; 4] = b"hhi\0"; +pub const PRIoLEAST8: &[u8; 4] = b"hho\0"; +pub const PRIuLEAST8: &[u8; 4] = b"hhu\0"; +pub const PRIxLEAST8: &[u8; 4] = b"hhx\0"; +pub const PRIXLEAST8: &[u8; 4] = b"hhX\0"; +pub const PRIdLEAST16: &[u8; 3] = b"hd\0"; +pub const PRIiLEAST16: &[u8; 3] = b"hi\0"; +pub const PRIoLEAST16: &[u8; 3] = b"ho\0"; +pub const PRIuLEAST16: &[u8; 3] = b"hu\0"; +pub const PRIxLEAST16: &[u8; 3] = b"hx\0"; +pub const PRIXLEAST16: &[u8; 3] = b"hX\0"; +pub const PRIdLEAST32: &[u8; 2] = b"d\0"; +pub const PRIiLEAST32: &[u8; 2] = b"i\0"; +pub const PRIoLEAST32: &[u8; 2] = b"o\0"; +pub const PRIuLEAST32: &[u8; 2] = b"u\0"; +pub const PRIxLEAST32: &[u8; 2] = b"x\0"; +pub const PRIXLEAST32: &[u8; 2] = b"X\0"; +pub const PRIdLEAST64: &[u8; 4] = b"lld\0"; +pub const PRIiLEAST64: &[u8; 4] = b"lli\0"; +pub const PRIoLEAST64: &[u8; 4] = b"llo\0"; +pub const PRIuLEAST64: &[u8; 4] = b"llu\0"; +pub const PRIxLEAST64: &[u8; 4] = b"llx\0"; +pub const PRIXLEAST64: &[u8; 4] = b"llX\0"; +pub const PRIdFAST8: &[u8; 4] = b"hhd\0"; +pub const PRIiFAST8: &[u8; 4] = b"hhi\0"; +pub const PRIoFAST8: &[u8; 4] = b"hho\0"; +pub const PRIuFAST8: &[u8; 4] = b"hhu\0"; +pub const PRIxFAST8: &[u8; 4] = b"hhx\0"; +pub const PRIXFAST8: &[u8; 4] = b"hhX\0"; +pub const PRIdFAST16: &[u8; 3] = b"hd\0"; +pub const PRIiFAST16: &[u8; 3] = b"hi\0"; +pub const PRIoFAST16: &[u8; 3] = b"ho\0"; +pub const PRIuFAST16: &[u8; 3] = b"hu\0"; +pub const PRIxFAST16: &[u8; 3] = b"hx\0"; +pub const PRIXFAST16: &[u8; 3] = b"hX\0"; +pub const PRIdFAST32: &[u8; 2] = b"d\0"; +pub const PRIiFAST32: &[u8; 2] = b"i\0"; +pub const PRIoFAST32: &[u8; 2] = b"o\0"; +pub const PRIuFAST32: &[u8; 2] = b"u\0"; +pub const PRIxFAST32: &[u8; 2] = b"x\0"; +pub const PRIXFAST32: &[u8; 2] = b"X\0"; +pub const PRIdFAST64: &[u8; 4] = b"lld\0"; +pub const PRIiFAST64: &[u8; 4] = b"lli\0"; +pub const PRIoFAST64: &[u8; 4] = b"llo\0"; +pub const PRIuFAST64: &[u8; 4] = b"llu\0"; +pub const PRIxFAST64: &[u8; 4] = b"llx\0"; +pub const PRIXFAST64: &[u8; 4] = b"llX\0"; +pub const PRIdPTR: &[u8; 3] = b"ld\0"; +pub const PRIiPTR: &[u8; 3] = b"li\0"; +pub const PRIoPTR: &[u8; 3] = b"lo\0"; +pub const PRIuPTR: &[u8; 3] = b"lu\0"; +pub const PRIxPTR: &[u8; 3] = b"lx\0"; +pub const PRIXPTR: &[u8; 3] = b"lX\0"; +pub const PRIdMAX: &[u8; 3] = b"jd\0"; +pub const PRIiMAX: &[u8; 3] = b"ji\0"; +pub const PRIoMAX: &[u8; 3] = b"jo\0"; +pub const PRIuMAX: &[u8; 3] = b"ju\0"; +pub const PRIxMAX: &[u8; 3] = b"jx\0"; +pub const PRIXMAX: &[u8; 3] = b"jX\0"; +pub const SCNd8: &[u8; 4] = b"hhd\0"; +pub const SCNi8: &[u8; 4] = b"hhi\0"; +pub const SCNo8: &[u8; 4] = b"hho\0"; +pub const SCNu8: &[u8; 4] = b"hhu\0"; +pub const SCNx8: &[u8; 4] = b"hhx\0"; +pub const SCNd16: &[u8; 3] = b"hd\0"; +pub const SCNi16: &[u8; 3] = b"hi\0"; +pub const SCNo16: &[u8; 3] = b"ho\0"; +pub const SCNu16: &[u8; 3] = b"hu\0"; +pub const SCNx16: &[u8; 3] = b"hx\0"; +pub const SCNd32: &[u8; 2] = b"d\0"; +pub const SCNi32: &[u8; 2] = b"i\0"; +pub const SCNo32: &[u8; 2] = b"o\0"; +pub const SCNu32: &[u8; 2] = b"u\0"; +pub const SCNx32: &[u8; 2] = b"x\0"; +pub const SCNd64: &[u8; 4] = b"lld\0"; +pub const SCNi64: &[u8; 4] = b"lli\0"; +pub const SCNo64: &[u8; 4] = b"llo\0"; +pub const SCNu64: &[u8; 4] = b"llu\0"; +pub const SCNx64: &[u8; 4] = b"llx\0"; +pub const SCNdLEAST8: &[u8; 4] = b"hhd\0"; +pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; +pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; +pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; +pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; +pub const SCNdLEAST16: &[u8; 3] = b"hd\0"; +pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; +pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; +pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; +pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; +pub const SCNdLEAST32: &[u8; 2] = b"d\0"; +pub const SCNiLEAST32: &[u8; 2] = b"i\0"; +pub const SCNoLEAST32: &[u8; 2] = b"o\0"; +pub const SCNuLEAST32: &[u8; 2] = b"u\0"; +pub const SCNxLEAST32: &[u8; 2] = b"x\0"; +pub const SCNdLEAST64: &[u8; 4] = b"lld\0"; +pub const SCNiLEAST64: &[u8; 4] = b"lli\0"; +pub const SCNoLEAST64: &[u8; 4] = b"llo\0"; +pub const SCNuLEAST64: &[u8; 4] = b"llu\0"; +pub const SCNxLEAST64: &[u8; 4] = b"llx\0"; +pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; +pub const SCNdFAST16: &[u8; 3] = b"hd\0"; +pub const SCNiFAST16: &[u8; 3] = b"hi\0"; +pub const SCNoFAST16: &[u8; 3] = b"ho\0"; +pub const SCNuFAST16: &[u8; 3] = b"hu\0"; +pub const SCNxFAST16: &[u8; 3] = b"hx\0"; +pub const SCNdFAST32: &[u8; 2] = b"d\0"; +pub const SCNiFAST32: &[u8; 2] = b"i\0"; +pub const SCNoFAST32: &[u8; 2] = b"o\0"; +pub const SCNuFAST32: &[u8; 2] = b"u\0"; +pub const SCNxFAST32: &[u8; 2] = b"x\0"; +pub const SCNdFAST64: &[u8; 4] = b"lld\0"; +pub const SCNiFAST64: &[u8; 4] = b"lli\0"; +pub const SCNoFAST64: &[u8; 4] = b"llo\0"; +pub const SCNuFAST64: &[u8; 4] = b"llu\0"; +pub const SCNxFAST64: &[u8; 4] = b"llx\0"; +pub const SCNdPTR: &[u8; 3] = b"ld\0"; +pub const SCNiPTR: &[u8; 3] = b"li\0"; +pub const SCNoPTR: &[u8; 3] = b"lo\0"; +pub const SCNuPTR: &[u8; 3] = b"lu\0"; +pub const SCNxPTR: &[u8; 3] = b"lx\0"; +pub const SCNdMAX: &[u8; 3] = b"jd\0"; +pub const SCNiMAX: &[u8; 3] = b"ji\0"; +pub const SCNoMAX: &[u8; 3] = b"jo\0"; +pub const SCNuMAX: &[u8; 3] = b"ju\0"; +pub const SCNxMAX: &[u8; 3] = b"jx\0"; +pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1; +pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1; +pub const __DARWIN_ONLY_VERS_1050: u32 = 1; +pub const __DARWIN_UNIX03: u32 = 1; +pub const __DARWIN_64_BIT_INO_T: u32 = 1; +pub const __DARWIN_VERS_1050: u32 = 1; +pub const __DARWIN_NON_CANCELABLE: u32 = 0; +pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0"; +pub const __DARWIN_C_ANSI: u32 = 4096; +pub const __DARWIN_C_FULL: u32 = 900000; +pub const __DARWIN_C_LEVEL: u32 = 900000; +pub const __STDC_WANT_LIB_EXT1__: u32 = 1; +pub const __DARWIN_NO_LONG_LONG: u32 = 0; +pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1; +pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1; +pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3; +pub const __has_ptrcheck: u32 = 0; +pub const __API_TO_BE_DEPRECATED: 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 __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 __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 __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 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 __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 = 120300; +pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; +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 __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 __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 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_CURRENT: u32 = 5; +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_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 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 MAX_PATH: u32 = 260; +pub const LC_CONFIG_VERSION: u32 = 3237806082; +pub const LC_CONFIG_ERRORINFO_VERSION: u32 = 3237871618; +pub const LC_CONFIG_PRINTF_ENABLED: u32 = 1; +pub const LC_CONFIG_PRINTF_V: u32 = 2; +pub const LC_CONFIG_PRINTF_VV: u32 = 4; +pub const LC_CONFIG_PRINTF_VVV: u32 = 8; +pub const MEM_SCATTER_VERSION: u32 = 3237871618; +pub const MEM_SCATTER_STACK_SIZE: u32 = 12; +pub const LC_OPT_CORE_PRINTF_ENABLE: u64 = 4611686022722355200; +pub const LC_OPT_CORE_VERBOSE: u64 = 4611686027017322496; +pub const LC_OPT_CORE_VERBOSE_EXTRA: u64 = 4611686031312289792; +pub const LC_OPT_CORE_VERBOSE_EXTRA_TLP: u64 = 4611686035607257088; +pub const LC_OPT_CORE_VERSION_MAJOR: u64 = 4611686039902224384; +pub const LC_OPT_CORE_VERSION_MINOR: u64 = 4611686044197191680; +pub const LC_OPT_CORE_VERSION_REVISION: u64 = 4611686048492158976; +pub const LC_OPT_CORE_ADDR_MAX: u64 = 1152921538966585344; +pub const LC_OPT_CORE_STATISTICS_CALL_COUNT: u64 = 4611686057082093568; +pub const LC_OPT_CORE_STATISTICS_CALL_TIME: u64 = 4611686061377060864; +pub const LC_OPT_CORE_VOLATILE: u64 = 1152921551851487232; +pub const LC_OPT_CORE_READONLY: u64 = 1152921556146454528; +pub const LC_OPT_MEMORYINFO_VALID: u64 = 144115192370823168; +pub const LC_OPT_MEMORYINFO_FLAG_32BIT: u64 = 144115200960757760; +pub const LC_OPT_MEMORYINFO_FLAG_PAE: u64 = 144115205255725056; +pub const LC_OPT_MEMORYINFO_ARCH: u64 = 144115265385267200; +pub const LC_OPT_MEMORYINFO_OS_VERSION_MINOR: u64 = 144115209550692352; +pub const LC_OPT_MEMORYINFO_OS_VERSION_MAJOR: u64 = 144115213845659648; +pub const LC_OPT_MEMORYINFO_OS_DTB: u64 = 144115218140626944; +pub const LC_OPT_MEMORYINFO_OS_PFN: u64 = 144115222435594240; +pub const LC_OPT_MEMORYINFO_OS_PsLoadedModuleList: u64 = 144115226730561536; +pub const LC_OPT_MEMORYINFO_OS_PsActiveProcessHead: u64 = 144115231025528832; +pub const LC_OPT_MEMORYINFO_OS_MACHINE_IMAGE_TP: u64 = 144115235320496128; +pub const LC_OPT_MEMORYINFO_OS_NUM_PROCESSORS: u64 = 144115239615463424; +pub const LC_OPT_MEMORYINFO_OS_SYSTEMTIME: u64 = 144115243910430720; +pub const LC_OPT_MEMORYINFO_OS_UPTIME: u64 = 144115248205398016; +pub const LC_OPT_MEMORYINFO_OS_KERNELBASE: u64 = 144115252500365312; +pub const LC_OPT_MEMORYINFO_OS_KERNELHINT: u64 = 144115256795332608; +pub const LC_OPT_MEMORYINFO_OS_KdDebuggerDataBlock: u64 = 144115261090299904; +pub const LC_OPT_FPGA_PROBE_MAXPAGES: u64 = 216172786408751104; +pub const LC_OPT_FPGA_MAX_SIZE_RX: u64 = 216172794998685696; +pub const LC_OPT_FPGA_MAX_SIZE_TX: u64 = 216172799293652992; +pub const LC_OPT_FPGA_DELAY_PROBE_READ: u64 = 216172803588620288; +pub const LC_OPT_FPGA_DELAY_PROBE_WRITE: u64 = 216172807883587584; +pub const LC_OPT_FPGA_DELAY_WRITE: u64 = 216172812178554880; +pub const LC_OPT_FPGA_DELAY_READ: u64 = 216172816473522176; +pub const LC_OPT_FPGA_RETRY_ON_ERROR: u64 = 216172820768489472; +pub const LC_OPT_FPGA_DEVICE_ID: u64 = 216173331869597696; +pub const LC_OPT_FPGA_FPGA_ID: u64 = 216173336164564992; +pub const LC_OPT_FPGA_VERSION_MAJOR: u64 = 216173340459532288; +pub const LC_OPT_FPGA_VERSION_MINOR: u64 = 216173344754499584; +pub const LC_OPT_FPGA_ALGO_TINY: u64 = 216173349049466880; +pub const LC_OPT_FPGA_ALGO_SYNCHRONOUS: u64 = 216173353344434176; +pub const LC_OPT_FPGA_CFGSPACE_XILINX: u64 = 216173357639401472; +pub const LC_OPT_FPGA_TLP_READ_CB_WITHINFO: u64 = 216173400589074432; +pub const LC_OPT_FPGA_TLP_READ_CB_FILTERCPL: u64 = 216173404884041728; +pub const LC_CMD_FPGA_PCIECFGSPACE: u64 = 1112396529664; +pub const LC_CMD_FPGA_CFGREGPCIE: u64 = 1116691496960; +pub const LC_CMD_FPGA_CFGREGCFG: u64 = 1120986464256; +pub const LC_CMD_FPGA_CFGREGDRP: u64 = 1125281431552; +pub const LC_CMD_FPGA_CFGREGCFG_MARKWR: u64 = 1129576398848; +pub const LC_CMD_FPGA_CFGREGPCIE_MARKWR: u64 = 1133871366144; +pub const LC_CMD_FPGA_CFGREG_DEBUGPRINT: u64 = 1142461300736; +pub const LC_CMD_FPGA_PROBE: u64 = 1146756268032; +pub const LC_CMD_FPGA_CFGSPACE_SHADOW_RD: u64 = 1151051235328; +pub const LC_CMD_FPGA_CFGSPACE_SHADOW_WR: u64 = 1155346202624; +pub const LC_CMD_FPGA_TLP_WRITE_SINGLE: u64 = 1168231104512; +pub const LC_CMD_FPGA_TLP_WRITE_MULTIPLE: u64 = 1172526071808; +pub const LC_CMD_FPGA_TLP_TOSTRING: u64 = 1176821039104; +pub const LC_CMD_FPGA_TLP_CONTEXT: u64 = 2305844194624667648; +pub const LC_CMD_FPGA_TLP_CONTEXT_RD: u64 = 2305844224689438720; +pub const LC_CMD_FPGA_TLP_FUNCTION_CALLBACK: u64 = 2305844198919634944; +pub const LC_CMD_FPGA_TLP_FUNCTION_CALLBACK_RD: u64 = 2305844228984406016; +pub const LC_CMD_FPGA_BAR_CONTEXT: u64 = 2305844246164275200; +pub const LC_CMD_FPGA_BAR_CONTEXT_RD: u64 = 2305844250459242496; +pub const LC_CMD_FPGA_BAR_FUNCTION_CALLBACK: u64 = 2305844254754209792; +pub const LC_CMD_FPGA_BAR_FUNCTION_CALLBACK_RD: u64 = 2305844259049177088; +pub const LC_CMD_FPGA_BAR_INFO: u64 = 1254130450432; +pub const LC_CMD_FILE_DUMPHEADER_GET: u64 = 2203318222848; +pub const LC_CMD_STATISTICS_GET: u64 = 4611687117939015680; +pub const LC_CMD_MEMMAP_GET: u64 = 4611688217450643456; +pub const LC_CMD_MEMMAP_SET: u64 = 4611689316962271232; +pub const LC_CMD_MEMMAP_GET_STRUCT: u64 = 4611690416473899008; +pub const LC_CMD_MEMMAP_SET_STRUCT: u64 = 4611691515985526784; +pub const LC_CMD_AGENT_EXEC_PYTHON: i64 = -9223372032559808512; +pub const LC_CMD_AGENT_EXIT_PROCESS: i64 = -9223372028264841216; +pub const LC_CMD_AGENT_VFS_LIST: i64 = -9223372023969873920; +pub const LC_CMD_AGENT_VFS_READ: i64 = -9223372019674906624; +pub const LC_CMD_AGENT_VFS_WRITE: i64 = -9223372015379939328; +pub const LC_CMD_AGENT_VFS_OPT_GET: i64 = -9223372011084972032; +pub const LC_CMD_AGENT_VFS_OPT_SET: i64 = -9223372006790004736; +pub const LC_CMD_AGENT_VFS_INITIALIZE: i64 = -9223372002495037440; +pub const LC_CMD_AGENT_VFS_CONSOLE: i64 = -9223371998200070144; +pub const LC_CMD_AGENT_VFS_REQ_VERSION: u32 = 4276944897; +pub const LC_CMD_AGENT_VFS_RSP_VERSION: u32 = 4277010433; +pub const LC_STATISTICS_VERSION: u32 = 3785424898; +pub const LC_STATISTICS_ID_OPEN: u32 = 0; +pub const LC_STATISTICS_ID_READ: u32 = 1; +pub const LC_STATISTICS_ID_READSCATTER: u32 = 2; +pub const LC_STATISTICS_ID_WRITE: u32 = 3; +pub const LC_STATISTICS_ID_WRITESCATTER: u32 = 4; +pub const LC_STATISTICS_ID_GETOPTION: u32 = 5; +pub const LC_STATISTICS_ID_SETOPTION: u32 = 6; +pub const LC_STATISTICS_ID_COMMAND: u32 = 7; +pub const LC_STATISTICS_ID_MAX: u32 = 7; +pub const LC_VMM_VERSION: u32 = 518979585; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __mbstate_t"][::std::mem::size_of::<__mbstate_t>() - 128usize]; + ["Alignment of __mbstate_t"][::std::mem::align_of::<__mbstate_t>() - 8usize]; + ["Offset of field: __mbstate_t::__mbstate8"] + [::std::mem::offset_of!(__mbstate_t, __mbstate8) - 0usize]; + ["Offset of field: __mbstate_t::_mbstateL"] + [::std::mem::offset_of!(__mbstate_t, _mbstateL) - 0usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_pthread_handler_rec"] + [::std::mem::size_of::<__darwin_pthread_handler_rec>() - 24usize]; + ["Alignment of __darwin_pthread_handler_rec"] + [::std::mem::align_of::<__darwin_pthread_handler_rec>() - 8usize]; + ["Offset of field: __darwin_pthread_handler_rec::__routine"] + [::std::mem::offset_of!(__darwin_pthread_handler_rec, __routine) - 0usize]; + ["Offset of field: __darwin_pthread_handler_rec::__arg"] + [::std::mem::offset_of!(__darwin_pthread_handler_rec, __arg) - 8usize]; + ["Offset of field: __darwin_pthread_handler_rec::__next"] + [::std::mem::offset_of!(__darwin_pthread_handler_rec, __next) - 16usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_attr_t"][::std::mem::size_of::<_opaque_pthread_attr_t>() - 64usize]; + ["Alignment of _opaque_pthread_attr_t"] + [::std::mem::align_of::<_opaque_pthread_attr_t>() - 8usize]; + ["Offset of field: _opaque_pthread_attr_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_attr_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_attr_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_attr_t, __opaque) - 8usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_cond_t"][::std::mem::size_of::<_opaque_pthread_cond_t>() - 48usize]; + ["Alignment of _opaque_pthread_cond_t"] + [::std::mem::align_of::<_opaque_pthread_cond_t>() - 8usize]; + ["Offset of field: _opaque_pthread_cond_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_cond_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_cond_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_cond_t, __opaque) - 8usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_condattr_t"] + [::std::mem::size_of::<_opaque_pthread_condattr_t>() - 16usize]; + ["Alignment of _opaque_pthread_condattr_t"] + [::std::mem::align_of::<_opaque_pthread_condattr_t>() - 8usize]; + ["Offset of field: _opaque_pthread_condattr_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_condattr_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_condattr_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_condattr_t, __opaque) - 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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_mutex_t"][::std::mem::size_of::<_opaque_pthread_mutex_t>() - 64usize]; + ["Alignment of _opaque_pthread_mutex_t"] + [::std::mem::align_of::<_opaque_pthread_mutex_t>() - 8usize]; + ["Offset of field: _opaque_pthread_mutex_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_mutex_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_mutex_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_mutex_t, __opaque) - 8usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_mutexattr_t"] + [::std::mem::size_of::<_opaque_pthread_mutexattr_t>() - 16usize]; + ["Alignment of _opaque_pthread_mutexattr_t"] + [::std::mem::align_of::<_opaque_pthread_mutexattr_t>() - 8usize]; + ["Offset of field: _opaque_pthread_mutexattr_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_mutexattr_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __opaque) - 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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_once_t"][::std::mem::size_of::<_opaque_pthread_once_t>() - 16usize]; + ["Alignment of _opaque_pthread_once_t"] + [::std::mem::align_of::<_opaque_pthread_once_t>() - 8usize]; + ["Offset of field: _opaque_pthread_once_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_once_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_once_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_once_t, __opaque) - 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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_rwlock_t"] + [::std::mem::size_of::<_opaque_pthread_rwlock_t>() - 200usize]; + ["Alignment of _opaque_pthread_rwlock_t"] + [::std::mem::align_of::<_opaque_pthread_rwlock_t>() - 8usize]; + ["Offset of field: _opaque_pthread_rwlock_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_rwlock_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_rwlock_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_rwlock_t, __opaque) - 8usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_rwlockattr_t"] + [::std::mem::size_of::<_opaque_pthread_rwlockattr_t>() - 24usize]; + ["Alignment of _opaque_pthread_rwlockattr_t"] + [::std::mem::align_of::<_opaque_pthread_rwlockattr_t>() - 8usize]; + ["Offset of field: _opaque_pthread_rwlockattr_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_rwlockattr_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __opaque) - 8usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _opaque_pthread_t"][::std::mem::size_of::<_opaque_pthread_t>() - 8192usize]; + ["Alignment of _opaque_pthread_t"][::std::mem::align_of::<_opaque_pthread_t>() - 8usize]; + ["Offset of field: _opaque_pthread_t::__sig"] + [::std::mem::offset_of!(_opaque_pthread_t, __sig) - 0usize]; + ["Offset of field: _opaque_pthread_t::__cleanup_stack"] + [::std::mem::offset_of!(_opaque_pthread_t, __cleanup_stack) - 8usize]; + ["Offset of field: _opaque_pthread_t::__opaque"] + [::std::mem::offset_of!(_opaque_pthread_t, __opaque) - 16usize]; +}; +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 wchar_t = __darwin_wchar_t; +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 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 intmax_t = ::std::os::raw::c_long; +pub type uintmax_t = ::std::os::raw::c_ulong; +unsafe 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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of imaxdiv_t"][::std::mem::size_of::() - 16usize]; + ["Alignment of imaxdiv_t"][::std::mem::align_of::() - 8usize]; + ["Offset of field: imaxdiv_t::quot"][::std::mem::offset_of!(imaxdiv_t, quot) - 0usize]; + ["Offset of field: imaxdiv_t::rem"][::std::mem::offset_of!(imaxdiv_t, rem) - 8usize]; +}; +unsafe extern "C" { + pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn wcstoimax( + __nptr: *const wchar_t, + __endptr: *mut *mut wchar_t, + __base: ::std::os::raw::c_int, + ) -> intmax_t; +} +unsafe extern "C" { + pub fn wcstoumax( + __nptr: *const wchar_t, + __endptr: *mut *mut wchar_t, + __base: ::std::os::raw::c_int, + ) -> uintmax_t; +} +pub const idtype_t_P_ALL: idtype_t = 0; +pub const idtype_t_P_PID: idtype_t = 1; +pub const idtype_t_P_PGID: idtype_t = 2; +pub type idtype_t = ::std::os::raw::c_uint; +pub type pid_t = __darwin_pid_t; +pub type id_t = __darwin_id_t; +pub type sig_atomic_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_exception_state { + pub __exception: __uint32_t, + pub __fsr: __uint32_t, + pub __far: __uint32_t, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_exception_state"] + [::std::mem::size_of::<__darwin_arm_exception_state>() - 12usize]; + ["Alignment of __darwin_arm_exception_state"] + [::std::mem::align_of::<__darwin_arm_exception_state>() - 4usize]; + ["Offset of field: __darwin_arm_exception_state::__exception"] + [::std::mem::offset_of!(__darwin_arm_exception_state, __exception) - 0usize]; + ["Offset of field: __darwin_arm_exception_state::__fsr"] + [::std::mem::offset_of!(__darwin_arm_exception_state, __fsr) - 4usize]; + ["Offset of field: __darwin_arm_exception_state::__far"] + [::std::mem::offset_of!(__darwin_arm_exception_state, __far) - 8usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_exception_state64 { + pub __far: __uint64_t, + pub __esr: __uint32_t, + pub __exception: __uint32_t, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_exception_state64"] + [::std::mem::size_of::<__darwin_arm_exception_state64>() - 16usize]; + ["Alignment of __darwin_arm_exception_state64"] + [::std::mem::align_of::<__darwin_arm_exception_state64>() - 8usize]; + ["Offset of field: __darwin_arm_exception_state64::__far"] + [::std::mem::offset_of!(__darwin_arm_exception_state64, __far) - 0usize]; + ["Offset of field: __darwin_arm_exception_state64::__esr"] + [::std::mem::offset_of!(__darwin_arm_exception_state64, __esr) - 8usize]; + ["Offset of field: __darwin_arm_exception_state64::__exception"] + [::std::mem::offset_of!(__darwin_arm_exception_state64, __exception) - 12usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_thread_state"] + [::std::mem::size_of::<__darwin_arm_thread_state>() - 68usize]; + ["Alignment of __darwin_arm_thread_state"] + [::std::mem::align_of::<__darwin_arm_thread_state>() - 4usize]; + ["Offset of field: __darwin_arm_thread_state::__r"] + [::std::mem::offset_of!(__darwin_arm_thread_state, __r) - 0usize]; + ["Offset of field: __darwin_arm_thread_state::__sp"] + [::std::mem::offset_of!(__darwin_arm_thread_state, __sp) - 52usize]; + ["Offset of field: __darwin_arm_thread_state::__lr"] + [::std::mem::offset_of!(__darwin_arm_thread_state, __lr) - 56usize]; + ["Offset of field: __darwin_arm_thread_state::__pc"] + [::std::mem::offset_of!(__darwin_arm_thread_state, __pc) - 60usize]; + ["Offset of field: __darwin_arm_thread_state::__cpsr"] + [::std::mem::offset_of!(__darwin_arm_thread_state, __cpsr) - 64usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_thread_state64"] + [::std::mem::size_of::<__darwin_arm_thread_state64>() - 272usize]; + ["Alignment of __darwin_arm_thread_state64"] + [::std::mem::align_of::<__darwin_arm_thread_state64>() - 8usize]; + ["Offset of field: __darwin_arm_thread_state64::__x"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __x) - 0usize]; + ["Offset of field: __darwin_arm_thread_state64::__fp"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __fp) - 232usize]; + ["Offset of field: __darwin_arm_thread_state64::__lr"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __lr) - 240usize]; + ["Offset of field: __darwin_arm_thread_state64::__sp"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __sp) - 248usize]; + ["Offset of field: __darwin_arm_thread_state64::__pc"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __pc) - 256usize]; + ["Offset of field: __darwin_arm_thread_state64::__cpsr"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __cpsr) - 264usize]; + ["Offset of field: __darwin_arm_thread_state64::__pad"] + [::std::mem::offset_of!(__darwin_arm_thread_state64, __pad) - 268usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_vfp_state { + pub __r: [__uint32_t; 64usize], + pub __fpscr: __uint32_t, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_vfp_state"][::std::mem::size_of::<__darwin_arm_vfp_state>() - 260usize]; + ["Alignment of __darwin_arm_vfp_state"] + [::std::mem::align_of::<__darwin_arm_vfp_state>() - 4usize]; + ["Offset of field: __darwin_arm_vfp_state::__r"] + [::std::mem::offset_of!(__darwin_arm_vfp_state, __r) - 0usize]; + ["Offset of field: __darwin_arm_vfp_state::__fpscr"] + [::std::mem::offset_of!(__darwin_arm_vfp_state, __fpscr) - 256usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_neon_state64"] + [::std::mem::size_of::<__darwin_arm_neon_state64>() - 528usize]; + ["Alignment of __darwin_arm_neon_state64"] + [::std::mem::align_of::<__darwin_arm_neon_state64>() - 16usize]; + ["Offset of field: __darwin_arm_neon_state64::__v"] + [::std::mem::offset_of!(__darwin_arm_neon_state64, __v) - 0usize]; + ["Offset of field: __darwin_arm_neon_state64::__fpsr"] + [::std::mem::offset_of!(__darwin_arm_neon_state64, __fpsr) - 512usize]; + ["Offset of field: __darwin_arm_neon_state64::__fpcr"] + [::std::mem::offset_of!(__darwin_arm_neon_state64, __fpcr) - 516usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_neon_state"] + [::std::mem::size_of::<__darwin_arm_neon_state>() - 272usize]; + ["Alignment of __darwin_arm_neon_state"] + [::std::mem::align_of::<__darwin_arm_neon_state>() - 16usize]; + ["Offset of field: __darwin_arm_neon_state::__v"] + [::std::mem::offset_of!(__darwin_arm_neon_state, __v) - 0usize]; + ["Offset of field: __darwin_arm_neon_state::__fpsr"] + [::std::mem::offset_of!(__darwin_arm_neon_state, __fpsr) - 256usize]; + ["Offset of field: __darwin_arm_neon_state::__fpcr"] + [::std::mem::offset_of!(__darwin_arm_neon_state, __fpcr) - 260usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __arm_pagein_state { + pub __pagein_error: ::std::os::raw::c_int, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __arm_pagein_state"][::std::mem::size_of::<__arm_pagein_state>() - 4usize]; + ["Alignment of __arm_pagein_state"][::std::mem::align_of::<__arm_pagein_state>() - 4usize]; + ["Offset of field: __arm_pagein_state::__pagein_error"] + [::std::mem::offset_of!(__arm_pagein_state, __pagein_error) - 0usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __arm_legacy_debug_state"] + [::std::mem::size_of::<__arm_legacy_debug_state>() - 256usize]; + ["Alignment of __arm_legacy_debug_state"] + [::std::mem::align_of::<__arm_legacy_debug_state>() - 4usize]; + ["Offset of field: __arm_legacy_debug_state::__bvr"] + [::std::mem::offset_of!(__arm_legacy_debug_state, __bvr) - 0usize]; + ["Offset of field: __arm_legacy_debug_state::__bcr"] + [::std::mem::offset_of!(__arm_legacy_debug_state, __bcr) - 64usize]; + ["Offset of field: __arm_legacy_debug_state::__wvr"] + [::std::mem::offset_of!(__arm_legacy_debug_state, __wvr) - 128usize]; + ["Offset of field: __arm_legacy_debug_state::__wcr"] + [::std::mem::offset_of!(__arm_legacy_debug_state, __wcr) - 192usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_debug_state32"] + [::std::mem::size_of::<__darwin_arm_debug_state32>() - 264usize]; + ["Alignment of __darwin_arm_debug_state32"] + [::std::mem::align_of::<__darwin_arm_debug_state32>() - 8usize]; + ["Offset of field: __darwin_arm_debug_state32::__bvr"] + [::std::mem::offset_of!(__darwin_arm_debug_state32, __bvr) - 0usize]; + ["Offset of field: __darwin_arm_debug_state32::__bcr"] + [::std::mem::offset_of!(__darwin_arm_debug_state32, __bcr) - 64usize]; + ["Offset of field: __darwin_arm_debug_state32::__wvr"] + [::std::mem::offset_of!(__darwin_arm_debug_state32, __wvr) - 128usize]; + ["Offset of field: __darwin_arm_debug_state32::__wcr"] + [::std::mem::offset_of!(__darwin_arm_debug_state32, __wcr) - 192usize]; + ["Offset of field: __darwin_arm_debug_state32::__mdscr_el1"] + [::std::mem::offset_of!(__darwin_arm_debug_state32, __mdscr_el1) - 256usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_debug_state64"] + [::std::mem::size_of::<__darwin_arm_debug_state64>() - 520usize]; + ["Alignment of __darwin_arm_debug_state64"] + [::std::mem::align_of::<__darwin_arm_debug_state64>() - 8usize]; + ["Offset of field: __darwin_arm_debug_state64::__bvr"] + [::std::mem::offset_of!(__darwin_arm_debug_state64, __bvr) - 0usize]; + ["Offset of field: __darwin_arm_debug_state64::__bcr"] + [::std::mem::offset_of!(__darwin_arm_debug_state64, __bcr) - 128usize]; + ["Offset of field: __darwin_arm_debug_state64::__wvr"] + [::std::mem::offset_of!(__darwin_arm_debug_state64, __wvr) - 256usize]; + ["Offset of field: __darwin_arm_debug_state64::__wcr"] + [::std::mem::offset_of!(__darwin_arm_debug_state64, __wcr) - 384usize]; + ["Offset of field: __darwin_arm_debug_state64::__mdscr_el1"] + [::std::mem::offset_of!(__darwin_arm_debug_state64, __mdscr_el1) - 512usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_arm_cpmu_state64 { + pub __ctrs: [__uint64_t; 16usize], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_arm_cpmu_state64"] + [::std::mem::size_of::<__darwin_arm_cpmu_state64>() - 128usize]; + ["Alignment of __darwin_arm_cpmu_state64"] + [::std::mem::align_of::<__darwin_arm_cpmu_state64>() - 8usize]; + ["Offset of field: __darwin_arm_cpmu_state64::__ctrs"] + [::std::mem::offset_of!(__darwin_arm_cpmu_state64, __ctrs) - 0usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_mcontext32"][::std::mem::size_of::<__darwin_mcontext32>() - 340usize]; + ["Alignment of __darwin_mcontext32"][::std::mem::align_of::<__darwin_mcontext32>() - 4usize]; + ["Offset of field: __darwin_mcontext32::__es"] + [::std::mem::offset_of!(__darwin_mcontext32, __es) - 0usize]; + ["Offset of field: __darwin_mcontext32::__ss"] + [::std::mem::offset_of!(__darwin_mcontext32, __ss) - 12usize]; + ["Offset of field: __darwin_mcontext32::__fs"] + [::std::mem::offset_of!(__darwin_mcontext32, __fs) - 80usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_mcontext64"][::std::mem::size_of::<__darwin_mcontext64>() - 816usize]; + ["Alignment of __darwin_mcontext64"][::std::mem::align_of::<__darwin_mcontext64>() - 16usize]; + ["Offset of field: __darwin_mcontext64::__es"] + [::std::mem::offset_of!(__darwin_mcontext64, __es) - 0usize]; + ["Offset of field: __darwin_mcontext64::__ss"] + [::std::mem::offset_of!(__darwin_mcontext64, __ss) - 16usize]; + ["Offset of field: __darwin_mcontext64::__ns"] + [::std::mem::offset_of!(__darwin_mcontext64, __ns) - 288usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_sigaltstack"][::std::mem::size_of::<__darwin_sigaltstack>() - 24usize]; + ["Alignment of __darwin_sigaltstack"][::std::mem::align_of::<__darwin_sigaltstack>() - 8usize]; + ["Offset of field: __darwin_sigaltstack::ss_sp"] + [::std::mem::offset_of!(__darwin_sigaltstack, ss_sp) - 0usize]; + ["Offset of field: __darwin_sigaltstack::ss_size"] + [::std::mem::offset_of!(__darwin_sigaltstack, ss_size) - 8usize]; + ["Offset of field: __darwin_sigaltstack::ss_flags"] + [::std::mem::offset_of!(__darwin_sigaltstack, ss_flags) - 16usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __darwin_ucontext"][::std::mem::size_of::<__darwin_ucontext>() - 56usize]; + ["Alignment of __darwin_ucontext"][::std::mem::align_of::<__darwin_ucontext>() - 8usize]; + ["Offset of field: __darwin_ucontext::uc_onstack"] + [::std::mem::offset_of!(__darwin_ucontext, uc_onstack) - 0usize]; + ["Offset of field: __darwin_ucontext::uc_sigmask"] + [::std::mem::offset_of!(__darwin_ucontext, uc_sigmask) - 4usize]; + ["Offset of field: __darwin_ucontext::uc_stack"] + [::std::mem::offset_of!(__darwin_ucontext, uc_stack) - 8usize]; + ["Offset of field: __darwin_ucontext::uc_link"] + [::std::mem::offset_of!(__darwin_ucontext, uc_link) - 32usize]; + ["Offset of field: __darwin_ucontext::uc_mcsize"] + [::std::mem::offset_of!(__darwin_ucontext, uc_mcsize) - 40usize]; + ["Offset of field: __darwin_ucontext::uc_mcontext"] + [::std::mem::offset_of!(__darwin_ucontext, uc_mcontext) - 48usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of sigval"][::std::mem::size_of::() - 8usize]; + ["Alignment of sigval"][::std::mem::align_of::() - 8usize]; + ["Offset of field: sigval::sival_int"][::std::mem::offset_of!(sigval, sival_int) - 0usize]; + ["Offset of field: sigval::sival_ptr"][::std::mem::offset_of!(sigval, sival_ptr) - 0usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of sigevent"][::std::mem::size_of::() - 32usize]; + ["Alignment of sigevent"][::std::mem::align_of::() - 8usize]; + ["Offset of field: sigevent::sigev_notify"] + [::std::mem::offset_of!(sigevent, sigev_notify) - 0usize]; + ["Offset of field: sigevent::sigev_signo"] + [::std::mem::offset_of!(sigevent, sigev_signo) - 4usize]; + ["Offset of field: sigevent::sigev_value"] + [::std::mem::offset_of!(sigevent, sigev_value) - 8usize]; + ["Offset of field: sigevent::sigev_notify_function"] + [::std::mem::offset_of!(sigevent, sigev_notify_function) - 16usize]; + ["Offset of field: sigevent::sigev_notify_attributes"] + [::std::mem::offset_of!(sigevent, sigev_notify_attributes) - 24usize]; +}; +#[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], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __siginfo"][::std::mem::size_of::<__siginfo>() - 104usize]; + ["Alignment of __siginfo"][::std::mem::align_of::<__siginfo>() - 8usize]; + ["Offset of field: __siginfo::si_signo"][::std::mem::offset_of!(__siginfo, si_signo) - 0usize]; + ["Offset of field: __siginfo::si_errno"][::std::mem::offset_of!(__siginfo, si_errno) - 4usize]; + ["Offset of field: __siginfo::si_code"][::std::mem::offset_of!(__siginfo, si_code) - 8usize]; + ["Offset of field: __siginfo::si_pid"][::std::mem::offset_of!(__siginfo, si_pid) - 12usize]; + ["Offset of field: __siginfo::si_uid"][::std::mem::offset_of!(__siginfo, si_uid) - 16usize]; + ["Offset of field: __siginfo::si_status"] + [::std::mem::offset_of!(__siginfo, si_status) - 20usize]; + ["Offset of field: __siginfo::si_addr"][::std::mem::offset_of!(__siginfo, si_addr) - 24usize]; + ["Offset of field: __siginfo::si_value"][::std::mem::offset_of!(__siginfo, si_value) - 32usize]; + ["Offset of field: __siginfo::si_band"][::std::mem::offset_of!(__siginfo, si_band) - 40usize]; + ["Offset of field: __siginfo::__pad"][::std::mem::offset_of!(__siginfo, __pad) - 48usize]; +}; +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, + ), + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __sigaction_u"][::std::mem::size_of::<__sigaction_u>() - 8usize]; + ["Alignment of __sigaction_u"][::std::mem::align_of::<__sigaction_u>() - 8usize]; + ["Offset of field: __sigaction_u::__sa_handler"] + [::std::mem::offset_of!(__sigaction_u, __sa_handler) - 0usize]; + ["Offset of field: __sigaction_u::__sa_sigaction"] + [::std::mem::offset_of!(__sigaction_u, __sa_sigaction) - 0usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of __sigaction"][::std::mem::size_of::<__sigaction>() - 24usize]; + ["Alignment of __sigaction"][::std::mem::align_of::<__sigaction>() - 8usize]; + ["Offset of field: __sigaction::__sigaction_u"] + [::std::mem::offset_of!(__sigaction, __sigaction_u) - 0usize]; + ["Offset of field: __sigaction::sa_tramp"] + [::std::mem::offset_of!(__sigaction, sa_tramp) - 8usize]; + ["Offset of field: __sigaction::sa_mask"] + [::std::mem::offset_of!(__sigaction, sa_mask) - 16usize]; + ["Offset of field: __sigaction::sa_flags"] + [::std::mem::offset_of!(__sigaction, sa_flags) - 20usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of sigaction"][::std::mem::size_of::() - 16usize]; + ["Alignment of sigaction"][::std::mem::align_of::() - 8usize]; + ["Offset of field: sigaction::__sigaction_u"] + [::std::mem::offset_of!(sigaction, __sigaction_u) - 0usize]; + ["Offset of field: sigaction::sa_mask"][::std::mem::offset_of!(sigaction, sa_mask) - 8usize]; + ["Offset of field: sigaction::sa_flags"][::std::mem::offset_of!(sigaction, sa_flags) - 12usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of sigvec"][::std::mem::size_of::() - 16usize]; + ["Alignment of sigvec"][::std::mem::align_of::() - 8usize]; + ["Offset of field: sigvec::sv_handler"][::std::mem::offset_of!(sigvec, sv_handler) - 0usize]; + ["Offset of field: sigvec::sv_mask"][::std::mem::offset_of!(sigvec, sv_mask) - 8usize]; + ["Offset of field: sigvec::sv_flags"][::std::mem::offset_of!(sigvec, sv_flags) - 12usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of sigstack"][::std::mem::size_of::() - 16usize]; + ["Alignment of sigstack"][::std::mem::align_of::() - 8usize]; + ["Offset of field: sigstack::ss_sp"][::std::mem::offset_of!(sigstack, ss_sp) - 0usize]; + ["Offset of field: sigstack::ss_onstack"] + [::std::mem::offset_of!(sigstack, ss_onstack) - 8usize]; +}; +unsafe 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, + ), + >; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { + pub tv_sec: __darwin_time_t, + pub tv_usec: __darwin_suseconds_t, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of timeval"][::std::mem::size_of::() - 16usize]; + ["Alignment of timeval"][::std::mem::align_of::() - 8usize]; + ["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize]; + ["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage"][::std::mem::size_of::() - 144usize]; + ["Alignment of rusage"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage::ru_utime"][::std::mem::offset_of!(rusage, ru_utime) - 0usize]; + ["Offset of field: rusage::ru_stime"][::std::mem::offset_of!(rusage, ru_stime) - 16usize]; + ["Offset of field: rusage::ru_maxrss"][::std::mem::offset_of!(rusage, ru_maxrss) - 32usize]; + ["Offset of field: rusage::ru_ixrss"][::std::mem::offset_of!(rusage, ru_ixrss) - 40usize]; + ["Offset of field: rusage::ru_idrss"][::std::mem::offset_of!(rusage, ru_idrss) - 48usize]; + ["Offset of field: rusage::ru_isrss"][::std::mem::offset_of!(rusage, ru_isrss) - 56usize]; + ["Offset of field: rusage::ru_minflt"][::std::mem::offset_of!(rusage, ru_minflt) - 64usize]; + ["Offset of field: rusage::ru_majflt"][::std::mem::offset_of!(rusage, ru_majflt) - 72usize]; + ["Offset of field: rusage::ru_nswap"][::std::mem::offset_of!(rusage, ru_nswap) - 80usize]; + ["Offset of field: rusage::ru_inblock"][::std::mem::offset_of!(rusage, ru_inblock) - 88usize]; + ["Offset of field: rusage::ru_oublock"][::std::mem::offset_of!(rusage, ru_oublock) - 96usize]; + ["Offset of field: rusage::ru_msgsnd"][::std::mem::offset_of!(rusage, ru_msgsnd) - 104usize]; + ["Offset of field: rusage::ru_msgrcv"][::std::mem::offset_of!(rusage, ru_msgrcv) - 112usize]; + ["Offset of field: rusage::ru_nsignals"] + [::std::mem::offset_of!(rusage, ru_nsignals) - 120usize]; + ["Offset of field: rusage::ru_nvcsw"][::std::mem::offset_of!(rusage, ru_nvcsw) - 128usize]; + ["Offset of field: rusage::ru_nivcsw"][::std::mem::offset_of!(rusage, ru_nivcsw) - 136usize]; +}; +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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v0"][::std::mem::size_of::() - 96usize]; + ["Alignment of rusage_info_v0"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v0::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v0, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v0::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v0, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v0::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v0, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v0::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v0, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v0::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v0, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v0::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v0, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v0::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v0, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v0::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v0, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v0::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v0, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v0::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v0, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v0::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v0, ri_proc_exit_abstime) - 88usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v1"][::std::mem::size_of::() - 144usize]; + ["Alignment of rusage_info_v1"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v1::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v1, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v1::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v1, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v1::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v1, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v1::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v1, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v1::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v1, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v1::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v1, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v1::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v1, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v1::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v1, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v1::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v1, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v1::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v1, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v1::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v1, ri_proc_exit_abstime) - 88usize]; + ["Offset of field: rusage_info_v1::ri_child_user_time"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_user_time) - 96usize]; + ["Offset of field: rusage_info_v1::ri_child_system_time"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_system_time) - 104usize]; + ["Offset of field: rusage_info_v1::ri_child_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_pkg_idle_wkups) - 112usize]; + ["Offset of field: rusage_info_v1::ri_child_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_interrupt_wkups) - 120usize]; + ["Offset of field: rusage_info_v1::ri_child_pageins"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_pageins) - 128usize]; + ["Offset of field: rusage_info_v1::ri_child_elapsed_abstime"] + [::std::mem::offset_of!(rusage_info_v1, ri_child_elapsed_abstime) - 136usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v2"][::std::mem::size_of::() - 160usize]; + ["Alignment of rusage_info_v2"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v2::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v2, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v2::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v2, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v2::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v2, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v2::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v2, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v2::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v2, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v2::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v2, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v2::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v2, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v2::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v2, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v2::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v2, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v2::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v2, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v2::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v2, ri_proc_exit_abstime) - 88usize]; + ["Offset of field: rusage_info_v2::ri_child_user_time"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_user_time) - 96usize]; + ["Offset of field: rusage_info_v2::ri_child_system_time"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_system_time) - 104usize]; + ["Offset of field: rusage_info_v2::ri_child_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_pkg_idle_wkups) - 112usize]; + ["Offset of field: rusage_info_v2::ri_child_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_interrupt_wkups) - 120usize]; + ["Offset of field: rusage_info_v2::ri_child_pageins"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_pageins) - 128usize]; + ["Offset of field: rusage_info_v2::ri_child_elapsed_abstime"] + [::std::mem::offset_of!(rusage_info_v2, ri_child_elapsed_abstime) - 136usize]; + ["Offset of field: rusage_info_v2::ri_diskio_bytesread"] + [::std::mem::offset_of!(rusage_info_v2, ri_diskio_bytesread) - 144usize]; + ["Offset of field: rusage_info_v2::ri_diskio_byteswritten"] + [::std::mem::offset_of!(rusage_info_v2, ri_diskio_byteswritten) - 152usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v3"][::std::mem::size_of::() - 232usize]; + ["Alignment of rusage_info_v3"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v3::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v3, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v3::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v3::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v3::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v3, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v3::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v3, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v3::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v3, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v3::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v3, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v3::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v3, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v3::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v3, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v3::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v3, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v3::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v3, ri_proc_exit_abstime) - 88usize]; + ["Offset of field: rusage_info_v3::ri_child_user_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_user_time) - 96usize]; + ["Offset of field: rusage_info_v3::ri_child_system_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_system_time) - 104usize]; + ["Offset of field: rusage_info_v3::ri_child_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_pkg_idle_wkups) - 112usize]; + ["Offset of field: rusage_info_v3::ri_child_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_interrupt_wkups) - 120usize]; + ["Offset of field: rusage_info_v3::ri_child_pageins"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_pageins) - 128usize]; + ["Offset of field: rusage_info_v3::ri_child_elapsed_abstime"] + [::std::mem::offset_of!(rusage_info_v3, ri_child_elapsed_abstime) - 136usize]; + ["Offset of field: rusage_info_v3::ri_diskio_bytesread"] + [::std::mem::offset_of!(rusage_info_v3, ri_diskio_bytesread) - 144usize]; + ["Offset of field: rusage_info_v3::ri_diskio_byteswritten"] + [::std::mem::offset_of!(rusage_info_v3, ri_diskio_byteswritten) - 152usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_default"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_default) - 160usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_maintenance"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_maintenance) - 168usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_background"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_background) - 176usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_utility"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_utility) - 184usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_legacy"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_legacy) - 192usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_initiated"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_initiated) - 200usize]; + ["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_interactive"] + [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_interactive) - 208usize]; + ["Offset of field: rusage_info_v3::ri_billed_system_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_billed_system_time) - 216usize]; + ["Offset of field: rusage_info_v3::ri_serviced_system_time"] + [::std::mem::offset_of!(rusage_info_v3, ri_serviced_system_time) - 224usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v4"][::std::mem::size_of::() - 296usize]; + ["Alignment of rusage_info_v4"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v4::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v4, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v4::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v4::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v4::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v4, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v4::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v4, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v4::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v4, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v4::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v4, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v4::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v4, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v4::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v4, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v4::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v4, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v4::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v4, ri_proc_exit_abstime) - 88usize]; + ["Offset of field: rusage_info_v4::ri_child_user_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_user_time) - 96usize]; + ["Offset of field: rusage_info_v4::ri_child_system_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_system_time) - 104usize]; + ["Offset of field: rusage_info_v4::ri_child_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_pkg_idle_wkups) - 112usize]; + ["Offset of field: rusage_info_v4::ri_child_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_interrupt_wkups) - 120usize]; + ["Offset of field: rusage_info_v4::ri_child_pageins"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_pageins) - 128usize]; + ["Offset of field: rusage_info_v4::ri_child_elapsed_abstime"] + [::std::mem::offset_of!(rusage_info_v4, ri_child_elapsed_abstime) - 136usize]; + ["Offset of field: rusage_info_v4::ri_diskio_bytesread"] + [::std::mem::offset_of!(rusage_info_v4, ri_diskio_bytesread) - 144usize]; + ["Offset of field: rusage_info_v4::ri_diskio_byteswritten"] + [::std::mem::offset_of!(rusage_info_v4, ri_diskio_byteswritten) - 152usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_default"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_default) - 160usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_maintenance"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_maintenance) - 168usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_background"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_background) - 176usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_utility"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_utility) - 184usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_legacy"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_legacy) - 192usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_initiated"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_initiated) - 200usize]; + ["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_interactive"] + [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_interactive) - 208usize]; + ["Offset of field: rusage_info_v4::ri_billed_system_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_billed_system_time) - 216usize]; + ["Offset of field: rusage_info_v4::ri_serviced_system_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_serviced_system_time) - 224usize]; + ["Offset of field: rusage_info_v4::ri_logical_writes"] + [::std::mem::offset_of!(rusage_info_v4, ri_logical_writes) - 232usize]; + ["Offset of field: rusage_info_v4::ri_lifetime_max_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v4, ri_lifetime_max_phys_footprint) - 240usize]; + ["Offset of field: rusage_info_v4::ri_instructions"] + [::std::mem::offset_of!(rusage_info_v4, ri_instructions) - 248usize]; + ["Offset of field: rusage_info_v4::ri_cycles"] + [::std::mem::offset_of!(rusage_info_v4, ri_cycles) - 256usize]; + ["Offset of field: rusage_info_v4::ri_billed_energy"] + [::std::mem::offset_of!(rusage_info_v4, ri_billed_energy) - 264usize]; + ["Offset of field: rusage_info_v4::ri_serviced_energy"] + [::std::mem::offset_of!(rusage_info_v4, ri_serviced_energy) - 272usize]; + ["Offset of field: rusage_info_v4::ri_interval_max_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v4, ri_interval_max_phys_footprint) - 280usize]; + ["Offset of field: rusage_info_v4::ri_runnable_time"] + [::std::mem::offset_of!(rusage_info_v4, ri_runnable_time) - 288usize]; +}; +#[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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rusage_info_v5"][::std::mem::size_of::() - 304usize]; + ["Alignment of rusage_info_v5"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rusage_info_v5::ri_uuid"] + [::std::mem::offset_of!(rusage_info_v5, ri_uuid) - 0usize]; + ["Offset of field: rusage_info_v5::ri_user_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_user_time) - 16usize]; + ["Offset of field: rusage_info_v5::ri_system_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_system_time) - 24usize]; + ["Offset of field: rusage_info_v5::ri_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v5, ri_pkg_idle_wkups) - 32usize]; + ["Offset of field: rusage_info_v5::ri_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v5, ri_interrupt_wkups) - 40usize]; + ["Offset of field: rusage_info_v5::ri_pageins"] + [::std::mem::offset_of!(rusage_info_v5, ri_pageins) - 48usize]; + ["Offset of field: rusage_info_v5::ri_wired_size"] + [::std::mem::offset_of!(rusage_info_v5, ri_wired_size) - 56usize]; + ["Offset of field: rusage_info_v5::ri_resident_size"] + [::std::mem::offset_of!(rusage_info_v5, ri_resident_size) - 64usize]; + ["Offset of field: rusage_info_v5::ri_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v5, ri_phys_footprint) - 72usize]; + ["Offset of field: rusage_info_v5::ri_proc_start_abstime"] + [::std::mem::offset_of!(rusage_info_v5, ri_proc_start_abstime) - 80usize]; + ["Offset of field: rusage_info_v5::ri_proc_exit_abstime"] + [::std::mem::offset_of!(rusage_info_v5, ri_proc_exit_abstime) - 88usize]; + ["Offset of field: rusage_info_v5::ri_child_user_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_user_time) - 96usize]; + ["Offset of field: rusage_info_v5::ri_child_system_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_system_time) - 104usize]; + ["Offset of field: rusage_info_v5::ri_child_pkg_idle_wkups"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_pkg_idle_wkups) - 112usize]; + ["Offset of field: rusage_info_v5::ri_child_interrupt_wkups"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_interrupt_wkups) - 120usize]; + ["Offset of field: rusage_info_v5::ri_child_pageins"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_pageins) - 128usize]; + ["Offset of field: rusage_info_v5::ri_child_elapsed_abstime"] + [::std::mem::offset_of!(rusage_info_v5, ri_child_elapsed_abstime) - 136usize]; + ["Offset of field: rusage_info_v5::ri_diskio_bytesread"] + [::std::mem::offset_of!(rusage_info_v5, ri_diskio_bytesread) - 144usize]; + ["Offset of field: rusage_info_v5::ri_diskio_byteswritten"] + [::std::mem::offset_of!(rusage_info_v5, ri_diskio_byteswritten) - 152usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_default"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_default) - 160usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_maintenance"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_maintenance) - 168usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_background"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_background) - 176usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_utility"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_utility) - 184usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_legacy"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_legacy) - 192usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_initiated"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_initiated) - 200usize]; + ["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_interactive"] + [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_interactive) - 208usize]; + ["Offset of field: rusage_info_v5::ri_billed_system_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_billed_system_time) - 216usize]; + ["Offset of field: rusage_info_v5::ri_serviced_system_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_serviced_system_time) - 224usize]; + ["Offset of field: rusage_info_v5::ri_logical_writes"] + [::std::mem::offset_of!(rusage_info_v5, ri_logical_writes) - 232usize]; + ["Offset of field: rusage_info_v5::ri_lifetime_max_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v5, ri_lifetime_max_phys_footprint) - 240usize]; + ["Offset of field: rusage_info_v5::ri_instructions"] + [::std::mem::offset_of!(rusage_info_v5, ri_instructions) - 248usize]; + ["Offset of field: rusage_info_v5::ri_cycles"] + [::std::mem::offset_of!(rusage_info_v5, ri_cycles) - 256usize]; + ["Offset of field: rusage_info_v5::ri_billed_energy"] + [::std::mem::offset_of!(rusage_info_v5, ri_billed_energy) - 264usize]; + ["Offset of field: rusage_info_v5::ri_serviced_energy"] + [::std::mem::offset_of!(rusage_info_v5, ri_serviced_energy) - 272usize]; + ["Offset of field: rusage_info_v5::ri_interval_max_phys_footprint"] + [::std::mem::offset_of!(rusage_info_v5, ri_interval_max_phys_footprint) - 280usize]; + ["Offset of field: rusage_info_v5::ri_runnable_time"] + [::std::mem::offset_of!(rusage_info_v5, ri_runnable_time) - 288usize]; + ["Offset of field: rusage_info_v5::ri_flags"] + [::std::mem::offset_of!(rusage_info_v5, ri_flags) - 296usize]; +}; +pub type rusage_info_current = rusage_info_v5; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { + pub rlim_cur: rlim_t, + pub rlim_max: rlim_t, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of rlimit"][::std::mem::size_of::() - 16usize]; + ["Alignment of rlimit"][::std::mem::align_of::() - 8usize]; + ["Offset of field: rlimit::rlim_cur"][::std::mem::offset_of!(rlimit, rlim_cur) - 0usize]; + ["Offset of field: rlimit::rlim_max"][::std::mem::offset_of!(rlimit, rlim_max) - 8usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct proc_rlimit_control_wakeupmon { + pub wm_flags: u32, + pub wm_rate: i32, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of proc_rlimit_control_wakeupmon"] + [::std::mem::size_of::() - 8usize]; + ["Alignment of proc_rlimit_control_wakeupmon"] + [::std::mem::align_of::() - 4usize]; + ["Offset of field: proc_rlimit_control_wakeupmon::wm_flags"] + [::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_flags) - 0usize]; + ["Offset of field: proc_rlimit_control_wakeupmon::wm_rate"] + [::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_rate) - 4usize]; +}; +unsafe extern "C" { + pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn getiopolicy_np( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe 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; +} +unsafe 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, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _OSUnalignedU16"][::std::mem::size_of::<_OSUnalignedU16>() - 2usize]; + ["Alignment of _OSUnalignedU16"][::std::mem::align_of::<_OSUnalignedU16>() - 1usize]; + ["Offset of field: _OSUnalignedU16::__val"] + [::std::mem::offset_of!(_OSUnalignedU16, __val) - 0usize]; +}; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _OSUnalignedU32 { + pub __val: u32, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _OSUnalignedU32"][::std::mem::size_of::<_OSUnalignedU32>() - 4usize]; + ["Alignment of _OSUnalignedU32"][::std::mem::align_of::<_OSUnalignedU32>() - 1usize]; + ["Offset of field: _OSUnalignedU32::__val"] + [::std::mem::offset_of!(_OSUnalignedU32, __val) - 0usize]; +}; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _OSUnalignedU64 { + pub __val: u64, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _OSUnalignedU64"][::std::mem::size_of::<_OSUnalignedU64>() - 8usize]; + ["Alignment of _OSUnalignedU64"][::std::mem::align_of::<_OSUnalignedU64>() - 1usize]; + ["Offset of field: _OSUnalignedU64::__val"] + [::std::mem::offset_of!(_OSUnalignedU64, __val) - 0usize]; +}; +#[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]>, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of wait__bindgen_ty_1"][::std::mem::size_of::() - 4usize]; + ["Alignment of wait__bindgen_ty_1"][::std::mem::align_of::() - 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 unsafe fn w_Termsig_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 7u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Termsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 7u8, + val as u64, + ) + } + } + #[inline] + pub fn w_Coredump(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub unsafe fn w_Coredump_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 7usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Coredump_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 7usize, + 1u8, + val as u64, + ) + } + } + #[inline] + pub fn w_Retcode(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub unsafe fn w_Retcode_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Retcode_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] + pub fn w_Filler(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] + pub fn new_bitfield_1( + w_Termsig: ::std::os::raw::c_uint, + w_Coredump: ::std::os::raw::c_uint, + w_Retcode: ::std::os::raw::c_uint, + w_Filler: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 7u8, { + let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) }; + w_Termsig as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) }; + w_Coredump as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) }; + w_Retcode as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct wait__bindgen_ty_2 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of wait__bindgen_ty_2"][::std::mem::size_of::() - 4usize]; + ["Alignment of wait__bindgen_ty_2"][::std::mem::align_of::() - 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 unsafe fn w_Stopval_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Stopval_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 8u8, + val as u64, + ) + } + } + #[inline] + pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub unsafe fn w_Stopsig_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Stopsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] + pub fn w_Filler(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] + pub fn new_bitfield_1( + w_Stopval: ::std::os::raw::c_uint, + w_Stopsig: ::std::os::raw::c_uint, + w_Filler: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) }; + w_Stopval as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) }; + w_Stopsig as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of wait"][::std::mem::size_of::() - 4usize]; + ["Alignment of wait"][::std::mem::align_of::() - 4usize]; + ["Offset of field: wait::w_status"][::std::mem::offset_of!(wait, w_status) - 0usize]; + ["Offset of field: wait::w_T"][::std::mem::offset_of!(wait, w_T) - 0usize]; + ["Offset of field: wait::w_S"][::std::mem::offset_of!(wait, w_S) - 0usize]; +}; +unsafe extern "C" { + pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; +} +unsafe extern "C" { + pub fn waitpid( + arg1: pid_t, + arg2: *mut ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + ) -> pid_t; +} +unsafe 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; +} +unsafe extern "C" { + pub fn wait3( + arg1: *mut ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut rusage, + ) -> pid_t; +} +unsafe 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; +} +unsafe 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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of div_t"][::std::mem::size_of::() - 8usize]; + ["Alignment of div_t"][::std::mem::align_of::() - 4usize]; + ["Offset of field: div_t::quot"][::std::mem::offset_of!(div_t, quot) - 0usize]; + ["Offset of field: div_t::rem"][::std::mem::offset_of!(div_t, rem) - 4usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of ldiv_t"][::std::mem::size_of::() - 16usize]; + ["Alignment of ldiv_t"][::std::mem::align_of::() - 8usize]; + ["Offset of field: ldiv_t::quot"][::std::mem::offset_of!(ldiv_t, quot) - 0usize]; + ["Offset of field: ldiv_t::rem"][::std::mem::offset_of!(ldiv_t, rem) - 8usize]; +}; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of lldiv_t"][::std::mem::size_of::() - 16usize]; + ["Alignment of lldiv_t"][::std::mem::align_of::() - 8usize]; + ["Offset of field: lldiv_t::quot"][::std::mem::offset_of!(lldiv_t, quot) - 0usize]; + ["Offset of field: lldiv_t::rem"][::std::mem::offset_of!(lldiv_t, rem) - 8usize]; +}; +unsafe extern "C" { + pub static mut __mb_cur_max: ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn calloc( + __count: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn free(arg1: *mut ::std::os::raw::c_void); +} +unsafe extern "C" { + pub fn realloc( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn valloc(arg1: usize) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn aligned_alloc( + __alignment: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn posix_memalign( + __memptr: *mut *mut ::std::os::raw::c_void, + __alignment: usize, + __size: usize, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn abort() -> !; +} +unsafe extern "C" { + pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; +} +unsafe extern "C" { + pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +unsafe extern "C" { + pub fn bsearch( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> *mut ::std::os::raw::c_void; +} +unsafe extern "C" { + pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; +} +unsafe extern "C" { + pub fn exit(arg1: ::std::os::raw::c_int) -> !; +} +unsafe extern "C" { + pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; +} +unsafe extern "C" { + pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +unsafe extern "C" { + pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; +} +unsafe extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, arg3: usize) -> usize; +} +unsafe extern "C" { + pub fn mbtowc( + arg1: *mut wchar_t, + arg2: *const ::std::os::raw::c_char, + arg3: usize, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +unsafe extern "C" { + pub fn rand() -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn srand(arg1: ::std::os::raw::c_uint); +} +unsafe extern "C" { + pub fn strtod( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +unsafe extern "C" { + pub fn strtof( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +unsafe 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; +} +unsafe extern "C" { + pub fn strtold( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +unsafe 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; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const wchar_t, arg3: usize) -> usize; +} +unsafe extern "C" { + pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn _Exit(arg1: ::std::os::raw::c_int) -> !; +} +unsafe extern "C" { + pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn drand48() -> f64; +} +unsafe 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; +} +unsafe extern "C" { + pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; +} +unsafe 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; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn initstate( + arg1: ::std::os::raw::c_uint, + arg2: *mut ::std::os::raw::c_char, + arg3: usize, + ) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); +} +unsafe extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn ptsname_r( + fildes: ::std::os::raw::c_int, + buffer: *mut ::std::os::raw::c_char, + buflen: usize, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn random() -> ::std::os::raw::c_long; +} +unsafe extern "C" { + pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe extern "C" { + pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; +} +unsafe 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; +} +unsafe extern "C" { + pub fn setkey(arg1: *const ::std::os::raw::c_char); +} +unsafe extern "C" { + pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn srand48(arg1: ::std::os::raw::c_long); +} +unsafe extern "C" { + pub fn srandom(arg1: ::std::os::raw::c_uint); +} +unsafe extern "C" { + pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +unsafe 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; +unsafe extern "C" { + pub fn arc4random() -> u32; +} +unsafe extern "C" { + pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int); +} +unsafe extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize); +} +unsafe extern "C" { + pub fn arc4random_stir(); +} +unsafe extern "C" { + pub fn arc4random_uniform(__upper_bound: u32) -> u32; +} +unsafe extern "C" { + pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn bsearch_b( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +unsafe 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; +} +unsafe extern "C" { + pub fn cgetclose() -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn cgetmatch( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn daemon( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn getprogname() -> *const ::std::os::raw::c_char; +} +unsafe extern "C" { + pub fn setprogname(arg1: *const ::std::os::raw::c_char); +} +unsafe extern "C" { + pub fn heapsort( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn heapsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn mergesort( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn mergesort_b( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn psort( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +unsafe extern "C" { + pub fn psort_b( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: *mut ::std::os::raw::c_void, + ); +} +unsafe extern "C" { + pub fn psort_r( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +unsafe extern "C" { + pub fn qsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + __compar: *mut ::std::os::raw::c_void, + ); +} +unsafe extern "C" { + pub fn qsort_r( + __base: *mut ::std::os::raw::c_void, + __nel: usize, + __width: usize, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); +} +unsafe 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; +} +unsafe extern "C" { + pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +unsafe 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; +} +unsafe extern "C" { + pub fn sranddev(); +} +unsafe extern "C" { + pub fn srandomdev(); +} +unsafe extern "C" { + pub fn reallocf( + __ptr: *mut ::std::os::raw::c_void, + __size: usize, + ) -> *mut ::std::os::raw::c_void; +} +unsafe 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; +} +unsafe 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; +} +unsafe 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; +} +unsafe extern "C" { + pub static mut suboptarg: *mut ::std::os::raw::c_char; +} +pub type VOID = ::std::os::raw::c_void; +pub type PVOID = *mut ::std::os::raw::c_void; +pub type HANDLE = *mut ::std::os::raw::c_void; +pub type PHANDLE = *mut *mut ::std::os::raw::c_void; +pub type HMODULE = *mut ::std::os::raw::c_void; +pub type QWORD = ::std::os::raw::c_ulonglong; +pub type PQWORD = *mut ::std::os::raw::c_ulonglong; +pub type ULONG64 = ::std::os::raw::c_ulonglong; +pub type PULONG64 = *mut ::std::os::raw::c_ulonglong; +pub type SIZE_T = usize; +pub type PSIZE_T = *mut usize; +pub type FILETIME = u64; +pub type PFILETIME = *mut u64; +pub type DWORD = u32; +pub type PDWORD = *mut u32; +pub type LPDWORD = *mut u32; +pub type BOOL = u32; +pub type PBOOL = *mut u32; +pub type NTSTATUS = u32; +pub type WORD = u16; +pub type PWORD = *mut u16; +pub type BYTE = u8; +pub type PBYTE = *mut u8; +pub type LPBYTE = *mut u8; +pub type UCHAR = u8; +pub type CHAR = ::std::os::raw::c_char; +pub type PCHAR = *mut ::std::os::raw::c_char; +pub type LPSTR = *mut ::std::os::raw::c_char; +pub type LPCSTR = *const ::std::os::raw::c_char; +pub type WCHAR = u16; +pub type PWCHAR = *mut u16; +pub type LPWSTR = *mut u16; +pub type LPCWSTR = *const u16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LC_CONFIG { + pub dwVersion: DWORD, + pub dwPrintfVerbosity: DWORD, + pub szDevice: [CHAR; 260usize], + pub szRemote: [CHAR; 260usize], + pub pfn_printf_opt: ::std::option::Option< + unsafe extern "C" fn(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int, + >, + pub paMax: QWORD, + pub fVolatile: BOOL, + pub fWritable: BOOL, + pub fRemote: BOOL, + pub fRemoteDisableCompress: BOOL, + pub szDeviceName: [CHAR; 260usize], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of LC_CONFIG"][::std::mem::size_of::() - 824usize]; + ["Alignment of LC_CONFIG"][::std::mem::align_of::() - 8usize]; + ["Offset of field: LC_CONFIG::dwVersion"] + [::std::mem::offset_of!(LC_CONFIG, dwVersion) - 0usize]; + ["Offset of field: LC_CONFIG::dwPrintfVerbosity"] + [::std::mem::offset_of!(LC_CONFIG, dwPrintfVerbosity) - 4usize]; + ["Offset of field: LC_CONFIG::szDevice"][::std::mem::offset_of!(LC_CONFIG, szDevice) - 8usize]; + ["Offset of field: LC_CONFIG::szRemote"] + [::std::mem::offset_of!(LC_CONFIG, szRemote) - 268usize]; + ["Offset of field: LC_CONFIG::pfn_printf_opt"] + [::std::mem::offset_of!(LC_CONFIG, pfn_printf_opt) - 528usize]; + ["Offset of field: LC_CONFIG::paMax"][::std::mem::offset_of!(LC_CONFIG, paMax) - 536usize]; + ["Offset of field: LC_CONFIG::fVolatile"] + [::std::mem::offset_of!(LC_CONFIG, fVolatile) - 544usize]; + ["Offset of field: LC_CONFIG::fWritable"] + [::std::mem::offset_of!(LC_CONFIG, fWritable) - 548usize]; + ["Offset of field: LC_CONFIG::fRemote"][::std::mem::offset_of!(LC_CONFIG, fRemote) - 552usize]; + ["Offset of field: LC_CONFIG::fRemoteDisableCompress"] + [::std::mem::offset_of!(LC_CONFIG, fRemoteDisableCompress) - 556usize]; + ["Offset of field: LC_CONFIG::szDeviceName"] + [::std::mem::offset_of!(LC_CONFIG, szDeviceName) - 560usize]; +}; +pub type PLC_CONFIG = *mut LC_CONFIG; +#[repr(C)] +#[derive(Debug)] +pub struct tdLC_CONFIG_ERRORINFO { + pub dwVersion: DWORD, + pub cbStruct: DWORD, + pub _FutureUse: [DWORD; 16usize], + pub fUserInputRequest: BOOL, + pub cwszUserText: DWORD, + pub wszUserText: __IncompleteArrayField, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_CONFIG_ERRORINFO"][::std::mem::size_of::() - 80usize]; + ["Alignment of tdLC_CONFIG_ERRORINFO"] + [::std::mem::align_of::() - 4usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::dwVersion"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, dwVersion) - 0usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::cbStruct"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, cbStruct) - 4usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::_FutureUse"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, _FutureUse) - 8usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::fUserInputRequest"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, fUserInputRequest) - 72usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::cwszUserText"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, cwszUserText) - 76usize]; + ["Offset of field: tdLC_CONFIG_ERRORINFO::wszUserText"] + [::std::mem::offset_of!(tdLC_CONFIG_ERRORINFO, wszUserText) - 80usize]; +}; +pub type LC_CONFIG_ERRORINFO = tdLC_CONFIG_ERRORINFO; +pub type PLC_CONFIG_ERRORINFO = *mut tdLC_CONFIG_ERRORINFO; +pub type PPLC_CONFIG_ERRORINFO = *mut *mut tdLC_CONFIG_ERRORINFO; +unsafe extern "C" { + pub fn LcCreate(pLcCreateConfig: PLC_CONFIG) -> HANDLE; +} +unsafe extern "C" { + pub fn LcCreateEx( + pLcCreateConfig: PLC_CONFIG, + ppLcCreateErrorInfo: PPLC_CONFIG_ERRORINFO, + ) -> HANDLE; +} +unsafe extern "C" { + pub fn LcClose(hLC: HANDLE); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tdMEM_SCATTER { + pub version: DWORD, + pub f: BOOL, + pub qwA: QWORD, + pub __bindgen_anon_1: tdMEM_SCATTER__bindgen_ty_1, + pub cb: DWORD, + pub iStack: DWORD, + pub vStack: [QWORD; 12usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tdMEM_SCATTER__bindgen_ty_1 { + pub pb: PBYTE, + pub _Filler: QWORD, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdMEM_SCATTER__bindgen_ty_1"] + [::std::mem::size_of::() - 8usize]; + ["Alignment of tdMEM_SCATTER__bindgen_ty_1"] + [::std::mem::align_of::() - 8usize]; + ["Offset of field: tdMEM_SCATTER__bindgen_ty_1::pb"] + [::std::mem::offset_of!(tdMEM_SCATTER__bindgen_ty_1, pb) - 0usize]; + ["Offset of field: tdMEM_SCATTER__bindgen_ty_1::_Filler"] + [::std::mem::offset_of!(tdMEM_SCATTER__bindgen_ty_1, _Filler) - 0usize]; +}; +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdMEM_SCATTER"][::std::mem::size_of::() - 128usize]; + ["Alignment of tdMEM_SCATTER"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdMEM_SCATTER::version"] + [::std::mem::offset_of!(tdMEM_SCATTER, version) - 0usize]; + ["Offset of field: tdMEM_SCATTER::f"][::std::mem::offset_of!(tdMEM_SCATTER, f) - 4usize]; + ["Offset of field: tdMEM_SCATTER::qwA"][::std::mem::offset_of!(tdMEM_SCATTER, qwA) - 8usize]; + ["Offset of field: tdMEM_SCATTER::cb"][::std::mem::offset_of!(tdMEM_SCATTER, cb) - 24usize]; + ["Offset of field: tdMEM_SCATTER::iStack"] + [::std::mem::offset_of!(tdMEM_SCATTER, iStack) - 28usize]; + ["Offset of field: tdMEM_SCATTER::vStack"] + [::std::mem::offset_of!(tdMEM_SCATTER, vStack) - 32usize]; +}; +pub type MEM_SCATTER = tdMEM_SCATTER; +pub type PMEM_SCATTER = *mut tdMEM_SCATTER; +pub type PPMEM_SCATTER = *mut *mut tdMEM_SCATTER; +unsafe extern "C" { + pub fn LcMemFree(pv: PVOID); +} +unsafe extern "C" { + pub fn LcAllocScatter1(cMEMs: DWORD, pppMEMs: *mut PPMEM_SCATTER) -> BOOL; +} +unsafe extern "C" { + pub fn LcAllocScatter2( + cbData: DWORD, + pbData: PBYTE, + cMEMs: DWORD, + pppMEMs: *mut PPMEM_SCATTER, + ) -> BOOL; +} +unsafe extern "C" { + pub fn LcAllocScatter3( + pbDataFirstPage: PBYTE, + pbDataLastPage: PBYTE, + cbData: DWORD, + pbData: PBYTE, + cMEMs: DWORD, + pppMEMs: *mut PPMEM_SCATTER, + ) -> BOOL; +} +unsafe extern "C" { + pub fn LcReadScatter(hLC: HANDLE, cMEMs: DWORD, ppMEMs: PPMEM_SCATTER); +} +unsafe extern "C" { + pub fn LcRead(hLC: HANDLE, pa: QWORD, cb: DWORD, pb: PBYTE) -> BOOL; +} +unsafe extern "C" { + pub fn LcWriteScatter(hLC: HANDLE, cMEMs: DWORD, ppMEMs: PPMEM_SCATTER); +} +unsafe extern "C" { + pub fn LcWrite(hLC: HANDLE, pa: QWORD, cb: DWORD, pb: PBYTE) -> BOOL; +} +unsafe extern "C" { + pub fn LcGetOption(hLC: HANDLE, fOption: QWORD, pqwValue: PQWORD) -> BOOL; +} +unsafe extern "C" { + pub fn LcSetOption(hLC: HANDLE, fOption: QWORD, qwValue: QWORD) -> BOOL; +} +unsafe extern "C" { + pub fn LcCommand( + hLC: HANDLE, + fCommand: QWORD, + cbDataIn: DWORD, + pbDataIn: PBYTE, + ppbDataOut: *mut PBYTE, + pcbDataOut: PDWORD, + ) -> BOOL; +} +#[repr(C)] +pub struct tdLC_CMD_AGENT_VFS_REQ { + pub dwVersion: DWORD, + pub _FutureUse: DWORD, + pub uszPathFile: [CHAR; 520usize], + pub __bindgen_anon_1: tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1, + pub dwLength: DWORD, + pub cb: DWORD, + pub pb: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1 { + pub qwOffset: QWORD, + pub fOption: QWORD, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1"] + [::std::mem::size_of::() - 8usize]; + ["Alignment of tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1"] + [::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1::qwOffset"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1, qwOffset) - 0usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1::fOption"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ__bindgen_ty_1, fOption) - 0usize]; +}; +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_CMD_AGENT_VFS_REQ"][::std::mem::size_of::() - 544usize]; + ["Alignment of tdLC_CMD_AGENT_VFS_REQ"] + [::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::dwVersion"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, dwVersion) - 0usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::_FutureUse"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, _FutureUse) - 4usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::uszPathFile"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, uszPathFile) - 8usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::dwLength"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, dwLength) - 536usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::cb"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, cb) - 540usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_REQ::pb"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_REQ, pb) - 544usize]; +}; +pub type LC_CMD_AGENT_VFS_REQ = tdLC_CMD_AGENT_VFS_REQ; +pub type PLC_CMD_AGENT_VFS_REQ = *mut tdLC_CMD_AGENT_VFS_REQ; +#[repr(C)] +#[derive(Debug)] +pub struct tdLC_CMD_AGENT_VFS_RSP { + pub dwVersion: DWORD, + pub dwStatus: DWORD, + pub cbReadWrite: DWORD, + pub _FutureUse: [DWORD; 2usize], + pub cb: DWORD, + pub pb: __IncompleteArrayField, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_CMD_AGENT_VFS_RSP"][::std::mem::size_of::() - 24usize]; + ["Alignment of tdLC_CMD_AGENT_VFS_RSP"] + [::std::mem::align_of::() - 4usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::dwVersion"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, dwVersion) - 0usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::dwStatus"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, dwStatus) - 4usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::cbReadWrite"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, cbReadWrite) - 8usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::_FutureUse"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, _FutureUse) - 12usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::cb"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, cb) - 20usize]; + ["Offset of field: tdLC_CMD_AGENT_VFS_RSP::pb"] + [::std::mem::offset_of!(tdLC_CMD_AGENT_VFS_RSP, pb) - 24usize]; +}; +pub type LC_CMD_AGENT_VFS_RSP = tdLC_CMD_AGENT_VFS_RSP; +pub type PLC_CMD_AGENT_VFS_RSP = *mut tdLC_CMD_AGENT_VFS_RSP; +unsafe extern "C" { + pub static mut LC_STATISTICS_NAME: [LPCSTR; 8usize]; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_STATISTICS { + pub dwVersion: DWORD, + pub _Reserved: DWORD, + pub qwFreq: QWORD, + pub Call: [tdLC_STATISTICS__bindgen_ty_1; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_STATISTICS__bindgen_ty_1 { + pub c: QWORD, + pub tm: QWORD, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_STATISTICS__bindgen_ty_1"] + [::std::mem::size_of::() - 16usize]; + ["Alignment of tdLC_STATISTICS__bindgen_ty_1"] + [::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_STATISTICS__bindgen_ty_1::c"] + [::std::mem::offset_of!(tdLC_STATISTICS__bindgen_ty_1, c) - 0usize]; + ["Offset of field: tdLC_STATISTICS__bindgen_ty_1::tm"] + [::std::mem::offset_of!(tdLC_STATISTICS__bindgen_ty_1, tm) - 8usize]; +}; +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_STATISTICS"][::std::mem::size_of::() - 144usize]; + ["Alignment of tdLC_STATISTICS"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_STATISTICS::dwVersion"] + [::std::mem::offset_of!(tdLC_STATISTICS, dwVersion) - 0usize]; + ["Offset of field: tdLC_STATISTICS::_Reserved"] + [::std::mem::offset_of!(tdLC_STATISTICS, _Reserved) - 4usize]; + ["Offset of field: tdLC_STATISTICS::qwFreq"] + [::std::mem::offset_of!(tdLC_STATISTICS, qwFreq) - 8usize]; + ["Offset of field: tdLC_STATISTICS::Call"] + [::std::mem::offset_of!(tdLC_STATISTICS, Call) - 16usize]; +}; +pub type LC_STATISTICS = tdLC_STATISTICS; +pub type PLC_STATISTICS = *mut tdLC_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_MEMMAP_ENTRY { + pub pa: QWORD, + pub cb: QWORD, + pub paRemap: QWORD, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_MEMMAP_ENTRY"][::std::mem::size_of::() - 24usize]; + ["Alignment of tdLC_MEMMAP_ENTRY"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_MEMMAP_ENTRY::pa"] + [::std::mem::offset_of!(tdLC_MEMMAP_ENTRY, pa) - 0usize]; + ["Offset of field: tdLC_MEMMAP_ENTRY::cb"] + [::std::mem::offset_of!(tdLC_MEMMAP_ENTRY, cb) - 8usize]; + ["Offset of field: tdLC_MEMMAP_ENTRY::paRemap"] + [::std::mem::offset_of!(tdLC_MEMMAP_ENTRY, paRemap) - 16usize]; +}; +pub type LC_MEMMAP_ENTRY = tdLC_MEMMAP_ENTRY; +pub type PLC_MEMMAP_ENTRY = *mut tdLC_MEMMAP_ENTRY; +pub const tdLC_ARCH_TP_LC_ARCH_NA: tdLC_ARCH_TP = 0; +pub const tdLC_ARCH_TP_LC_ARCH_X86: tdLC_ARCH_TP = 1; +pub const tdLC_ARCH_TP_LC_ARCH_X86PAE: tdLC_ARCH_TP = 2; +pub const tdLC_ARCH_TP_LC_ARCH_X64: tdLC_ARCH_TP = 3; +pub const tdLC_ARCH_TP_LC_ARCH_ARM64: tdLC_ARCH_TP = 4; +pub type tdLC_ARCH_TP = ::std::os::raw::c_uint; +pub use self::tdLC_ARCH_TP as LC_ARCH_TP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_TLP { + pub cb: DWORD, + pub _Reserved1: DWORD, + pub pb: PBYTE, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_TLP"][::std::mem::size_of::() - 16usize]; + ["Alignment of tdLC_TLP"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_TLP::cb"][::std::mem::offset_of!(tdLC_TLP, cb) - 0usize]; + ["Offset of field: tdLC_TLP::_Reserved1"] + [::std::mem::offset_of!(tdLC_TLP, _Reserved1) - 4usize]; + ["Offset of field: tdLC_TLP::pb"][::std::mem::offset_of!(tdLC_TLP, pb) - 8usize]; +}; +pub type LC_TLP = tdLC_TLP; +pub type PLC_TLP = *mut tdLC_TLP; +pub type PLC_TLP_FUNCTION_CALLBACK = ::std::option::Option< + unsafe extern "C" fn(ctx: PVOID, cbTlp: DWORD, pbTlp: PBYTE, cbInfo: DWORD, szInfo: LPSTR), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_VMM { + pub dwVersion: DWORD, + pub hVMM: HANDLE, + pub hVMMVM: HANDLE, + pub pfnVMMDLL_ConfigGet: PVOID, + pub pfnVMMDLL_VmMemReadScatter: PVOID, + pub pfnVMMDLL_VmMemWriteScatter: PVOID, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_VMM"][::std::mem::size_of::() - 48usize]; + ["Alignment of tdLC_VMM"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_VMM::dwVersion"][::std::mem::offset_of!(tdLC_VMM, dwVersion) - 0usize]; + ["Offset of field: tdLC_VMM::hVMM"][::std::mem::offset_of!(tdLC_VMM, hVMM) - 8usize]; + ["Offset of field: tdLC_VMM::hVMMVM"][::std::mem::offset_of!(tdLC_VMM, hVMMVM) - 16usize]; + ["Offset of field: tdLC_VMM::pfnVMMDLL_ConfigGet"] + [::std::mem::offset_of!(tdLC_VMM, pfnVMMDLL_ConfigGet) - 24usize]; + ["Offset of field: tdLC_VMM::pfnVMMDLL_VmMemReadScatter"] + [::std::mem::offset_of!(tdLC_VMM, pfnVMMDLL_VmMemReadScatter) - 32usize]; + ["Offset of field: tdLC_VMM::pfnVMMDLL_VmMemWriteScatter"] + [::std::mem::offset_of!(tdLC_VMM, pfnVMMDLL_VmMemWriteScatter) - 40usize]; +}; +pub type LC_VMM = tdLC_VMM; +pub type PLC_VMM = *mut tdLC_VMM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_BAR { + pub fValid: BOOL, + pub fIO: BOOL, + pub f64Bit: BOOL, + pub fPrefetchable: BOOL, + pub _Filler: [DWORD; 3usize], + pub iBar: DWORD, + pub pa: QWORD, + pub cb: QWORD, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_BAR"][::std::mem::size_of::() - 48usize]; + ["Alignment of tdLC_BAR"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_BAR::fValid"][::std::mem::offset_of!(tdLC_BAR, fValid) - 0usize]; + ["Offset of field: tdLC_BAR::fIO"][::std::mem::offset_of!(tdLC_BAR, fIO) - 4usize]; + ["Offset of field: tdLC_BAR::f64Bit"][::std::mem::offset_of!(tdLC_BAR, f64Bit) - 8usize]; + ["Offset of field: tdLC_BAR::fPrefetchable"] + [::std::mem::offset_of!(tdLC_BAR, fPrefetchable) - 12usize]; + ["Offset of field: tdLC_BAR::_Filler"][::std::mem::offset_of!(tdLC_BAR, _Filler) - 16usize]; + ["Offset of field: tdLC_BAR::iBar"][::std::mem::offset_of!(tdLC_BAR, iBar) - 28usize]; + ["Offset of field: tdLC_BAR::pa"][::std::mem::offset_of!(tdLC_BAR, pa) - 32usize]; + ["Offset of field: tdLC_BAR::cb"][::std::mem::offset_of!(tdLC_BAR, cb) - 40usize]; +}; +pub type LC_BAR = tdLC_BAR; +pub type PLC_BAR = *mut tdLC_BAR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tdLC_BAR_REQUEST { + pub ctx: PVOID, + pub pBar: PLC_BAR, + pub bTag: BYTE, + pub bFirstBE: BYTE, + pub bLastBE: BYTE, + pub _Filler: BYTE, + pub f64_: BOOL, + pub fRead: BOOL, + pub fReadReply: BOOL, + pub fWrite: BOOL, + pub cbData: DWORD, + pub oData: QWORD, + pub pbData: [BYTE; 4096usize], +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of tdLC_BAR_REQUEST"][::std::mem::size_of::() - 4144usize]; + ["Alignment of tdLC_BAR_REQUEST"][::std::mem::align_of::() - 8usize]; + ["Offset of field: tdLC_BAR_REQUEST::ctx"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, ctx) - 0usize]; + ["Offset of field: tdLC_BAR_REQUEST::pBar"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, pBar) - 8usize]; + ["Offset of field: tdLC_BAR_REQUEST::bTag"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, bTag) - 16usize]; + ["Offset of field: tdLC_BAR_REQUEST::bFirstBE"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, bFirstBE) - 17usize]; + ["Offset of field: tdLC_BAR_REQUEST::bLastBE"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, bLastBE) - 18usize]; + ["Offset of field: tdLC_BAR_REQUEST::_Filler"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, _Filler) - 19usize]; + ["Offset of field: tdLC_BAR_REQUEST::f64_"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, f64_) - 20usize]; + ["Offset of field: tdLC_BAR_REQUEST::fRead"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, fRead) - 24usize]; + ["Offset of field: tdLC_BAR_REQUEST::fReadReply"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, fReadReply) - 28usize]; + ["Offset of field: tdLC_BAR_REQUEST::fWrite"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, fWrite) - 32usize]; + ["Offset of field: tdLC_BAR_REQUEST::cbData"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, cbData) - 36usize]; + ["Offset of field: tdLC_BAR_REQUEST::oData"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, oData) - 40usize]; + ["Offset of field: tdLC_BAR_REQUEST::pbData"] + [::std::mem::offset_of!(tdLC_BAR_REQUEST, pbData) - 48usize]; +}; +pub type LC_BAR_REQUEST = tdLC_BAR_REQUEST; +pub type PLC_BAR_REQUEST = *mut tdLC_BAR_REQUEST; +pub type PLC_BAR_FUNCTION_CALLBACK = + ::std::option::Option; +pub type __builtin_va_list = *mut ::std::os::raw::c_char; +pub type __uint128_t = u128;