From 88e66bbed09c877d267d031659ad729e669376e8 Mon Sep 17 00:00:00 2001 From: tfenne Date: Thu, 12 Nov 2026 19:10:04 -0700 Subject: [PATCH 1/3] feat: update htslib to 1.25 Bump the htslib submodule from 1.23 to 1.25 (htscodecs 1.6.5 -> 1.6.7). The library source list in the 1.25 Makefile is unchanged. - Define HAVE___BUILTIN_PREFETCH in the generated config.h, mirroring the configure check added in htslib 1.24. - Regenerate the prebuilt bindings with bindgen 0.72.1. The Linux file is now generated on Linux; the previous one had been generated on macOS. - Fix the README binding-regeneration recipes: use a dedicated target dir, and locate bindings.rs in both the old and new cargo build-dir layouts. --- README.md | 26 +- build.rs | 2 + htslib | 2 +- linux_prebuilt_bindings.rs | 6509 ++++++++++++++---------------------- osx_prebuilt_bindings.rs | 1820 +++++----- 5 files changed, 3554 insertions(+), 4805 deletions(-) diff --git a/README.md b/README.md index c4cca28..003983c 100644 --- a/README.md +++ b/README.md @@ -15,24 +15,30 @@ git clone --recurse-submodules ... When updating the htslib submodule or modifying `wrapper.h`, the prebuilt binding files need to be regenerated. +The generated bindings do not depend on cargo features, so `--no-default-features` is used to skip building curl and OpenSSL. A dedicated target directory guarantees exactly one `bindings.rs` is found, and the `find` works with both the older `build/hts-sys-/out` and newer `build/hts-sys//out` cargo layouts. + ### macOS ```sh -cargo build --features bindgen -cp target/debug/build/hts-sys-*/out/bindings.rs osx_prebuilt_bindings.rs +CARGO_TARGET_DIR=target/bindgen-macos cargo build --no-default-features --features bindgen +cp "$(find target/bindgen-macos -path '*hts-sys*' -name bindings.rs)" osx_prebuilt_bindings.rs ``` ### Linux +Generate these on Linux (or in Docker as below), never by copying the macOS bindings: the libc declarations and `va_list` differ between platforms. + ```sh docker run --rm --platform linux/amd64 \ - -v "$(pwd)":/workspace -w /workspace rust:latest bash -c ' - rustup component add rustfmt && - apt-get update -qq && - apt-get install -y -qq cmake zlib1g-dev libbz2-dev clang libc6-dev libssl-dev libcurl4-openssl-dev && - cargo build --features bindgen && - BINDINGS=$(find target/debug/build/hts-sys-*/out -name bindings.rs | head -1) && - rustfmt "$BINDINGS" && - cp "$BINDINGS" linux_prebuilt_bindings.rs + -v "$(pwd)":/workspace -w /workspace -e CARGO_TARGET_DIR=/tmp/target rust:latest bash -c ' + set -euo pipefail + rustup component add rustfmt + apt-get update -qq + apt-get install -y -qq cmake clang libc6-dev + cargo build --no-default-features --features bindgen + mapfile -t files < <(find /tmp/target -path "*hts-sys*" -name bindings.rs) + [ "${#files[@]}" -eq 1 ] || { echo "expected one bindings.rs, found ${#files[@]}"; exit 1; } + rustfmt --edition 2021 "${files[0]}" + cp "${files[0]}" linux_prebuilt_bindings.rs ' ``` diff --git a/build.rs b/build.rs index eae492f..585fb49 100644 --- a/build.rs +++ b/build.rs @@ -112,6 +112,8 @@ fn main() { let mut config_lines = vec![ "/* Default config.h generated by build.rs */", "#define HAVE_DRAND48 1", + // Without this, hts_prefetch() in hts_defs.h falls back to a volatile read. + "#define HAVE___BUILTIN_PREFETCH 1", ]; let use_bzip2 = env::var("CARGO_FEATURE_BZIP2").is_ok(); diff --git a/htslib b/htslib index 86e74e0..20b9f2a 160000 --- a/htslib +++ b/htslib @@ -1 +1 @@ -Subproject commit 86e74e065e39749d25636f8454773d9d898c5eb3 +Subproject commit 20b9f2a85371732a10f4ea285b9708ceb2dd41e2 diff --git a/linux_prebuilt_bindings.rs b/linux_prebuilt_bindings.rs index 806d1ec..8592a40 100644 --- a/linux_prebuilt_bindings.rs +++ b/linux_prebuilt_bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] @@ -36,7 +36,9 @@ where 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); + let byte = unsafe { + *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) + }; Self::extract_bit(byte, index) } #[inline] @@ -64,9 +66,10 @@ where 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); + let byte = unsafe { + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) + }; + unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -93,7 +96,7 @@ where 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) { + if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { @@ -133,1077 +136,457 @@ where } else { i }; - Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); - } - } -} + unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; + } + } +} +#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)] +#[repr(C)] +pub struct __BindgenComplex { + pub re: T, + pub im: T, +} +pub const _STDINT_H: u32 = 1; +pub const _FEATURES_H: u32 = 1; +pub const _DEFAULT_SOURCE: u32 = 1; +pub const __GLIBC_USE_ISOC2Y: u32 = 0; +pub const __GLIBC_USE_ISOC23: u32 = 0; +pub const __USE_ISOC11: u32 = 1; +pub const __USE_ISOC99: u32 = 1; +pub const __USE_ISOC95: u32 = 1; +pub const __USE_POSIX_IMPLICITLY: u32 = 1; +pub const _POSIX_SOURCE: u32 = 1; +pub const _POSIX_C_SOURCE: u32 = 200809; +pub const __USE_POSIX: u32 = 1; +pub const __USE_POSIX2: u32 = 1; +pub const __USE_POSIX199309: u32 = 1; +pub const __USE_POSIX199506: u32 = 1; +pub const __USE_XOPEN2K: u32 = 1; +pub const __USE_XOPEN2K8: u32 = 1; +pub const _ATFILE_SOURCE: u32 = 1; pub const __WORDSIZE: u32 = 64; -pub const __has_safe_buffers: u32 = 1; -pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1; -pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1; -pub const __DARWIN_ONLY_VERS_1050: u32 = 1; -pub const __DARWIN_UNIX03: u32 = 1; -pub const __DARWIN_64_BIT_INO_T: u32 = 1; -pub const __DARWIN_VERS_1050: u32 = 1; -pub const __DARWIN_NON_CANCELABLE: u32 = 0; -pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0"; -pub const __DARWIN_C_ANSI: u32 = 4096; -pub const __DARWIN_C_FULL: u32 = 900000; -pub const __DARWIN_C_LEVEL: u32 = 900000; -pub const __STDC_WANT_LIB_EXT1__: u32 = 1; -pub const __DARWIN_NO_LONG_LONG: u32 = 0; -pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1; -pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1; -pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1; -pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1; -pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3; -pub const __has_ptrcheck: u32 = 0; -pub const __has_bounds_safety_attributes: u32 = 0; -pub const USE_CLANG_TYPES: u32 = 0; -pub const __PTHREAD_SIZE__: u32 = 8176; -pub const __PTHREAD_ATTR_SIZE__: u32 = 56; -pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8; -pub const __PTHREAD_MUTEX_SIZE__: u32 = 56; -pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8; -pub const __PTHREAD_COND_SIZE__: u32 = 40; -pub const __PTHREAD_ONCE_SIZE__: u32 = 8; -pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192; -pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const INT64_MAX: u64 = 9223372036854775807; +pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; +pub const __SYSCALL_WORDSIZE: u32 = 64; +pub const __TIMESIZE: u32 = 64; +pub const __USE_TIME_BITS64: u32 = 1; +pub const __USE_MISC: u32 = 1; +pub const __USE_ATFILE: u32 = 1; +pub const __USE_FORTIFY_LEVEL: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; +pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; +pub const __GLIBC_USE_C23_STRTOL: u32 = 0; +pub const _STDC_PREDEF_H: u32 = 1; +pub const __STDC_IEC_559__: u32 = 1; +pub const __STDC_IEC_60559_BFP__: u32 = 201404; +pub const __STDC_IEC_559_COMPLEX__: u32 = 1; +pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; +pub const __STDC_ISO_10646__: u32 = 201706; +pub const __GNU_LIBRARY__: u32 = 6; +pub const __GLIBC__: u32 = 2; +pub const __GLIBC_MINOR__: u32 = 41; +pub const _SYS_CDEFS_H: u32 = 1; +pub const __glibc_c99_flexarr_available: u32 = 1; +pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; +pub const __HAVE_GENERIC_SELECTION: u32 = 1; +pub const __GLIBC_USE_LIB_EXT2: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23: u32 = 0; +pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; +pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23: u32 = 0; +pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; +pub const _BITS_TYPES_H: u32 = 1; +pub const _BITS_TYPESIZES_H: u32 = 1; +pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; +pub const __INO_T_MATCHES_INO64_T: u32 = 1; +pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; +pub const __STATFS_MATCHES_STATFS64: u32 = 1; +pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; +pub const __FD_SETSIZE: u32 = 1024; +pub const _BITS_TIME64_H: u32 = 1; +pub const _BITS_WCHAR_H: u32 = 1; +pub const _BITS_STDINT_INTN_H: u32 = 1; +pub const _BITS_STDINT_UINTN_H: u32 = 1; +pub const _BITS_STDINT_LEAST_H: u32 = 1; 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 INT8_MAX: u32 = 127; +pub const INT16_MAX: u32 = 32767; +pub const INT32_MAX: u32 = 2147483647; pub const UINT8_MAX: u32 = 255; pub const UINT16_MAX: u32 = 65535; pub const UINT32_MAX: u32 = 4294967295; -pub const 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_FAST16_MIN: i64 = -9223372036854775808; +pub const INT_FAST32_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 INT_FAST16_MAX: u64 = 9223372036854775807; +pub const INT_FAST32_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 UINT_FAST16_MAX: i32 = -1; +pub const UINT_FAST32_MAX: i32 = -1; pub const INTPTR_MIN: i64 = -9223372036854775808; +pub const INTPTR_MAX: u64 = 9223372036854775807; pub const UINTPTR_MAX: i32 = -1; -pub const SIZE_MAX: i32 = -1; -pub const RSIZE_MAX: i32 = -1; -pub const WINT_MIN: i32 = -2147483648; -pub const WINT_MAX: u32 = 2147483647; +pub const PTRDIFF_MIN: i64 = -9223372036854775808; +pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const __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 SIZE_MAX: i32 = -1; +pub const WINT_MIN: u32 = 0; +pub const WINT_MAX: u32 = 4294967295; +pub const _INTTYPES_H: u32 = 1; +pub const ____gwchar_t_defined: u32 = 1; +pub const __PRI64_PREFIX: &[u8; 2] = b"l\0"; +pub const __PRIPTR_PREFIX: &[u8; 2] = b"l\0"; +pub const PRId8: &[u8; 2] = b"d\0"; +pub const PRId16: &[u8; 2] = b"d\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 PRId64: &[u8; 3] = b"ld\0"; +pub const PRIdLEAST8: &[u8; 2] = b"d\0"; +pub const PRIdLEAST16: &[u8; 2] = b"d\0"; pub const PRIdLEAST32: &[u8; 2] = b"d\0"; +pub const PRIdLEAST64: &[u8; 3] = b"ld\0"; +pub const PRIdFAST8: &[u8; 2] = b"d\0"; +pub const PRIdFAST16: &[u8; 3] = b"ld\0"; +pub const PRIdFAST32: &[u8; 3] = b"ld\0"; +pub const PRIdFAST64: &[u8; 3] = b"ld\0"; +pub const PRIi8: &[u8; 2] = b"i\0"; +pub const PRIi16: &[u8; 2] = b"i\0"; +pub const PRIi32: &[u8; 2] = b"i\0"; +pub const PRIi64: &[u8; 3] = b"li\0"; +pub const PRIiLEAST8: &[u8; 2] = b"i\0"; +pub const PRIiLEAST16: &[u8; 2] = b"i\0"; pub const PRIiLEAST32: &[u8; 2] = b"i\0"; +pub const PRIiLEAST64: &[u8; 3] = b"li\0"; +pub const PRIiFAST8: &[u8; 2] = b"i\0"; +pub const PRIiFAST16: &[u8; 3] = b"li\0"; +pub const PRIiFAST32: &[u8; 3] = b"li\0"; +pub const PRIiFAST64: &[u8; 3] = b"li\0"; +pub const PRIo8: &[u8; 2] = b"o\0"; +pub const PRIo16: &[u8; 2] = b"o\0"; +pub const PRIo32: &[u8; 2] = b"o\0"; +pub const PRIo64: &[u8; 3] = b"lo\0"; +pub const PRIoLEAST8: &[u8; 2] = b"o\0"; +pub const PRIoLEAST16: &[u8; 2] = b"o\0"; pub const PRIoLEAST32: &[u8; 2] = b"o\0"; +pub const PRIoLEAST64: &[u8; 3] = b"lo\0"; +pub const PRIoFAST8: &[u8; 2] = b"o\0"; +pub const PRIoFAST16: &[u8; 3] = b"lo\0"; +pub const PRIoFAST32: &[u8; 3] = b"lo\0"; +pub const PRIoFAST64: &[u8; 3] = b"lo\0"; +pub const PRIu8: &[u8; 2] = b"u\0"; +pub const PRIu16: &[u8; 2] = b"u\0"; +pub const PRIu32: &[u8; 2] = b"u\0"; +pub const PRIu64: &[u8; 3] = b"lu\0"; +pub const PRIuLEAST8: &[u8; 2] = b"u\0"; +pub const PRIuLEAST16: &[u8; 2] = b"u\0"; pub const PRIuLEAST32: &[u8; 2] = b"u\0"; +pub const PRIuLEAST64: &[u8; 3] = b"lu\0"; +pub const PRIuFAST8: &[u8; 2] = b"u\0"; +pub const PRIuFAST16: &[u8; 3] = b"lu\0"; +pub const PRIuFAST32: &[u8; 3] = b"lu\0"; +pub const PRIuFAST64: &[u8; 3] = b"lu\0"; +pub const PRIx8: &[u8; 2] = b"x\0"; +pub const PRIx16: &[u8; 2] = b"x\0"; +pub const PRIx32: &[u8; 2] = b"x\0"; +pub const PRIx64: &[u8; 3] = b"lx\0"; +pub const PRIxLEAST8: &[u8; 2] = b"x\0"; +pub const PRIxLEAST16: &[u8; 2] = b"x\0"; pub const PRIxLEAST32: &[u8; 2] = b"x\0"; +pub const PRIxLEAST64: &[u8; 3] = b"lx\0"; +pub const PRIxFAST8: &[u8; 2] = b"x\0"; +pub const PRIxFAST16: &[u8; 3] = b"lx\0"; +pub const PRIxFAST32: &[u8; 3] = b"lx\0"; +pub const PRIxFAST64: &[u8; 3] = b"lx\0"; +pub const PRIX8: &[u8; 2] = b"X\0"; +pub const PRIX16: &[u8; 2] = b"X\0"; +pub const PRIX32: &[u8; 2] = b"X\0"; +pub const PRIX64: &[u8; 3] = b"lX\0"; +pub const PRIXLEAST8: &[u8; 2] = b"X\0"; +pub const PRIXLEAST16: &[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 PRIXLEAST64: &[u8; 3] = b"lX\0"; +pub const PRIXFAST8: &[u8; 2] = b"X\0"; +pub const PRIXFAST16: &[u8; 3] = b"lX\0"; +pub const PRIXFAST32: &[u8; 3] = b"lX\0"; +pub const PRIXFAST64: &[u8; 3] = b"lX\0"; +pub const PRIdMAX: &[u8; 3] = b"ld\0"; +pub const PRIiMAX: &[u8; 3] = b"li\0"; +pub const PRIoMAX: &[u8; 3] = b"lo\0"; +pub const PRIuMAX: &[u8; 3] = b"lu\0"; +pub const PRIxMAX: &[u8; 3] = b"lx\0"; +pub const PRIXMAX: &[u8; 3] = b"lX\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 SCNd64: &[u8; 3] = b"ld\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 SCNdLEAST64: &[u8; 3] = b"ld\0"; pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNdFAST16: &[u8; 3] = b"ld\0"; +pub const SCNdFAST32: &[u8; 3] = b"ld\0"; +pub const SCNdFAST64: &[u8; 3] = b"ld\0"; +pub const SCNi8: &[u8; 4] = b"hhi\0"; +pub const SCNi16: &[u8; 3] = b"hi\0"; +pub const SCNi32: &[u8; 2] = b"i\0"; +pub const SCNi64: &[u8; 3] = b"li\0"; +pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; +pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; +pub const SCNiLEAST32: &[u8; 2] = b"i\0"; +pub const SCNiLEAST64: &[u8; 3] = b"li\0"; pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; -pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNiFAST16: &[u8; 3] = b"li\0"; +pub const SCNiFAST32: &[u8; 3] = b"li\0"; +pub const SCNiFAST64: &[u8; 3] = b"li\0"; +pub const SCNu8: &[u8; 4] = b"hhu\0"; +pub const SCNu16: &[u8; 3] = b"hu\0"; +pub const SCNu32: &[u8; 2] = b"u\0"; +pub const SCNu64: &[u8; 3] = b"lu\0"; +pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; +pub const SCNuLEAST32: &[u8; 2] = b"u\0"; +pub const SCNuLEAST64: &[u8; 3] = b"lu\0"; pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuFAST16: &[u8; 3] = b"lu\0"; +pub const SCNuFAST32: &[u8; 3] = b"lu\0"; +pub const SCNuFAST64: &[u8; 3] = b"lu\0"; +pub const SCNo8: &[u8; 4] = b"hho\0"; +pub const SCNo16: &[u8; 3] = b"ho\0"; +pub const SCNo32: &[u8; 2] = b"o\0"; +pub const SCNo64: &[u8; 3] = b"lo\0"; +pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; +pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; +pub const SCNoLEAST32: &[u8; 2] = b"o\0"; +pub const SCNoLEAST64: &[u8; 3] = b"lo\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNoFAST16: &[u8; 3] = b"lo\0"; +pub const SCNoFAST32: &[u8; 3] = b"lo\0"; +pub const SCNoFAST64: &[u8; 3] = b"lo\0"; +pub const SCNx8: &[u8; 4] = b"hhx\0"; +pub const SCNx16: &[u8; 3] = b"hx\0"; +pub const SCNx32: &[u8; 2] = b"x\0"; +pub const SCNx64: &[u8; 3] = b"lx\0"; +pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; +pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; +pub const SCNxLEAST32: &[u8; 2] = b"x\0"; +pub const SCNxLEAST64: &[u8; 3] = b"lx\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 SCNxFAST16: &[u8; 3] = b"lx\0"; +pub const SCNxFAST32: &[u8; 3] = b"lx\0"; +pub const SCNxFAST64: &[u8; 3] = b"lx\0"; +pub const SCNdMAX: &[u8; 3] = b"ld\0"; +pub const SCNiMAX: &[u8; 3] = b"li\0"; +pub const SCNoMAX: &[u8; 3] = b"lo\0"; +pub const SCNuMAX: &[u8; 3] = b"lu\0"; +pub const SCNxMAX: &[u8; 3] = b"lx\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 __API_TO_BE_DEPRECATED: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_KERNELKIT: u32 = 100000; -pub const __MAC_10_0: u32 = 1000; -pub const __MAC_10_1: u32 = 1010; -pub const __MAC_10_2: u32 = 1020; -pub const __MAC_10_3: u32 = 1030; -pub const __MAC_10_4: u32 = 1040; -pub const __MAC_10_5: u32 = 1050; -pub const __MAC_10_6: u32 = 1060; -pub const __MAC_10_7: u32 = 1070; -pub const __MAC_10_8: u32 = 1080; -pub const __MAC_10_9: u32 = 1090; -pub const __MAC_10_10: u32 = 101000; -pub const __MAC_10_10_2: u32 = 101002; -pub const __MAC_10_10_3: u32 = 101003; -pub const __MAC_10_11: u32 = 101100; -pub const __MAC_10_11_2: u32 = 101102; -pub const __MAC_10_11_3: u32 = 101103; -pub const __MAC_10_11_4: u32 = 101104; -pub const __MAC_10_12: u32 = 101200; -pub const __MAC_10_12_1: u32 = 101201; -pub const __MAC_10_12_2: u32 = 101202; -pub const __MAC_10_12_4: u32 = 101204; -pub const __MAC_10_13: u32 = 101300; -pub const __MAC_10_13_1: u32 = 101301; -pub const __MAC_10_13_2: u32 = 101302; -pub const __MAC_10_13_4: u32 = 101304; -pub const __MAC_10_14: u32 = 101400; -pub const __MAC_10_14_1: u32 = 101401; -pub const __MAC_10_14_4: u32 = 101404; -pub const __MAC_10_14_5: u32 = 101405; -pub const __MAC_10_14_6: u32 = 101406; -pub const __MAC_10_15: u32 = 101500; -pub const __MAC_10_15_1: u32 = 101501; -pub const __MAC_10_15_4: u32 = 101504; -pub const __MAC_10_16: u32 = 101600; -pub const __MAC_11_0: u32 = 110000; -pub const __MAC_11_1: u32 = 110100; -pub const __MAC_11_3: u32 = 110300; -pub const __MAC_11_4: u32 = 110400; -pub const __MAC_11_5: u32 = 110500; -pub const __MAC_11_6: u32 = 110600; -pub const __MAC_12_0: u32 = 120000; -pub const __MAC_12_1: u32 = 120100; -pub const __MAC_12_2: u32 = 120200; -pub const __MAC_12_3: u32 = 120300; -pub const __MAC_12_4: u32 = 120400; -pub const __MAC_12_5: u32 = 120500; -pub const __MAC_12_6: u32 = 120600; -pub const __MAC_12_7: u32 = 120700; -pub const __MAC_13_0: u32 = 130000; -pub const __MAC_13_1: u32 = 130100; -pub const __MAC_13_2: u32 = 130200; -pub const __MAC_13_3: u32 = 130300; -pub const __MAC_13_4: u32 = 130400; -pub const __MAC_13_5: u32 = 130500; -pub const __MAC_13_6: u32 = 130600; -pub const __MAC_13_7: u32 = 130700; -pub const __MAC_14_0: u32 = 140000; -pub const __MAC_14_1: u32 = 140100; -pub const __MAC_14_2: u32 = 140200; -pub const __MAC_14_3: u32 = 140300; -pub const __MAC_14_4: u32 = 140400; -pub const __MAC_14_5: u32 = 140500; -pub const __MAC_14_6: u32 = 140600; -pub const __MAC_14_7: u32 = 140700; -pub const __MAC_15_0: u32 = 150000; -pub const __MAC_15_1: u32 = 150100; -pub const __MAC_15_2: u32 = 150200; -pub const __MAC_15_3: u32 = 150300; -pub const __MAC_15_4: u32 = 150400; -pub const __MAC_15_5: u32 = 150500; -pub const __MAC_15_6: u32 = 150600; -pub const __MAC_16_0: u32 = 160000; -pub const __MAC_26_0: u32 = 260000; -pub const __MAC_26_1: u32 = 260100; -pub const __IPHONE_2_0: u32 = 20000; -pub const __IPHONE_2_1: u32 = 20100; -pub const __IPHONE_2_2: u32 = 20200; -pub const __IPHONE_3_0: u32 = 30000; -pub const __IPHONE_3_1: u32 = 30100; -pub const __IPHONE_3_2: u32 = 30200; -pub const __IPHONE_4_0: u32 = 40000; -pub const __IPHONE_4_1: u32 = 40100; -pub const __IPHONE_4_2: u32 = 40200; -pub const __IPHONE_4_3: u32 = 40300; -pub const __IPHONE_5_0: u32 = 50000; -pub const __IPHONE_5_1: u32 = 50100; -pub const __IPHONE_6_0: u32 = 60000; -pub const __IPHONE_6_1: u32 = 60100; -pub const __IPHONE_7_0: u32 = 70000; -pub const __IPHONE_7_1: u32 = 70100; -pub const __IPHONE_8_0: u32 = 80000; -pub const __IPHONE_8_1: u32 = 80100; -pub const __IPHONE_8_2: u32 = 80200; -pub const __IPHONE_8_3: u32 = 80300; -pub const __IPHONE_8_4: u32 = 80400; -pub const __IPHONE_9_0: u32 = 90000; -pub const __IPHONE_9_1: u32 = 90100; -pub const __IPHONE_9_2: u32 = 90200; -pub const __IPHONE_9_3: u32 = 90300; -pub const __IPHONE_10_0: u32 = 100000; -pub const __IPHONE_10_1: u32 = 100100; -pub const __IPHONE_10_2: u32 = 100200; -pub const __IPHONE_10_3: u32 = 100300; -pub const __IPHONE_11_0: u32 = 110000; -pub const __IPHONE_11_1: u32 = 110100; -pub const __IPHONE_11_2: u32 = 110200; -pub const __IPHONE_11_3: u32 = 110300; -pub const __IPHONE_11_4: u32 = 110400; -pub const __IPHONE_12_0: u32 = 120000; -pub const __IPHONE_12_1: u32 = 120100; -pub const __IPHONE_12_2: u32 = 120200; -pub const __IPHONE_12_3: u32 = 120300; -pub const __IPHONE_12_4: u32 = 120400; -pub const __IPHONE_13_0: u32 = 130000; -pub const __IPHONE_13_1: u32 = 130100; -pub const __IPHONE_13_2: u32 = 130200; -pub const __IPHONE_13_3: u32 = 130300; -pub const __IPHONE_13_4: u32 = 130400; -pub const __IPHONE_13_5: u32 = 130500; -pub const __IPHONE_13_6: u32 = 130600; -pub const __IPHONE_13_7: u32 = 130700; -pub const __IPHONE_14_0: u32 = 140000; -pub const __IPHONE_14_1: u32 = 140100; -pub const __IPHONE_14_2: u32 = 140200; -pub const __IPHONE_14_3: u32 = 140300; -pub const __IPHONE_14_5: u32 = 140500; -pub const __IPHONE_14_6: u32 = 140600; -pub const __IPHONE_14_7: u32 = 140700; -pub const __IPHONE_14_8: u32 = 140800; -pub const __IPHONE_15_0: u32 = 150000; -pub const __IPHONE_15_1: u32 = 150100; -pub const __IPHONE_15_2: u32 = 150200; -pub const __IPHONE_15_3: u32 = 150300; -pub const __IPHONE_15_4: u32 = 150400; -pub const __IPHONE_15_5: u32 = 150500; -pub const __IPHONE_15_6: u32 = 150600; -pub const __IPHONE_15_7: u32 = 150700; -pub const __IPHONE_15_8: u32 = 150800; -pub const __IPHONE_16_0: u32 = 160000; -pub const __IPHONE_16_1: u32 = 160100; -pub const __IPHONE_16_2: u32 = 160200; -pub const __IPHONE_16_3: u32 = 160300; -pub const __IPHONE_16_4: u32 = 160400; -pub const __IPHONE_16_5: u32 = 160500; -pub const __IPHONE_16_6: u32 = 160600; -pub const __IPHONE_16_7: u32 = 160700; -pub const __IPHONE_17_0: u32 = 170000; -pub const __IPHONE_17_1: u32 = 170100; -pub const __IPHONE_17_2: u32 = 170200; -pub const __IPHONE_17_3: u32 = 170300; -pub const __IPHONE_17_4: u32 = 170400; -pub const __IPHONE_17_5: u32 = 170500; -pub const __IPHONE_17_6: u32 = 170600; -pub const __IPHONE_17_7: u32 = 170700; -pub const __IPHONE_18_0: u32 = 180000; -pub const __IPHONE_18_1: u32 = 180100; -pub const __IPHONE_18_2: u32 = 180200; -pub const __IPHONE_18_3: u32 = 180300; -pub const __IPHONE_18_4: u32 = 180400; -pub const __IPHONE_18_5: u32 = 180500; -pub const __IPHONE_18_6: u32 = 180600; -pub const __IPHONE_19_0: u32 = 190000; -pub const __IPHONE_26_0: u32 = 260000; -pub const __IPHONE_26_1: u32 = 260100; -pub const __WATCHOS_1_0: u32 = 10000; -pub const __WATCHOS_2_0: u32 = 20000; -pub const __WATCHOS_2_1: u32 = 20100; -pub const __WATCHOS_2_2: u32 = 20200; -pub const __WATCHOS_3_0: u32 = 30000; -pub const __WATCHOS_3_1: u32 = 30100; -pub const __WATCHOS_3_1_1: u32 = 30101; -pub const __WATCHOS_3_2: u32 = 30200; -pub const __WATCHOS_4_0: u32 = 40000; -pub const __WATCHOS_4_1: u32 = 40100; -pub const __WATCHOS_4_2: u32 = 40200; -pub const __WATCHOS_4_3: u32 = 40300; -pub const __WATCHOS_5_0: u32 = 50000; -pub const __WATCHOS_5_1: u32 = 50100; -pub const __WATCHOS_5_2: u32 = 50200; -pub const __WATCHOS_5_3: u32 = 50300; -pub const __WATCHOS_6_0: u32 = 60000; -pub const __WATCHOS_6_1: u32 = 60100; -pub const __WATCHOS_6_2: u32 = 60200; -pub const __WATCHOS_7_0: u32 = 70000; -pub const __WATCHOS_7_1: u32 = 70100; -pub const __WATCHOS_7_2: u32 = 70200; -pub const __WATCHOS_7_3: u32 = 70300; -pub const __WATCHOS_7_4: u32 = 70400; -pub const __WATCHOS_7_5: u32 = 70500; -pub const __WATCHOS_7_6: u32 = 70600; -pub const __WATCHOS_8_0: u32 = 80000; -pub const __WATCHOS_8_1: u32 = 80100; -pub const __WATCHOS_8_3: u32 = 80300; -pub const __WATCHOS_8_4: u32 = 80400; -pub const __WATCHOS_8_5: u32 = 80500; -pub const __WATCHOS_8_6: u32 = 80600; -pub const __WATCHOS_8_7: u32 = 80700; -pub const __WATCHOS_8_8: u32 = 80800; -pub const __WATCHOS_9_0: u32 = 90000; -pub const __WATCHOS_9_1: u32 = 90100; -pub const __WATCHOS_9_2: u32 = 90200; -pub const __WATCHOS_9_3: u32 = 90300; -pub const __WATCHOS_9_4: u32 = 90400; -pub const __WATCHOS_9_5: u32 = 90500; -pub const __WATCHOS_9_6: u32 = 90600; -pub const __WATCHOS_10_0: u32 = 100000; -pub const __WATCHOS_10_1: u32 = 100100; -pub const __WATCHOS_10_2: u32 = 100200; -pub const __WATCHOS_10_3: u32 = 100300; -pub const __WATCHOS_10_4: u32 = 100400; -pub const __WATCHOS_10_5: u32 = 100500; -pub const __WATCHOS_10_6: u32 = 100600; -pub const __WATCHOS_10_7: u32 = 100700; -pub const __WATCHOS_11_0: u32 = 110000; -pub const __WATCHOS_11_1: u32 = 110100; -pub const __WATCHOS_11_2: u32 = 110200; -pub const __WATCHOS_11_3: u32 = 110300; -pub const __WATCHOS_11_4: u32 = 110400; -pub const __WATCHOS_11_5: u32 = 110500; -pub const __WATCHOS_11_6: u32 = 110600; -pub const __WATCHOS_12_0: u32 = 120000; -pub const __WATCHOS_26_0: u32 = 260000; -pub const __WATCHOS_26_1: u32 = 260100; -pub const __TVOS_9_0: u32 = 90000; -pub const __TVOS_9_1: u32 = 90100; -pub const __TVOS_9_2: u32 = 90200; -pub const __TVOS_10_0: u32 = 100000; -pub const __TVOS_10_0_1: u32 = 100001; -pub const __TVOS_10_1: u32 = 100100; -pub const __TVOS_10_2: u32 = 100200; -pub const __TVOS_11_0: u32 = 110000; -pub const __TVOS_11_1: u32 = 110100; -pub const __TVOS_11_2: u32 = 110200; -pub const __TVOS_11_3: u32 = 110300; -pub const __TVOS_11_4: u32 = 110400; -pub const __TVOS_12_0: u32 = 120000; -pub const __TVOS_12_1: u32 = 120100; -pub const __TVOS_12_2: u32 = 120200; -pub const __TVOS_12_3: u32 = 120300; -pub const __TVOS_12_4: u32 = 120400; -pub const __TVOS_13_0: u32 = 130000; -pub const __TVOS_13_2: u32 = 130200; -pub const __TVOS_13_3: u32 = 130300; -pub const __TVOS_13_4: u32 = 130400; -pub const __TVOS_14_0: u32 = 140000; -pub const __TVOS_14_1: u32 = 140100; -pub const __TVOS_14_2: u32 = 140200; -pub const __TVOS_14_3: u32 = 140300; -pub const __TVOS_14_5: u32 = 140500; -pub const __TVOS_14_6: u32 = 140600; -pub const __TVOS_14_7: u32 = 140700; -pub const __TVOS_15_0: u32 = 150000; -pub const __TVOS_15_1: u32 = 150100; -pub const __TVOS_15_2: u32 = 150200; -pub const __TVOS_15_3: u32 = 150300; -pub const __TVOS_15_4: u32 = 150400; -pub const __TVOS_15_5: u32 = 150500; -pub const __TVOS_15_6: u32 = 150600; -pub const __TVOS_16_0: u32 = 160000; -pub const __TVOS_16_1: u32 = 160100; -pub const __TVOS_16_2: u32 = 160200; -pub const __TVOS_16_3: u32 = 160300; -pub const __TVOS_16_4: u32 = 160400; -pub const __TVOS_16_5: u32 = 160500; -pub const __TVOS_16_6: u32 = 160600; -pub const __TVOS_17_0: u32 = 170000; -pub const __TVOS_17_1: u32 = 170100; -pub const __TVOS_17_2: u32 = 170200; -pub const __TVOS_17_3: u32 = 170300; -pub const __TVOS_17_4: u32 = 170400; -pub const __TVOS_17_5: u32 = 170500; -pub const __TVOS_17_6: u32 = 170600; -pub const __TVOS_18_0: u32 = 180000; -pub const __TVOS_18_1: u32 = 180100; -pub const __TVOS_18_2: u32 = 180200; -pub const __TVOS_18_3: u32 = 180300; -pub const __TVOS_18_4: u32 = 180400; -pub const __TVOS_18_5: u32 = 180500; -pub const __TVOS_18_6: u32 = 180600; -pub const __TVOS_19_0: u32 = 190000; -pub const __TVOS_26_0: u32 = 260000; -pub const __TVOS_26_1: u32 = 260100; -pub const __BRIDGEOS_2_0: u32 = 20000; -pub const __BRIDGEOS_3_0: u32 = 30000; -pub const __BRIDGEOS_3_1: u32 = 30100; -pub const __BRIDGEOS_3_4: u32 = 30400; -pub const __BRIDGEOS_4_0: u32 = 40000; -pub const __BRIDGEOS_4_1: u32 = 40100; -pub const __BRIDGEOS_5_0: u32 = 50000; -pub const __BRIDGEOS_5_1: u32 = 50100; -pub const __BRIDGEOS_5_3: u32 = 50300; -pub const __BRIDGEOS_6_0: u32 = 60000; -pub const __BRIDGEOS_6_2: u32 = 60200; -pub const __BRIDGEOS_6_4: u32 = 60400; -pub const __BRIDGEOS_6_5: u32 = 60500; -pub const __BRIDGEOS_6_6: u32 = 60600; -pub const __BRIDGEOS_7_0: u32 = 70000; -pub const __BRIDGEOS_7_1: u32 = 70100; -pub const __BRIDGEOS_7_2: u32 = 70200; -pub const __BRIDGEOS_7_3: u32 = 70300; -pub const __BRIDGEOS_7_4: u32 = 70400; -pub const __BRIDGEOS_7_6: u32 = 70600; -pub const __BRIDGEOS_8_0: u32 = 80000; -pub const __BRIDGEOS_8_1: u32 = 80100; -pub const __BRIDGEOS_8_2: u32 = 80200; -pub const __BRIDGEOS_8_3: u32 = 80300; -pub const __BRIDGEOS_8_4: u32 = 80400; -pub const __BRIDGEOS_8_5: u32 = 80500; -pub const __BRIDGEOS_8_6: u32 = 80600; -pub const __BRIDGEOS_9_0: u32 = 90000; -pub const __BRIDGEOS_9_1: u32 = 90100; -pub const __BRIDGEOS_9_2: u32 = 90200; -pub const __BRIDGEOS_9_3: u32 = 90300; -pub const __BRIDGEOS_9_4: u32 = 90400; -pub const __BRIDGEOS_9_5: u32 = 90500; -pub const __BRIDGEOS_9_6: u32 = 90600; -pub const __BRIDGEOS_10_0: u32 = 100000; -pub const __BRIDGEOS_10_1: u32 = 100100; -pub const __DRIVERKIT_19_0: u32 = 190000; -pub const __DRIVERKIT_20_0: u32 = 200000; -pub const __DRIVERKIT_21_0: u32 = 210000; -pub const __DRIVERKIT_22_0: u32 = 220000; -pub const __DRIVERKIT_22_4: u32 = 220400; -pub const __DRIVERKIT_22_5: u32 = 220500; -pub const __DRIVERKIT_22_6: u32 = 220600; -pub const __DRIVERKIT_23_0: u32 = 230000; -pub const __DRIVERKIT_23_1: u32 = 230100; -pub const __DRIVERKIT_23_2: u32 = 230200; -pub const __DRIVERKIT_23_3: u32 = 230300; -pub const __DRIVERKIT_23_4: u32 = 230400; -pub const __DRIVERKIT_23_5: u32 = 230500; -pub const __DRIVERKIT_23_6: u32 = 230600; -pub const __DRIVERKIT_24_0: u32 = 240000; -pub const __DRIVERKIT_24_1: u32 = 240100; -pub const __DRIVERKIT_24_2: u32 = 240200; -pub const __DRIVERKIT_24_3: u32 = 240300; -pub const __DRIVERKIT_24_4: u32 = 240400; -pub const __DRIVERKIT_24_5: u32 = 240500; -pub const __DRIVERKIT_24_6: u32 = 240600; -pub const __DRIVERKIT_25_0: u32 = 250000; -pub const __DRIVERKIT_25_1: u32 = 250100; -pub const __VISIONOS_1_0: u32 = 10000; -pub const __VISIONOS_1_1: u32 = 10100; -pub const __VISIONOS_1_2: u32 = 10200; -pub const __VISIONOS_1_3: u32 = 10300; -pub const __VISIONOS_2_0: u32 = 20000; -pub const __VISIONOS_2_1: u32 = 20100; -pub const __VISIONOS_2_2: u32 = 20200; -pub const __VISIONOS_2_3: u32 = 20300; -pub const __VISIONOS_2_4: u32 = 20400; -pub const __VISIONOS_2_5: u32 = 20500; -pub const __VISIONOS_2_6: u32 = 20600; -pub const __VISIONOS_3_0: u32 = 30000; -pub const __VISIONOS_26_0: u32 = 260000; -pub const __VISIONOS_26_1: u32 = 260100; -pub const MAC_OS_X_VERSION_10_0: u32 = 1000; -pub const MAC_OS_X_VERSION_10_1: u32 = 1010; -pub const MAC_OS_X_VERSION_10_2: u32 = 1020; -pub const MAC_OS_X_VERSION_10_3: u32 = 1030; -pub const MAC_OS_X_VERSION_10_4: u32 = 1040; -pub const MAC_OS_X_VERSION_10_5: u32 = 1050; -pub const MAC_OS_X_VERSION_10_6: u32 = 1060; -pub const MAC_OS_X_VERSION_10_7: u32 = 1070; -pub const MAC_OS_X_VERSION_10_8: u32 = 1080; -pub const MAC_OS_X_VERSION_10_9: u32 = 1090; -pub const MAC_OS_X_VERSION_10_10: u32 = 101000; -pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002; -pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003; -pub const MAC_OS_X_VERSION_10_11: u32 = 101100; -pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102; -pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103; -pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104; -pub const MAC_OS_X_VERSION_10_12: u32 = 101200; -pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201; -pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202; -pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204; -pub const MAC_OS_X_VERSION_10_13: u32 = 101300; -pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301; -pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302; -pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304; -pub const MAC_OS_X_VERSION_10_14: u32 = 101400; -pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401; -pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404; -pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405; -pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406; -pub const MAC_OS_X_VERSION_10_15: u32 = 101500; -pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501; -pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504; -pub const MAC_OS_X_VERSION_10_16: u32 = 101600; -pub const MAC_OS_VERSION_11_0: u32 = 110000; -pub const MAC_OS_VERSION_11_1: u32 = 110100; -pub const MAC_OS_VERSION_11_3: u32 = 110300; -pub const MAC_OS_VERSION_11_4: u32 = 110400; -pub const MAC_OS_VERSION_11_5: u32 = 110500; -pub const MAC_OS_VERSION_11_6: u32 = 110600; -pub const MAC_OS_VERSION_12_0: u32 = 120000; -pub const MAC_OS_VERSION_12_1: u32 = 120100; -pub const MAC_OS_VERSION_12_2: u32 = 120200; -pub const MAC_OS_VERSION_12_3: u32 = 120300; -pub const MAC_OS_VERSION_12_4: u32 = 120400; -pub const MAC_OS_VERSION_12_5: u32 = 120500; -pub const MAC_OS_VERSION_12_6: u32 = 120600; -pub const MAC_OS_VERSION_12_7: u32 = 120700; -pub const MAC_OS_VERSION_13_0: u32 = 130000; -pub const MAC_OS_VERSION_13_1: u32 = 130100; -pub const MAC_OS_VERSION_13_2: u32 = 130200; -pub const MAC_OS_VERSION_13_3: u32 = 130300; -pub const MAC_OS_VERSION_13_4: u32 = 130400; -pub const MAC_OS_VERSION_13_5: u32 = 130500; -pub const MAC_OS_VERSION_13_6: u32 = 130600; -pub const MAC_OS_VERSION_13_7: u32 = 130700; -pub const MAC_OS_VERSION_14_0: u32 = 140000; -pub const MAC_OS_VERSION_14_1: u32 = 140100; -pub const MAC_OS_VERSION_14_2: u32 = 140200; -pub const MAC_OS_VERSION_14_3: u32 = 140300; -pub const MAC_OS_VERSION_14_4: u32 = 140400; -pub const MAC_OS_VERSION_14_5: u32 = 140500; -pub const MAC_OS_VERSION_14_6: u32 = 140600; -pub const MAC_OS_VERSION_14_7: u32 = 140700; -pub const MAC_OS_VERSION_15_0: u32 = 150000; -pub const MAC_OS_VERSION_15_1: u32 = 150100; -pub const MAC_OS_VERSION_15_2: u32 = 150200; -pub const MAC_OS_VERSION_15_3: u32 = 150300; -pub const MAC_OS_VERSION_15_4: u32 = 150400; -pub const MAC_OS_VERSION_15_5: u32 = 150500; -pub const MAC_OS_VERSION_15_6: u32 = 150600; -pub const MAC_OS_VERSION_16_0: u32 = 160000; -pub const MAC_OS_VERSION_26_0: u32 = 260000; -pub const MAC_OS_VERSION_26_1: u32 = 260100; -pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900; -pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0"; -pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0"; -pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260100; -pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; -pub const __DARWIN_WCHAR_MIN: i32 = -2147483648; -pub const _FORTIFY_SOURCE: u32 = 2; -pub const USE_CLANG_STDDEF: u32 = 0; -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 SIGEV_KEVENT: u32 = 4; -pub const ILL_NOOP: u32 = 0; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLTRP: u32 = 2; -pub const ILL_PRVOPC: u32 = 3; -pub const ILL_ILLOPN: u32 = 4; -pub const ILL_ILLADR: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const FPE_NOOP: u32 = 0; -pub const FPE_FLTDIV: u32 = 1; -pub const FPE_FLTOVF: u32 = 2; -pub const FPE_FLTUND: u32 = 3; -pub const FPE_FLTRES: u32 = 4; -pub const FPE_FLTINV: u32 = 5; -pub const FPE_FLTSUB: u32 = 6; -pub const FPE_INTDIV: u32 = 7; -pub const FPE_INTOVF: u32 = 8; -pub const SEGV_NOOP: u32 = 0; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const BUS_NOOP: u32 = 0; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const CLD_NOOP: u32 = 0; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const SA_ONSTACK: u32 = 1; -pub const SA_RESTART: u32 = 2; -pub const SA_RESETHAND: u32 = 4; -pub const SA_NOCLDSTOP: u32 = 8; -pub const SA_NODEFER: u32 = 16; -pub const SA_NOCLDWAIT: u32 = 32; -pub const SA_SIGINFO: u32 = 64; -pub const SA_USERTRAMP: u32 = 256; -pub const SA_64REGSET: u32 = 512; -pub const SA_USERSPACE_MASK: u32 = 127; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SI_USER: u32 = 65537; -pub const SI_QUEUE: u32 = 65538; -pub const SI_TIMER: u32 = 65539; -pub const SI_ASYNCIO: u32 = 65540; -pub const SI_MESGQ: u32 = 65541; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 4; -pub const MINSIGSTKSZ: u32 = 32768; -pub const SIGSTKSZ: u32 = 131072; -pub const SV_ONSTACK: u32 = 1; -pub const SV_INTERRUPT: u32 = 2; -pub const SV_RESETHAND: u32 = 4; -pub const SV_NODEFER: u32 = 16; -pub const SV_NOCLDSTOP: u32 = 8; -pub const SV_SIGINFO: u32 = 64; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const PRIO_DARWIN_THREAD: u32 = 3; -pub const PRIO_DARWIN_PROCESS: u32 = 4; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_DARWIN_BG: u32 = 4096; -pub const PRIO_DARWIN_NONUI: u32 = 4097; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_INFO_V0: u32 = 0; -pub const RUSAGE_INFO_V1: u32 = 1; -pub const RUSAGE_INFO_V2: u32 = 2; -pub const RUSAGE_INFO_V3: u32 = 3; -pub const RUSAGE_INFO_V4: u32 = 4; -pub const RUSAGE_INFO_V5: u32 = 5; -pub const RUSAGE_INFO_V6: u32 = 6; -pub const RUSAGE_INFO_CURRENT: u32 = 6; -pub const RU_PROC_RUNS_RESLIDE: u32 = 1; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_AS: u32 = 5; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_MEMLOCK: u32 = 6; -pub const RLIMIT_NPROC: u32 = 7; -pub const RLIMIT_NOFILE: u32 = 8; -pub const RLIM_NLIMITS: u32 = 9; -pub const _RLIMIT_POSIX_FLAG: u32 = 4096; -pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1; -pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2; -pub const RLIMIT_THREAD_CPULIMITS: u32 = 3; -pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4; -pub const WAKEMON_ENABLE: u32 = 1; -pub const WAKEMON_DISABLE: u32 = 2; -pub const WAKEMON_GET_PARAMS: u32 = 4; -pub const WAKEMON_SET_DEFAULTS: u32 = 8; -pub const WAKEMON_MAKE_FATAL: u32 = 16; -pub const CPUMON_MAKE_FATAL: u32 = 4096; -pub const FOOTPRINT_INTERVAL_RESET: u32 = 1; -pub const IOPOL_TYPE_DISK: u32 = 0; -pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2; -pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3; -pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4; -pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5; -pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6; -pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7; -pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8; -pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9; -pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10; -pub const IOPOL_TYPE_VFS_ENTITLED_RESERVE_ACCESS: u32 = 14; -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_MATERIALIZE_DATALESS_FILES_ORIG: u32 = 4; -pub const IOPOL_MATERIALIZE_DATALESS_FILES_BASIC_MASK: u32 = 3; -pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0; -pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1; -pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0; -pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1; -pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0; -pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1; -pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0; -pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1; -pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0; -pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1; -pub const IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE: u32 = 2; -pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0; -pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1; -pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0; -pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1; -pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0; -pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1; -pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_OFF: u32 = 0; -pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_ON: u32 = 1; +pub const _STDLIB_H: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; -pub const WCOREFLAG: u32 = 128; -pub const _WSTOPPED: u32 = 127; +pub const WSTOPPED: u32 = 2; 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 WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const __W_CONTINUED: u32 = 65535; +pub const __WCOREFLAG: u32 = 128; +pub const __HAVE_FLOAT128: u32 = 1; +pub const __HAVE_DISTINCT_FLOAT128: u32 = 1; +pub const __HAVE_FLOAT64X: u32 = 1; +pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; +pub const __HAVE_FLOAT16: u32 = 0; +pub const __HAVE_FLOAT32: u32 = 1; +pub const __HAVE_FLOAT64: u32 = 1; +pub const __HAVE_FLOAT32X: u32 = 1; +pub const __HAVE_FLOAT128X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; +pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; +pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; +pub const __ldiv_t_defined: u32 = 1; +pub const __lldiv_t_defined: u32 = 1; +pub const RAND_MAX: u32 = 2147483647; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const _SYS_TYPES_H: u32 = 1; +pub const __clock_t_defined: u32 = 1; +pub const __clockid_t_defined: u32 = 1; +pub const __time_t_defined: u32 = 1; +pub const __timer_t_defined: u32 = 1; +pub const __BIT_TYPES_DEFINED__: u32 = 1; +pub const _ENDIAN_H: u32 = 1; +pub const _BITS_ENDIAN_H: u32 = 1; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BIG_ENDIAN: u32 = 4321; +pub const __PDP_ENDIAN: u32 = 3412; +pub const _BITS_ENDIANNESS_H: u32 = 1; +pub const __BYTE_ORDER: u32 = 1234; +pub const __FLOAT_WORD_ORDER: u32 = 1234; pub const LITTLE_ENDIAN: u32 = 1234; pub const BIG_ENDIAN: u32 = 4321; pub const PDP_ENDIAN: u32 = 3412; -pub const __DARWIN_BYTE_ORDER: u32 = 1234; pub const BYTE_ORDER: u32 = 1234; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const _MALLOC_TYPE_MALLOC_BACKDEPLOY_PUBLIC: u32 = 1; -pub const _USE_FORTIFY_LEVEL: u32 = 2; -pub const USE_CLANG_STDARG: u32 = 0; -pub const RENAME_SECLUDE: u32 = 1; -pub const RENAME_SWAP: u32 = 2; -pub const RENAME_EXCL: u32 = 4; -pub const RENAME_RESERVED1: u32 = 8; -pub const RENAME_NOFOLLOW_ANY: u32 = 16; -pub const RENAME_RESOLVE_BENEATH: u32 = 32; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_HOLE: u32 = 3; -pub const SEEK_DATA: u32 = 4; -pub const __SLBF: u32 = 1; -pub const __SNBF: u32 = 2; -pub const __SRD: u32 = 4; -pub const __SWR: u32 = 8; -pub const __SRW: u32 = 16; -pub const __SEOF: u32 = 32; -pub const __SERR: u32 = 64; -pub const __SMBF: u32 = 128; -pub const __SAPP: u32 = 256; -pub const __SSTR: u32 = 512; -pub const __SOPT: u32 = 1024; -pub const __SNPT: u32 = 2048; -pub const __SOFF: u32 = 4096; -pub const __SMOD: u32 = 8192; -pub const __SALC: u32 = 16384; -pub const __SIGN: u32 = 32768; +pub const _BITS_BYTESWAP_H: u32 = 1; +pub const _BITS_UINTN_IDENTITY_H: u32 = 1; +pub const _SYS_SELECT_H: u32 = 1; +pub const __sigset_t_defined: u32 = 1; +pub const __timeval_defined: u32 = 1; +pub const _STRUCT_TIMESPEC: u32 = 1; +pub const FD_SETSIZE: u32 = 1024; +pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; +pub const _THREAD_SHARED_TYPES_H: u32 = 1; +pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; +pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; +pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; +pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56; +pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32; +pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4; +pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; +pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; +pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; +pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; +pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; +pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; +pub const __have_pthread_attr_t: u32 = 1; +pub const _ALLOCA_H: u32 = 1; +pub const _STRING_H: u32 = 1; +pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; +pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; +pub const _STRINGS_H: u32 = 1; +pub const _STDIO_H: u32 = 1; +pub const _____fpos_t_defined: u32 = 1; +pub const ____mbstate_t_defined: u32 = 1; +pub const _____fpos64_t_defined: u32 = 1; +pub const ____FILE_defined: u32 = 1; +pub const __FILE_defined: u32 = 1; +pub const __struct_FILE_defined: u32 = 1; +pub const _IO_EOF_SEEN: u32 = 16; +pub const _IO_ERR_SEEN: u32 = 32; +pub const _IO_USER_LOCK: u32 = 32768; +pub const __cookie_io_functions_t_defined: u32 = 1; pub const _IOFBF: u32 = 0; pub const _IOLBF: u32 = 1; pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 1024; +pub const BUFSIZ: u32 = 8192; pub const EOF: i32 = -1; -pub const FOPEN_MAX: u32 = 20; -pub const FILENAME_MAX: u32 = 1024; -pub const P_tmpdir: &[u8; 10] = b"/var/tmp/\0"; -pub const L_tmpnam: u32 = 1024; -pub const TMP_MAX: u32 = 308915776; -pub const L_ctermid: u32 = 1024; -pub const __DARWIN_CLK_TCK: u32 = 100; -pub const USE_CLANG_LIMITS: u32 = 0; -pub const MB_LEN_MAX: u32 = 6; -pub const CLK_TCK: u32 = 100; -pub const CHAR_BIT: u32 = 8; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MAX: u32 = 127; -pub const CHAR_MIN: i32 = -128; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: i32 = -1; -pub const LONG_MAX: u64 = 9223372036854775807; -pub const LONG_MIN: i64 = -9223372036854775808; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_BIT: u32 = 64; -pub const SSIZE_MAX: u64 = 9223372036854775807; -pub const WORD_BIT: u32 = 32; -pub const SIZE_T_MAX: i32 = -1; -pub const UQUAD_MAX: i32 = -1; -pub const QUAD_MAX: u64 = 9223372036854775807; -pub const QUAD_MIN: i64 = -9223372036854775808; -pub const ARG_MAX: u32 = 1048576; -pub const CHILD_MAX: u32 = 266; -pub const GID_MAX: u32 = 2147483647; -pub const LINK_MAX: u32 = 32767; -pub const MAX_CANON: u32 = 1024; -pub const MAX_INPUT: u32 = 1024; -pub const NAME_MAX: u32 = 255; -pub const NGROUPS_MAX: u32 = 16; -pub const UID_MAX: u32 = 2147483647; -pub const OPEN_MAX: u32 = 10240; -pub const PATH_MAX: u32 = 1024; -pub const PIPE_BUF: u32 = 512; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const CHARCLASS_NAME_MAX: u32 = 14; -pub const COLL_WEIGHTS_MAX: u32 = 2; -pub const EQUIV_CLASS_MAX: u32 = 2; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 255; -pub const NZERO: u32 = 20; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; +pub const L_tmpnam: u32 = 20; +pub const TMP_MAX: u32 = 238328; +pub const _BITS_STDIO_LIM_H: u32 = 1; +pub const FILENAME_MAX: u32 = 4096; +pub const L_ctermid: u32 = 9; +pub const FOPEN_MAX: u32 = 16; +pub const _LIBC_LIMITS_H_: u32 = 1; +pub const MB_LEN_MAX: u32 = 16; +pub const _BITS_POSIX1_LIM_H: u32 = 1; +pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; +pub const _POSIX_AIO_MAX: u32 = 1; pub const _POSIX_ARG_MAX: u32 = 4096; pub const _POSIX_CHILD_MAX: u32 = 25; +pub const _POSIX_DELAYTIMER_MAX: u32 = 32; +pub const _POSIX_HOST_NAME_MAX: u32 = 255; pub const _POSIX_LINK_MAX: u32 = 8; +pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; pub const _POSIX_MAX_CANON: u32 = 255; pub const _POSIX_MAX_INPUT: u32 = 255; +pub const _POSIX_MQ_OPEN_MAX: u32 = 8; +pub const _POSIX_MQ_PRIO_MAX: u32 = 32; pub const _POSIX_NAME_MAX: u32 = 14; pub const _POSIX_NGROUPS_MAX: u32 = 8; pub const _POSIX_OPEN_MAX: u32 = 20; pub const _POSIX_PATH_MAX: u32 = 256; pub const _POSIX_PIPE_BUF: u32 = 512; +pub const _POSIX_RE_DUP_MAX: u32 = 255; +pub const _POSIX_RTSIG_MAX: u32 = 8; +pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; +pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; +pub const _POSIX_SIGQUEUE_MAX: u32 = 32; pub const _POSIX_SSIZE_MAX: u32 = 32767; pub const _POSIX_STREAM_MAX: u32 = 8; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; pub const _POSIX_TZNAME_MAX: u32 = 6; +pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const PTHREAD_KEYS_MAX: u32 = 1024; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const AIO_PRIO_DELTA_MAX: u32 = 20; +pub const PTHREAD_STACK_MIN: u32 = 16384; +pub const DELAYTIMER_MAX: u32 = 2147483647; +pub const TTY_NAME_MAX: u32 = 32; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const HOST_NAME_MAX: u32 = 64; +pub const MQ_PRIO_MAX: u32 = 32768; +pub const SEM_VALUE_MAX: u32 = 2147483647; +pub const _BITS_POSIX2_LIM_H: u32 = 1; pub const _POSIX2_BC_BASE_MAX: u32 = 99; pub const _POSIX2_BC_DIM_MAX: u32 = 2048; pub const _POSIX2_BC_SCALE_MAX: u32 = 99; pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_EQUIV_CLASS_MAX: u32 = 2; +pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; pub const _POSIX2_LINE_MAX: u32 = 2048; pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_KEYS_MAX: u32 = 512; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_SS_REPL_MAX: u32 = 4; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; -pub const _POSIX_TRACE_NAME_MAX: u32 = 8; -pub const _POSIX_TRACE_SYS_MAX: u32 = 8; -pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const OFF_MIN: i64 = -9223372036854775808; -pub const OFF_MAX: u64 = 9223372036854775807; -pub const PASS_MAX: u32 = 128; -pub const NL_ARGMAX: u32 = 9; -pub const NL_LANGMAX: u32 = 14; -pub const NL_MSGMAX: u32 = 32767; -pub const NL_NMAX: u32 = 1; -pub const NL_SETMAX: u32 = 255; -pub const NL_TEXTMAX: u32 = 2048; -pub const _XOPEN_IOV_MAX: u32 = 16; -pub const IOV_MAX: u32 = 1024; -pub const _XOPEN_NAME_MAX: u32 = 255; -pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const BC_BASE_MAX: u32 = 99; +pub const BC_DIM_MAX: u32 = 2048; +pub const BC_SCALE_MAX: u32 = 99; +pub const BC_STRING_MAX: u32 = 1000; +pub const COLL_WEIGHTS_MAX: u32 = 255; +pub const EXPR_NEST_MAX: u32 = 32; +pub const LINE_MAX: u32 = 2048; +pub const CHARCLASS_NAME_MAX: u32 = 2048; +pub const RE_DUP_MAX: u32 = 32767; +pub const _ERRNO_H: u32 = 1; +pub const _BITS_ERRNO_H: u32 = 1; pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; pub const ESRCH: u32 = 3; @@ -1214,7 +597,7 @@ pub const E2BIG: u32 = 7; pub const ENOEXEC: u32 = 8; pub const EBADF: u32 = 9; pub const ECHILD: u32 = 10; -pub const EDEADLK: u32 = 11; +pub const EAGAIN: u32 = 11; pub const ENOMEM: u32 = 12; pub const EACCES: u32 = 13; pub const EFAULT: u32 = 14; @@ -1238,91 +621,112 @@ pub const EMLINK: u32 = 31; pub const EPIPE: u32 = 32; pub const EDOM: u32 = 33; pub const ERANGE: u32 = 34; -pub const EAGAIN: u32 = 35; -pub const EWOULDBLOCK: u32 = 35; -pub const EINPROGRESS: u32 = 36; -pub const EALREADY: u32 = 37; -pub const ENOTSOCK: u32 = 38; -pub const EDESTADDRREQ: u32 = 39; -pub const EMSGSIZE: u32 = 40; -pub const EPROTOTYPE: u32 = 41; -pub const ENOPROTOOPT: u32 = 42; -pub const EPROTONOSUPPORT: u32 = 43; -pub const ESOCKTNOSUPPORT: u32 = 44; -pub const ENOTSUP: u32 = 45; -pub const EPFNOSUPPORT: u32 = 46; -pub const EAFNOSUPPORT: u32 = 47; -pub const EADDRINUSE: u32 = 48; -pub const EADDRNOTAVAIL: u32 = 49; -pub const ENETDOWN: u32 = 50; -pub const ENETUNREACH: u32 = 51; -pub const ENETRESET: u32 = 52; -pub const ECONNABORTED: u32 = 53; -pub const ECONNRESET: u32 = 54; -pub const ENOBUFS: u32 = 55; -pub const EISCONN: u32 = 56; -pub const ENOTCONN: u32 = 57; -pub const ESHUTDOWN: u32 = 58; -pub const ETOOMANYREFS: u32 = 59; -pub const ETIMEDOUT: u32 = 60; -pub const ECONNREFUSED: u32 = 61; -pub const ELOOP: u32 = 62; -pub const ENAMETOOLONG: u32 = 63; -pub const EHOSTDOWN: u32 = 64; -pub const EHOSTUNREACH: u32 = 65; -pub const ENOTEMPTY: u32 = 66; -pub const EPROCLIM: u32 = 67; -pub const EUSERS: u32 = 68; -pub const EDQUOT: u32 = 69; -pub const ESTALE: u32 = 70; -pub const EREMOTE: u32 = 71; -pub const EBADRPC: u32 = 72; -pub const ERPCMISMATCH: u32 = 73; -pub const EPROGUNAVAIL: u32 = 74; -pub const EPROGMISMATCH: u32 = 75; -pub const EPROCUNAVAIL: u32 = 76; -pub const ENOLCK: u32 = 77; -pub const ENOSYS: u32 = 78; -pub const EFTYPE: u32 = 79; -pub const EAUTH: u32 = 80; -pub const ENEEDAUTH: u32 = 81; -pub const EPWROFF: u32 = 82; -pub const EDEVERR: u32 = 83; -pub const EOVERFLOW: u32 = 84; -pub const EBADEXEC: u32 = 85; -pub const EBADARCH: u32 = 86; -pub const ESHLIBVERS: u32 = 87; -pub const EBADMACHO: u32 = 88; -pub const ECANCELED: u32 = 89; -pub const EIDRM: u32 = 90; -pub const ENOMSG: u32 = 91; -pub const EILSEQ: u32 = 92; -pub const ENOATTR: u32 = 93; -pub const EBADMSG: u32 = 94; -pub const EMULTIHOP: u32 = 95; -pub const ENODATA: u32 = 96; -pub const ENOLINK: u32 = 97; -pub const ENOSR: u32 = 98; -pub const ENOSTR: u32 = 99; -pub const EPROTO: u32 = 100; -pub const ETIME: u32 = 101; -pub const EOPNOTSUPP: u32 = 102; -pub const ENOPOLICY: u32 = 103; -pub const ENOTRECOVERABLE: u32 = 104; -pub const EOWNERDEAD: u32 = 105; -pub const EQFULL: u32 = 106; -pub const ENOTCAPABLE: u32 = 107; -pub const ELAST: u32 = 107; -pub const __DARWIN_FD_SETSIZE: u32 = 1024; -pub const __DARWIN_NBBY: u32 = 8; -pub const NBBY: u32 = 8; -pub const FD_SETSIZE: u32 = 1024; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const ENOTSUP: u32 = 95; pub const HAVE___BUILTIN_CLZ: u32 = 1; pub const HTS_PATH_SEPARATOR_CHAR: u8 = 58u8; pub const HTS_PATH_SEPARATOR_STR: &[u8; 2] = b":\0"; pub const HTS_RESIZE_CLEAR: u32 = 1; pub const HTS_IDX_DELIM: &[u8; 8] = b"##idx##\0"; -pub const HTS_VERSION: u32 = 102300; +pub const HTS_VERSION: u32 = 102500; pub const HTS_FEATURE_CONFIGURE: u32 = 1; pub const HTS_FEATURE_PLUGINS: u32 = 2; pub const HTS_FEATURE_LIBCURL: u32 = 1024; @@ -1345,8 +749,7 @@ pub const HTS_FMT_BAI: u32 = 1; pub const HTS_FMT_TBI: u32 = 2; pub const HTS_FMT_CRAI: u32 = 3; pub const HTS_FMT_FAI: u32 = 4; -pub const HTS_POS_MIN: i64 = -9223372036854775808; -pub const PRIhts_pos: &[u8; 4] = b"lld\0"; +pub const PRIhts_pos: &[u8; 3] = b"ld\0"; pub const HTS_IDX_SAVE_REMOTE: u32 = 1; pub const HTS_IDX_SILENT_FAIL: u32 = 2; pub const HTS_PARSE_THOUSANDS_SEP: u32 = 1; @@ -1359,7 +762,8 @@ pub const FT_VCF_GZ: u32 = 3; pub const FT_BCF: u32 = 4; pub const FT_BCF_GZ: u32 = 5; pub const FT_STDIN: u32 = 8; -pub const HTS_ALLOW_UNALIGNED: u32 = 0; +pub const HTS_ALLOW_UNALIGNED: u32 = 1; +pub const _ASSERT_H: u32 = 1; pub const BCF_HL_FLT: u32 = 0; pub const BCF_HL_INFO: u32 = 1; pub const BCF_HL_FMT: u32 = 2; @@ -1463,6 +867,7 @@ pub const BAM_FSECONDARY: u32 = 256; pub const BAM_FQCFAIL: u32 = 512; pub const BAM_FDUP: u32 = 1024; pub const BAM_FSUPPLEMENTARY: u32 = 2048; +pub const BAM_MAX_QNAME_LEN: u32 = 254; pub const BAM_USER_OWNS_STRUCT: u32 = 1; pub const BAM_USER_OWNS_DATA: u32 = 2; pub const HTS_MOD_UNKNOWN: i32 = -1; @@ -1506,184 +911,129 @@ pub const BCF_SR_PAIR_ID: u32 = 128; pub const BCF_SR_PAIR_BOTH: u32 = 3; pub const BCF_SR_PAIR_BOTH_REF: u32 = 51; pub type wchar_t = ::std::os::raw::c_int; -pub type int_least8_t = i8; -pub type int_least16_t = i16; -pub type int_least32_t = i32; -pub type int_least64_t = i64; -pub type uint_least8_t = u8; -pub type uint_least16_t = u16; -pub type uint_least32_t = u32; -pub type uint_least64_t = u64; -pub type int_fast8_t = i8; -pub type int_fast16_t = i16; -pub type int_fast32_t = i32; -pub type int_fast64_t = i64; -pub type uint_fast8_t = u8; -pub type uint_fast16_t = u16; -pub type uint_fast32_t = u32; -pub type uint_fast64_t = u64; +pub type __u_char = ::std::os::raw::c_uchar; +pub type __u_short = ::std::os::raw::c_ushort; +pub type __u_int = ::std::os::raw::c_uint; +pub type __u_long = ::std::os::raw::c_ulong; pub type __int8_t = ::std::os::raw::c_schar; pub type __uint8_t = ::std::os::raw::c_uchar; pub type __int16_t = ::std::os::raw::c_short; pub type __uint16_t = ::std::os::raw::c_ushort; pub type __int32_t = ::std::os::raw::c_int; pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_longlong; -pub type __uint64_t = ::std::os::raw::c_ulonglong; -pub type __darwin_intptr_t = ::std::os::raw::c_long; -pub type __darwin_natural_t = ::std::os::raw::c_uint; -pub type __darwin_ct_rune_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t { - pub __mbstate8: [::std::os::raw::c_char; 128usize], - pub _mbstateL: ::std::os::raw::c_longlong, -} -pub type __darwin_mbstate_t = __mbstate_t; -pub type __darwin_ptrdiff_t = ::std::os::raw::c_long; -pub type __darwin_size_t = ::std::os::raw::c_ulong; -pub type __darwin_va_list = __builtin_va_list; -pub type __darwin_wchar_t = ::std::os::raw::c_int; -pub type __darwin_rune_t = __darwin_wchar_t; -pub type __darwin_wint_t = ::std::os::raw::c_int; -pub type __darwin_clock_t = ::std::os::raw::c_ulong; -pub type __darwin_socklen_t = __uint32_t; -pub type __darwin_ssize_t = ::std::os::raw::c_long; -pub type __darwin_time_t = ::std::os::raw::c_long; -pub type __darwin_blkcnt_t = __int64_t; -pub type __darwin_blksize_t = __int32_t; -pub type __darwin_dev_t = __int32_t; -pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint; -pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint; -pub type __darwin_gid_t = __uint32_t; -pub type __darwin_id_t = __uint32_t; -pub type __darwin_ino64_t = __uint64_t; -pub type __darwin_ino_t = __darwin_ino64_t; -pub type __darwin_mach_port_name_t = __darwin_natural_t; -pub type __darwin_mach_port_t = __darwin_mach_port_name_t; -pub type __darwin_mode_t = __uint16_t; -pub type __darwin_off_t = __int64_t; -pub type __darwin_pid_t = __int32_t; -pub type __darwin_sigset_t = __uint32_t; -pub type __darwin_suseconds_t = __int32_t; -pub type __darwin_uid_t = __uint32_t; -pub type __darwin_useconds_t = __uint32_t; -pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize]; -pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize]; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_pthread_handler_rec { - pub __routine: ::std::option::Option, - pub __arg: *mut ::std::os::raw::c_void, - pub __next: *mut __darwin_pthread_handler_rec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_attr_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 56usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_cond_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 40usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_condattr_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_mutex_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 56usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_mutexattr_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_once_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_rwlock_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 192usize], -} +pub type __int64_t = ::std::os::raw::c_long; +pub type __uint64_t = ::std::os::raw::c_ulong; +pub type __int_least8_t = __int8_t; +pub type __uint_least8_t = __uint8_t; +pub type __int_least16_t = __int16_t; +pub type __uint_least16_t = __uint16_t; +pub type __int_least32_t = __int32_t; +pub type __uint_least32_t = __uint32_t; +pub type __int_least64_t = __int64_t; +pub type __uint_least64_t = __uint64_t; +pub type __quad_t = ::std::os::raw::c_long; +pub type __u_quad_t = ::std::os::raw::c_ulong; +pub type __intmax_t = ::std::os::raw::c_long; +pub type __uintmax_t = ::std::os::raw::c_ulong; +pub type __dev_t = ::std::os::raw::c_ulong; +pub type __uid_t = ::std::os::raw::c_uint; +pub type __gid_t = ::std::os::raw::c_uint; +pub type __ino_t = ::std::os::raw::c_ulong; +pub type __ino64_t = ::std::os::raw::c_ulong; +pub type __mode_t = ::std::os::raw::c_uint; +pub type __nlink_t = ::std::os::raw::c_ulong; +pub type __off_t = ::std::os::raw::c_long; +pub type __off64_t = ::std::os::raw::c_long; +pub type __pid_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_rwlockattr_t { - pub __sig: ::std::os::raw::c_long, - pub __opaque: [::std::os::raw::c_char; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _opaque_pthread_t { - pub __sig: ::std::os::raw::c_long, - pub __cleanup_stack: *mut __darwin_pthread_handler_rec, - pub __opaque: [::std::os::raw::c_char; 8176usize], -} -pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t; -pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t; -pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; -pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong; -pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; -pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; -pub type __darwin_pthread_once_t = _opaque_pthread_once_t; -pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; -pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; -pub type __darwin_pthread_t = *mut _opaque_pthread_t; -pub type intmax_t = ::std::os::raw::c_long; -pub type uintmax_t = ::std::os::raw::c_ulong; -pub type __darwin_nl_item = ::std::os::raw::c_int; -pub type __darwin_wctrans_t = ::std::os::raw::c_int; -pub type __darwin_wctype_t = __uint32_t; -unsafe extern "C" { - pub fn imaxabs(j: intmax_t) -> intmax_t; -} +pub struct __fsid_t { + pub __val: [::std::os::raw::c_int; 2usize], +} +pub type __clock_t = ::std::os::raw::c_long; +pub type __rlim_t = ::std::os::raw::c_ulong; +pub type __rlim64_t = ::std::os::raw::c_ulong; +pub type __id_t = ::std::os::raw::c_uint; +pub type __time_t = ::std::os::raw::c_long; +pub type __useconds_t = ::std::os::raw::c_uint; +pub type __suseconds_t = ::std::os::raw::c_long; +pub type __suseconds64_t = ::std::os::raw::c_long; +pub type __daddr_t = ::std::os::raw::c_int; +pub type __key_t = ::std::os::raw::c_int; +pub type __clockid_t = ::std::os::raw::c_int; +pub type __timer_t = *mut ::std::os::raw::c_void; +pub type __blksize_t = ::std::os::raw::c_long; +pub type __blkcnt_t = ::std::os::raw::c_long; +pub type __blkcnt64_t = ::std::os::raw::c_long; +pub type __fsblkcnt_t = ::std::os::raw::c_ulong; +pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt_t = ::std::os::raw::c_ulong; +pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; +pub type __fsword_t = ::std::os::raw::c_long; +pub type __ssize_t = ::std::os::raw::c_long; +pub type __syscall_slong_t = ::std::os::raw::c_long; +pub type __syscall_ulong_t = ::std::os::raw::c_ulong; +pub type __loff_t = __off64_t; +pub type __caddr_t = *mut ::std::os::raw::c_char; +pub type __intptr_t = ::std::os::raw::c_long; +pub type __socklen_t = ::std::os::raw::c_uint; +pub type __sig_atomic_t = ::std::os::raw::c_int; +pub type int_least8_t = __int_least8_t; +pub type int_least16_t = __int_least16_t; +pub type int_least32_t = __int_least32_t; +pub type int_least64_t = __int_least64_t; +pub type uint_least8_t = __uint_least8_t; +pub type uint_least16_t = __uint_least16_t; +pub type uint_least32_t = __uint_least32_t; +pub type uint_least64_t = __uint_least64_t; +pub type int_fast8_t = ::std::os::raw::c_schar; +pub type int_fast16_t = ::std::os::raw::c_long; +pub type int_fast32_t = ::std::os::raw::c_long; +pub type int_fast64_t = ::std::os::raw::c_long; +pub type uint_fast8_t = ::std::os::raw::c_uchar; +pub type uint_fast16_t = ::std::os::raw::c_ulong; +pub type uint_fast32_t = ::std::os::raw::c_ulong; +pub type uint_fast64_t = ::std::os::raw::c_ulong; +pub type intmax_t = __intmax_t; +pub type uintmax_t = __uintmax_t; +pub type __gwchar_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct imaxdiv_t { - pub quot: intmax_t, - pub rem: intmax_t, + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, } -unsafe extern "C" { +extern "C" { + pub fn imaxabs(__n: intmax_t) -> intmax_t; +} +extern "C" { pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; } -unsafe extern "C" { +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" { +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" { +extern "C" { pub fn wcstoimax( - __nptr: *const wchar_t, - __endptr: *mut *mut wchar_t, + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, __base: ::std::os::raw::c_int, ) -> intmax_t; } -unsafe extern "C" { +extern "C" { pub fn wcstoumax( - __nptr: *const wchar_t, - __endptr: *mut *mut wchar_t, + __nptr: *const __gwchar_t, + __endptr: *mut *mut __gwchar_t, __base: ::std::os::raw::c_int, ) -> uintmax_t; } @@ -1694,16 +1044,16 @@ pub const htsLogLevel_HTS_LOG_INFO: htsLogLevel = 4; pub const htsLogLevel_HTS_LOG_DEBUG: htsLogLevel = 5; pub const htsLogLevel_HTS_LOG_TRACE: htsLogLevel = 6; pub type htsLogLevel = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn hts_set_log_level(level: htsLogLevel); } -unsafe extern "C" { +extern "C" { pub fn hts_get_log_level() -> htsLogLevel; } -unsafe extern "C" { +extern "C" { pub static mut hts_verbose: ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_log( severity: htsLogLevel, context: *const ::std::os::raw::c_char, @@ -1711,2572 +1061,1757 @@ unsafe extern "C" { ... ); } -pub const idtype_t_P_ALL: idtype_t = 0; -pub const idtype_t_P_PID: idtype_t = 1; -pub const idtype_t_P_PGID: idtype_t = 2; -pub type idtype_t = ::std::os::raw::c_uint; -pub type pid_t = __darwin_pid_t; -pub type id_t = __darwin_id_t; -pub type sig_atomic_t = ::std::os::raw::c_int; -pub type u_int8_t = ::std::os::raw::c_uchar; -pub type u_int16_t = ::std::os::raw::c_ushort; -pub type u_int32_t = ::std::os::raw::c_uint; -pub type u_int64_t = ::std::os::raw::c_ulonglong; -pub type register_t = i64; -pub type user_addr_t = u_int64_t; -pub type user_size_t = u_int64_t; -pub type user_ssize_t = i64; -pub type user_long_t = i64; -pub type user_ulong_t = u_int64_t; -pub type user_time_t = i64; -pub type user_off_t = i64; -pub type syscall_arg_t = u_int64_t; +pub type __cfloat128 = __BindgenComplex; +pub type _Float128 = u128; +pub type _Float32 = f32; +pub type _Float64 = f64; +pub type _Float32x = f64; +pub type _Float64x = u128; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_exception_state { - pub __exception: __uint32_t, - pub __fsr: __uint32_t, - pub __far: __uint32_t, +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_exception_state64 { - pub __far: __uint64_t, - pub __esr: __uint32_t, - pub __exception: __uint32_t, +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_exception_state64_v2 { - pub __far: __uint64_t, - pub __esr: __uint64_t, +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, } -#[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, +extern "C" { + pub fn __ctype_get_mb_cur_max() -> usize; +} +extern "C" { + pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtod( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtof( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn strtol( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtoul( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtouq( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn strtoll( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoull( + __nptr: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; } +extern "C" { + pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +pub type u_char = __u_char; +pub type u_short = __u_short; +pub type u_int = __u_int; +pub type u_long = __u_long; +pub type quad_t = __quad_t; +pub type u_quad_t = __u_quad_t; +pub type fsid_t = __fsid_t; +pub type loff_t = __loff_t; +pub type ino_t = __ino_t; +pub type dev_t = __dev_t; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type nlink_t = __nlink_t; +pub type uid_t = __uid_t; +pub type off_t = __off_t; +pub type pid_t = __pid_t; +pub type id_t = __id_t; +pub type daddr_t = __daddr_t; +pub type caddr_t = __caddr_t; +pub type key_t = __key_t; +pub type clock_t = __clock_t; +pub type clockid_t = __clockid_t; +pub type time_t = __time_t; +pub type timer_t = __timer_t; +pub type ulong = ::std::os::raw::c_ulong; +pub type ushort = ::std::os::raw::c_ushort; +pub type uint = ::std::os::raw::c_uint; +pub type u_int8_t = __uint8_t; +pub type u_int16_t = __uint16_t; +pub type u_int32_t = __uint32_t; +pub type u_int64_t = __uint64_t; +pub type register_t = ::std::os::raw::c_long; #[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, +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } +pub type sigset_t = __sigset_t; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_vfp_state { - pub __r: [__uint32_t; 64usize], - pub __fpscr: __uint32_t, +pub struct timeval { + pub tv_sec: __time_t, + pub tv_usec: __suseconds_t, } #[repr(C)] -#[repr(align(16))] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_neon_state64 { - pub __v: [__uint128_t; 32usize], - pub __fpsr: __uint32_t, - pub __fpcr: __uint32_t, +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } +pub type suseconds_t = __suseconds_t; +pub type __fd_mask = ::std::os::raw::c_long; #[repr(C)] -#[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, +pub struct fd_set { + pub __fds_bits: [__fd_mask; 16usize], } +pub type fd_mask = __fd_mask; +extern "C" { + pub fn select( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *mut timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pselect( + __nfds: ::std::os::raw::c_int, + __readfds: *mut fd_set, + __writefds: *mut fd_set, + __exceptfds: *mut fd_set, + __timeout: *const timespec, + __sigmask: *const __sigset_t, + ) -> ::std::os::raw::c_int; +} +pub type blksize_t = __blksize_t; +pub type blkcnt_t = __blkcnt_t; +pub type fsblkcnt_t = __fsblkcnt_t; +pub type fsfilcnt_t = __fsfilcnt_t; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __arm_pagein_state { - pub __pagein_error: ::std::os::raw::c_int, +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_sme_state { - pub __svcr: __uint64_t, - pub __tpidr2_el0: __uint64_t, - pub __svl_b: __uint16_t, +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } #[repr(C)] -#[repr(align(4))] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_sve_z_state { - pub __z: [[::std::os::raw::c_char; 256usize]; 16usize], +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } +pub type __pthread_list_t = __pthread_internal_list; #[repr(C)] -#[repr(align(4))] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_sve_p_state { - pub __p: [[::std::os::raw::c_char; 32usize]; 16usize], +pub struct __pthread_internal_slist { + pub __next: *mut __pthread_internal_slist, } +pub type __pthread_slist_t = __pthread_internal_slist; #[repr(C)] -#[repr(align(4))] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_sme_za_state { - pub __za: [::std::os::raw::c_char; 4096usize], +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } #[repr(C)] -#[repr(align(4))] #[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_sme2_state { - pub __zt0: [::std::os::raw::c_char; 64usize], +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } #[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], + pub __unused_initialized_1: ::std::os::raw::c_uint, + pub __unused_initialized_2: ::std::os::raw::c_uint, +} +pub type __tss_t = ::std::os::raw::c_uint; +pub type __thrd_t = ::std::os::raw::c_ulong; +#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __arm_legacy_debug_state { - pub __bvr: [__uint32_t; 16usize], - pub __bcr: [__uint32_t; 16usize], - pub __wvr: [__uint32_t; 16usize], - pub __wcr: [__uint32_t; 16usize], +pub struct __once_flag { + pub __data: ::std::os::raw::c_int, } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_debug_state32 { - pub __bvr: [__uint32_t; 16usize], - pub __bcr: [__uint32_t; 16usize], - pub __wvr: [__uint32_t; 16usize], - pub __wcr: [__uint32_t; 16usize], - pub __mdscr_el1: __uint64_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_debug_state64 { - pub __bvr: [__uint64_t; 16usize], - pub __bcr: [__uint64_t; 16usize], - pub __wvr: [__uint64_t; 16usize], - pub __wcr: [__uint64_t; 16usize], - pub __mdscr_el1: __uint64_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_arm_cpmu_state64 { - pub __ctrs: [__uint64_t; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_mcontext32 { - pub __es: __darwin_arm_exception_state, - pub __ss: __darwin_arm_thread_state, - pub __fs: __darwin_arm_vfp_state, -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_mcontext64 { - pub __es: __darwin_arm_exception_state64, - pub __ss: __darwin_arm_thread_state64, - pub __ns: __darwin_arm_neon_state64, -} -pub type mcontext_t = *mut __darwin_mcontext64; -pub type pthread_attr_t = __darwin_pthread_attr_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_sigaltstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_size: __darwin_size_t, - pub ss_flags: ::std::os::raw::c_int, -} -pub type stack_t = __darwin_sigaltstack; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_ucontext { - pub uc_onstack: ::std::os::raw::c_int, - pub uc_sigmask: __darwin_sigset_t, - pub uc_stack: __darwin_sigaltstack, - pub uc_link: *mut __darwin_ucontext, - pub uc_mcsize: __darwin_size_t, - pub uc_mcontext: *mut __darwin_mcontext64, -} -pub type ucontext_t = __darwin_ucontext; -pub type sigset_t = __darwin_sigset_t; -pub type uid_t = __darwin_uid_t; +pub type pthread_t = ::std::os::raw::c_ulong; #[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, +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } #[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, +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] -pub struct __siginfo { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub si_pid: pid_t, - pub si_uid: uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_addr: *mut ::std::os::raw::c_void, - pub si_value: sigval, - pub si_band: ::std::os::raw::c_long, - pub __pad: [::std::os::raw::c_ulong; 7usize], -} -pub type siginfo_t = __siginfo; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sigaction_u { - pub __sa_handler: ::std::option::Option, - pub __sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut __siginfo, - arg3: *mut ::std::os::raw::c_void, - ), - >, +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } #[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, +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } #[repr(C)] #[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_u: __sigaction_u, - pub sa_mask: sigset_t, - pub sa_flags: ::std::os::raw::c_int, -} -pub type sig_t = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigvec { - pub sv_handler: ::std::option::Option, - pub sv_mask: ::std::os::raw::c_int, - pub sv_flags: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_char, - pub ss_onstack: ::std::os::raw::c_int, -} -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, - ), - >; +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { - pub tv_sec: __darwin_time_t, - pub tv_usec: __darwin_suseconds_t, +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub type rlim_t = __uint64_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { - pub ru_utime: timeval, - pub ru_stime: timeval, - pub ru_maxrss: ::std::os::raw::c_long, - pub ru_ixrss: ::std::os::raw::c_long, - pub ru_idrss: ::std::os::raw::c_long, - pub ru_isrss: ::std::os::raw::c_long, - pub ru_minflt: ::std::os::raw::c_long, - pub ru_majflt: ::std::os::raw::c_long, - pub ru_nswap: ::std::os::raw::c_long, - pub ru_inblock: ::std::os::raw::c_long, - pub ru_oublock: ::std::os::raw::c_long, - pub ru_msgsnd: ::std::os::raw::c_long, - pub ru_msgrcv: ::std::os::raw::c_long, - pub ru_nsignals: ::std::os::raw::c_long, - pub ru_nvcsw: ::std::os::raw::c_long, - pub ru_nivcsw: ::std::os::raw::c_long, -} -pub type rusage_info_t = *mut ::std::os::raw::c_void; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage_info_v0 { - pub ri_uuid: [u8; 16usize], - pub ri_user_time: u64, - pub ri_system_time: u64, - pub ri_pkg_idle_wkups: u64, - pub ri_interrupt_wkups: u64, - pub ri_pageins: u64, - pub ri_wired_size: u64, - pub ri_resident_size: u64, - pub ri_phys_footprint: u64, - pub ri_proc_start_abstime: u64, - pub ri_proc_exit_abstime: u64, +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } +pub type pthread_spinlock_t = ::std::os::raw::c_int; #[repr(C)] -#[derive(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, +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } #[repr(C)] -#[derive(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, +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -#[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, +extern "C" { + pub fn random() -> ::std::os::raw::c_long; } -#[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, +extern "C" { + pub fn srandom(__seed: ::std::os::raw::c_uint); } -#[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, +extern "C" { + pub fn initstate( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + ) -> *mut ::std::os::raw::c_char; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage_info_v6 { - pub ri_uuid: [u8; 16usize], - pub ri_user_time: u64, - pub ri_system_time: u64, - pub ri_pkg_idle_wkups: u64, - pub ri_interrupt_wkups: u64, - pub ri_pageins: u64, - pub ri_wired_size: u64, - pub ri_resident_size: u64, - pub ri_phys_footprint: u64, - pub ri_proc_start_abstime: u64, - pub ri_proc_exit_abstime: u64, - pub ri_child_user_time: u64, - pub ri_child_system_time: u64, - pub ri_child_pkg_idle_wkups: u64, - pub ri_child_interrupt_wkups: u64, - pub ri_child_pageins: u64, - pub ri_child_elapsed_abstime: u64, - pub ri_diskio_bytesread: u64, - pub ri_diskio_byteswritten: u64, - pub ri_cpu_time_qos_default: u64, - pub ri_cpu_time_qos_maintenance: u64, - pub ri_cpu_time_qos_background: u64, - pub ri_cpu_time_qos_utility: u64, - pub ri_cpu_time_qos_legacy: u64, - pub ri_cpu_time_qos_user_initiated: u64, - pub ri_cpu_time_qos_user_interactive: u64, - pub ri_billed_system_time: u64, - pub ri_serviced_system_time: u64, - pub ri_logical_writes: u64, - pub ri_lifetime_max_phys_footprint: u64, - pub ri_instructions: u64, - pub ri_cycles: u64, - pub ri_billed_energy: u64, - pub ri_serviced_energy: u64, - pub ri_interval_max_phys_footprint: u64, - pub ri_runnable_time: u64, - pub ri_flags: u64, - pub ri_user_ptime: u64, - pub ri_system_ptime: u64, - pub ri_pinstructions: u64, - pub ri_pcycles: u64, - pub ri_energy_nj: u64, - pub ri_penergy_nj: u64, - pub ri_secure_time_in_system: u64, - pub ri_secure_ptime_in_system: u64, - pub ri_neural_footprint: u64, - pub ri_lifetime_max_neural_footprint: u64, - pub ri_interval_max_neural_footprint: u64, - pub ri_reserved: [u64; 9usize], -} -pub type rusage_info_current = rusage_info_v6; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { - pub rlim_cur: rlim_t, - pub rlim_max: rlim_t, +extern "C" { + pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct proc_rlimit_control_wakeupmon { - pub wm_flags: u32, - pub wm_rate: i32, +pub struct random_data { + pub fptr: *mut i32, + pub rptr: *mut i32, + pub state: *mut i32, + pub rand_type: ::std::os::raw::c_int, + pub rand_deg: ::std::os::raw::c_int, + pub rand_sep: ::std::os::raw::c_int, + pub end_ptr: *mut i32, } -unsafe extern "C" { - pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; +extern "C" { + pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn getiopolicy_np( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, +extern "C" { + pub fn srandom_r( + __seed: ::std::os::raw::c_uint, + __buf: *mut random_data, ) -> ::std::os::raw::c_int; } -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, +extern "C" { + pub fn initstate_r( + __seed: ::std::os::raw::c_uint, + __statebuf: *mut ::std::os::raw::c_char, + __statelen: usize, + __buf: *mut random_data, ) -> ::std::os::raw::c_int; } -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, +extern "C" { + pub fn setstate_r( + __statebuf: *mut ::std::os::raw::c_char, + __buf: *mut random_data, ) -> ::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; +extern "C" { + pub fn rand() -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union wait { - pub w_status: ::std::os::raw::c_int, - pub w_T: wait__bindgen_ty_1, - pub w_S: wait__bindgen_ty_2, +extern "C" { + pub fn srand(__seed: ::std::os::raw::c_uint); } -#[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]>, +extern "C" { + pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } -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 - } +extern "C" { + pub fn drand48() -> f64; } -#[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]>, +extern "C" { + pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } -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 - } +extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; } -unsafe extern "C" { - pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; +extern "C" { + pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } -unsafe extern "C" { - pub fn waitpid( - arg1: pid_t, - arg2: *mut ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - ) -> pid_t; +extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; } -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; +extern "C" { + pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } -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(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn srand48(__seedval: ::std::os::raw::c_long); } -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, +extern "C" { + pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, +extern "C" { + pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -unsafe extern "C" { - pub static mut __mb_cur_max: ::std::os::raw::c_int; -} -pub type malloc_type_id_t = ::std::os::raw::c_ulonglong; -unsafe extern "C" { - pub fn malloc_type_malloc( - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; -} -unsafe extern "C" { - pub fn malloc_type_calloc( - count: usize, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +pub struct drand48_data { + pub __x: [::std::os::raw::c_ushort; 3usize], + pub __old_x: [::std::os::raw::c_ushort; 3usize], + pub __c: ::std::os::raw::c_ushort, + pub __init: ::std::os::raw::c_ushort, + pub __a: ::std::os::raw::c_ulonglong, } -unsafe extern "C" { - pub fn malloc_type_free(ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t); +extern "C" { + pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_realloc( - ptr: *mut ::std::os::raw::c_void, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn erand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut f64, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_valloc( - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn lrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_aligned_alloc( - alignment: usize, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn nrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_posix_memalign( - memptr: *mut *mut ::std::os::raw::c_void, - alignment: usize, - size: usize, - type_id: malloc_type_id_t, +extern "C" { + pub fn mrand48_r( + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _malloc_zone_t { - _unused: [u8; 0], +extern "C" { + pub fn jrand48_r( + __xsubi: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + __result: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } -pub type malloc_zone_t = _malloc_zone_t; -unsafe extern "C" { - pub fn malloc_type_zone_malloc( - zone: *mut malloc_zone_t, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn srand48_r( + __seedval: ::std::os::raw::c_long, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_zone_calloc( - zone: *mut malloc_zone_t, - count: usize, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn seed48_r( + __seed16v: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_zone_free( - zone: *mut malloc_zone_t, - ptr: *mut ::std::os::raw::c_void, - type_id: malloc_type_id_t, - ); +extern "C" { + pub fn lcong48_r( + __param: *mut ::std::os::raw::c_ushort, + __buffer: *mut drand48_data, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn malloc_type_zone_realloc( - zone: *mut malloc_zone_t, - ptr: *mut ::std::os::raw::c_void, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn arc4random() -> __uint32_t; } -unsafe extern "C" { - pub fn malloc_type_zone_valloc( - zone: *mut malloc_zone_t, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __size: usize); } -unsafe extern "C" { - pub fn malloc_type_zone_memalign( - zone: *mut malloc_zone_t, - alignment: usize, - size: usize, - type_id: malloc_type_id_t, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn arc4random_uniform(__upper_bound: __uint32_t) -> __uint32_t; } -unsafe extern "C" { +extern "C" { pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn calloc( - __count: ::std::os::raw::c_ulong, + __nmemb: ::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" { +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 reallocf( +extern "C" { + pub fn free(__ptr: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn reallocarray( __ptr: *mut ::std::os::raw::c_void, + __nmemb: usize, __size: usize, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { - pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } -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; +extern "C" { + pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +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 at_quick_exit( - 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, __n: usize) -> usize; -} -unsafe extern "C" { - pub fn mbtowc( - arg1: *mut wchar_t, - arg2: *const ::std::os::raw::c_char, - __n: 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 quick_exit(arg1: ::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 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, __n: 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, - __size: 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; +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 nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +extern "C" { + pub fn abort() -> !; } -unsafe extern "C" { - pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn atexit(__func: ::std::option::Option) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn at_quick_exit( + __func: ::std::option::Option, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ptsname_r( - fildes: ::std::os::raw::c_int, - buffer: *mut ::std::os::raw::c_char, - buflen: usize, +extern "C" { + pub fn on_exit( + __func: ::std::option::Option< + unsafe extern "C" fn( + __status: ::std::os::raw::c_int, + __arg: *mut ::std::os::raw::c_void, + ), + >, + __arg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn exit(__status: ::std::os::raw::c_int) -> !; } -unsafe extern "C" { - pub fn random() -> ::std::os::raw::c_long; +extern "C" { + pub fn quick_exit(__status: ::std::os::raw::c_int) -> !; } -unsafe extern "C" { - pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +extern "C" { + pub fn _Exit(__status: ::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; +extern "C" { + pub fn getenv(__name: *const ::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; +extern "C" { + pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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, + __replace: ::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); +extern "C" { + pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn clearenv() -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -pub type dev_t = __darwin_dev_t; -pub type mode_t = __darwin_mode_t; -unsafe extern "C" { - pub fn arc4random() -> u32; +extern "C" { + pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn arc4random_addrandom( - arg1: *mut ::std::os::raw::c_uchar, - __datlen: ::std::os::raw::c_int, - ); -} -unsafe extern "C" { - pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize); +extern "C" { + pub fn mkstemps( + __template: *mut ::std::os::raw::c_char, + __suffixlen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn arc4random_stir(); +extern "C" { + pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn arc4random_uniform(__upper_bound: u32) -> u32; +extern "C" { + pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; +extern "C" { + pub fn realpath( + __name: *const ::std::os::raw::c_char, + __resolved: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn bsearch_b( +pub type __compar_fn_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn bsearch( __key: *const ::std::os::raw::c_void, __base: *const ::std::os::raw::c_void, - __nel: usize, - __width: usize, - __compar: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, ) -> *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; +extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nmemb: usize, + __size: usize, + __compar: __compar_fn_t, + ); } -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; +extern "C" { + pub fn abs(__x: ::std::os::raw::c_int) -> ::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; +extern "C" { + pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } -unsafe extern "C" { - pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; } -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; +extern "C" { + pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t; } -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; +extern "C" { + pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t; } -unsafe extern "C" { - pub fn daemon( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn lldiv( + __numer: ::std::os::raw::c_longlong, + __denom: ::std::os::raw::c_longlong, + ) -> lldiv_t; } -unsafe extern "C" { - pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn ecvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } -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, +extern "C" { + pub fn fcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn getbsize( - arg1: *mut ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_long, +extern "C" { + pub fn gcvt( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn getloadavg(arg1: *mut f64, __nelem: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn qecvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn getprogname() -> *const ::std::os::raw::c_char; +extern "C" { + pub fn qfcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn setprogname(arg1: *const ::std::os::raw::c_char); +extern "C" { + pub fn qgcvt( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -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, - >, +extern "C" { + pub fn ecvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, ) -> ::std::os::raw::c_int; } -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, +extern "C" { + pub fn fcvt_r( + __value: f64, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, ) -> ::std::os::raw::c_int; } -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, - >, +extern "C" { + pub fn qecvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, ) -> ::std::os::raw::c_int; } -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, +extern "C" { + pub fn qfcvt_r( + __value: u128, + __ndigit: ::std::os::raw::c_int, + __decpt: *mut ::std::os::raw::c_int, + __sign: *mut ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, + __len: usize, ) -> ::std::os::raw::c_int; } -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, - ); +extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; } -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, - >, - ); +extern "C" { + pub fn mbtowc( + __pwc: *mut wchar_t, + __s: *const ::std::os::raw::c_char, + __n: usize, + ) -> ::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, - ); +extern "C" { + pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int; } -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, - >, - ); +extern "C" { + pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize; } -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; +extern "C" { + pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize; } -unsafe extern "C" { - pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn rpmatch(__response: *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, +extern "C" { + pub fn getsubopt( + __optionp: *mut *mut ::std::os::raw::c_char, + __tokens: *const *mut ::std::os::raw::c_char, + __valuep: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn sranddev(); -} -unsafe extern "C" { - pub fn srandomdev(); -} -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; +extern "C" { + pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } -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; +extern "C" { + pub fn memcpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; } -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; +extern "C" { + pub fn memmove( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { - pub static mut suboptarg: *mut ::std::os::raw::c_char; +extern "C" { + pub fn memccpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { - pub fn memchr( - __s: *const ::std::os::raw::c_void, +extern "C" { + pub fn memset( + __s: *mut ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn memcmp( __s1: *const ::std::os::raw::c_void, __s2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn memcpy( - __dst: *mut ::std::os::raw::c_void, - __src: *const ::std::os::raw::c_void, +extern "C" { + pub fn __memcmpeq( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memchr( + __s: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { - pub fn memmove( - __dst: *mut ::std::os::raw::c_void, - __src: *const ::std::os::raw::c_void, - __len: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn strcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn memset( - __b: *mut ::std::os::raw::c_void, - __c: ::std::os::raw::c_int, - __len: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; +extern "C" { + pub fn strncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strcat( - __s1: *mut ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strchr( - __s: *const ::std::os::raw::c_char, - __c: ::std::os::raw::c_int, +extern "C" { + pub fn strncat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strcmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn strcoll( +extern "C" { + pub fn strncmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn strcpy( - __dst: *mut ::std::os::raw::c_char, - __src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strcspn( - __s: *const ::std::os::raw::c_char, - __charset: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; -} -unsafe extern "C" { - pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; -} -unsafe extern "C" { - pub fn strncat( - __s1: *mut ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn strncmp( +extern "C" { + pub fn strcoll( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn strncpy( - __dst: *mut ::std::os::raw::c_char, +extern "C" { + pub fn strxfrm( + __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strpbrk( - __s: *const ::std::os::raw::c_char, - __charset: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strrchr( - __s: *const ::std::os::raw::c_char, - __c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strspn( - __s: *const ::std::os::raw::c_char, - __charset: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { - pub fn strstr( - __big: *const ::std::os::raw::c_char, - __little: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strtok( - __str: *mut ::std::os::raw::c_char, - __sep: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strxfrm( - __s1: *mut ::std::os::raw::c_char, +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_struct { + pub __locales: [*mut __locale_data; 13usize], + pub __ctype_b: *const ::std::os::raw::c_ushort, + pub __ctype_tolower: *const ::std::os::raw::c_int, + pub __ctype_toupper: *const ::std::os::raw::c_int, + pub __names: [*const ::std::os::raw::c_char; 13usize], +} +pub type __locale_t = *mut __locale_struct; +pub type locale_t = __locale_t; +extern "C" { + pub fn strcoll_l( + __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; -} -unsafe extern "C" { - pub fn strtok_r( - __str: *mut ::std::os::raw::c_char, - __sep: *const ::std::os::raw::c_char, - __lasts: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strerror_r( - __errnum: ::std::os::raw::c_int, - __strerrbuf: *mut ::std::os::raw::c_char, - __buflen: usize, + __l: locale_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn memccpy( - __dst: *mut ::std::os::raw::c_void, - __src: *const ::std::os::raw::c_void, - __c: ::std::os::raw::c_int, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; -} -unsafe extern "C" { - pub fn stpcpy( - __dst: *mut ::std::os::raw::c_char, - __src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn stpncpy( - __dst: *mut ::std::os::raw::c_char, - __src: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strndup( - __s1: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: usize) -> usize; -} -unsafe extern "C" { - pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; -} -pub type rsize_t = __darwin_size_t; -pub type errno_t = ::std::os::raw::c_int; -unsafe extern "C" { - pub fn memset_s( - __s: *mut ::std::os::raw::c_void, - __smax: rsize_t, - __c: ::std::os::raw::c_int, - __n: rsize_t, - ) -> errno_t; -} -unsafe extern "C" { - pub fn memmem( - __big: *const ::std::os::raw::c_void, - __big_len: usize, - __little: *const ::std::os::raw::c_void, - __little_len: usize, - ) -> *mut ::std::os::raw::c_void; -} -unsafe extern "C" { - pub fn memset_pattern4( - __b: *mut ::std::os::raw::c_void, - __pattern4: *const ::std::os::raw::c_void, - __len: usize, - ); +extern "C" { + pub fn strxfrm_l( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + __l: locale_t, + ) -> usize; } -unsafe extern "C" { - pub fn memset_pattern8( - __b: *mut ::std::os::raw::c_void, - __pattern8: *const ::std::os::raw::c_void, - __len: usize, - ); +extern "C" { + pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn memset_pattern16( - __b: *mut ::std::os::raw::c_void, - __pattern16: *const ::std::os::raw::c_void, - __len: usize, - ); +extern "C" { + pub fn strndup( + __string: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strcasestr( - __big: *const ::std::os::raw::c_char, - __little: *const ::std::os::raw::c_char, +extern "C" { + pub fn strchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strchrnul( +extern "C" { + pub fn strrchr( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strnstr( - __big: *const ::std::os::raw::c_char, - __little: *const ::std::os::raw::c_char, - __len: usize, +extern "C" { + pub fn strchrnul( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strlcat( - __dst: *mut ::std::os::raw::c_char, - __source: *const ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, +extern "C" { + pub fn strcspn( + __s: *const ::std::os::raw::c_char, + __reject: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { - pub fn strlcpy( - __dst: *mut ::std::os::raw::c_char, - __source: *const ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, +extern "C" { + pub fn strspn( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { - pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char); +extern "C" { + pub fn strpbrk( + __s: *const ::std::os::raw::c_char, + __accept: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strsep( - __stringp: *mut *mut ::std::os::raw::c_char, +extern "C" { + pub fn strstr( + __haystack: *const ::std::os::raw::c_char, + __needle: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok( + __s: *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn swab( - arg1: *const ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - __len: isize, - ); +extern "C" { + pub fn __strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn timingsafe_bcmp( - __b1: *const ::std::os::raw::c_void, - __b2: *const ::std::os::raw::c_void, - __len: usize, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn strtok_r( + __s: *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + __save_ptr: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcasestr( + __haystack: *const ::std::os::raw::c_char, + __needle: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn memmem( + __haystack: *const ::std::os::raw::c_void, + __haystacklen: usize, + __needle: *const ::std::os::raw::c_void, + __needlelen: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn __mempcpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn mempcpy( + __dest: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize; +} +extern "C" { + pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn strsignal_r( - __sig: ::std::os::raw::c_int, - __strsignalbuf: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}__xpg_strerror_r"] + pub fn strerror_r( + __errnum: ::std::os::raw::c_int, + __buf: *mut ::std::os::raw::c_char, __buflen: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { + pub fn strerror_l( + __errnum: ::std::os::raw::c_int, + __l: locale_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { pub fn bcmp( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcopy( - arg1: *const ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __dest: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ); } -unsafe extern "C" { - pub fn bzero(arg1: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); +extern "C" { + pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); } -unsafe extern "C" { +extern "C" { pub fn index( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn rindex( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { + pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +extern "C" { pub fn strcasecmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strncasecmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_ulong, + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __loc: locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncasecmp_l( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: usize, + __loc: locale_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +extern "C" { + pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize); +} +extern "C" { + pub fn strsep( + __stringp: *mut *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +extern "C" { + pub fn __stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn stpncpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; +extern "C" { + pub fn strlcpy( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + ) -> usize; } -unsafe extern "C" { - pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +extern "C" { + pub fn strlcat( + __dest: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: usize, + ) -> usize; } pub type __gnuc_va_list = __builtin_va_list; pub type va_list = __builtin_va_list; -unsafe extern "C" { - pub fn renameat( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __mbstate_t { + pub __count: ::std::os::raw::c_int, + pub __value: __mbstate_t__bindgen_ty_1, } -unsafe extern "C" { - pub fn renamex_np( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __mbstate_t__bindgen_ty_1 { + pub __wch: ::std::os::raw::c_uint, + pub __wchb: [::std::os::raw::c_char; 4usize], } -unsafe extern "C" { - pub fn renameatx_np( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: *const ::std::os::raw::c_char, - arg5: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos_t { + pub __pos: __off_t, + pub __state: __mbstate_t, } -unsafe extern "C" { - pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +pub type __fpos_t = _G_fpos_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _G_fpos64_t { + pub __pos: __off64_t, + pub __state: __mbstate_t, } -pub type fpos_t = __darwin_off_t; +pub type __fpos64_t = _G_fpos64_t; +pub type __FILE = _IO_FILE; +pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __sbuf { - pub _base: *mut ::std::os::raw::c_uchar, - pub _size: ::std::os::raw::c_int, +pub struct _IO_marker { + _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __sFILEX { +pub struct _IO_codecvt { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __sFILE { - pub _p: *mut ::std::os::raw::c_uchar, - pub _r: ::std::os::raw::c_int, - pub _w: ::std::os::raw::c_int, - pub _flags: ::std::os::raw::c_short, - pub _file: ::std::os::raw::c_short, - pub _bf: __sbuf, - pub _lbfsize: ::std::os::raw::c_int, - pub _cookie: *mut ::std::os::raw::c_void, - pub _close: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub _read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_char, - __n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub _seek: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: fpos_t, - arg3: ::std::os::raw::c_int, - ) -> fpos_t, - >, - pub _write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub _ub: __sbuf, - pub _extra: *mut __sFILEX, - pub _ur: ::std::os::raw::c_int, - pub _ubuf: [::std::os::raw::c_uchar; 3usize], - pub _nbuf: [::std::os::raw::c_uchar; 1usize], - pub _lb: __sbuf, - pub _blksize: ::std::os::raw::c_int, - pub _offset: fpos_t, -} -pub type FILE = __sFILE; -unsafe extern "C" { - pub static mut __stdinp: *mut FILE; -} -unsafe extern "C" { - pub static mut __stdoutp: *mut FILE; -} -unsafe extern "C" { - pub static mut __stderrp: *mut FILE; -} -unsafe extern "C" { - pub fn clearerr(arg1: *mut FILE); -} -unsafe extern "C" { - pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; +pub struct _IO_wide_data { + _unused: [u8; 0], } -unsafe extern "C" { - pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; +pub type _IO_lock_t = ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_FILE { + pub _flags: ::std::os::raw::c_int, + pub _IO_read_ptr: *mut ::std::os::raw::c_char, + pub _IO_read_end: *mut ::std::os::raw::c_char, + pub _IO_read_base: *mut ::std::os::raw::c_char, + pub _IO_write_base: *mut ::std::os::raw::c_char, + pub _IO_write_ptr: *mut ::std::os::raw::c_char, + pub _IO_write_end: *mut ::std::os::raw::c_char, + pub _IO_buf_base: *mut ::std::os::raw::c_char, + pub _IO_buf_end: *mut ::std::os::raw::c_char, + pub _IO_save_base: *mut ::std::os::raw::c_char, + pub _IO_backup_base: *mut ::std::os::raw::c_char, + pub _IO_save_end: *mut ::std::os::raw::c_char, + pub _markers: *mut _IO_marker, + pub _chain: *mut _IO_FILE, + pub _fileno: ::std::os::raw::c_int, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, + pub _short_backupbuf: [::std::os::raw::c_char; 1usize], + pub _old_offset: __off_t, + pub _cur_column: ::std::os::raw::c_ushort, + pub _vtable_offset: ::std::os::raw::c_schar, + pub _shortbuf: [::std::os::raw::c_char; 1usize], + pub _lock: *mut _IO_lock_t, + pub _offset: __off64_t, + pub _codecvt: *mut _IO_codecvt, + pub _wide_data: *mut _IO_wide_data, + pub _freeres_list: *mut _IO_FILE, + pub _freeres_buf: *mut ::std::os::raw::c_void, + pub _prevchain: *mut *mut _IO_FILE, + pub _mode: ::std::os::raw::c_int, + pub _unused2: [::std::os::raw::c_char; 20usize], +} +impl _IO_FILE { + #[inline] + pub fn _flags2(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) } + } + #[inline] + pub fn set__flags2(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 24u8, val as u64) + } + } + #[inline] + pub unsafe fn _flags2_raw(this: *const Self) -> ::std::os::raw::c_int { + unsafe { + ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get( + ::std::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 24u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set__flags2_raw(this: *mut Self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set( + ::std::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 24u8, + val as u64, + ) + } + } + #[inline] + pub fn new_bitfield_1(_flags2: ::std::os::raw::c_int) -> __BindgenBitfieldUnit<[u8; 3usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 24u8, { + let _flags2: u32 = unsafe { ::std::mem::transmute(_flags2) }; + _flags2 as u64 + }); + __bindgen_bitfield_unit + } } -unsafe extern "C" { - pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; +pub type cookie_read_function_t = ::std::option::Option< + unsafe extern "C" fn( + __cookie: *mut ::std::os::raw::c_void, + __buf: *mut ::std::os::raw::c_char, + __nbytes: usize, + ) -> __ssize_t, +>; +pub type cookie_write_function_t = ::std::option::Option< + unsafe extern "C" fn( + __cookie: *mut ::std::os::raw::c_void, + __buf: *const ::std::os::raw::c_char, + __nbytes: usize, + ) -> __ssize_t, +>; +pub type cookie_seek_function_t = ::std::option::Option< + unsafe extern "C" fn( + __cookie: *mut ::std::os::raw::c_void, + __pos: *mut __off64_t, + __w: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type cookie_close_function_t = ::std::option::Option< + unsafe extern "C" fn(__cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_cookie_io_functions_t { + pub read: cookie_read_function_t, + pub write: cookie_write_function_t, + pub seek: cookie_seek_function_t, + pub close: cookie_close_function_t, } -unsafe extern "C" { - pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; +pub type cookie_io_functions_t = _IO_cookie_io_functions_t; +pub type fpos_t = __fpos_t; +extern "C" { + pub static mut stdin: *mut FILE; } -unsafe extern "C" { - pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; +extern "C" { + pub static mut stdout: *mut FILE; } -unsafe extern "C" { - pub fn fgets( - arg1: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_int, - arg2: *mut FILE, - ) -> *mut ::std::os::raw::c_char; +extern "C" { + pub static mut stderr: *mut FILE; } -unsafe extern "C" { - pub fn fopen( - __filename: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; +extern "C" { + pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fprintf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - ... +extern "C" { + pub fn rename( + __old: *const ::std::os::raw::c_char, + __new: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn fread( - __ptr: *mut ::std::os::raw::c_void, - __size: ::std::os::raw::c_ulong, - __nitems: ::std::os::raw::c_ulong, - __stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; -} -unsafe extern "C" { - pub fn freopen( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: *mut FILE, - ) -> *mut FILE; -} -unsafe extern "C" { - pub fn fscanf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - ... +extern "C" { + pub fn renameat( + __oldfd: ::std::os::raw::c_int, + __old: *const ::std::os::raw::c_char, + __newfd: ::std::os::raw::c_int, + __new: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fseek( - arg1: *mut FILE, - arg2: ::std::os::raw::c_long, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; +extern "C" { + pub fn tmpfile() -> *mut FILE; } -unsafe extern "C" { - pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; +extern "C" { + pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn fwrite( - __ptr: *const ::std::os::raw::c_void, - __size: ::std::os::raw::c_ulong, - __nitems: ::std::os::raw::c_ulong, - __stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; +extern "C" { + pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn tempnam( + __dir: *const ::std::os::raw::c_char, + __pfx: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn getchar() -> ::std::os::raw::c_int; +extern "C" { + pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn perror(arg1: *const ::std::os::raw::c_char); +extern "C" { + pub fn fopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; } -unsafe extern "C" { - pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn freopen( + __filename: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, + __stream: *mut FILE, + ) -> *mut FILE; } -unsafe extern "C" { - pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char) + -> *mut FILE; } -unsafe extern "C" { - pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn fopencookie( + __magic_cookie: *mut ::std::os::raw::c_void, + __modes: *const ::std::os::raw::c_char, + __io_funcs: cookie_io_functions_t, + ) -> *mut FILE; } -unsafe extern "C" { - pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +extern "C" { + pub fn fmemopen( + __s: *mut ::std::os::raw::c_void, + __len: usize, + __modes: *const ::std::os::raw::c_char, + ) -> *mut FILE; } -unsafe extern "C" { - pub fn rename( - __old: *const ::std::os::raw::c_char, - __new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn open_memstream( + __bufloc: *mut *mut ::std::os::raw::c_char, + __sizeloc: *mut usize, + ) -> *mut FILE; } -unsafe extern "C" { - pub fn rewind(arg1: *mut FILE); +extern "C" { + pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); } -unsafe extern "C" { - pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +extern "C" { + pub fn setvbuf( + __stream: *mut FILE, + __buf: *mut ::std::os::raw::c_char, + __modes: ::std::os::raw::c_int, + __n: usize, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); +extern "C" { + pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize); } -unsafe extern "C" { - pub fn setvbuf( - arg1: *mut FILE, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - __size: usize, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn setlinebuf(__stream: *mut FILE); } -unsafe extern "C" { - pub fn sprintf( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, +extern "C" { + pub fn fprintf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn sscanf( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, +extern "C" { + pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sprintf( + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn tmpfile() -> *mut FILE; -} -unsafe extern "C" { - pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { +extern "C" { pub fn vfprintf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - arg3: __builtin_va_list, + __s: *mut FILE, + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vprintf( - arg1: *const ::std::os::raw::c_char, - arg2: __builtin_va_list, + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vsprintf( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: __builtin_va_list, + __s: *mut ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -unsafe extern "C" { - pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; -} -unsafe extern "C" { - pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn popen( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -unsafe extern "C" { - pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn __svfscanf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - arg3: va_list, +extern "C" { + pub fn snprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -unsafe extern "C" { - pub fn flockfile(arg1: *mut FILE); -} -unsafe extern "C" { - pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn vsnprintf( + __s: *mut ::std::os::raw::c_char, + __maxlen: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn funlockfile(arg1: *mut FILE); +extern "C" { + pub fn vasprintf( + __ptr: *mut *mut ::std::os::raw::c_char, + __f: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn __asprintf( + __ptr: *mut *mut ::std::os::raw::c_char, + __fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn getchar_unlocked() -> ::std::os::raw::c_int; +extern "C" { + pub fn asprintf( + __ptr: *mut *mut ::std::os::raw::c_char, + __fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn vdprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +extern "C" { + pub fn dprintf( + __fd: ::std::os::raw::c_int, + __fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn fscanf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn tempnam( - __dir: *const ::std::os::raw::c_char, - __prefix: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn sscanf( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } -pub type off_t = __darwin_off_t; -unsafe extern "C" { - pub fn fseeko( +extern "C" { + #[link_name = "\u{1}__isoc99_fscanf"] + pub fn fscanf1( __stream: *mut FILE, - __offset: off_t, - __whence: ::std::os::raw::c_int, + __format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ftello(__stream: *mut FILE) -> off_t; +extern "C" { + #[link_name = "\u{1}__isoc99_scanf"] + pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn snprintf( - __str: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, +extern "C" { + #[link_name = "\u{1}__isoc99_sscanf"] + pub fn sscanf1( + __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vfscanf( - __stream: *mut FILE, + __s: *mut FILE, __format: *const ::std::os::raw::c_char, - arg1: __builtin_va_list, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vscanf( __format: *const ::std::os::raw::c_char, - arg1: __builtin_va_list, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn vsnprintf( - __str: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, +extern "C" { + pub fn vsscanf( + __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, - arg1: __builtin_va_list, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn vsscanf( - __str: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}__isoc99_vfscanf"] + pub fn vfscanf1( + __s: *mut FILE, __format: *const ::std::os::raw::c_char, - arg1: __builtin_va_list, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn dprintf( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - ... +extern "C" { + #[link_name = "\u{1}__isoc99_vscanf"] + pub fn vscanf1( + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn vdprintf( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - arg3: va_list, +extern "C" { + #[link_name = "\u{1}__isoc99_vsscanf"] + pub fn vsscanf1( + __s: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { + pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getchar_unlocked() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgets( + __s: *mut ::std::os::raw::c_char, + __n: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __getdelim( + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> __ssize_t; +} +extern "C" { pub fn getdelim( - __linep: *mut *mut ::std::os::raw::c_char, - __linecapp: *mut usize, + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, __delimiter: ::std::os::raw::c_int, __stream: *mut FILE, - ) -> isize; + ) -> __ssize_t; } -unsafe extern "C" { +extern "C" { pub fn getline( - __linep: *mut *mut ::std::os::raw::c_char, - __linecapp: *mut usize, + __lineptr: *mut *mut ::std::os::raw::c_char, + __n: *mut usize, __stream: *mut FILE, - ) -> isize; + ) -> __ssize_t; } -unsafe extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, +extern "C" { + pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fread( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fwrite( + __ptr: *const ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __n: ::std::os::raw::c_ulong, + __s: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn fread_unlocked( + __ptr: *mut ::std::os::raw::c_void, __size: usize, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; + __n: usize, + __stream: *mut FILE, + ) -> usize; } -unsafe extern "C" { - pub fn open_memstream( - __bufp: *mut *mut ::std::os::raw::c_char, - __sizep: *mut usize, - ) -> *mut FILE; +extern "C" { + pub fn fwrite_unlocked( + __ptr: *const ::std::os::raw::c_void, + __size: usize, + __n: usize, + __stream: *mut FILE, + ) -> usize; } -unsafe extern "C" { - pub static sys_nerr: ::std::os::raw::c_int; +extern "C" { + pub fn fseek( + __stream: *mut FILE, + __off: ::std::os::raw::c_long, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub static sys_errlist: [*const ::std::os::raw::c_char; 0usize]; +extern "C" { + pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; } -unsafe extern "C" { - pub fn asprintf( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ... +extern "C" { + pub fn rewind(__stream: *mut FILE); +} +extern "C" { + pub fn fseeko( + __stream: *mut FILE, + __off: __off_t, + __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn ftello(__stream: *mut FILE) -> __off_t; } -unsafe extern "C" { - pub fn fgetln(arg1: *mut FILE, __len: *mut usize) -> *mut ::std::os::raw::c_char; +extern "C" { + pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fmtcheck( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; +extern "C" { + pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn clearerr(__stream: *mut FILE); } -unsafe extern "C" { - pub fn setbuffer( - arg1: *mut FILE, - arg2: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_int, - ); +extern "C" { + pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; +extern "C" { + pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn vasprintf( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: va_list, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn clearerr_unlocked(__stream: *mut FILE); } -unsafe extern "C" { - pub fn funopen( - arg1: *const ::std::os::raw::c_void, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_char, - __n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg3: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg4: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: fpos_t, - arg3: ::std::os::raw::c_int, - ) -> fpos_t, - >, - arg5: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, +extern "C" { + pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn perror(__s: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn popen( + __command: *const ::std::os::raw::c_char, + __modes: *const ::std::os::raw::c_char, ) -> *mut FILE; } -unsafe extern "C" { - pub fn __snprintf_chk( - arg1: *mut ::std::os::raw::c_char, - __maxlen: usize, - arg2: ::std::os::raw::c_int, - arg3: usize, - arg4: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { - pub fn __vsnprintf_chk( - arg1: *mut ::std::os::raw::c_char, - __maxlen: usize, - arg2: ::std::os::raw::c_int, - arg3: usize, - arg4: *const ::std::os::raw::c_char, - arg5: va_list, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn flockfile(__stream: *mut FILE); } -unsafe extern "C" { - pub fn __sprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: usize, - arg4: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn __vsprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: usize, - arg4: *const ::std::os::raw::c_char, - arg5: va_list, - ) -> ::std::os::raw::c_int; +extern "C" { + pub fn funlockfile(__stream: *mut FILE); } -unsafe extern "C" { - pub fn __error() -> *mut ::std::os::raw::c_int; +extern "C" { + pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int; } -pub type u_char = ::std::os::raw::c_uchar; -pub type u_short = ::std::os::raw::c_ushort; -pub type u_int = ::std::os::raw::c_uint; -pub type u_long = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_quad_t = u_int64_t; -pub type quad_t = i64; -pub type qaddr_t = *mut quad_t; -pub type caddr_t = *mut ::std::os::raw::c_char; -pub type daddr_t = i32; -pub type fixpt_t = u_int32_t; -pub type blkcnt_t = __darwin_blkcnt_t; -pub type blksize_t = __darwin_blksize_t; -pub type gid_t = __darwin_gid_t; -pub type in_addr_t = __uint32_t; -pub type in_port_t = __uint16_t; -pub type ino_t = __darwin_ino_t; -pub type ino64_t = __darwin_ino64_t; -pub type key_t = __int32_t; -pub type nlink_t = __uint16_t; -pub type segsz_t = i32; -pub type swblk_t = i32; -pub type clock_t = __darwin_clock_t; -pub type time_t = __darwin_time_t; -pub type useconds_t = __darwin_useconds_t; -pub type suseconds_t = __darwin_suseconds_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fd_set { - pub fds_bits: [__int32_t; 32usize], +extern "C" { + pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __errno_location() -> *mut ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn __darwin_check_fd_set_overflow( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -pub type fd_mask = __int32_t; -pub type pthread_cond_t = __darwin_pthread_cond_t; -pub type pthread_condattr_t = __darwin_pthread_condattr_t; -pub type pthread_mutex_t = __darwin_pthread_mutex_t; -pub type pthread_mutexattr_t = __darwin_pthread_mutexattr_t; -pub type pthread_once_t = __darwin_pthread_once_t; -pub type pthread_rwlock_t = __darwin_pthread_rwlock_t; -pub type pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; -pub type pthread_t = __darwin_pthread_t; -pub type pthread_key_t = __darwin_pthread_key_t; -pub type fsblkcnt_t = __darwin_fsblkcnt_t; -pub type fsfilcnt_t = __darwin_fsfilcnt_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct kstring_t { @@ -4292,24 +2827,24 @@ pub struct ks_tokaux_t { pub finished: ::std::os::raw::c_int, pub p: *const ::std::os::raw::c_char, } -unsafe extern "C" { +extern "C" { pub fn kvsprintf( s: *mut kstring_t, fmt: *const ::std::os::raw::c_char, - ap: va_list, + ap: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ksprintf( s: *mut kstring_t, fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn kputd(d: f64, s: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ksplit_core( s: *mut ::std::os::raw::c_char, delimiter: ::std::os::raw::c_int, @@ -4317,31 +2852,31 @@ unsafe extern "C" { _offsets: *mut *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn kstrstr( str_: *const ::std::os::raw::c_char, pat: *const ::std::os::raw::c_char, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn kstrnstr( str_: *const ::std::os::raw::c_char, pat: *const ::std::os::raw::c_char, n: ::std::os::raw::c_int, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn kmemmem( - _str: *const ::std::os::raw::c_void, + str_: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, - _pat: *const ::std::os::raw::c_void, + pat: *const ::std::os::raw::c_void, m: ::std::os::raw::c_int, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn kstrtok( str_: *const ::std::os::raw::c_char, sep: *const ::std::os::raw::c_char, @@ -4355,13 +2890,16 @@ pub type kgets_func = ::std::option::Option< arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_char, >; -unsafe extern "C" { +extern "C" { pub fn kgetline( s: *mut kstring_t, fgets_fn: kgets_func, fp: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn kfgetline(s: *mut kstring_t, fp: *mut FILE) -> ::std::os::raw::c_int; +} pub type kgets_func2 = ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_char, @@ -4369,7 +2907,7 @@ pub type kgets_func2 = ::std::option::Option< arg3: *mut ::std::os::raw::c_void, ) -> isize, >; -unsafe extern "C" { +extern "C" { pub fn kgetline2( s: *mut kstring_t, fgets_fn: kgets_func2, @@ -4386,7 +2924,7 @@ pub struct cram_fd { pub struct hts_tpool { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_resize_array_( arg1: usize, arg2: usize, @@ -4397,10 +2935,10 @@ unsafe extern "C" { arg7: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_lib_shutdown(); } -unsafe extern "C" { +extern "C" { pub fn hts_free(ptr: *mut ::std::os::raw::c_void); } pub const htsFormatCategory_unknown_category: htsFormatCategory = 0; @@ -4779,6 +3317,7 @@ pub const hts_fmt_option_CRAM_OPT_USE_TOK: hts_fmt_option = 24; pub const hts_fmt_option_CRAM_OPT_USE_FQZ: hts_fmt_option = 25; pub const hts_fmt_option_CRAM_OPT_USE_ARITH: hts_fmt_option = 26; pub const hts_fmt_option_CRAM_OPT_POS_DELTA: hts_fmt_option = 27; +pub const hts_fmt_option_CRAM_OPT_RM_UR: hts_fmt_option = 28; pub const hts_fmt_option_HTS_OPT_COMPRESSION_LEVEL: hts_fmt_option = 100; pub const hts_fmt_option_HTS_OPT_NTHREADS: hts_fmt_option = 101; pub const hts_fmt_option_HTS_OPT_THREAD_POOL: hts_fmt_option = 102; @@ -4813,141 +3352,141 @@ pub union hts_opt__bindgen_ty_1 { pub i: ::std::os::raw::c_int, pub s: *mut ::std::os::raw::c_char, } -unsafe extern "C" { +extern "C" { pub fn hts_opt_add( opts: *mut *mut hts_opt, c_arg: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_opt_apply(fp: *mut htsFile, opts: *mut hts_opt) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_opt_free(opts: *mut hts_opt); } -unsafe extern "C" { +extern "C" { pub fn hts_parse_format( opt: *mut htsFormat, str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_opt_list( opt: *mut htsFormat, str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_str: [::std::os::raw::c_char; 0usize]; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_int: [::std::os::raw::c_int; 0usize]; } -unsafe extern "C" { +extern "C" { pub fn hts_version() -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_features() -> ::std::os::raw::c_uint; } -unsafe extern "C" { +extern "C" { pub fn hts_test_feature(id: ::std::os::raw::c_uint) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_feature_string() -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_detect_format(fp: *mut hFILE, fmt: *mut htsFormat) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_detect_format2( fp: *mut hFILE, fname: *const ::std::os::raw::c_char, fmt: *mut htsFormat, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_format_description(format: *const htsFormat) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_open( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_open_format( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, fmt: *const htsFormat, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_hopen( fp: *mut hFILE, fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_flush(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_close(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_get_format(fp: *mut htsFile) -> *const htsFormat; } -unsafe extern "C" { +extern "C" { pub fn hts_format_file_extension(format: *const htsFormat) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_set_opt(fp: *mut htsFile, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_getline( fp: *mut htsFile, delimiter: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_readlines( fn_: *const ::std::os::raw::c_char, _n: *mut ::std::os::raw::c_int, ) -> *mut *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_readlist( fn_: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, _n: *mut ::std::os::raw::c_int, ) -> *mut *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_set_threads(fp: *mut htsFile, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_thread_pool(fp: *mut htsFile, p: *mut htsThreadPool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_cache_size(fp: *mut htsFile, n: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_set_fai_filename( fp: *mut htsFile, fn_aux: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_filter_expression( fp: *mut htsFile, expr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_check_EOF(fp: *mut htsFile) -> ::std::os::raw::c_int; } pub type hts_pos_t = i64; @@ -5269,7 +3808,7 @@ impl hts_itr_t { } } pub type hts_itr_multi_t = hts_itr_t; -unsafe extern "C" { +extern "C" { pub fn hts_idx_init( n: ::std::os::raw::c_int, fmt: ::std::os::raw::c_int, @@ -5278,10 +3817,10 @@ unsafe extern "C" { n_lvls: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_destroy(idx: *mut hts_idx_t); } -unsafe extern "C" { +extern "C" { pub fn hts_idx_push( idx: *mut hts_idx_t, tid: ::std::os::raw::c_int, @@ -5291,27 +3830,27 @@ unsafe extern "C" { is_mapped: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_finish(idx: *mut hts_idx_t, final_offset: u64) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_fmt(idx: *mut hts_idx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_tbi_name( idx: *mut hts_idx_t, tid: ::std::os::raw::c_int, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_save( idx: *const hts_idx_t, fn_: *const ::std::os::raw::c_char, fmt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_save_as( idx: *const hts_idx_t, fn_: *const ::std::os::raw::c_char, @@ -5319,19 +3858,19 @@ unsafe extern "C" { fmt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load( fn_: *const ::std::os::raw::c_char, fmt: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -5345,10 +3884,10 @@ pub type hts_id2name_f = ::std::option::Option< arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char, >; -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_meta(idx: *mut hts_idx_t, l_meta: *mut u32) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_set_meta( idx: *mut hts_idx_t, l_meta: u32, @@ -5356,7 +3895,7 @@ unsafe extern "C" { is_copy: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_stat( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -5364,10 +3903,10 @@ unsafe extern "C" { unmapped: *mut u64, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_n_no_coor(idx: *const hts_idx_t) -> u64; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_seqnames( idx: *const hts_idx_t, n: *mut ::std::os::raw::c_int, @@ -5375,10 +3914,10 @@ unsafe extern "C" { hdr: *mut ::std::os::raw::c_void, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_nseq(idx: *const hts_idx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_decimal( str_: *const ::std::os::raw::c_char, strend: *mut *mut ::std::os::raw::c_char, @@ -5391,21 +3930,21 @@ pub type hts_name2id_f = ::std::option::Option< arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >; -unsafe extern "C" { +extern "C" { pub fn hts_parse_reg64( str_: *const ::std::os::raw::c_char, beg: *mut hts_pos_t, end: *mut hts_pos_t, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_reg( str_: *const ::std::os::raw::c_char, beg: *mut ::std::os::raw::c_int, end: *mut ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_region( s: *const ::std::os::raw::c_char, tid: *mut ::std::os::raw::c_int, @@ -5416,7 +3955,7 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_query( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -5425,7 +3964,7 @@ unsafe extern "C" { readrec: hts_readrec_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_destroy(iter: *mut hts_itr_t); } pub type hts_itr_query_func = ::std::option::Option< @@ -5437,7 +3976,7 @@ pub type hts_itr_query_func = ::std::option::Option< readrec: hts_readrec_func, ) -> *mut hts_itr_t, >; -unsafe extern "C" { +extern "C" { pub fn hts_itr_querys( idx: *const hts_idx_t, reg: *const ::std::os::raw::c_char, @@ -5447,7 +3986,7 @@ unsafe extern "C" { readrec: hts_readrec_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_next( fp: *mut BGZF, iter: *mut hts_itr_t, @@ -5458,14 +3997,14 @@ unsafe extern "C" { pub type hts_itr_multi_query_func = ::std::option::Option< unsafe extern "C" fn(idx: *const hts_idx_t, itr: *mut hts_itr_t) -> ::std::os::raw::c_int, >; -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_bam(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_cram(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_regions( idx: *const hts_idx_t, reglist: *mut hts_reglist_t, @@ -5478,14 +4017,14 @@ unsafe extern "C" { tell: hts_tell_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_next( fd: *mut htsFile, iter: *mut hts_itr_t, r: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_reglist_create( argv: *mut *mut ::std::os::raw::c_char, argc: ::std::os::raw::c_int, @@ -5494,10 +4033,10 @@ unsafe extern "C" { getid: hts_name2id_f, ) -> *mut hts_reglist_t; } -unsafe extern "C" { +extern "C" { pub fn hts_reglist_free(reglist: *mut hts_reglist_t, count: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_file_type(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } #[repr(C)] @@ -5505,13 +4044,13 @@ unsafe extern "C" { pub struct errmod_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn errmod_init(depcorr: f64) -> *mut errmod_t; } -unsafe extern "C" { +extern "C" { pub fn errmod_destroy(em: *mut errmod_t); } -unsafe extern "C" { +extern "C" { pub fn errmod_cal( em: *const errmod_t, n: ::std::os::raw::c_int, @@ -5527,7 +4066,7 @@ pub struct probaln_par_t { pub e: f32, pub bw: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn probaln_glocal( ref_: *const u8, l_ref: ::std::os::raw::c_int, @@ -5544,37 +4083,55 @@ unsafe extern "C" { pub struct hts_md5_context { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_md5_init() -> *mut hts_md5_context; } -unsafe extern "C" { +extern "C" { pub fn hts_md5_update( ctx: *mut hts_md5_context, data: *const ::std::os::raw::c_void, size: ::std::os::raw::c_ulong, ); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_final(digest: *mut ::std::os::raw::c_uchar, ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_reset(ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_hex(hex: *mut ::std::os::raw::c_char, digest: *const ::std::os::raw::c_uchar); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_destroy(ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_crc32(crc: u32, buf: *const ::std::os::raw::c_void, len: usize) -> u32; } -unsafe extern "C" { - pub fn __assert_rtn( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: *const ::std::os::raw::c_char, +pub type uint16_u = u16; +pub type uint32_u = u32; +pub type uint64_u = u64; +extern "C" { + pub fn __assert_fail( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert_perror_fail( + __errnum: ::std::os::raw::c_int, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_uint, + __function: *const ::std::os::raw::c_char, + ) -> !; +} +extern "C" { + pub fn __assert( + __assertion: *const ::std::os::raw::c_char, + __file: *const ::std::os::raw::c_char, + __line: ::std::os::raw::c_int, ) -> !; } #[repr(C)] @@ -5617,7 +4174,7 @@ pub struct bcf_hdr_t { pub mem: kstring_t, pub m: [i32; 3usize], } -unsafe extern "C" { +extern "C" { pub static mut bcf_type_shift: [u8; 0usize]; } #[repr(C)] @@ -5840,7 +4397,7 @@ pub struct bcf_dec_t { pub shared_dirty: ::std::os::raw::c_int, pub indiv_dirty: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn bcf_strerror( errorcode: ::std::os::raw::c_int, buffer: *mut ::std::os::raw::c_char, @@ -6024,96 +4581,96 @@ impl bcf1_t { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_init(mode: *const ::std::os::raw::c_char) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_destroy(h: *mut bcf_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_init() -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_destroy(v: *mut bcf1_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_empty(v: *mut bcf1_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_clear(v: *mut bcf1_t); } pub type vcfFile = htsFile; -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_read(fp: *mut htsFile) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set_samples( hdr: *mut bcf_hdr_t, samples: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_subset_format(hdr: *const bcf_hdr_t, rec: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_write(fp: *mut htsFile, h: *mut bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_parse( s: *mut kstring_t, h: *const bcf_hdr_t, v: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_open_mode( mode: *mut ::std::os::raw::c_char, fn_: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_format( h: *const bcf_hdr_t, v: *const bcf1_t, s: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_read(fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_unpack(b: *mut bcf1_t, which: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_dup(src: *mut bcf1_t) -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_copy(dst: *mut bcf1_t, src: *mut bcf1_t) -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_write(fp: *mut htsFile, h: *mut bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_hdr_read(fp: *mut htsFile) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn vcf_hdr_write(fp: *mut htsFile, h: *const bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_read(fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_write( fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_readrec( fp: *mut BGZF, null: *mut ::std::os::raw::c_void, @@ -6123,74 +4680,74 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_write_line(fp: *mut htsFile, line: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_dup(hdr: *const bcf_hdr_t) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_combine(dst: *mut bcf_hdr_t, src: *const bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_merge(dst: *mut bcf_hdr_t, src: *const bcf_hdr_t) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_add_sample( hdr: *mut bcf_hdr_t, sample: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set( hdr: *mut bcf_hdr_t, fname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_format( hdr: *const bcf_hdr_t, is_bcf: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_fmt_text( hdr: *const bcf_hdr_t, is_bcf: ::std::os::raw::c_int, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_append( h: *mut bcf_hdr_t, line: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_printf( h: *mut bcf_hdr_t, format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_get_version(hdr: *const bcf_hdr_t) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set_version( hdr: *mut bcf_hdr_t, version: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_remove( h: *mut bcf_hdr_t, type_: ::std::os::raw::c_int, key: *const ::std::os::raw::c_char, ); } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_subset( h0: *const bcf_hdr_t, n: ::std::os::raw::c_int, @@ -6198,35 +4755,35 @@ unsafe extern "C" { imap: *mut ::std::os::raw::c_int, ) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_seqnames( h: *const bcf_hdr_t, nseqs: *mut ::std::os::raw::c_int, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_parse( hdr: *mut bcf_hdr_t, htxt: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_sync(h: *mut bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_parse_line( h: *const bcf_hdr_t, line: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_format(hrec: *const bcf_hrec_t, str_: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_add_hrec(hdr: *mut bcf_hdr_t, hrec: *mut bcf_hrec_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_get_hrec( hdr: *const bcf_hdr_t, type_: ::std::os::raw::c_int, @@ -6235,17 +4792,17 @@ unsafe extern "C" { str_class: *const ::std::os::raw::c_char, ) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_dup(hrec: *mut bcf_hrec_t) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_add_key( hrec: *mut bcf_hrec_t, str_: *const ::std::os::raw::c_char, len: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_set_val( hrec: *mut bcf_hrec_t, i: ::std::os::raw::c_int, @@ -6254,20 +4811,20 @@ unsafe extern "C" { is_quoted: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_find_key( hrec: *mut bcf_hrec_t, key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hrec_add_idx(hrec: *mut bcf_hrec_t, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_destroy(hrec: *mut bcf_hrec_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_subset( h: *const bcf_hdr_t, v: *mut bcf1_t, @@ -6275,17 +4832,17 @@ unsafe extern "C" { imap: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_translate( dst_hdr: *const bcf_hdr_t, src_hdr: *mut bcf_hdr_t, src_line: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_variant_types(rec: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_variant_type( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, @@ -6295,30 +4852,30 @@ pub const bcf_variant_match_bcf_match_exact: bcf_variant_match = 0; pub const bcf_variant_match_bcf_match_overlap: bcf_variant_match = 1; pub const bcf_variant_match_bcf_match_subset: bcf_variant_match = 2; pub type bcf_variant_match = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn bcf_has_variant_types( rec: *mut bcf1_t, bitmask: u32, mode: bcf_variant_match, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_has_variant_type( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, bitmask: u32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_variant_length( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_is_snp(v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6326,14 +4883,14 @@ unsafe extern "C" { n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_add_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, flt_id: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6341,14 +4898,14 @@ unsafe extern "C" { pass: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_has_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, filter: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_alleles( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6356,28 +4913,28 @@ unsafe extern "C" { nals: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_alleles_str( hdr: *const bcf_hdr_t, line: *mut bcf1_t, alleles_string: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_id( hdr: *const bcf_hdr_t, line: *mut bcf1_t, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_add_id( hdr: *const bcf_hdr_t, line: *mut bcf1_t, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_info( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6387,7 +4944,7 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_format_string( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6396,7 +4953,7 @@ unsafe extern "C" { n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_format( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6406,27 +4963,27 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_fmt( hdr: *const bcf_hdr_t, line: *mut bcf1_t, key: *const ::std::os::raw::c_char, ) -> *mut bcf_fmt_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info( hdr: *const bcf_hdr_t, line: *mut bcf1_t, key: *const ::std::os::raw::c_char, ) -> *mut bcf_info_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_fmt_id(line: *mut bcf1_t, id: ::std::os::raw::c_int) -> *mut bcf_fmt_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info_id(line: *mut bcf1_t, id: ::std::os::raw::c_int) -> *mut bcf_info_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info_values( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6436,7 +4993,7 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_format_string( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6445,7 +5002,7 @@ unsafe extern "C" { ndst: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_format_values( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6455,14 +5012,14 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_id2int( hdr: *const bcf_hdr_t, type_: ::std::os::raw::c_int, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_fmt_array( s: *mut kstring_t, n: ::std::os::raw::c_int, @@ -6470,17 +5027,17 @@ unsafe extern "C" { data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_fmt_sized_array(s: *mut kstring_t, ptr: *mut u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vchar( s: *mut kstring_t, l: ::std::os::raw::c_int, a: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vint( s: *mut kstring_t, n: ::std::os::raw::c_int, @@ -6488,40 +5045,63 @@ unsafe extern "C" { wsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vfloat( s: *mut kstring_t, n: ::std::os::raw::c_int, a: *mut f32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { + pub fn bcf_itr_querys1( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + region: *const ::std::os::raw::c_char, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn bcf_itr_regarray( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + regarray: *mut *mut ::std::os::raw::c_char, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn bcf_itr_regions( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + reglist: *mut hts_reglist_t, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { pub fn bcf_index_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, flags: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -6529,7 +5109,7 @@ unsafe extern "C" { n_threads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_idx_init( fp: *mut htsFile, h: *mut bcf_hdr_t, @@ -6537,16 +5117,16 @@ unsafe extern "C" { fnidx: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_idx_save(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub static mut bcf_float_vector_end: u32; } -unsafe extern "C" { +extern "C" { pub static mut bcf_float_missing: u32; } -unsafe extern "C" { +extern "C" { pub fn bcf_format_gt_v2( hdr: *const bcf_hdr_t, fmt: *mut bcf_fmt_t, @@ -6574,7 +5154,7 @@ pub struct sam_hdr_t { pub ref_count: u32, } pub type bam_hdr_t = sam_hdr_t; -unsafe extern "C" { +extern "C" { pub static bam_cigar_table: [i8; 256usize]; } #[repr(C)] @@ -6649,55 +5229,55 @@ impl bam1_t { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_init() -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bam_hdr_read(fp: *mut BGZF) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bam_hdr_write(fp: *mut BGZF, h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_destroy(h: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_dup(h0: *const sam_hdr_t) -> *mut sam_hdr_t; } pub type samFile = htsFile; -unsafe extern "C" { +extern "C" { pub fn sam_hdr_parse(l_text: usize, text: *const ::std::os::raw::c_char) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_read(fp: *mut samFile) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_write(fp: *mut samFile, h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_length(h: *mut sam_hdr_t) -> usize; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_str(h: *mut sam_hdr_t) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_nref(h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_lines( h: *mut sam_hdr_t, lines: *const ::std::os::raw::c_char, len: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_line( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_line_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6706,7 +5286,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_line_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6714,7 +5294,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_line_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6722,14 +5302,14 @@ unsafe extern "C" { ID_value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_line_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, position: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_update_line( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6738,7 +5318,7 @@ unsafe extern "C" { ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_except( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6746,7 +5326,7 @@ unsafe extern "C" { ID_value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_lines( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6754,27 +5334,27 @@ unsafe extern "C" { rh: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_count_lines( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_line_index( bh: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_line_name( bh: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, pos: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_tag_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6784,7 +5364,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_tag_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6793,7 +5373,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_tag_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6802,62 +5382,69 @@ unsafe extern "C" { key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_name2tid( h: *mut sam_hdr_t, ref_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_tid2name( h: *const sam_hdr_t, tid: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_tid2len(h: *const sam_hdr_t, tid: ::std::os::raw::c_int) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_pg_id( h: *mut sam_hdr_t, name: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_pg( h: *mut sam_hdr_t, name: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn stringify_argv( argc: ::std::os::raw::c_int, argv: *mut *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_incr_ref(h: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { + pub fn sam_hdr_remove_tag_all( + bh: *mut sam_hdr_t, + type_: *const ::std::os::raw::c_char, + tag_id: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { pub fn bam_init1() -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_destroy1(b: *mut bam1_t); } -unsafe extern "C" { +extern "C" { pub fn bam_read1(fp: *mut BGZF, b: *mut bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_write1(fp: *mut BGZF, b: *const bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_copy1(bdst: *mut bam1_t, bsrc: *const bam1_t) -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_dup1(bsrc: *const bam1_t) -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_set1( bam: *mut bam1_t, l_qname: usize, @@ -6877,28 +5464,28 @@ unsafe extern "C" { l_aux: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_cigar2qlen(n_cigar: ::std::os::raw::c_int, cigar: *const u32) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_cigar2rlen(n_cigar: ::std::os::raw::c_int, cigar: *const u32) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_endpos(b: *const bam1_t) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_str2flag(str_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_flag2str(flag: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_set_qname( b: *mut bam1_t, qname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_parse_cigar( in_: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char, @@ -6906,14 +5493,14 @@ unsafe extern "C" { a_mem: *mut usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bam_parse_cigar( in_: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char, b: *mut bam1_t, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn sam_idx_init( fp: *mut htsFile, h: *mut sam_hdr_t, @@ -6921,20 +5508,20 @@ unsafe extern "C" { fnidx: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_idx_save(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load(fp: *mut htsFile, fn_: *const ::std::os::raw::c_char) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load2( fp: *mut htsFile, fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load3( fp: *mut htsFile, fn_: *const ::std::os::raw::c_char, @@ -6942,20 +5529,20 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -6963,7 +5550,7 @@ unsafe extern "C" { nthreads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_queryi( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -6971,14 +5558,14 @@ unsafe extern "C" { end: hts_pos_t, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_querys( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, region: *const ::std::os::raw::c_char, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_regions( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, @@ -6986,7 +5573,7 @@ unsafe extern "C" { regcount: ::std::os::raw::c_uint, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_regarray( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, @@ -6994,7 +5581,7 @@ unsafe extern "C" { regcount: ::std::os::raw::c_uint, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_parse_region( h: *mut sam_hdr_t, s: *const ::std::os::raw::c_char, @@ -7004,89 +5591,89 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_open_mode( mode: *mut ::std::os::raw::c_char, fn_: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_open_mode_opts( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_change_HD( h: *mut sam_hdr_t, key: *const ::std::os::raw::c_char, val: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_parse1( s: *mut kstring_t, h: *mut sam_hdr_t, b: *mut bam1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_format1( h: *const sam_hdr_t, b: *const bam1_t, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_read1(fp: *mut samFile, h: *mut sam_hdr_t, b: *mut bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_write1( fp: *mut samFile, h: *const sam_hdr_t, b: *const bam1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_passes_filter( h: *const sam_hdr_t, b: *const bam1_t, filt: *mut hts_filter_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_first(b: *const bam1_t) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_next(b: *const bam1_t, s: *const u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_get(b: *const bam1_t, tag: *const ::std::os::raw::c_char) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2i(s: *const u8) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2f(s: *const u8) -> f64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2A(s: *const u8) -> ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2Z(s: *const u8) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB_len(s: *const u8) -> u32; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB2i(s: *const u8, idx: u32) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB2f(s: *const u8, idx: u32) -> f64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_append( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7095,13 +5682,13 @@ unsafe extern "C" { data: *const u8, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_del(b: *mut bam1_t, s: *mut u8) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_remove(b: *mut bam1_t, s: *mut u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_str( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7109,21 +5696,21 @@ unsafe extern "C" { data: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_int( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, val: i64, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_float( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, val: f32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_array( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7367,16 +5954,16 @@ pub struct bam_mplp_s { _unused: [u8; 0], } pub type bam_mplp_t = *mut bam_mplp_s; -unsafe extern "C" { +extern "C" { pub fn bam_plp_init(func: bam_plp_auto_f, data: *mut ::std::os::raw::c_void) -> bam_plp_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_destroy(iter: bam_plp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_push(iter: bam_plp_t, b: *const bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_next( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7384,7 +5971,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_auto( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7392,7 +5979,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp64_next( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7400,7 +5987,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp64_auto( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7408,13 +5995,13 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_set_maxcnt(iter: bam_plp_t, maxcnt: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_reset(iter: bam_plp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_constructor( plp: bam_plp_t, func: ::std::option::Option< @@ -7426,7 +6013,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_destructor( plp: bam_plp_t, func: ::std::option::Option< @@ -7438,7 +6025,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_insertion( p: *const bam_pileup1_t, ins: *mut kstring_t, @@ -7450,7 +6037,7 @@ unsafe extern "C" { pub struct hts_base_mod_state { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn bam_plp_insertion_mod( p: *const bam_pileup1_t, m: *mut hts_base_mod_state, @@ -7458,23 +6045,23 @@ unsafe extern "C" { del_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_init( n: ::std::os::raw::c_int, func: bam_plp_auto_f, data: *mut *mut ::std::os::raw::c_void, ) -> bam_mplp_t; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_init_overlaps(iter: bam_mplp_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_destroy(iter: bam_mplp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_set_maxcnt(iter: bam_mplp_t, maxcnt: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_auto( iter: bam_mplp_t, _tid: *mut ::std::os::raw::c_int, @@ -7483,7 +6070,7 @@ unsafe extern "C" { plp: *mut *const bam_pileup1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp64_auto( iter: bam_mplp_t, _tid: *mut ::std::os::raw::c_int, @@ -7492,10 +6079,10 @@ unsafe extern "C" { plp: *mut *const bam_pileup1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_reset(iter: bam_mplp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_constructor( iter: bam_mplp_t, func: ::std::option::Option< @@ -7507,7 +6094,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_destructor( iter: bam_mplp_t, func: ::std::option::Option< @@ -7519,7 +6106,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn sam_cap_mapq( b: *mut bam1_t, ref_: *const ::std::os::raw::c_char, @@ -7537,7 +6124,7 @@ pub const htsRealnFlags_BAQ_PACBIO: htsRealnFlags = 24; pub const htsRealnFlags_BAQ_ONT: htsRealnFlags = 32; pub const htsRealnFlags_BAQ_GENAPSYS: htsRealnFlags = 40; pub type htsRealnFlags = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn sam_prob_realn( b: *mut bam1_t, ref_: *const ::std::os::raw::c_char, @@ -7553,26 +6140,26 @@ pub struct hts_base_mod { pub strand: ::std::os::raw::c_int, pub qual: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn hts_base_mod_state_alloc() -> *mut hts_base_mod_state; } -unsafe extern "C" { +extern "C" { pub fn hts_base_mod_state_free(state: *mut hts_base_mod_state); } -unsafe extern "C" { +extern "C" { pub fn bam_parse_basemod( b: *const bam1_t, state: *mut hts_base_mod_state, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_parse_basemod2( b: *const bam1_t, state: *mut hts_base_mod_state, flags: u32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_at_next_pos( b: *const bam1_t, state: *mut hts_base_mod_state, @@ -7580,7 +6167,7 @@ unsafe extern "C" { n_mods: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_next_basemod( b: *const bam1_t, state: *mut hts_base_mod_state, @@ -7589,7 +6176,7 @@ unsafe extern "C" { pos: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_at_qpos( b: *const bam1_t, qpos: ::std::os::raw::c_int, @@ -7598,7 +6185,7 @@ unsafe extern "C" { n_mods: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_query_type( state: *mut hts_base_mod_state, code: ::std::os::raw::c_int, @@ -7607,7 +6194,7 @@ unsafe extern "C" { canonical: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_queryi( state: *mut hts_base_mod_state, i: ::std::os::raw::c_int, @@ -7616,20 +6203,20 @@ unsafe extern "C" { canonical: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_recorded( state: *mut hts_base_mod_state, ntype: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_set( fp: *mut samFile, h: *mut sam_hdr_t, dup: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_get(fp: *mut samFile) -> *mut sam_hdr_t; } #[repr(C)] @@ -7810,20 +6397,20 @@ impl hFILE { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn hopen( filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ... ) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn hdopen(fd: ::std::os::raw::c_int, mode: *const ::std::os::raw::c_char) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn hisremote(filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn haddextension( buffer: *mut kstring_t, filename: *const ::std::os::raw::c_char, @@ -7831,16 +6418,16 @@ unsafe extern "C" { extension: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hclose(fp: *mut hFILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hclose_abruptly(fp: *mut hFILE); } -unsafe extern "C" { +extern "C" { pub fn hseek(fp: *mut hFILE, offset: off_t, whence: ::std::os::raw::c_int) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn hgetdelim( buffer: *mut ::std::os::raw::c_char, size: usize, @@ -7848,45 +6435,48 @@ unsafe extern "C" { fp: *mut hFILE, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn hgets( buffer: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, fp: *mut hFILE, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { + pub fn khgetline(kstr: *mut kstring_t, fp: *mut hFILE) -> ::std::os::raw::c_int; +} +extern "C" { pub fn hpeek(fp: *mut hFILE, buffer: *mut ::std::os::raw::c_void, nbytes: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn hflush(fp: *mut hFILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_mem_get_buffer( file: *mut hFILE, length: *mut usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hfile_mem_steal_buffer( file: *mut hFILE, length: *mut usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hfile_list_schemes( plugin: *const ::std::os::raw::c_char, sc_list: *mut *const ::std::os::raw::c_char, nschemes: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_list_plugins( plist: *mut *const ::std::os::raw::c_char, nplugins: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_has_plugin(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } pub const cram_block_method_CRAM_COMP_UNKNOWN: cram_block_method = -1; @@ -7967,65 +6557,65 @@ pub struct cram_codec { pub struct refs_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_header(fd: *mut cram_fd) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_header(fd: *mut cram_fd, hdr: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_version(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_version(fd: *mut cram_fd, vers: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn cram_major_vers(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_minor_vers(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_fp(fd: *mut cram_fd) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_fp(fd: *mut cram_fd, fp: *mut hFILE); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_length(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_length(c: *mut cram_container, length: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_blocks(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_num_blocks(c: *mut cram_container, num_blocks: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_landmarks( c: *mut cram_container, num_landmarks: *mut i32, ) -> *mut i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_landmarks( c: *mut cram_container, num_landmarks: i32, landmarks: *mut i32, ); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_records(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_bases(c: *mut cram_container) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_container_is_empty(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_coords( c: *mut cram_container, refid: *mut ::std::os::raw::c_int, @@ -8033,75 +6623,75 @@ unsafe extern "C" { span: *mut hts_pos_t, ); } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_content_id(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_comp_size(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_uncomp_size(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_crc32(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_data(b: *mut cram_block) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_content_type(b: *mut cram_block) -> cram_content_type; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_method(b: *mut cram_block) -> cram_block_method; } -unsafe extern "C" { +extern "C" { pub fn cram_expand_method( data: *mut u8, size: i32, comp: cram_block_method, ) -> *mut cram_method_details; } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_content_id(b: *mut cram_block, id: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_comp_size(b: *mut cram_block, size: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_uncomp_size(b: *mut cram_block, size: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_crc32(b: *mut cram_block, crc: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_data(b: *mut cram_block, data: *mut ::std::os::raw::c_void); } -unsafe extern "C" { +extern "C" { pub fn cram_block_append( b: *mut cram_block, data: *const ::std::os::raw::c_void, size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_block_update_size(b: *mut cram_block); } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_offset(b: *mut cram_block) -> usize; } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_offset(b: *mut cram_block, offset: usize); } -unsafe extern "C" { +extern "C" { pub fn cram_block_size(b: *mut cram_block) -> u32; } -unsafe extern "C" { +extern "C" { pub fn cram_codec_get_content_ids(c: *mut cram_codec, ids: *mut ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn cram_codec_describe(c: *mut cram_codec, ks: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_transcode_rg( in_: *mut cram_fd, out: *mut cram_fd, @@ -8111,14 +6701,14 @@ unsafe extern "C" { out_rg: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_copy_slice( in_: *mut cram_fd, out: *mut cram_fd, num_slice: i32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_filter_container( in_: *mut cram_fd, out: *mut cram_fd, @@ -8126,13 +6716,13 @@ unsafe extern "C" { ref_id: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_decode_compression_header( fd: *mut cram_fd, b: *mut cram_block, ) -> *mut cram_block_compression_hdr; } -unsafe extern "C" { +extern "C" { pub fn cram_free_compression_header(hdr: *mut cram_block_compression_hdr); } #[repr(C)] @@ -8140,35 +6730,35 @@ unsafe extern "C" { pub struct cram_cid2ds_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn cram_update_cid2ds_map( hdr: *mut cram_block_compression_hdr, cid2ds: *mut cram_cid2ds_t, ) -> *mut cram_cid2ds_t; } -unsafe extern "C" { +extern "C" { pub fn cram_cid2ds_query( c2d: *mut cram_cid2ds_t, content_id: ::std::os::raw::c_int, n: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_cid2ds_free(cid2ds: *mut cram_cid2ds_t); } -unsafe extern "C" { +extern "C" { pub fn cram_describe_encodings( hdr: *mut cram_block_compression_hdr, ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_num_blocks(hdr: *mut cram_block_slice_hdr) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_embed_ref_id(h: *mut cram_block_slice_hdr) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_coords( h: *mut cram_block_slice_hdr, refid: *mut ::std::os::raw::c_int, @@ -8176,34 +6766,34 @@ unsafe extern "C" { span: *mut hts_pos_t, ); } -unsafe extern "C" { +extern "C" { pub fn cram_decode_slice_header( fd: *mut cram_fd, b: *mut cram_block, ) -> *mut cram_block_slice_hdr; } -unsafe extern "C" { +extern "C" { pub fn cram_free_slice_header(hdr: *mut cram_block_slice_hdr); } -unsafe extern "C" { +extern "C" { pub fn cram_new_block( content_type: cram_content_type, content_id: ::std::os::raw::c_int, ) -> *mut cram_block; } -unsafe extern "C" { +extern "C" { pub fn cram_read_block(fd: *mut cram_fd) -> *mut cram_block; } -unsafe extern "C" { +extern "C" { pub fn cram_write_block(fd: *mut cram_fd, b: *mut cram_block) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_free_block(b: *mut cram_block); } -unsafe extern "C" { +extern "C" { pub fn cram_uncompress_block(b: *mut cram_block) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_compress_block( fd: *mut cram_fd, b: *mut cram_block, @@ -8212,7 +6802,7 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_compress_block2( fd: *mut cram_fd, s: *mut cram_slice, @@ -8222,22 +6812,22 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_new_container( nrec: ::std::os::raw::c_int, nslice: ::std::os::raw::c_int, ) -> *mut cram_container; } -unsafe extern "C" { +extern "C" { pub fn cram_free_container(c: *mut cram_container); } -unsafe extern "C" { +extern "C" { pub fn cram_read_container(fd: *mut cram_fd) -> *mut cram_container; } -unsafe extern "C" { +extern "C" { pub fn cram_write_container(fd: *mut cram_fd, h: *mut cram_container) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_store_container( fd: *mut cram_fd, c: *mut cram_container, @@ -8245,62 +6835,62 @@ unsafe extern "C" { size: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_container_size(c: *mut cram_container) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_open( filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut cram_fd; } -unsafe extern "C" { +extern "C" { pub fn cram_dopen( fp: *mut hFILE, filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut cram_fd; } -unsafe extern "C" { +extern "C" { pub fn cram_close(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_seek( fd: *mut cram_fd, offset: off_t, whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_flush(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_eof(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_option(fd: *mut cram_fd, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_voption( fd: *mut cram_fd, opt: hts_fmt_option, - args: va_list, + args: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_header(fd: *mut cram_fd, hdr: *mut sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_check_EOF(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn int32_put_blk(b: *mut cram_block, val: i32) -> ::std::os::raw::c_int; } pub type SAM_hdr = sam_hdr_t; -unsafe extern "C" { +extern "C" { pub fn cram_get_refs(fd: *mut htsFile) -> *mut refs_t; } -unsafe extern "C" { +extern "C" { pub fn cram_index_extents( fd: *mut cram_fd, refid: ::std::os::raw::c_int, @@ -8310,10 +6900,10 @@ unsafe extern "C" { last: *mut off_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_num_containers(fd: *mut cram_fd) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_num_containers_between( fd: *mut cram_fd, cstart: off_t, @@ -8322,10 +6912,10 @@ unsafe extern "C" { last: *mut i64, ) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_container_num2offset(fd: *mut cram_fd, n: i64) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn cram_container_offset2num(fd: *mut cram_fd, pos: off_t) -> i64; } #[repr(C)] @@ -8719,96 +7309,96 @@ impl BGZF { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn bgzf_dopen(fd: ::std::os::raw::c_int, mode: *const ::std::os::raw::c_char) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_open( path: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_hopen(fp: *mut hFILE, mode: *const ::std::os::raw::c_char) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_close(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_read(fp: *mut BGZF, data: *mut ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_write(fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_block_write( fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_peek(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_raw_read(fp: *mut BGZF, data: *mut ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_raw_write( fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_flush(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_seek(fp: *mut BGZF, pos: i64, whence: ::std::os::raw::c_int) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bgzf_check_EOF(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_compression(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_is_bgzf(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_set_cache_size(fp: *mut BGZF, size: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bgzf_flush_try(fp: *mut BGZF, size: isize) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_getc(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_getline( fp: *mut BGZF, delim: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_read_block(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_thread_pool( fp: *mut BGZF, pool: *mut hts_tpool, qsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_mt( fp: *mut BGZF, n_threads: ::std::os::raw::c_int, n_sub_blks: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_compress( dst: *mut ::std::os::raw::c_void, dlen: *mut usize, @@ -8817,65 +7407,65 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_useek( fp: *mut BGZF, uoffset: off_t, where_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_utell(fp: *mut BGZF) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_build_init(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_load( fp: *mut BGZF, bname: *const ::std::os::raw::c_char, suffix: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_load_hfile( fp: *mut BGZF, idx: *mut hFILE, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_dump( fp: *mut BGZF, bname: *const ::std::os::raw::c_char, suffix: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_dump_hfile( fp: *mut BGZF, idx: *mut hFILE, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_trim_alleles(header: *const bcf_hdr_t, line: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_alleles( header: *const bcf_hdr_t, line: *mut bcf1_t, mask: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_allele_set( header: *const bcf_hdr_t, line: *mut bcf1_t, rm_set: *const kbitset_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_calc_ac( header: *const bcf_hdr_t, line: *mut bcf1_t, @@ -8883,7 +7473,7 @@ unsafe extern "C" { which: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_gt_type( fmt_ptr: *mut bcf_fmt_t, isample: ::std::os::raw::c_int, @@ -8908,32 +7498,60 @@ pub struct tbx_t { pub idx: *mut hts_idx_t, pub dict: *mut ::std::os::raw::c_void, } -unsafe extern "C" { +extern "C" { pub static tbx_conf_gff: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_bed: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_psltbl: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_sam: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_vcf: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_gaf: tbx_conf_t; } -unsafe extern "C" { +extern "C" { + pub fn tbx_itr_querys1( + tbx: *mut tbx_t, + region: *const ::std::os::raw::c_char, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_regarray( + tbx: *mut tbx_t, + regarray: *mut *mut ::std::os::raw::c_char, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_regions( + tbx: *const tbx_t, + reglist: *mut hts_reglist_t, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_next1( + htsfp: *mut htsFile, + tbx: *mut tbx_t, + iter: *mut hts_itr_t, + r: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { pub fn tbx_name2id(tbx: *mut tbx_t, ss: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_get_bgzfp(fp: *mut htsFile) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn tbx_readrec( fp: *mut BGZF, tbxv: *mut ::std::os::raw::c_void, @@ -8943,21 +7561,21 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index( fp: *mut BGZF, min_shift: ::std::os::raw::c_int, conf: *const tbx_conf_t, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -8965,7 +7583,7 @@ unsafe extern "C" { conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -8974,29 +7592,29 @@ unsafe extern "C" { conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load(fn_: *const ::std::os::raw::c_char) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, flags: ::std::os::raw::c_int, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_seqnames( tbx: *mut tbx_t, n: *mut ::std::os::raw::c_int, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn tbx_destroy(tbx: *mut tbx_t); } pub const bcf_sr_opt_t_BCF_SR_REQUIRE_IDX: bcf_sr_opt_t = 0; @@ -9057,6 +7675,7 @@ pub struct bcf_sr_t { pub samples: *mut ::std::os::raw::c_int, pub n_smpl: ::std::os::raw::c_int, } +pub const bcf_sr_error_bcf_sr_ok: bcf_sr_error = 0; pub const bcf_sr_error_open_failed: bcf_sr_error = 0; pub const bcf_sr_error_not_bgzf: bcf_sr_error = 1; pub const bcf_sr_error_idx_load_failed: bcf_sr_error = 2; @@ -9068,6 +7687,10 @@ pub const bcf_sr_error_no_memory: bcf_sr_error = 7; pub const bcf_sr_error_vcf_parse_error: bcf_sr_error = 8; pub const bcf_sr_error_bcf_read_error: bcf_sr_error = 9; pub const bcf_sr_error_noidx_error: bcf_sr_error = 10; +pub const bcf_sr_error_bcf_sr_open_failed: bcf_sr_error = 11; +pub const bcf_sr_error_bcf_sr_seek_error: bcf_sr_error = 12; +pub const bcf_sr_error_bcf_sr_regions_error: bcf_sr_error = 13; +pub const bcf_sr_error_bcf_sr_samples_error: bcf_sr_error = 14; pub type bcf_sr_error = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9093,35 +7716,35 @@ pub struct bcf_srs_t { pub p: *mut htsThreadPool, pub aux: *mut ::std::os::raw::c_void, } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_init() -> *mut bcf_srs_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_destroy(readers: *mut bcf_srs_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_strerror(errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_opt(readers: *mut bcf_srs_t, opt: bcf_sr_opt_t, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_threads( files: *mut bcf_srs_t, n_threads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_destroy_threads(files: *mut bcf_srs_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_add_reader( readers: *mut bcf_srs_t, fname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_add_hreader( readers: *mut bcf_srs_t, file_ptr: *mut htsFile, @@ -9129,27 +7752,27 @@ unsafe extern "C" { idxname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn bcf_sr_remove_reader(files: *mut bcf_srs_t, i: ::std::os::raw::c_int); +extern "C" { + pub fn bcf_sr_remove_reader(files: *mut bcf_srs_t, reader_idx: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_next_line(readers: *mut bcf_srs_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_seek( readers: *mut bcf_srs_t, seq: *const ::std::os::raw::c_char, pos: hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_samples( readers: *mut bcf_srs_t, samples: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_targets( readers: *mut bcf_srs_t, targets: *const ::std::os::raw::c_char, @@ -9157,14 +7780,14 @@ unsafe extern "C" { alleles: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_regions( readers: *mut bcf_srs_t, regions: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_init( regions: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, @@ -9173,19 +7796,19 @@ unsafe extern "C" { to: ::std::os::raw::c_int, ) -> *mut bcf_sr_regions_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_destroy(regions: *mut bcf_sr_regions_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_seek( regions: *mut bcf_sr_regions_t, chr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_next(reg: *mut bcf_sr_regions_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_overlap( reg: *mut bcf_sr_regions_t, seq: *const ::std::os::raw::c_char, @@ -9193,7 +7816,7 @@ unsafe extern "C" { end: hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_flush(regs: *mut bcf_sr_regions_t) -> ::std::os::raw::c_int; } #[repr(C)] @@ -9219,22 +7842,22 @@ pub const fai_format_options_FAI_NONE: fai_format_options = 0; pub const fai_format_options_FAI_FASTA: fai_format_options = 1; pub const fai_format_options_FAI_FASTQ: fai_format_options = 2; pub type fai_format_options = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn fai_build3( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, fngzi: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_build(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_destroy(fai: *mut faidx_t); } pub const fai_load_options_FAI_CREATE: fai_load_options = 1; pub type fai_load_options = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn fai_load3( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, @@ -9242,10 +7865,10 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load(fn_: *const ::std::os::raw::c_char) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load3_format( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, @@ -9254,47 +7877,47 @@ unsafe extern "C" { format: fai_format_options, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load_format( fn_: *const ::std::os::raw::c_char, format: fai_format_options, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_fetch( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_fetch64( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_line_length(fai: *const faidx_t, reg: *const ::std::os::raw::c_char) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn fai_fetchqual( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_fetchqual64( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_seq( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9303,7 +7926,7 @@ unsafe extern "C" { len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_seq64( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9312,7 +7935,7 @@ unsafe extern "C" { len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_qual( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9321,7 +7944,7 @@ unsafe extern "C" { len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_qual64( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9330,31 +7953,31 @@ unsafe extern "C" { len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_has_seq( fai: *const faidx_t, seq: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_iseq( fai: *const faidx_t, i: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_seq_len64(fai: *const faidx_t, seq: *const ::std::os::raw::c_char) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn faidx_seq_len( fai: *const faidx_t, seq: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_parse_region( fai: *const faidx_t, s: *const ::std::os::raw::c_char, @@ -9364,7 +7987,7 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_adjust_region( fai: *const faidx_t, tid: ::std::os::raw::c_int, @@ -9372,17 +7995,17 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_set_cache_size(fai: *mut faidx_t, cache_size: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn fai_thread_pool( fai: *mut faidx_t, pool: *mut hts_tpool, qsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_path(fa: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } #[repr(C)] @@ -9395,16 +8018,16 @@ pub struct hts_tpool_process { pub struct hts_tpool_result { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_init(n: ::std::os::raw::c_int) -> *mut hts_tpool; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_size(p: *mut hts_tpool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_worker_id(pool: *mut hts_tpool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9414,7 +8037,7 @@ unsafe extern "C" { arg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch2( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9425,7 +8048,7 @@ unsafe extern "C" { nonblock: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch3( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9440,91 +8063,103 @@ unsafe extern "C" { nonblock: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_wake_dispatch(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_flush(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_reset( q: *mut hts_tpool_process, free_results: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_qsize(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_destroy(p: *mut hts_tpool); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_kill(p: *mut hts_tpool); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_next_result(q: *mut hts_tpool_process) -> *mut hts_tpool_result; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_next_result_wait(q: *mut hts_tpool_process) -> *mut hts_tpool_result; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_delete_result(r: *mut hts_tpool_result, free_data: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_result_data(r: *mut hts_tpool_result) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_init( p: *mut hts_tpool, qsize: ::std::os::raw::c_int, in_only: ::std::os::raw::c_int, ) -> *mut hts_tpool_process; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_destroy(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_empty(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_len(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_sz(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_shutdown(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_is_shutdown(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_attach(p: *mut hts_tpool, q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_detach(p: *mut hts_tpool, q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_ref_incr(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_ref_decr(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}wrap_kbs_init2"] pub fn kbs_init2(ni: usize, fill: ::std::os::raw::c_int) -> *mut kbitset_t; } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}wrap_kbs_init"] pub fn kbs_init(ni: usize) -> *mut kbitset_t; } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}wrap_kbs_insert"] pub fn kbs_insert(bs: *mut kbitset_t, i: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}wrap_kbs_destroy"] pub fn kbs_destroy(bs: *mut kbitset_t); } -pub type __builtin_va_list = *mut ::std::os::raw::c_char; -pub type __uint128_t = u128; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __locale_data { + pub _address: u8, +} +pub type __builtin_va_list = [__va_list_tag; 1usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __va_list_tag { + pub gp_offset: ::std::os::raw::c_uint, + pub fp_offset: ::std::os::raw::c_uint, + pub overflow_arg_area: *mut ::std::os::raw::c_void, + pub reg_save_area: *mut ::std::os::raw::c_void, +} diff --git a/osx_prebuilt_bindings.rs b/osx_prebuilt_bindings.rs index 6c2c72a..cd88b89 100644 --- a/osx_prebuilt_bindings.rs +++ b/osx_prebuilt_bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] @@ -36,7 +36,9 @@ where 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); + let byte = unsafe { + *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) + }; Self::extract_bit(byte, index) } #[inline] @@ -64,9 +66,10 @@ where 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); + let byte = unsafe { + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) + }; + unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -93,7 +96,7 @@ where 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) { + if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { @@ -133,7 +136,7 @@ where } else { i }; - Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } @@ -462,6 +465,10 @@ pub const __MAC_15_6: u32 = 150600; pub const __MAC_16_0: u32 = 160000; pub const __MAC_26_0: u32 = 260000; pub const __MAC_26_1: u32 = 260100; +pub const __MAC_26_2: u32 = 260200; +pub const __MAC_26_3: u32 = 260300; +pub const __MAC_26_4: u32 = 260400; +pub const __MAC_26_5: u32 = 260500; pub const __IPHONE_2_0: u32 = 20000; pub const __IPHONE_2_1: u32 = 20100; pub const __IPHONE_2_2: u32 = 20200; @@ -552,6 +559,10 @@ pub const __IPHONE_18_6: u32 = 180600; pub const __IPHONE_19_0: u32 = 190000; pub const __IPHONE_26_0: u32 = 260000; pub const __IPHONE_26_1: u32 = 260100; +pub const __IPHONE_26_2: u32 = 260200; +pub const __IPHONE_26_3: u32 = 260300; +pub const __IPHONE_26_4: u32 = 260400; +pub const __IPHONE_26_5: u32 = 260500; pub const __WATCHOS_1_0: u32 = 10000; pub const __WATCHOS_2_0: u32 = 20000; pub const __WATCHOS_2_1: u32 = 20100; @@ -611,6 +622,10 @@ pub const __WATCHOS_11_6: u32 = 110600; pub const __WATCHOS_12_0: u32 = 120000; pub const __WATCHOS_26_0: u32 = 260000; pub const __WATCHOS_26_1: u32 = 260100; +pub const __WATCHOS_26_2: u32 = 260200; +pub const __WATCHOS_26_3: u32 = 260300; +pub const __WATCHOS_26_4: u32 = 260400; +pub const __WATCHOS_26_5: u32 = 260500; pub const __TVOS_9_0: u32 = 90000; pub const __TVOS_9_1: u32 = 90100; pub const __TVOS_9_2: u32 = 90200; @@ -670,6 +685,10 @@ pub const __TVOS_18_6: u32 = 180600; pub const __TVOS_19_0: u32 = 190000; pub const __TVOS_26_0: u32 = 260000; pub const __TVOS_26_1: u32 = 260100; +pub const __TVOS_26_2: u32 = 260200; +pub const __TVOS_26_3: u32 = 260300; +pub const __TVOS_26_4: u32 = 260400; +pub const __TVOS_26_5: u32 = 260500; pub const __BRIDGEOS_2_0: u32 = 20000; pub const __BRIDGEOS_3_0: u32 = 30000; pub const __BRIDGEOS_3_1: u32 = 30100; @@ -706,6 +725,10 @@ pub const __BRIDGEOS_9_5: u32 = 90500; pub const __BRIDGEOS_9_6: u32 = 90600; pub const __BRIDGEOS_10_0: u32 = 100000; pub const __BRIDGEOS_10_1: u32 = 100100; +pub const __BRIDGEOS_10_2: u32 = 100200; +pub const __BRIDGEOS_10_3: u32 = 100300; +pub const __BRIDGEOS_10_4: u32 = 100400; +pub const __BRIDGEOS_26_5: u32 = 260500; pub const __DRIVERKIT_19_0: u32 = 190000; pub const __DRIVERKIT_20_0: u32 = 200000; pub const __DRIVERKIT_21_0: u32 = 210000; @@ -729,6 +752,10 @@ pub const __DRIVERKIT_24_5: u32 = 240500; pub const __DRIVERKIT_24_6: u32 = 240600; pub const __DRIVERKIT_25_0: u32 = 250000; pub const __DRIVERKIT_25_1: u32 = 250100; +pub const __DRIVERKIT_25_2: u32 = 250200; +pub const __DRIVERKIT_25_3: u32 = 250300; +pub const __DRIVERKIT_25_4: u32 = 250400; +pub const __DRIVERKIT_25_5: u32 = 250500; pub const __VISIONOS_1_0: u32 = 10000; pub const __VISIONOS_1_1: u32 = 10100; pub const __VISIONOS_1_2: u32 = 10200; @@ -743,6 +770,10 @@ pub const __VISIONOS_2_6: u32 = 20600; pub const __VISIONOS_3_0: u32 = 30000; pub const __VISIONOS_26_0: u32 = 260000; pub const __VISIONOS_26_1: u32 = 260100; +pub const __VISIONOS_26_2: u32 = 260200; +pub const __VISIONOS_26_3: u32 = 260300; +pub const __VISIONOS_26_4: u32 = 260400; +pub const __VISIONOS_26_5: u32 = 260500; 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; @@ -817,10 +848,14 @@ pub const MAC_OS_VERSION_15_6: u32 = 150600; pub const MAC_OS_VERSION_16_0: u32 = 160000; pub const MAC_OS_VERSION_26_0: u32 = 260000; pub const MAC_OS_VERSION_26_1: u32 = 260100; +pub const MAC_OS_VERSION_26_2: u32 = 260200; +pub const MAC_OS_VERSION_26_3: u32 = 260300; +pub const MAC_OS_VERSION_26_4: u32 = 260400; +pub const MAC_OS_VERSION_26_5: u32 = 260500; pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900; pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0"; pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0"; -pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260100; +pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260500; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; pub const __DARWIN_WCHAR_MIN: i32 = -2147483648; pub const _FORTIFY_SOURCE: u32 = 2; @@ -1322,7 +1357,7 @@ pub const HTS_PATH_SEPARATOR_CHAR: u8 = 58u8; pub const HTS_PATH_SEPARATOR_STR: &[u8; 2] = b":\0"; pub const HTS_RESIZE_CLEAR: u32 = 1; pub const HTS_IDX_DELIM: &[u8; 8] = b"##idx##\0"; -pub const HTS_VERSION: u32 = 102300; +pub const HTS_VERSION: u32 = 102500; pub const HTS_FEATURE_CONFIGURE: u32 = 1; pub const HTS_FEATURE_PLUGINS: u32 = 2; pub const HTS_FEATURE_LIBCURL: u32 = 1024; @@ -1463,6 +1498,7 @@ pub const BAM_FSECONDARY: u32 = 256; pub const BAM_FQCFAIL: u32 = 512; pub const BAM_FDUP: u32 = 1024; pub const BAM_FSUPPLEMENTARY: u32 = 2048; +pub const BAM_MAX_QNAME_LEN: u32 = 254; pub const BAM_USER_OWNS_STRUCT: u32 = 1; pub const BAM_USER_OWNS_DATA: u32 = 2; pub const HTS_MOD_UNKNOWN: i32 = -1; @@ -1647,7 +1683,7 @@ pub type uintmax_t = ::std::os::raw::c_ulong; pub type __darwin_nl_item = ::std::os::raw::c_int; pub type __darwin_wctrans_t = ::std::os::raw::c_int; pub type __darwin_wctype_t = __uint32_t; -unsafe extern "C" { +extern "C" { pub fn imaxabs(j: intmax_t) -> intmax_t; } #[repr(C)] @@ -1656,31 +1692,31 @@ pub struct imaxdiv_t { pub quot: intmax_t, pub rem: intmax_t, } -unsafe extern "C" { +extern "C" { pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; } -unsafe extern "C" { +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" { +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" { +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" { +extern "C" { pub fn wcstoumax( __nptr: *const wchar_t, __endptr: *mut *mut wchar_t, @@ -1694,16 +1730,16 @@ pub const htsLogLevel_HTS_LOG_INFO: htsLogLevel = 4; pub const htsLogLevel_HTS_LOG_DEBUG: htsLogLevel = 5; pub const htsLogLevel_HTS_LOG_TRACE: htsLogLevel = 6; pub type htsLogLevel = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn hts_set_log_level(level: htsLogLevel); } -unsafe extern "C" { +extern "C" { pub fn hts_get_log_level() -> htsLogLevel; } -unsafe extern "C" { +extern "C" { pub static mut hts_verbose: ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_log( severity: htsLogLevel, context: *const ::std::os::raw::c_char, @@ -1977,7 +2013,7 @@ pub struct sigstack { pub ss_sp: *mut ::std::os::raw::c_char, pub ss_onstack: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn signal( arg1: ::std::os::raw::c_int, arg2: ::std::option::Option, @@ -2254,36 +2290,36 @@ pub struct proc_rlimit_control_wakeupmon { pub wm_flags: u32, pub wm_rate: i32, } -unsafe extern "C" { +extern "C" { pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +extern "C" { pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +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" { +extern "C" { pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int; } #[repr(C)] @@ -2589,17 +2625,17 @@ impl wait__bindgen_ty_2 { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; } -unsafe extern "C" { +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" { +extern "C" { pub fn waitid( arg1: idtype_t, arg2: id_t, @@ -2607,14 +2643,14 @@ unsafe extern "C" { arg4: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +extern "C" { pub fn wait4( arg1: pid_t, arg2: *mut ::std::os::raw::c_int, @@ -2622,7 +2658,7 @@ unsafe extern "C" { arg4: *mut rusage, ) -> pid_t; } -unsafe extern "C" { +extern "C" { pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } pub type ct_rune_t = __darwin_ct_rune_t; @@ -2645,47 +2681,47 @@ pub struct lldiv_t { pub quot: ::std::os::raw::c_longlong, pub rem: ::std::os::raw::c_longlong, } -unsafe extern "C" { +extern "C" { pub static mut __mb_cur_max: ::std::os::raw::c_int; } pub type malloc_type_id_t = ::std::os::raw::c_ulonglong; -unsafe extern "C" { +extern "C" { pub fn malloc_type_malloc( size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_calloc( count: usize, size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_free(ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t); } -unsafe extern "C" { +extern "C" { pub fn malloc_type_realloc( ptr: *mut ::std::os::raw::c_void, size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_valloc( size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_aligned_alloc( alignment: usize, size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_posix_memalign( memptr: *mut *mut ::std::os::raw::c_void, alignment: usize, @@ -2699,14 +2735,14 @@ pub struct _malloc_zone_t { _unused: [u8; 0], } pub type malloc_zone_t = _malloc_zone_t; -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_malloc( zone: *mut malloc_zone_t, size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_calloc( zone: *mut malloc_zone_t, count: usize, @@ -2714,14 +2750,14 @@ unsafe extern "C" { type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_free( zone: *mut malloc_zone_t, ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t, ); } -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_realloc( zone: *mut malloc_zone_t, ptr: *mut ::std::os::raw::c_void, @@ -2729,14 +2765,14 @@ unsafe extern "C" { type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_valloc( zone: *mut malloc_zone_t, size: usize, type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc_type_zone_memalign( zone: *mut malloc_zone_t, alignment: usize, @@ -2744,73 +2780,73 @@ unsafe extern "C" { type_id: malloc_type_id_t, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +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" { +extern "C" { pub fn free(arg1: *mut ::std::os::raw::c_void); } -unsafe extern "C" { +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" { +extern "C" { pub fn reallocf( __ptr: *mut ::std::os::raw::c_void, __size: usize, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +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" { +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" { +extern "C" { pub fn abort() -> !; } -unsafe extern "C" { +extern "C" { pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn at_quick_exit( arg1: ::std::option::Option, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; } -unsafe extern "C" { +extern "C" { pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; } -unsafe extern "C" { +extern "C" { pub fn bsearch( __key: *const ::std::os::raw::c_void, __base: *const ::std::os::raw::c_void, @@ -2824,41 +2860,41 @@ unsafe extern "C" { >, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; } -unsafe extern "C" { +extern "C" { pub fn exit(arg1: ::std::os::raw::c_int) -> !; } -unsafe extern "C" { +extern "C" { pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; } -unsafe extern "C" { +extern "C" { pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; } -unsafe extern "C" { +extern "C" { pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; } -unsafe extern "C" { +extern "C" { pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, __n: usize) -> usize; } -unsafe extern "C" { +extern "C" { pub fn mbtowc( arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, __n: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn qsort( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -2871,74 +2907,74 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn quick_exit(arg1: ::std::os::raw::c_int) -> !; } -unsafe extern "C" { +extern "C" { pub fn rand() -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn srand(arg1: ::std::os::raw::c_uint); } -unsafe extern "C" { +extern "C" { pub fn strtod( arg1: *const ::std::os::raw::c_char, arg2: *mut *mut ::std::os::raw::c_char, ) -> f64; } -unsafe extern "C" { +extern "C" { pub fn strtof( arg1: *const ::std::os::raw::c_char, arg2: *mut *mut ::std::os::raw::c_char, ) -> f32; } -unsafe extern "C" { +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" { +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" { +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" { +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" { +extern "C" { pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const wchar_t, __n: usize) -> usize; } -unsafe extern "C" { +extern "C" { pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn _Exit(arg1: ::std::os::raw::c_int) -> !; } -unsafe extern "C" { +extern "C" { pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn drand48() -> f64; } -unsafe extern "C" { +extern "C" { pub fn ecvt( arg1: f64, arg2: ::std::os::raw::c_int, @@ -2946,10 +2982,10 @@ unsafe extern "C" { arg4: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; } -unsafe extern "C" { +extern "C" { pub fn fcvt( arg1: f64, arg2: ::std::os::raw::c_int, @@ -2957,135 +2993,135 @@ unsafe extern "C" { arg4: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +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" { +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" { +extern "C" { pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn initstate( arg1: ::std::os::raw::c_uint, arg2: *mut ::std::os::raw::c_char, __size: usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); } -unsafe extern "C" { +extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn mrand48() -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +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" { +extern "C" { pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn random() -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +extern "C" { pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; } -unsafe extern "C" { +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" { +extern "C" { pub fn setkey(arg1: *const ::std::os::raw::c_char); } -unsafe extern "C" { +extern "C" { pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn srand48(arg1: ::std::os::raw::c_long); } -unsafe extern "C" { +extern "C" { pub fn srandom(arg1: ::std::os::raw::c_uint); } -unsafe extern "C" { +extern "C" { pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +extern "C" { pub fn arc4random() -> u32; } -unsafe extern "C" { +extern "C" { pub fn arc4random_addrandom( arg1: *mut ::std::os::raw::c_uchar, __datlen: ::std::os::raw::c_int, ); } -unsafe extern "C" { +extern "C" { pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize); } -unsafe extern "C" { +extern "C" { pub fn arc4random_stir(); } -unsafe extern "C" { +extern "C" { pub fn arc4random_uniform(__upper_bound: u32) -> u32; } -unsafe extern "C" { +extern "C" { pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bsearch_b( __key: *const ::std::os::raw::c_void, __base: *const ::std::os::raw::c_void, @@ -3094,75 +3130,75 @@ unsafe extern "C" { __compar: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +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" { +extern "C" { pub fn cgetclose() -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +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" { +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" { +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" { +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" { +extern "C" { pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +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" { +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" { +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" { +extern "C" { pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn devname_r( arg1: dev_t, arg2: mode_t, @@ -3170,22 +3206,22 @@ unsafe extern "C" { len: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +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" { +extern "C" { pub fn getloadavg(arg1: *mut f64, __nelem: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getprogname() -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn setprogname(arg1: *const ::std::os::raw::c_char); } -unsafe extern "C" { +extern "C" { pub fn heapsort( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3198,7 +3234,7 @@ unsafe extern "C" { >, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn heapsort_b( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3206,7 +3242,7 @@ unsafe extern "C" { __compar: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn mergesort( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3219,7 +3255,7 @@ unsafe extern "C" { >, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn mergesort_b( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3227,7 +3263,7 @@ unsafe extern "C" { __compar: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn psort( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3240,7 +3276,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn psort_b( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3248,7 +3284,7 @@ unsafe extern "C" { __compar: *mut ::std::os::raw::c_void, ); } -unsafe extern "C" { +extern "C" { pub fn psort_r( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3263,7 +3299,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn qsort_b( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3271,7 +3307,7 @@ unsafe extern "C" { __compar: *mut ::std::os::raw::c_void, ); } -unsafe extern "C" { +extern "C" { pub fn qsort_r( __base: *mut ::std::os::raw::c_void, __nel: usize, @@ -3286,7 +3322,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn radixsort( __base: *mut *const ::std::os::raw::c_uchar, __nel: ::std::os::raw::c_int, @@ -3294,10 +3330,10 @@ unsafe extern "C" { __endbyte: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sradixsort( __base: *mut *const ::std::os::raw::c_uchar, __nel: ::std::os::raw::c_int, @@ -3305,13 +3341,13 @@ unsafe extern "C" { __endbyte: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sranddev(); } -unsafe extern "C" { +extern "C" { pub fn srandomdev(); } -unsafe extern "C" { +extern "C" { pub fn strtonum( __numstr: *const ::std::os::raw::c_char, __minval: ::std::os::raw::c_longlong, @@ -3319,176 +3355,176 @@ unsafe extern "C" { __errstrp: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_longlong; } -unsafe extern "C" { +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" { +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" { +extern "C" { pub static mut suboptarg: *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn memchr( __s: *const ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn memcmp( __s1: *const ::std::os::raw::c_void, __s2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn memcpy( __dst: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn memmove( __dst: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, __len: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn memset( __b: *mut ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __len: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn strcat( __s1: *mut ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strchr( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strcmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strcoll( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strcpy( __dst: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strcspn( __s: *const ::std::os::raw::c_char, __charset: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strncat( __s1: *mut ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strncmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strncpy( __dst: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strpbrk( __s: *const ::std::os::raw::c_char, __charset: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strrchr( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strspn( __s: *const ::std::os::raw::c_char, __charset: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strstr( __big: *const ::std::os::raw::c_char, __little: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strtok( __str: *mut ::std::os::raw::c_char, __sep: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strxfrm( __s1: *mut ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strtok_r( __str: *mut ::std::os::raw::c_char, __sep: *const ::std::os::raw::c_char, __lasts: *mut *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strerror_r( __errnum: ::std::os::raw::c_int, __strerrbuf: *mut ::std::os::raw::c_char, __buflen: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn memccpy( __dst: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, @@ -3496,34 +3532,34 @@ unsafe extern "C" { __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn stpcpy( __dst: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn stpncpy( __dst: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strndup( __s1: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: usize) -> usize; } -unsafe extern "C" { +extern "C" { pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } pub type rsize_t = __darwin_size_t; pub type errno_t = ::std::os::raw::c_int; -unsafe extern "C" { +extern "C" { pub fn memset_s( __s: *mut ::std::os::raw::c_void, __smax: rsize_t, @@ -3531,7 +3567,7 @@ unsafe extern "C" { __n: rsize_t, ) -> errno_t; } -unsafe extern "C" { +extern "C" { pub fn memmem( __big: *const ::std::os::raw::c_void, __big_len: usize, @@ -3539,153 +3575,153 @@ unsafe extern "C" { __little_len: usize, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn memset_pattern4( __b: *mut ::std::os::raw::c_void, __pattern4: *const ::std::os::raw::c_void, __len: usize, ); } -unsafe extern "C" { +extern "C" { pub fn memset_pattern8( __b: *mut ::std::os::raw::c_void, __pattern8: *const ::std::os::raw::c_void, __len: usize, ); } -unsafe extern "C" { +extern "C" { pub fn memset_pattern16( __b: *mut ::std::os::raw::c_void, __pattern16: *const ::std::os::raw::c_void, __len: usize, ); } -unsafe extern "C" { +extern "C" { pub fn strcasestr( __big: *const ::std::os::raw::c_char, __little: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strchrnul( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strnstr( __big: *const ::std::os::raw::c_char, __little: *const ::std::os::raw::c_char, __len: usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn strlcat( __dst: *mut ::std::os::raw::c_char, __source: *const ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strlcpy( __dst: *mut ::std::os::raw::c_char, __source: *const ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char); } -unsafe extern "C" { +extern "C" { pub fn strsep( __stringp: *mut *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn swab( arg1: *const ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void, __len: isize, ); } -unsafe extern "C" { +extern "C" { pub fn timingsafe_bcmp( __b1: *const ::std::os::raw::c_void, __b2: *const ::std::os::raw::c_void, __len: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strsignal_r( __sig: ::std::os::raw::c_int, __strsignalbuf: *mut ::std::os::raw::c_char, __buflen: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcmp( arg1: *const ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcopy( arg1: *const ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ); } -unsafe extern "C" { +extern "C" { pub fn bzero(arg1: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); } -unsafe extern "C" { +extern "C" { pub fn index( arg1: *const ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn rindex( arg1: *const ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strcasecmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn strncasecmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; } pub type __gnuc_va_list = __builtin_va_list; pub type va_list = __builtin_va_list; -unsafe extern "C" { +extern "C" { pub fn renameat( arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char, @@ -3693,14 +3729,14 @@ unsafe extern "C" { arg4: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn renamex_np( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn renameatx_np( arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char, @@ -3709,7 +3745,7 @@ unsafe extern "C" { arg5: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } pub type fpos_t = __darwin_off_t; @@ -3769,63 +3805,63 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; -unsafe extern "C" { +extern "C" { pub static mut __stdinp: *mut FILE; } -unsafe extern "C" { +extern "C" { pub static mut __stdoutp: *mut FILE; } -unsafe extern "C" { +extern "C" { pub static mut __stderrp: *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn clearerr(arg1: *mut FILE); } -unsafe extern "C" { +extern "C" { pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fgets( arg1: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_int, arg2: *mut FILE, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fopen( __filename: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn fprintf( arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fread( __ptr: *mut ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, @@ -3833,34 +3869,34 @@ unsafe extern "C" { __stream: *mut FILE, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn freopen( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: *mut FILE, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn fscanf( arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fseek( arg1: *mut FILE, arg2: ::std::os::raw::c_long, arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; } -unsafe extern "C" { +extern "C" { pub fn fwrite( __ptr: *const ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, @@ -3868,46 +3904,46 @@ unsafe extern "C" { __stream: *mut FILE, ) -> ::std::os::raw::c_ulong; } -unsafe extern "C" { +extern "C" { pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getchar() -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn perror(arg1: *const ::std::os::raw::c_char); } -unsafe extern "C" { +extern "C" { pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn rename( __old: *const ::std::os::raw::c_char, __new: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn rewind(arg1: *mut FILE); } -unsafe extern "C" { +extern "C" { pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); } -unsafe extern "C" { +extern "C" { pub fn setvbuf( arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char, @@ -3915,125 +3951,125 @@ unsafe extern "C" { __size: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sprintf( arg1: *mut ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sscanf( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tmpfile() -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vfprintf( arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, arg3: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vprintf( arg1: *const ::std::os::raw::c_char, arg2: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vsprintf( arg1: *mut ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn popen( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __svfscanf( arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, arg3: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn flockfile(arg1: *mut FILE); } -unsafe extern "C" { +extern "C" { pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn funlockfile(arg1: *mut FILE); } -unsafe extern "C" { +extern "C" { pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getchar_unlocked() -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tempnam( __dir: *const ::std::os::raw::c_char, __prefix: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } pub type off_t = __darwin_off_t; -unsafe extern "C" { +extern "C" { pub fn fseeko( __stream: *mut FILE, __offset: off_t, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ftello(__stream: *mut FILE) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn snprintf( __str: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, @@ -4041,20 +4077,20 @@ unsafe extern "C" { ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vfscanf( __stream: *mut FILE, __format: *const ::std::os::raw::c_char, arg1: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vscanf( __format: *const ::std::os::raw::c_char, arg1: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vsnprintf( __str: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, @@ -4062,28 +4098,28 @@ unsafe extern "C" { arg1: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vsscanf( __str: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, arg1: __builtin_va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn dprintf( arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vdprintf( arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char, arg3: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn getdelim( __linep: *mut *mut ::std::os::raw::c_char, __linecapp: *mut usize, @@ -4091,72 +4127,72 @@ unsafe extern "C" { __stream: *mut FILE, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn getline( __linep: *mut *mut ::std::os::raw::c_char, __linecapp: *mut usize, __stream: *mut FILE, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn fmemopen( __buf: *mut ::std::os::raw::c_void, __size: usize, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn open_memstream( __bufp: *mut *mut ::std::os::raw::c_char, __sizep: *mut usize, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub static sys_nerr: ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub static sys_errlist: [*const ::std::os::raw::c_char; 0usize]; } -unsafe extern "C" { +extern "C" { pub fn asprintf( arg1: *mut *mut ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fgetln(arg1: *mut FILE, __len: *mut usize) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fmtcheck( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn setbuffer( arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_int, ); } -unsafe extern "C" { +extern "C" { pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vasprintf( arg1: *mut *mut ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn funopen( arg1: *const ::std::os::raw::c_void, arg2: ::std::option::Option< @@ -4185,7 +4221,7 @@ unsafe extern "C" { >, ) -> *mut FILE; } -unsafe extern "C" { +extern "C" { pub fn __snprintf_chk( arg1: *mut ::std::os::raw::c_char, __maxlen: usize, @@ -4195,7 +4231,7 @@ unsafe extern "C" { ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __vsnprintf_chk( arg1: *mut ::std::os::raw::c_char, __maxlen: usize, @@ -4205,7 +4241,7 @@ unsafe extern "C" { arg5: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __sprintf_chk( arg1: *mut ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, @@ -4214,7 +4250,7 @@ unsafe extern "C" { ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __vsprintf_chk( arg1: *mut ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, @@ -4223,7 +4259,7 @@ unsafe extern "C" { arg5: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn __error() -> *mut ::std::os::raw::c_int; } pub type u_char = ::std::os::raw::c_uchar; @@ -4258,7 +4294,7 @@ pub type suseconds_t = __darwin_suseconds_t; pub struct fd_set { pub fds_bits: [__int32_t; 32usize], } -unsafe extern "C" { +extern "C" { pub fn __darwin_check_fd_set_overflow( arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_void, @@ -4292,24 +4328,24 @@ pub struct ks_tokaux_t { pub finished: ::std::os::raw::c_int, pub p: *const ::std::os::raw::c_char, } -unsafe extern "C" { +extern "C" { pub fn kvsprintf( s: *mut kstring_t, fmt: *const ::std::os::raw::c_char, ap: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ksprintf( s: *mut kstring_t, fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn kputd(d: f64, s: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn ksplit_core( s: *mut ::std::os::raw::c_char, delimiter: ::std::os::raw::c_int, @@ -4317,31 +4353,31 @@ unsafe extern "C" { _offsets: *mut *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn kstrstr( str_: *const ::std::os::raw::c_char, pat: *const ::std::os::raw::c_char, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn kstrnstr( str_: *const ::std::os::raw::c_char, pat: *const ::std::os::raw::c_char, n: ::std::os::raw::c_int, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn kmemmem( - _str: *const ::std::os::raw::c_void, + str_: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, - _pat: *const ::std::os::raw::c_void, + pat: *const ::std::os::raw::c_void, m: ::std::os::raw::c_int, - _prep: *mut *mut ::std::os::raw::c_int, + prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn kstrtok( str_: *const ::std::os::raw::c_char, sep: *const ::std::os::raw::c_char, @@ -4355,13 +4391,16 @@ pub type kgets_func = ::std::option::Option< arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_char, >; -unsafe extern "C" { +extern "C" { pub fn kgetline( s: *mut kstring_t, fgets_fn: kgets_func, fp: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn kfgetline(s: *mut kstring_t, fp: *mut FILE) -> ::std::os::raw::c_int; +} pub type kgets_func2 = ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_char, @@ -4369,7 +4408,7 @@ pub type kgets_func2 = ::std::option::Option< arg3: *mut ::std::os::raw::c_void, ) -> isize, >; -unsafe extern "C" { +extern "C" { pub fn kgetline2( s: *mut kstring_t, fgets_fn: kgets_func2, @@ -4386,7 +4425,7 @@ pub struct cram_fd { pub struct hts_tpool { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_resize_array_( arg1: usize, arg2: usize, @@ -4397,10 +4436,10 @@ unsafe extern "C" { arg7: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_lib_shutdown(); } -unsafe extern "C" { +extern "C" { pub fn hts_free(ptr: *mut ::std::os::raw::c_void); } pub const htsFormatCategory_unknown_category: htsFormatCategory = 0; @@ -4779,6 +4818,7 @@ pub const hts_fmt_option_CRAM_OPT_USE_TOK: hts_fmt_option = 24; pub const hts_fmt_option_CRAM_OPT_USE_FQZ: hts_fmt_option = 25; pub const hts_fmt_option_CRAM_OPT_USE_ARITH: hts_fmt_option = 26; pub const hts_fmt_option_CRAM_OPT_POS_DELTA: hts_fmt_option = 27; +pub const hts_fmt_option_CRAM_OPT_RM_UR: hts_fmt_option = 28; pub const hts_fmt_option_HTS_OPT_COMPRESSION_LEVEL: hts_fmt_option = 100; pub const hts_fmt_option_HTS_OPT_NTHREADS: hts_fmt_option = 101; pub const hts_fmt_option_HTS_OPT_THREAD_POOL: hts_fmt_option = 102; @@ -4813,141 +4853,141 @@ pub union hts_opt__bindgen_ty_1 { pub i: ::std::os::raw::c_int, pub s: *mut ::std::os::raw::c_char, } -unsafe extern "C" { +extern "C" { pub fn hts_opt_add( opts: *mut *mut hts_opt, c_arg: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_opt_apply(fp: *mut htsFile, opts: *mut hts_opt) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_opt_free(opts: *mut hts_opt); } -unsafe extern "C" { +extern "C" { pub fn hts_parse_format( opt: *mut htsFormat, str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_opt_list( opt: *mut htsFormat, str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_str: [::std::os::raw::c_char; 0usize]; } -unsafe extern "C" { +extern "C" { pub static seq_nt16_int: [::std::os::raw::c_int; 0usize]; } -unsafe extern "C" { +extern "C" { pub fn hts_version() -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_features() -> ::std::os::raw::c_uint; } -unsafe extern "C" { +extern "C" { pub fn hts_test_feature(id: ::std::os::raw::c_uint) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_feature_string() -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_detect_format(fp: *mut hFILE, fmt: *mut htsFormat) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_detect_format2( fp: *mut hFILE, fname: *const ::std::os::raw::c_char, fmt: *mut htsFormat, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_format_description(format: *const htsFormat) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_open( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_open_format( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, fmt: *const htsFormat, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_hopen( fp: *mut hFILE, fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut htsFile; } -unsafe extern "C" { +extern "C" { pub fn hts_flush(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_close(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_get_format(fp: *mut htsFile) -> *const htsFormat; } -unsafe extern "C" { +extern "C" { pub fn hts_format_file_extension(format: *const htsFormat) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_set_opt(fp: *mut htsFile, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_getline( fp: *mut htsFile, delimiter: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_readlines( fn_: *const ::std::os::raw::c_char, _n: *mut ::std::os::raw::c_int, ) -> *mut *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_readlist( fn_: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, _n: *mut ::std::os::raw::c_int, ) -> *mut *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_set_threads(fp: *mut htsFile, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_thread_pool(fp: *mut htsFile, p: *mut htsThreadPool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_cache_size(fp: *mut htsFile, n: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_set_fai_filename( fp: *mut htsFile, fn_aux: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_set_filter_expression( fp: *mut htsFile, expr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_check_EOF(fp: *mut htsFile) -> ::std::os::raw::c_int; } pub type hts_pos_t = i64; @@ -5269,7 +5309,7 @@ impl hts_itr_t { } } pub type hts_itr_multi_t = hts_itr_t; -unsafe extern "C" { +extern "C" { pub fn hts_idx_init( n: ::std::os::raw::c_int, fmt: ::std::os::raw::c_int, @@ -5278,10 +5318,10 @@ unsafe extern "C" { n_lvls: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_destroy(idx: *mut hts_idx_t); } -unsafe extern "C" { +extern "C" { pub fn hts_idx_push( idx: *mut hts_idx_t, tid: ::std::os::raw::c_int, @@ -5291,27 +5331,27 @@ unsafe extern "C" { is_mapped: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_finish(idx: *mut hts_idx_t, final_offset: u64) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_fmt(idx: *mut hts_idx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_tbi_name( idx: *mut hts_idx_t, tid: ::std::os::raw::c_int, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_save( idx: *const hts_idx_t, fn_: *const ::std::os::raw::c_char, fmt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_save_as( idx: *const hts_idx_t, fn_: *const ::std::os::raw::c_char, @@ -5319,19 +5359,19 @@ unsafe extern "C" { fmt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load( fn_: *const ::std::os::raw::c_char, fmt: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -5345,10 +5385,10 @@ pub type hts_id2name_f = ::std::option::Option< arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char, >; -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_meta(idx: *mut hts_idx_t, l_meta: *mut u32) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_set_meta( idx: *mut hts_idx_t, l_meta: u32, @@ -5356,7 +5396,7 @@ unsafe extern "C" { is_copy: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_stat( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -5364,10 +5404,10 @@ unsafe extern "C" { unmapped: *mut u64, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_get_n_no_coor(idx: *const hts_idx_t) -> u64; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_seqnames( idx: *const hts_idx_t, n: *mut ::std::os::raw::c_int, @@ -5375,10 +5415,10 @@ unsafe extern "C" { hdr: *mut ::std::os::raw::c_void, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_idx_nseq(idx: *const hts_idx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_decimal( str_: *const ::std::os::raw::c_char, strend: *mut *mut ::std::os::raw::c_char, @@ -5391,21 +5431,21 @@ pub type hts_name2id_f = ::std::option::Option< arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >; -unsafe extern "C" { +extern "C" { pub fn hts_parse_reg64( str_: *const ::std::os::raw::c_char, beg: *mut hts_pos_t, end: *mut hts_pos_t, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_reg( str_: *const ::std::os::raw::c_char, beg: *mut ::std::os::raw::c_int, end: *mut ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_parse_region( s: *const ::std::os::raw::c_char, tid: *mut ::std::os::raw::c_int, @@ -5416,7 +5456,7 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_query( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -5425,7 +5465,7 @@ unsafe extern "C" { readrec: hts_readrec_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_destroy(iter: *mut hts_itr_t); } pub type hts_itr_query_func = ::std::option::Option< @@ -5437,7 +5477,7 @@ pub type hts_itr_query_func = ::std::option::Option< readrec: hts_readrec_func, ) -> *mut hts_itr_t, >; -unsafe extern "C" { +extern "C" { pub fn hts_itr_querys( idx: *const hts_idx_t, reg: *const ::std::os::raw::c_char, @@ -5447,7 +5487,7 @@ unsafe extern "C" { readrec: hts_readrec_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_next( fp: *mut BGZF, iter: *mut hts_itr_t, @@ -5458,14 +5498,14 @@ unsafe extern "C" { pub type hts_itr_multi_query_func = ::std::option::Option< unsafe extern "C" fn(idx: *const hts_idx_t, itr: *mut hts_itr_t) -> ::std::os::raw::c_int, >; -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_bam(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_cram(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_regions( idx: *const hts_idx_t, reglist: *mut hts_reglist_t, @@ -5478,14 +5518,14 @@ unsafe extern "C" { tell: hts_tell_func, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn hts_itr_multi_next( fd: *mut htsFile, iter: *mut hts_itr_t, r: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_reglist_create( argv: *mut *mut ::std::os::raw::c_char, argc: ::std::os::raw::c_int, @@ -5494,10 +5534,10 @@ unsafe extern "C" { getid: hts_name2id_f, ) -> *mut hts_reglist_t; } -unsafe extern "C" { +extern "C" { pub fn hts_reglist_free(reglist: *mut hts_reglist_t, count: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_file_type(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } #[repr(C)] @@ -5505,13 +5545,13 @@ unsafe extern "C" { pub struct errmod_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn errmod_init(depcorr: f64) -> *mut errmod_t; } -unsafe extern "C" { +extern "C" { pub fn errmod_destroy(em: *mut errmod_t); } -unsafe extern "C" { +extern "C" { pub fn errmod_cal( em: *const errmod_t, n: ::std::os::raw::c_int, @@ -5527,7 +5567,7 @@ pub struct probaln_par_t { pub e: f32, pub bw: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn probaln_glocal( ref_: *const u8, l_ref: ::std::os::raw::c_int, @@ -5544,32 +5584,32 @@ unsafe extern "C" { pub struct hts_md5_context { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_md5_init() -> *mut hts_md5_context; } -unsafe extern "C" { +extern "C" { pub fn hts_md5_update( ctx: *mut hts_md5_context, data: *const ::std::os::raw::c_void, size: ::std::os::raw::c_ulong, ); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_final(digest: *mut ::std::os::raw::c_uchar, ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_reset(ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_hex(hex: *mut ::std::os::raw::c_char, digest: *const ::std::os::raw::c_uchar); } -unsafe extern "C" { +extern "C" { pub fn hts_md5_destroy(ctx: *mut hts_md5_context); } -unsafe extern "C" { +extern "C" { pub fn hts_crc32(crc: u32, buf: *const ::std::os::raw::c_void, len: usize) -> u32; } -unsafe extern "C" { +extern "C" { pub fn __assert_rtn( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, @@ -5617,7 +5657,7 @@ pub struct bcf_hdr_t { pub mem: kstring_t, pub m: [i32; 3usize], } -unsafe extern "C" { +extern "C" { pub static mut bcf_type_shift: [u8; 0usize]; } #[repr(C)] @@ -5840,7 +5880,7 @@ pub struct bcf_dec_t { pub shared_dirty: ::std::os::raw::c_int, pub indiv_dirty: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn bcf_strerror( errorcode: ::std::os::raw::c_int, buffer: *mut ::std::os::raw::c_char, @@ -6024,96 +6064,96 @@ impl bcf1_t { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_init(mode: *const ::std::os::raw::c_char) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_destroy(h: *mut bcf_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_init() -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_destroy(v: *mut bcf1_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_empty(v: *mut bcf1_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_clear(v: *mut bcf1_t); } pub type vcfFile = htsFile; -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_read(fp: *mut htsFile) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set_samples( hdr: *mut bcf_hdr_t, samples: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_subset_format(hdr: *const bcf_hdr_t, rec: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_write(fp: *mut htsFile, h: *mut bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_parse( s: *mut kstring_t, h: *const bcf_hdr_t, v: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_open_mode( mode: *mut ::std::os::raw::c_char, fn_: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_format( h: *const bcf_hdr_t, v: *const bcf1_t, s: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_read(fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_unpack(b: *mut bcf1_t, which: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_dup(src: *mut bcf1_t) -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_copy(dst: *mut bcf1_t, src: *mut bcf1_t) -> *mut bcf1_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_write(fp: *mut htsFile, h: *mut bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_hdr_read(fp: *mut htsFile) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn vcf_hdr_write(fp: *mut htsFile, h: *const bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_read(fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_write( fp: *mut htsFile, h: *const bcf_hdr_t, v: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_readrec( fp: *mut BGZF, null: *mut ::std::os::raw::c_void, @@ -6123,74 +6163,74 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn vcf_write_line(fp: *mut htsFile, line: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_dup(hdr: *const bcf_hdr_t) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_combine(dst: *mut bcf_hdr_t, src: *const bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_merge(dst: *mut bcf_hdr_t, src: *const bcf_hdr_t) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_add_sample( hdr: *mut bcf_hdr_t, sample: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set( hdr: *mut bcf_hdr_t, fname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_format( hdr: *const bcf_hdr_t, is_bcf: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_fmt_text( hdr: *const bcf_hdr_t, is_bcf: ::std::os::raw::c_int, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_append( h: *mut bcf_hdr_t, line: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_printf( h: *mut bcf_hdr_t, format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_get_version(hdr: *const bcf_hdr_t) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_set_version( hdr: *mut bcf_hdr_t, version: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_remove( h: *mut bcf_hdr_t, type_: ::std::os::raw::c_int, key: *const ::std::os::raw::c_char, ); } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_subset( h0: *const bcf_hdr_t, n: ::std::os::raw::c_int, @@ -6198,35 +6238,35 @@ unsafe extern "C" { imap: *mut ::std::os::raw::c_int, ) -> *mut bcf_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_seqnames( h: *const bcf_hdr_t, nseqs: *mut ::std::os::raw::c_int, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_parse( hdr: *mut bcf_hdr_t, htxt: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_sync(h: *mut bcf_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_parse_line( h: *const bcf_hdr_t, line: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_format(hrec: *const bcf_hrec_t, str_: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_add_hrec(hdr: *mut bcf_hdr_t, hrec: *mut bcf_hrec_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_get_hrec( hdr: *const bcf_hdr_t, type_: ::std::os::raw::c_int, @@ -6235,17 +6275,17 @@ unsafe extern "C" { str_class: *const ::std::os::raw::c_char, ) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_dup(hrec: *mut bcf_hrec_t) -> *mut bcf_hrec_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_add_key( hrec: *mut bcf_hrec_t, str_: *const ::std::os::raw::c_char, len: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_set_val( hrec: *mut bcf_hrec_t, i: ::std::os::raw::c_int, @@ -6254,20 +6294,20 @@ unsafe extern "C" { is_quoted: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_find_key( hrec: *mut bcf_hrec_t, key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hrec_add_idx(hrec: *mut bcf_hrec_t, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hrec_destroy(hrec: *mut bcf_hrec_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_subset( h: *const bcf_hdr_t, v: *mut bcf1_t, @@ -6275,17 +6315,17 @@ unsafe extern "C" { imap: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_translate( dst_hdr: *const bcf_hdr_t, src_hdr: *mut bcf_hdr_t, src_line: *mut bcf1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_variant_types(rec: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_variant_type( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, @@ -6295,30 +6335,30 @@ pub const bcf_variant_match_bcf_match_exact: bcf_variant_match = 0; pub const bcf_variant_match_bcf_match_overlap: bcf_variant_match = 1; pub const bcf_variant_match_bcf_match_subset: bcf_variant_match = 2; pub type bcf_variant_match = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn bcf_has_variant_types( rec: *mut bcf1_t, bitmask: u32, mode: bcf_variant_match, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_has_variant_type( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, bitmask: u32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_variant_length( rec: *mut bcf1_t, ith_allele: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_is_snp(v: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6326,14 +6366,14 @@ unsafe extern "C" { n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_add_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, flt_id: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6341,14 +6381,14 @@ unsafe extern "C" { pass: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_has_filter( hdr: *const bcf_hdr_t, line: *mut bcf1_t, filter: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_alleles( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6356,28 +6396,28 @@ unsafe extern "C" { nals: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_alleles_str( hdr: *const bcf_hdr_t, line: *mut bcf1_t, alleles_string: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_id( hdr: *const bcf_hdr_t, line: *mut bcf1_t, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_add_id( hdr: *const bcf_hdr_t, line: *mut bcf1_t, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_info( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6387,7 +6427,7 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_format_string( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6396,7 +6436,7 @@ unsafe extern "C" { n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_update_format( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6406,27 +6446,27 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_fmt( hdr: *const bcf_hdr_t, line: *mut bcf1_t, key: *const ::std::os::raw::c_char, ) -> *mut bcf_fmt_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info( hdr: *const bcf_hdr_t, line: *mut bcf1_t, key: *const ::std::os::raw::c_char, ) -> *mut bcf_info_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_fmt_id(line: *mut bcf1_t, id: ::std::os::raw::c_int) -> *mut bcf_fmt_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info_id(line: *mut bcf1_t, id: ::std::os::raw::c_int) -> *mut bcf_info_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_info_values( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6436,7 +6476,7 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_format_string( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6445,7 +6485,7 @@ unsafe extern "C" { ndst: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_get_format_values( hdr: *const bcf_hdr_t, line: *mut bcf1_t, @@ -6455,14 +6495,14 @@ unsafe extern "C" { type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_hdr_id2int( hdr: *const bcf_hdr_t, type_: ::std::os::raw::c_int, id: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_fmt_array( s: *mut kstring_t, n: ::std::os::raw::c_int, @@ -6470,17 +6510,17 @@ unsafe extern "C" { data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_fmt_sized_array(s: *mut kstring_t, ptr: *mut u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vchar( s: *mut kstring_t, l: ::std::os::raw::c_int, a: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vint( s: *mut kstring_t, n: ::std::os::raw::c_int, @@ -6488,40 +6528,63 @@ unsafe extern "C" { wsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_enc_vfloat( s: *mut kstring_t, n: ::std::os::raw::c_int, a: *mut f32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { + pub fn bcf_itr_querys1( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + region: *const ::std::os::raw::c_char, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn bcf_itr_regarray( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + regarray: *mut *mut ::std::os::raw::c_char, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn bcf_itr_regions( + idx: *const hts_idx_t, + hdr: *mut bcf_hdr_t, + reglist: *mut hts_reglist_t, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { pub fn bcf_index_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, flags: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -6529,7 +6592,7 @@ unsafe extern "C" { n_threads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_idx_init( fp: *mut htsFile, h: *mut bcf_hdr_t, @@ -6537,16 +6600,16 @@ unsafe extern "C" { fnidx: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_idx_save(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub static mut bcf_float_vector_end: u32; } -unsafe extern "C" { +extern "C" { pub static mut bcf_float_missing: u32; } -unsafe extern "C" { +extern "C" { pub fn bcf_format_gt_v2( hdr: *const bcf_hdr_t, fmt: *mut bcf_fmt_t, @@ -6574,7 +6637,7 @@ pub struct sam_hdr_t { pub ref_count: u32, } pub type bam_hdr_t = sam_hdr_t; -unsafe extern "C" { +extern "C" { pub static bam_cigar_table: [i8; 256usize]; } #[repr(C)] @@ -6649,55 +6712,55 @@ impl bam1_t { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_init() -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bam_hdr_read(fp: *mut BGZF) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn bam_hdr_write(fp: *mut BGZF, h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_destroy(h: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_dup(h0: *const sam_hdr_t) -> *mut sam_hdr_t; } pub type samFile = htsFile; -unsafe extern "C" { +extern "C" { pub fn sam_hdr_parse(l_text: usize, text: *const ::std::os::raw::c_char) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_read(fp: *mut samFile) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_write(fp: *mut samFile, h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_length(h: *mut sam_hdr_t) -> usize; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_str(h: *mut sam_hdr_t) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_nref(h: *const sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_lines( h: *mut sam_hdr_t, lines: *const ::std::os::raw::c_char, len: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_line( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_line_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6706,7 +6769,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_line_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6714,7 +6777,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_line_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6722,14 +6785,14 @@ unsafe extern "C" { ID_value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_line_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, position: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_update_line( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6738,7 +6801,7 @@ unsafe extern "C" { ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_except( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6746,7 +6809,7 @@ unsafe extern "C" { ID_value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_lines( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6754,27 +6817,27 @@ unsafe extern "C" { rh: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_count_lines( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_line_index( bh: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_line_name( bh: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, pos: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_tag_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6784,7 +6847,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_find_tag_pos( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6793,7 +6856,7 @@ unsafe extern "C" { ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_remove_tag_id( h: *mut sam_hdr_t, type_: *const ::std::os::raw::c_char, @@ -6802,62 +6865,69 @@ unsafe extern "C" { key: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_name2tid( h: *mut sam_hdr_t, ref_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_tid2name( h: *const sam_hdr_t, tid: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_tid2len(h: *const sam_hdr_t, tid: ::std::os::raw::c_int) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_pg_id( h: *mut sam_hdr_t, name: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_add_pg( h: *mut sam_hdr_t, name: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn stringify_argv( argc: ::std::os::raw::c_int, argv: *mut *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_incr_ref(h: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { + pub fn sam_hdr_remove_tag_all( + bh: *mut sam_hdr_t, + type_: *const ::std::os::raw::c_char, + tag_id: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { pub fn bam_init1() -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_destroy1(b: *mut bam1_t); } -unsafe extern "C" { +extern "C" { pub fn bam_read1(fp: *mut BGZF, b: *mut bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_write1(fp: *mut BGZF, b: *const bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_copy1(bdst: *mut bam1_t, bsrc: *const bam1_t) -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_dup1(bsrc: *const bam1_t) -> *mut bam1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_set1( bam: *mut bam1_t, l_qname: usize, @@ -6877,28 +6947,28 @@ unsafe extern "C" { l_aux: usize, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_cigar2qlen(n_cigar: ::std::os::raw::c_int, cigar: *const u32) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_cigar2rlen(n_cigar: ::std::os::raw::c_int, cigar: *const u32) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_endpos(b: *const bam1_t) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn bam_str2flag(str_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_flag2str(flag: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_set_qname( b: *mut bam1_t, qname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_parse_cigar( in_: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char, @@ -6906,14 +6976,14 @@ unsafe extern "C" { a_mem: *mut usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bam_parse_cigar( in_: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char, b: *mut bam1_t, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn sam_idx_init( fp: *mut htsFile, h: *mut sam_hdr_t, @@ -6921,20 +6991,20 @@ unsafe extern "C" { fnidx: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_idx_save(fp: *mut htsFile) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load(fp: *mut htsFile, fn_: *const ::std::os::raw::c_char) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load2( fp: *mut htsFile, fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_load3( fp: *mut htsFile, fn_: *const ::std::os::raw::c_char, @@ -6942,20 +7012,20 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *mut hts_idx_t; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -6963,7 +7033,7 @@ unsafe extern "C" { nthreads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_queryi( idx: *const hts_idx_t, tid: ::std::os::raw::c_int, @@ -6971,14 +7041,14 @@ unsafe extern "C" { end: hts_pos_t, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_querys( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, region: *const ::std::os::raw::c_char, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_regions( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, @@ -6986,7 +7056,7 @@ unsafe extern "C" { regcount: ::std::os::raw::c_uint, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_itr_regarray( idx: *const hts_idx_t, hdr: *mut sam_hdr_t, @@ -6994,7 +7064,7 @@ unsafe extern "C" { regcount: ::std::os::raw::c_uint, ) -> *mut hts_itr_t; } -unsafe extern "C" { +extern "C" { pub fn sam_parse_region( h: *mut sam_hdr_t, s: *const ::std::os::raw::c_char, @@ -7004,89 +7074,89 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_open_mode( mode: *mut ::std::os::raw::c_char, fn_: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_open_mode_opts( fn_: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_change_HD( h: *mut sam_hdr_t, key: *const ::std::os::raw::c_char, val: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_parse1( s: *mut kstring_t, h: *mut sam_hdr_t, b: *mut bam1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_format1( h: *const sam_hdr_t, b: *const bam1_t, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_read1(fp: *mut samFile, h: *mut sam_hdr_t, b: *mut bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_write1( fp: *mut samFile, h: *const sam_hdr_t, b: *const bam1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_passes_filter( h: *const sam_hdr_t, b: *const bam1_t, filt: *mut hts_filter_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_first(b: *const bam1_t) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_next(b: *const bam1_t, s: *const u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_get(b: *const bam1_t, tag: *const ::std::os::raw::c_char) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2i(s: *const u8) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2f(s: *const u8) -> f64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2A(s: *const u8) -> ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_aux2Z(s: *const u8) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB_len(s: *const u8) -> u32; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB2i(s: *const u8, idx: u32) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bam_auxB2f(s: *const u8, idx: u32) -> f64; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_append( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7095,13 +7165,13 @@ unsafe extern "C" { data: *const u8, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_del(b: *mut bam1_t, s: *mut u8) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_remove(b: *mut bam1_t, s: *mut u8) -> *mut u8; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_str( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7109,21 +7179,21 @@ unsafe extern "C" { data: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_int( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, val: i64, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_float( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, val: f32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_aux_update_array( b: *mut bam1_t, tag: *const ::std::os::raw::c_char, @@ -7367,16 +7437,16 @@ pub struct bam_mplp_s { _unused: [u8; 0], } pub type bam_mplp_t = *mut bam_mplp_s; -unsafe extern "C" { +extern "C" { pub fn bam_plp_init(func: bam_plp_auto_f, data: *mut ::std::os::raw::c_void) -> bam_plp_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_destroy(iter: bam_plp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_push(iter: bam_plp_t, b: *const bam1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_next( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7384,7 +7454,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_auto( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7392,7 +7462,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp64_next( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7400,7 +7470,7 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp64_auto( iter: bam_plp_t, _tid: *mut ::std::os::raw::c_int, @@ -7408,13 +7478,13 @@ unsafe extern "C" { _n_plp: *mut ::std::os::raw::c_int, ) -> *const bam_pileup1_t; } -unsafe extern "C" { +extern "C" { pub fn bam_plp_set_maxcnt(iter: bam_plp_t, maxcnt: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_reset(iter: bam_plp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_constructor( plp: bam_plp_t, func: ::std::option::Option< @@ -7426,7 +7496,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_destructor( plp: bam_plp_t, func: ::std::option::Option< @@ -7438,7 +7508,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_plp_insertion( p: *const bam_pileup1_t, ins: *mut kstring_t, @@ -7450,7 +7520,7 @@ unsafe extern "C" { pub struct hts_base_mod_state { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn bam_plp_insertion_mod( p: *const bam_pileup1_t, m: *mut hts_base_mod_state, @@ -7458,23 +7528,23 @@ unsafe extern "C" { del_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_init( n: ::std::os::raw::c_int, func: bam_plp_auto_f, data: *mut *mut ::std::os::raw::c_void, ) -> bam_mplp_t; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_init_overlaps(iter: bam_mplp_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_destroy(iter: bam_mplp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_set_maxcnt(iter: bam_mplp_t, maxcnt: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_auto( iter: bam_mplp_t, _tid: *mut ::std::os::raw::c_int, @@ -7483,7 +7553,7 @@ unsafe extern "C" { plp: *mut *const bam_pileup1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp64_auto( iter: bam_mplp_t, _tid: *mut ::std::os::raw::c_int, @@ -7492,10 +7562,10 @@ unsafe extern "C" { plp: *mut *const bam_pileup1_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_reset(iter: bam_mplp_t); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_constructor( iter: bam_mplp_t, func: ::std::option::Option< @@ -7507,7 +7577,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn bam_mplp_destructor( iter: bam_mplp_t, func: ::std::option::Option< @@ -7519,7 +7589,7 @@ unsafe extern "C" { >, ); } -unsafe extern "C" { +extern "C" { pub fn sam_cap_mapq( b: *mut bam1_t, ref_: *const ::std::os::raw::c_char, @@ -7537,7 +7607,7 @@ pub const htsRealnFlags_BAQ_PACBIO: htsRealnFlags = 24; pub const htsRealnFlags_BAQ_ONT: htsRealnFlags = 32; pub const htsRealnFlags_BAQ_GENAPSYS: htsRealnFlags = 40; pub type htsRealnFlags = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn sam_prob_realn( b: *mut bam1_t, ref_: *const ::std::os::raw::c_char, @@ -7553,26 +7623,26 @@ pub struct hts_base_mod { pub strand: ::std::os::raw::c_int, pub qual: ::std::os::raw::c_int, } -unsafe extern "C" { +extern "C" { pub fn hts_base_mod_state_alloc() -> *mut hts_base_mod_state; } -unsafe extern "C" { +extern "C" { pub fn hts_base_mod_state_free(state: *mut hts_base_mod_state); } -unsafe extern "C" { +extern "C" { pub fn bam_parse_basemod( b: *const bam1_t, state: *mut hts_base_mod_state, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_parse_basemod2( b: *const bam1_t, state: *mut hts_base_mod_state, flags: u32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_at_next_pos( b: *const bam1_t, state: *mut hts_base_mod_state, @@ -7580,7 +7650,7 @@ unsafe extern "C" { n_mods: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_next_basemod( b: *const bam1_t, state: *mut hts_base_mod_state, @@ -7589,7 +7659,7 @@ unsafe extern "C" { pos: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_at_qpos( b: *const bam1_t, qpos: ::std::os::raw::c_int, @@ -7598,7 +7668,7 @@ unsafe extern "C" { n_mods: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_query_type( state: *mut hts_base_mod_state, code: ::std::os::raw::c_int, @@ -7607,7 +7677,7 @@ unsafe extern "C" { canonical: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_queryi( state: *mut hts_base_mod_state, i: ::std::os::raw::c_int, @@ -7616,20 +7686,20 @@ unsafe extern "C" { canonical: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bam_mods_recorded( state: *mut hts_base_mod_state, ntype: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_set( fp: *mut samFile, h: *mut sam_hdr_t, dup: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn sam_hdr_get(fp: *mut samFile) -> *mut sam_hdr_t; } #[repr(C)] @@ -7810,20 +7880,20 @@ impl hFILE { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn hopen( filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ... ) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn hdopen(fd: ::std::os::raw::c_int, mode: *const ::std::os::raw::c_char) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn hisremote(filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn haddextension( buffer: *mut kstring_t, filename: *const ::std::os::raw::c_char, @@ -7831,16 +7901,16 @@ unsafe extern "C" { extension: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hclose(fp: *mut hFILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hclose_abruptly(fp: *mut hFILE); } -unsafe extern "C" { +extern "C" { pub fn hseek(fp: *mut hFILE, offset: off_t, whence: ::std::os::raw::c_int) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn hgetdelim( buffer: *mut ::std::os::raw::c_char, size: usize, @@ -7848,45 +7918,48 @@ unsafe extern "C" { fp: *mut hFILE, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn hgets( buffer: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, fp: *mut hFILE, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { + pub fn khgetline(kstr: *mut kstring_t, fp: *mut hFILE) -> ::std::os::raw::c_int; +} +extern "C" { pub fn hpeek(fp: *mut hFILE, buffer: *mut ::std::os::raw::c_void, nbytes: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn hflush(fp: *mut hFILE) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_mem_get_buffer( file: *mut hFILE, length: *mut usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hfile_mem_steal_buffer( file: *mut hFILE, length: *mut usize, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn hfile_list_schemes( plugin: *const ::std::os::raw::c_char, sc_list: *mut *const ::std::os::raw::c_char, nschemes: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_list_plugins( plist: *mut *const ::std::os::raw::c_char, nplugins: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hfile_has_plugin(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } pub const cram_block_method_CRAM_COMP_UNKNOWN: cram_block_method = -1; @@ -7967,65 +8040,65 @@ pub struct cram_codec { pub struct refs_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_header(fd: *mut cram_fd) -> *mut sam_hdr_t; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_header(fd: *mut cram_fd, hdr: *mut sam_hdr_t); } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_version(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_version(fd: *mut cram_fd, vers: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn cram_major_vers(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_minor_vers(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_get_fp(fd: *mut cram_fd) -> *mut hFILE; } -unsafe extern "C" { +extern "C" { pub fn cram_fd_set_fp(fd: *mut cram_fd, fp: *mut hFILE); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_length(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_length(c: *mut cram_container, length: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_blocks(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_num_blocks(c: *mut cram_container, num_blocks: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_landmarks( c: *mut cram_container, num_landmarks: *mut i32, ) -> *mut i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_set_landmarks( c: *mut cram_container, num_landmarks: i32, landmarks: *mut i32, ); } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_records(c: *mut cram_container) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_num_bases(c: *mut cram_container) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_container_is_empty(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_container_get_coords( c: *mut cram_container, refid: *mut ::std::os::raw::c_int, @@ -8033,75 +8106,75 @@ unsafe extern "C" { span: *mut hts_pos_t, ); } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_content_id(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_comp_size(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_uncomp_size(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_crc32(b: *mut cram_block) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_data(b: *mut cram_block) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_content_type(b: *mut cram_block) -> cram_content_type; } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_method(b: *mut cram_block) -> cram_block_method; } -unsafe extern "C" { +extern "C" { pub fn cram_expand_method( data: *mut u8, size: i32, comp: cram_block_method, ) -> *mut cram_method_details; } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_content_id(b: *mut cram_block, id: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_comp_size(b: *mut cram_block, size: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_uncomp_size(b: *mut cram_block, size: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_crc32(b: *mut cram_block, crc: i32); } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_data(b: *mut cram_block, data: *mut ::std::os::raw::c_void); } -unsafe extern "C" { +extern "C" { pub fn cram_block_append( b: *mut cram_block, data: *const ::std::os::raw::c_void, size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_block_update_size(b: *mut cram_block); } -unsafe extern "C" { +extern "C" { pub fn cram_block_get_offset(b: *mut cram_block) -> usize; } -unsafe extern "C" { +extern "C" { pub fn cram_block_set_offset(b: *mut cram_block, offset: usize); } -unsafe extern "C" { +extern "C" { pub fn cram_block_size(b: *mut cram_block) -> u32; } -unsafe extern "C" { +extern "C" { pub fn cram_codec_get_content_ids(c: *mut cram_codec, ids: *mut ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn cram_codec_describe(c: *mut cram_codec, ks: *mut kstring_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_transcode_rg( in_: *mut cram_fd, out: *mut cram_fd, @@ -8111,14 +8184,14 @@ unsafe extern "C" { out_rg: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_copy_slice( in_: *mut cram_fd, out: *mut cram_fd, num_slice: i32, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_filter_container( in_: *mut cram_fd, out: *mut cram_fd, @@ -8126,13 +8199,13 @@ unsafe extern "C" { ref_id: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_decode_compression_header( fd: *mut cram_fd, b: *mut cram_block, ) -> *mut cram_block_compression_hdr; } -unsafe extern "C" { +extern "C" { pub fn cram_free_compression_header(hdr: *mut cram_block_compression_hdr); } #[repr(C)] @@ -8140,35 +8213,35 @@ unsafe extern "C" { pub struct cram_cid2ds_t { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn cram_update_cid2ds_map( hdr: *mut cram_block_compression_hdr, cid2ds: *mut cram_cid2ds_t, ) -> *mut cram_cid2ds_t; } -unsafe extern "C" { +extern "C" { pub fn cram_cid2ds_query( c2d: *mut cram_cid2ds_t, content_id: ::std::os::raw::c_int, n: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_cid2ds_free(cid2ds: *mut cram_cid2ds_t); } -unsafe extern "C" { +extern "C" { pub fn cram_describe_encodings( hdr: *mut cram_block_compression_hdr, ks: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_num_blocks(hdr: *mut cram_block_slice_hdr) -> i32; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_embed_ref_id(h: *mut cram_block_slice_hdr) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_slice_hdr_get_coords( h: *mut cram_block_slice_hdr, refid: *mut ::std::os::raw::c_int, @@ -8176,34 +8249,34 @@ unsafe extern "C" { span: *mut hts_pos_t, ); } -unsafe extern "C" { +extern "C" { pub fn cram_decode_slice_header( fd: *mut cram_fd, b: *mut cram_block, ) -> *mut cram_block_slice_hdr; } -unsafe extern "C" { +extern "C" { pub fn cram_free_slice_header(hdr: *mut cram_block_slice_hdr); } -unsafe extern "C" { +extern "C" { pub fn cram_new_block( content_type: cram_content_type, content_id: ::std::os::raw::c_int, ) -> *mut cram_block; } -unsafe extern "C" { +extern "C" { pub fn cram_read_block(fd: *mut cram_fd) -> *mut cram_block; } -unsafe extern "C" { +extern "C" { pub fn cram_write_block(fd: *mut cram_fd, b: *mut cram_block) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_free_block(b: *mut cram_block); } -unsafe extern "C" { +extern "C" { pub fn cram_uncompress_block(b: *mut cram_block) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_compress_block( fd: *mut cram_fd, b: *mut cram_block, @@ -8212,7 +8285,7 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_compress_block2( fd: *mut cram_fd, s: *mut cram_slice, @@ -8222,22 +8295,22 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_new_container( nrec: ::std::os::raw::c_int, nslice: ::std::os::raw::c_int, ) -> *mut cram_container; } -unsafe extern "C" { +extern "C" { pub fn cram_free_container(c: *mut cram_container); } -unsafe extern "C" { +extern "C" { pub fn cram_read_container(fd: *mut cram_fd) -> *mut cram_container; } -unsafe extern "C" { +extern "C" { pub fn cram_write_container(fd: *mut cram_fd, h: *mut cram_container) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_store_container( fd: *mut cram_fd, c: *mut cram_container, @@ -8245,62 +8318,62 @@ unsafe extern "C" { size: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_container_size(c: *mut cram_container) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_open( filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut cram_fd; } -unsafe extern "C" { +extern "C" { pub fn cram_dopen( fp: *mut hFILE, filename: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut cram_fd; } -unsafe extern "C" { +extern "C" { pub fn cram_close(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_seek( fd: *mut cram_fd, offset: off_t, whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_flush(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_eof(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_option(fd: *mut cram_fd, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_voption( fd: *mut cram_fd, opt: hts_fmt_option, args: va_list, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_set_header(fd: *mut cram_fd, hdr: *mut sam_hdr_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_check_EOF(fd: *mut cram_fd) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn int32_put_blk(b: *mut cram_block, val: i32) -> ::std::os::raw::c_int; } pub type SAM_hdr = sam_hdr_t; -unsafe extern "C" { +extern "C" { pub fn cram_get_refs(fd: *mut htsFile) -> *mut refs_t; } -unsafe extern "C" { +extern "C" { pub fn cram_index_extents( fd: *mut cram_fd, refid: ::std::os::raw::c_int, @@ -8310,10 +8383,10 @@ unsafe extern "C" { last: *mut off_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn cram_num_containers(fd: *mut cram_fd) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_num_containers_between( fd: *mut cram_fd, cstart: off_t, @@ -8322,10 +8395,10 @@ unsafe extern "C" { last: *mut i64, ) -> i64; } -unsafe extern "C" { +extern "C" { pub fn cram_container_num2offset(fd: *mut cram_fd, n: i64) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn cram_container_offset2num(fd: *mut cram_fd, pos: off_t) -> i64; } #[repr(C)] @@ -8719,96 +8792,96 @@ impl BGZF { __bindgen_bitfield_unit } } -unsafe extern "C" { +extern "C" { pub fn bgzf_dopen(fd: ::std::os::raw::c_int, mode: *const ::std::os::raw::c_char) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_open( path: *const ::std::os::raw::c_char, mode: *const ::std::os::raw::c_char, ) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_hopen(fp: *mut hFILE, mode: *const ::std::os::raw::c_char) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn bgzf_close(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_read(fp: *mut BGZF, data: *mut ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_write(fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_block_write( fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_peek(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_raw_read(fp: *mut BGZF, data: *mut ::std::os::raw::c_void, length: usize) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_raw_write( fp: *mut BGZF, data: *const ::std::os::raw::c_void, length: usize, ) -> isize; } -unsafe extern "C" { +extern "C" { pub fn bgzf_flush(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_seek(fp: *mut BGZF, pos: i64, whence: ::std::os::raw::c_int) -> i64; } -unsafe extern "C" { +extern "C" { pub fn bgzf_check_EOF(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_compression(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_is_bgzf(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_set_cache_size(fp: *mut BGZF, size: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bgzf_flush_try(fp: *mut BGZF, size: isize) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_getc(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_getline( fp: *mut BGZF, delim: ::std::os::raw::c_int, str_: *mut kstring_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_read_block(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_thread_pool( fp: *mut BGZF, pool: *mut hts_tpool, qsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_mt( fp: *mut BGZF, n_threads: ::std::os::raw::c_int, n_sub_blks: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_compress( dst: *mut ::std::os::raw::c_void, dlen: *mut usize, @@ -8817,65 +8890,65 @@ unsafe extern "C" { level: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_useek( fp: *mut BGZF, uoffset: off_t, where_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_utell(fp: *mut BGZF) -> off_t; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_build_init(fp: *mut BGZF) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_load( fp: *mut BGZF, bname: *const ::std::os::raw::c_char, suffix: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_load_hfile( fp: *mut BGZF, idx: *mut hFILE, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_dump( fp: *mut BGZF, bname: *const ::std::os::raw::c_char, suffix: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bgzf_index_dump_hfile( fp: *mut BGZF, idx: *mut hFILE, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_trim_alleles(header: *const bcf_hdr_t, line: *mut bcf1_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_alleles( header: *const bcf_hdr_t, line: *mut bcf1_t, mask: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_remove_allele_set( header: *const bcf_hdr_t, line: *mut bcf1_t, rm_set: *const kbitset_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_calc_ac( header: *const bcf_hdr_t, line: *mut bcf1_t, @@ -8883,7 +8956,7 @@ unsafe extern "C" { which: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_gt_type( fmt_ptr: *mut bcf_fmt_t, isample: ::std::os::raw::c_int, @@ -8908,32 +8981,60 @@ pub struct tbx_t { pub idx: *mut hts_idx_t, pub dict: *mut ::std::os::raw::c_void, } -unsafe extern "C" { +extern "C" { pub static tbx_conf_gff: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_bed: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_psltbl: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_sam: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_vcf: tbx_conf_t; } -unsafe extern "C" { +extern "C" { pub static tbx_conf_gaf: tbx_conf_t; } -unsafe extern "C" { +extern "C" { + pub fn tbx_itr_querys1( + tbx: *mut tbx_t, + region: *const ::std::os::raw::c_char, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_regarray( + tbx: *mut tbx_t, + regarray: *mut *mut ::std::os::raw::c_char, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_regions( + tbx: *const tbx_t, + reglist: *mut hts_reglist_t, + regcount: ::std::os::raw::c_uint, + ) -> *mut hts_itr_t; +} +extern "C" { + pub fn tbx_itr_next1( + htsfp: *mut htsFile, + tbx: *mut tbx_t, + iter: *mut hts_itr_t, + r: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { pub fn tbx_name2id(tbx: *mut tbx_t, ss: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_get_bgzfp(fp: *mut htsFile) -> *mut BGZF; } -unsafe extern "C" { +extern "C" { pub fn tbx_readrec( fp: *mut BGZF, tbxv: *mut ::std::os::raw::c_void, @@ -8943,21 +9044,21 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index( fp: *mut BGZF, min_shift: ::std::os::raw::c_int, conf: *const tbx_conf_t, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build( fn_: *const ::std::os::raw::c_char, min_shift: ::std::os::raw::c_int, conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -8965,7 +9066,7 @@ unsafe extern "C" { conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_build3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, @@ -8974,29 +9075,29 @@ unsafe extern "C" { conf: *const tbx_conf_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load(fn_: *const ::std::os::raw::c_char) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load2( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_index_load3( fn_: *const ::std::os::raw::c_char, fnidx: *const ::std::os::raw::c_char, flags: ::std::os::raw::c_int, ) -> *mut tbx_t; } -unsafe extern "C" { +extern "C" { pub fn tbx_seqnames( tbx: *mut tbx_t, n: *mut ::std::os::raw::c_int, ) -> *mut *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn tbx_destroy(tbx: *mut tbx_t); } pub const bcf_sr_opt_t_BCF_SR_REQUIRE_IDX: bcf_sr_opt_t = 0; @@ -9057,6 +9158,7 @@ pub struct bcf_sr_t { pub samples: *mut ::std::os::raw::c_int, pub n_smpl: ::std::os::raw::c_int, } +pub const bcf_sr_error_bcf_sr_ok: bcf_sr_error = 0; pub const bcf_sr_error_open_failed: bcf_sr_error = 0; pub const bcf_sr_error_not_bgzf: bcf_sr_error = 1; pub const bcf_sr_error_idx_load_failed: bcf_sr_error = 2; @@ -9068,6 +9170,10 @@ pub const bcf_sr_error_no_memory: bcf_sr_error = 7; pub const bcf_sr_error_vcf_parse_error: bcf_sr_error = 8; pub const bcf_sr_error_bcf_read_error: bcf_sr_error = 9; pub const bcf_sr_error_noidx_error: bcf_sr_error = 10; +pub const bcf_sr_error_bcf_sr_open_failed: bcf_sr_error = 11; +pub const bcf_sr_error_bcf_sr_seek_error: bcf_sr_error = 12; +pub const bcf_sr_error_bcf_sr_regions_error: bcf_sr_error = 13; +pub const bcf_sr_error_bcf_sr_samples_error: bcf_sr_error = 14; pub type bcf_sr_error = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9093,35 +9199,35 @@ pub struct bcf_srs_t { pub p: *mut htsThreadPool, pub aux: *mut ::std::os::raw::c_void, } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_init() -> *mut bcf_srs_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_destroy(readers: *mut bcf_srs_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_strerror(errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_opt(readers: *mut bcf_srs_t, opt: bcf_sr_opt_t, ...) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_threads( files: *mut bcf_srs_t, n_threads: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_destroy_threads(files: *mut bcf_srs_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_add_reader( readers: *mut bcf_srs_t, fname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_add_hreader( readers: *mut bcf_srs_t, file_ptr: *mut htsFile, @@ -9129,27 +9235,27 @@ unsafe extern "C" { idxname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { - pub fn bcf_sr_remove_reader(files: *mut bcf_srs_t, i: ::std::os::raw::c_int); +extern "C" { + pub fn bcf_sr_remove_reader(files: *mut bcf_srs_t, reader_idx: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_next_line(readers: *mut bcf_srs_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_seek( readers: *mut bcf_srs_t, seq: *const ::std::os::raw::c_char, pos: hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_samples( readers: *mut bcf_srs_t, samples: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_targets( readers: *mut bcf_srs_t, targets: *const ::std::os::raw::c_char, @@ -9157,14 +9263,14 @@ unsafe extern "C" { alleles: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_set_regions( readers: *mut bcf_srs_t, regions: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_init( regions: *const ::std::os::raw::c_char, is_file: ::std::os::raw::c_int, @@ -9173,19 +9279,19 @@ unsafe extern "C" { to: ::std::os::raw::c_int, ) -> *mut bcf_sr_regions_t; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_destroy(regions: *mut bcf_sr_regions_t); } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_seek( regions: *mut bcf_sr_regions_t, chr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_next(reg: *mut bcf_sr_regions_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_overlap( reg: *mut bcf_sr_regions_t, seq: *const ::std::os::raw::c_char, @@ -9193,7 +9299,7 @@ unsafe extern "C" { end: hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn bcf_sr_regions_flush(regs: *mut bcf_sr_regions_t) -> ::std::os::raw::c_int; } #[repr(C)] @@ -9219,22 +9325,22 @@ pub const fai_format_options_FAI_NONE: fai_format_options = 0; pub const fai_format_options_FAI_FASTA: fai_format_options = 1; pub const fai_format_options_FAI_FASTQ: fai_format_options = 2; pub type fai_format_options = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn fai_build3( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, fngzi: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_build(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_destroy(fai: *mut faidx_t); } pub const fai_load_options_FAI_CREATE: fai_load_options = 1; pub type fai_load_options = ::std::os::raw::c_uint; -unsafe extern "C" { +extern "C" { pub fn fai_load3( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, @@ -9242,10 +9348,10 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load(fn_: *const ::std::os::raw::c_char) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load3_format( fn_: *const ::std::os::raw::c_char, fnfai: *const ::std::os::raw::c_char, @@ -9254,47 +9360,47 @@ unsafe extern "C" { format: fai_format_options, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_load_format( fn_: *const ::std::os::raw::c_char, format: fai_format_options, ) -> *mut faidx_t; } -unsafe extern "C" { +extern "C" { pub fn fai_fetch( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_fetch64( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_line_length(fai: *const faidx_t, reg: *const ::std::os::raw::c_char) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn fai_fetchqual( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_fetchqual64( fai: *const faidx_t, reg: *const ::std::os::raw::c_char, len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_seq( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9303,7 +9409,7 @@ unsafe extern "C" { len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_seq64( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9312,7 +9418,7 @@ unsafe extern "C" { len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_qual( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9321,7 +9427,7 @@ unsafe extern "C" { len: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_fetch_qual64( fai: *const faidx_t, c_name: *const ::std::os::raw::c_char, @@ -9330,31 +9436,31 @@ unsafe extern "C" { len: *mut hts_pos_t, ) -> *mut ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_has_seq( fai: *const faidx_t, seq: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn faidx_iseq( fai: *const faidx_t, i: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn faidx_seq_len64(fai: *const faidx_t, seq: *const ::std::os::raw::c_char) -> hts_pos_t; } -unsafe extern "C" { +extern "C" { pub fn faidx_seq_len( fai: *const faidx_t, seq: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_parse_region( fai: *const faidx_t, s: *const ::std::os::raw::c_char, @@ -9364,7 +9470,7 @@ unsafe extern "C" { flags: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -unsafe extern "C" { +extern "C" { pub fn fai_adjust_region( fai: *const faidx_t, tid: ::std::os::raw::c_int, @@ -9372,17 +9478,17 @@ unsafe extern "C" { end: *mut hts_pos_t, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_set_cache_size(fai: *mut faidx_t, cache_size: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn fai_thread_pool( fai: *mut faidx_t, pool: *mut hts_tpool, qsize: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn fai_path(fa: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } #[repr(C)] @@ -9395,16 +9501,16 @@ pub struct hts_tpool_process { pub struct hts_tpool_result { _unused: [u8; 0], } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_init(n: ::std::os::raw::c_int) -> *mut hts_tpool; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_size(p: *mut hts_tpool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_worker_id(pool: *mut hts_tpool) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9414,7 +9520,7 @@ unsafe extern "C" { arg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch2( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9425,7 +9531,7 @@ unsafe extern "C" { nonblock: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_dispatch3( p: *mut hts_tpool, q: *mut hts_tpool_process, @@ -9440,89 +9546,89 @@ unsafe extern "C" { nonblock: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_wake_dispatch(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_flush(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_reset( q: *mut hts_tpool_process, free_results: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_qsize(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_destroy(p: *mut hts_tpool); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_kill(p: *mut hts_tpool); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_next_result(q: *mut hts_tpool_process) -> *mut hts_tpool_result; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_next_result_wait(q: *mut hts_tpool_process) -> *mut hts_tpool_result; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_delete_result(r: *mut hts_tpool_result, free_data: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_result_data(r: *mut hts_tpool_result) -> *mut ::std::os::raw::c_void; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_init( p: *mut hts_tpool, qsize: ::std::os::raw::c_int, in_only: ::std::os::raw::c_int, ) -> *mut hts_tpool_process; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_destroy(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_empty(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_len(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_sz(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_shutdown(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_is_shutdown(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_attach(p: *mut hts_tpool, q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_detach(p: *mut hts_tpool, q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_ref_incr(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { pub fn hts_tpool_process_ref_decr(q: *mut hts_tpool_process); } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}_wrap_kbs_init2"] pub fn kbs_init2(ni: usize, fill: ::std::os::raw::c_int) -> *mut kbitset_t; } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}_wrap_kbs_init"] pub fn kbs_init(ni: usize) -> *mut kbitset_t; } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}_wrap_kbs_insert"] pub fn kbs_insert(bs: *mut kbitset_t, i: ::std::os::raw::c_int); } -unsafe extern "C" { +extern "C" { #[link_name = "\u{1}_wrap_kbs_destroy"] pub fn kbs_destroy(bs: *mut kbitset_t); } From 7f9c0ec90eacc26f65f554c7797e81927fe4d6c4 Mon Sep 17 00:00:00 2001 From: tfenne Date: Thu, 12 Nov 2026 19:10:04 -0700 Subject: [PATCH 2/3] fix: compile in lzma and bzip2 support when their features are enabled The lzma block in build.rs defined HAVE_LIBBZ2 instead of HAVE_LIBLZMA, so lzma support was never compiled in. bzip2-sys only exports an include dir when it builds bzip2 from source, so with a system libbz2 the bzip2 block never defined HAVE_LIBBZ2 either; bz2 support worked only through the lzma block's typo. Define HAVE_LIBLZMA/HAVE_LZMA_H whenever the lzma feature is enabled (lzma-sys always ships lzma.h) and HAVE_LIBBZ2 whenever the bzip2 feature is enabled, and add tests asserting each codec is compiled in exactly when its feature is on, including a real xz decode. --- build.rs | 26 ++++++------ tests/codec_support.rs | 90 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 14 deletions(-) create mode 100644 tests/codec_support.rs diff --git a/build.rs b/build.rs index 585fb49..82650c6 100644 --- a/build.rs +++ b/build.rs @@ -118,14 +118,13 @@ fn main() { let use_bzip2 = env::var("CARGO_FEATURE_BZIP2").is_ok(); if use_bzip2 { - if let Ok(inc) = env::var("DEP_BZIP2_ROOT") - .map(PathBuf::from) - .map(|path| path.join("include")) - { + // bzip2-sys only exports an include dir when it builds bzip2 from source. When it links a + // system libbz2 found via pkg-config (e.g. on macOS) bzlib.h is on the system include path. + if let Ok(inc) = env::var("DEP_BZIP2_INCLUDE") { cfg.include(inc); - lib_list += " -lbz2"; - config_lines.push("#define HAVE_LIBBZ2 1"); } + lib_list += " -lbz2"; + config_lines.push("#define HAVE_LIBBZ2 1"); } let use_libdeflate = env::var("CARGO_FEATURE_LIBDEFLATE").is_ok(); @@ -141,14 +140,13 @@ fn main() { let use_lzma = env::var("CARGO_FEATURE_LZMA").is_ok(); if use_lzma { - if let Ok(inc) = env::var("DEP_LZMA_INCLUDE").map(PathBuf::from) { - cfg.include(inc); - lib_list += " -llzma"; - config_lines.push("#define HAVE_LIBBZ2 1"); - config_lines.push("#ifndef __APPLE__"); - config_lines.push("#define HAVE_LZMA_H 1"); - config_lines.push("#endif"); - } + // lzma-sys is built with its `static` feature, so it always ships lzma.h, including on + // macOS where htslib's own Makefile falls back to os/lzma_stub.h. + let inc = env::var("DEP_LZMA_INCLUDE").expect("lzma-sys did not export DEP_LZMA_INCLUDE"); + cfg.include(inc); + lib_list += " -llzma"; + config_lines.push("#define HAVE_LIBLZMA 1"); + config_lines.push("#define HAVE_LZMA_H 1"); } let use_curl = env::var("CARGO_FEATURE_CURL").is_ok(); diff --git a/tests/codec_support.rs b/tests/codec_support.rs new file mode 100644 index 0000000..bdba054 --- /dev/null +++ b/tests/codec_support.rs @@ -0,0 +1,90 @@ +//! Checks that the optional compression codecs selected by cargo features are compiled into the +//! bundled htslib, and that codecs whose features are disabled are not. + +use hts_sys::{hts_features, HTS_FEATURE_BZIP2, HTS_FEATURE_LZMA}; + +/// Returns true if htslib reports `feature` (one of the `HTS_FEATURE_*` bits) as compiled in. +fn htslib_has_feature(feature: u32) -> bool { + unsafe { hts_features() & feature != 0 } +} + +#[test] +#[cfg(feature = "bzip2")] +fn bzip2_support_is_compiled_in_when_feature_enabled() { + assert!(htslib_has_feature(HTS_FEATURE_BZIP2)); +} + +#[test] +#[cfg(not(feature = "bzip2"))] +fn bzip2_support_is_absent_when_feature_disabled() { + assert!(!htslib_has_feature(HTS_FEATURE_BZIP2)); +} + +#[test] +#[cfg(feature = "lzma")] +fn lzma_support_is_compiled_in_when_feature_enabled() { + assert!(htslib_has_feature(HTS_FEATURE_LZMA)); +} + +#[test] +#[cfg(not(feature = "lzma"))] +fn lzma_support_is_absent_when_feature_disabled() { + assert!(!htslib_has_feature(HTS_FEATURE_LZMA)); +} + +/// htslib can only identify the contents of an xz-compressed file by decompressing the start of +/// it with liblzma, so this exercises a real lzma decode rather than just the feature flag. +#[test] +#[cfg(feature = "lzma")] +fn xz_compressed_sam_is_detected_as_sam() { + use hts_sys::{ + hclose, hopen, htsCompression_xz_compression, htsExactFormat_sam, htsFormat, + hts_detect_format2, + }; + use std::ffi::CString; + + let sam_header = b"@HD\tVN:1.6\tSO:unsorted\n@SQ\tSN:chr1\tLN:100\n"; + let path = std::env::temp_dir().join(format!( + "hts-sys-codec-support-{}.sam.xz", + std::process::id() + )); + std::fs::write(&path, xz_compress(sam_header)).unwrap(); + + let c_path = CString::new(path.to_str().unwrap()).unwrap(); + let mode = CString::new("r").unwrap(); + let mut format: htsFormat = unsafe { std::mem::zeroed() }; + let detect_result = unsafe { + let fp = hopen(c_path.as_ptr(), mode.as_ptr()); + assert!(!fp.is_null(), "failed to open {}", path.display()); + let detect_result = hts_detect_format2(fp, c_path.as_ptr(), &mut format); + hclose(fp); + detect_result + }; + std::fs::remove_file(&path).unwrap(); + + assert_eq!(detect_result, 0); + assert_eq!(format.compression, htsCompression_xz_compression); + assert_eq!(format.format, htsExactFormat_sam); +} + +/// Compresses `data` into a complete xz stream using liblzma from lzma-sys. +#[cfg(feature = "lzma")] +fn xz_compress(data: &[u8]) -> Vec { + let mut out = vec![0u8; data.len() + 1024]; + let mut out_pos = 0; + let result = unsafe { + lzma_sys::lzma_easy_buffer_encode( + 6, + lzma_sys::LZMA_CHECK_CRC32, + std::ptr::null(), + data.as_ptr(), + data.len(), + out.as_mut_ptr(), + &mut out_pos, + out.len(), + ) + }; + assert_eq!(result, lzma_sys::LZMA_OK); + out.truncate(out_pos); + out +} From 1a0d8a6df39e4651daa69bd617c7232fe3a88b91 Mon Sep 17 00:00:00 2001 From: tfenne Date: Mon, 16 Nov 2026 08:11:16 -0700 Subject: [PATCH 3/3] ci: install curl instead of the removed curl-openssl formula Homebrew no longer recognises curl-openssl, so the macOS jobs failed in the "Install htslib dependencies" step. The formula has been named curl for years. --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3204432..68f44fa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -155,7 +155,7 @@ jobs: default: ${{ matrix.default }} - name: Install htslib dependencies - run: brew install bzip2 zlib xz curl-openssl + run: brew install bzip2 zlib xz curl - name: Test uses: actions-rs/cargo@v1.0.1