From 938d0d47b6c9d9ad4125fa1d79ea7ce180249a26 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Wed, 3 Jun 2020 14:22:54 +1000 Subject: [PATCH 01/26] That is no longer the case, I encouraged @FiloSottile to bottle it up via a fork in https://github.com/FiloSottile/homebrew-musl-cross/issues/13#issuecomment-602173990, so now it's fast to install (just a bottle pour) :) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 578d921f1..a4b17b33d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ To compile this crate you need the development headers of zlib, bzip2 and xz. Fo $ sudo apt-get install zlib1g-dev libbz2-dev liblzma-dev clang pkg-config ``` -On OSX, this will take a significant amount of time due to musl cross compiling toolchain: +On OSX: ```shell $ brew install FiloSottile/musl-cross/musl-cross From 155f9f0d1a5eb1bb3ee1dfc2201f45aff8106e2a Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Thu, 24 Sep 2020 16:24:07 +1000 Subject: [PATCH 02/26] Fix for OSX compilation --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index fd0f89554..24389b01b 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit fd0f89554459b78c07303e2c8a42acacd6851b46 +Subproject commit 24389b01ba0a277c05bcc637dff3c0df7221aced From f92367a707c43bc9dd870e0e127937c9f6e28b11 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Thu, 24 Sep 2020 16:54:05 +1000 Subject: [PATCH 03/26] point to my htslib fork --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 2a109d59d..ad33c9f43 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "htslib"] path = hts-sys/htslib - url = https://github.com/samtools/htslib.git + url = https://github.com/brainstorm/htslib.git From 98bac7f90e49ed456c0d474344fa546bef184d20 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 25 Sep 2020 14:22:53 +1000 Subject: [PATCH 04/26] Point submodule to upstream now that OSX compilation got fixed --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index ad33c9f43..2a109d59d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "htslib"] path = hts-sys/htslib - url = https://github.com/brainstorm/htslib.git + url = https://github.com/samtools/htslib.git From 678ba880b9872e02ffe2e4c07d51722ddd73cdc6 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 25 Sep 2020 14:30:48 +1000 Subject: [PATCH 05/26] fixes #274 --- .github/workflows/rust.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4ee654b0c..c4d8d3e10 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -108,3 +108,14 @@ jobs: use-cross: true command: build args: --target x86_64-unknown-linux-musl --all-features --verbose + + Testing-OSX: + needs: Formatting + runs-on: macOS-latest + steps: + - name: Test musl build with all features and debug symbols (non --release) on OSX + uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --target x86_64-unknown-linux-musl --all-features --verbose From 12372ccb3c734947f67abc8036806c5363cc4f3c Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 25 Sep 2020 14:41:42 +1000 Subject: [PATCH 06/26] Bump version of Github Actions cargo to (hopefully) fix https://github.com/rust-bio/rust-htslib/pull/275/checks?check_run_id=1164062999#step:2:75 --- .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 c4d8d3e10..05675e09f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -114,7 +114,7 @@ jobs: runs-on: macOS-latest steps: - name: Test musl build with all features and debug symbols (non --release) on OSX - uses: actions-rs/cargo@v1 + uses: actions-rs/cargo@v1.0.1 with: use-cross: true command: build From e39a117640df56d51b3f4c592c2f6e64727b7779 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 25 Sep 2020 14:56:31 +1000 Subject: [PATCH 07/26] Actually test (and build), not just build... --- .github/workflows/rust.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 05675e09f..01fc4eca2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -92,21 +92,21 @@ jobs: uses: actions-rs/cargo@v1 with: use-cross: true - command: build + command: test args: --release --target x86_64-unknown-linux-musl --no-default-features - name: Test musl build with all features uses: actions-rs/cargo@v1 with: use-cross: true - command: build + command: test args: --release --target x86_64-unknown-linux-musl --all-features --verbose - name: Test musl build with all features and debug symbols (non --release) uses: actions-rs/cargo@v1 with: use-cross: true - command: build + command: test args: --target x86_64-unknown-linux-musl --all-features --verbose Testing-OSX: @@ -117,5 +117,5 @@ jobs: uses: actions-rs/cargo@v1.0.1 with: use-cross: true - command: build + command: test args: --target x86_64-unknown-linux-musl --all-features --verbose From 37e1867534ff039db3e35c78c42a5ff46d9ae372 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 21:12:10 +1100 Subject: [PATCH 08/26] Thanks @mbargull for the suggestion... :facepalm: --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 01fc4eca2..67ad231c7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -113,6 +113,12 @@ jobs: needs: Formatting runs-on: macOS-latest steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Checkout submodules + uses: textbook/git-checkout-submodule-action@2.0.0 + - name: Test musl build with all features and debug symbols (non --release) on OSX uses: actions-rs/cargo@v1.0.1 with: From 73ec23a14c5a66c32c93818199f3cb82984deb69 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 21:17:42 +1100 Subject: [PATCH 09/26] Also test OSX without default features --- .github/workflows/rust.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 67ad231c7..a85e4480d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -119,6 +119,13 @@ jobs: - name: Checkout submodules uses: textbook/git-checkout-submodule-action@2.0.0 + - name: Test musl build without default features + uses: actions-rs/cargo@v1 + with: + use-cross: true + command: test + args: --release --target x86_64-unknown-linux-musl --no-default-features + - name: Test musl build with all features and debug symbols (non --release) on OSX uses: actions-rs/cargo@v1.0.1 with: From 71663126b9de5c07084a642100d135837f6643b9 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 21:20:23 +1100 Subject: [PATCH 10/26] Container action is only supported on Linux (by textbook/git-checkout-submodule-action@2.0.0) --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a85e4480d..620414c49 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -116,8 +116,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Checkout submodules - uses: textbook/git-checkout-submodule-action@2.0.0 +# - name: Checkout submodules +# uses: textbook/git-checkout-submodule-action@2.0.0 - name: Test musl build without default features uses: actions-rs/cargo@v1 From 4ffc3d7a197dc8e02a66f78b4c68f8ce1754b9c9 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 21:33:34 +1100 Subject: [PATCH 11/26] Docker is not supported in Github Actions runners: https://github.community/t/why-is-docker-not-installed-on-macos/17017 ... oh my...https://github.com/rust-bio/rust-htslib/pull/275/checks?check_run_id=1363102964#step:3:92 --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 620414c49..3e857b150 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -122,13 +122,13 @@ jobs: - name: Test musl build without default features uses: actions-rs/cargo@v1 with: - use-cross: true + use-cross: false command: test args: --release --target x86_64-unknown-linux-musl --no-default-features - name: Test musl build with all features and debug symbols (non --release) on OSX uses: actions-rs/cargo@v1.0.1 with: - use-cross: true + use-cross: false command: test args: --target x86_64-unknown-linux-musl --all-features --verbose From e496b791de641f2d105394751d598ba57f096f48 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 22:08:59 +1100 Subject: [PATCH 12/26] Go full in into OSX native GitHub actions testing instead of using cross/docker --- .github/workflows/rust.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3e857b150..8bc75e567 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -116,13 +116,26 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 +# OSX Github Actions runner does not support this # - name: Checkout submodules # uses: textbook/git-checkout-submodule-action@2.0.0 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: x86_64-unknown-linux-musl + override: true + + - name: Install OSX musl-cross + run: brew install FiloSottile/musl-cross/musl-cross + + - name: Install htslib dependencies + run: brew install bzip2 zlib xz curl-openssl + - name: Test musl build without default features uses: actions-rs/cargo@v1 with: - use-cross: false + use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 command: test args: --release --target x86_64-unknown-linux-musl --no-default-features From ed444039d3b6190a0979714eb9be2711a55a7b74 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 22:21:48 +1100 Subject: [PATCH 13/26] Is musl-gcc installed? Yes it is: https://github.com/rust-bio/rust-htslib/runs/1363289833#step:6:143 --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8bc75e567..f1a600c4f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -129,6 +129,10 @@ jobs: - name: Install OSX musl-cross run: brew install FiloSottile/musl-cross/musl-cross + # https://github.com/FiloSottile/homebrew-musl-cross/issues/16 + - name: Provide musl-gcc symlink for the right musl arch + run: ln -sf /usr/local/opt/musl-cross/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc + - name: Install htslib dependencies run: brew install bzip2 zlib xz curl-openssl From eaa84199f274cb7852dff8dc5ba294be14e25666 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 22:32:03 +1100 Subject: [PATCH 14/26] According to build.rs:180,80, config.h does not seem to be found, which possibly suggests a missing submodule? Use actions/checkout 'submodules' attribute... --- .github/workflows/rust.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1a600c4f..4aa9da1af 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -114,11 +114,9 @@ jobs: runs-on: macOS-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - -# OSX Github Actions runner does not support this -# - name: Checkout submodules -# uses: textbook/git-checkout-submodule-action@2.0.0 + uses: actions/checkout@v2.3.4 + with: + submodules: true - uses: actions-rs/toolchain@v1 with: @@ -131,7 +129,7 @@ jobs: # https://github.com/FiloSottile/homebrew-musl-cross/issues/16 - name: Provide musl-gcc symlink for the right musl arch - run: ln -sf /usr/local/opt/musl-cross/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc + run: ln -sf /usr/local/opt/musl-cross/libexec/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc - name: Install htslib dependencies run: brew install bzip2 zlib xz curl-openssl From 7f730d598a02c3c146db01417bd1b33e3440da04 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Nov 2020 23:08:51 +1100 Subject: [PATCH 15/26] Is it a musl-specific issue or affects all targets? --- .github/workflows/rust.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4aa9da1af..f48dfff65 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -134,6 +134,13 @@ jobs: - name: Install htslib dependencies run: brew install bzip2 zlib xz curl-openssl + - name: Test build without default features for the default x86_64 OSX target + uses: actions-rs/cargo@v1 + with: + use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 + command: test + args: --release + - name: Test musl build without default features uses: actions-rs/cargo@v1 with: From bbe3814a4a9f7affa258f82f34a2839631480631 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 7 Nov 2020 08:08:09 +1100 Subject: [PATCH 16/26] Bump htslib up to the last memory leak fix --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index 24389b01b..57aeb5240 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit 24389b01ba0a277c05bcc637dff3c0df7221aced +Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 From 7c757c29f408b6eacfe405845b6c338306953f83 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 7 Nov 2020 08:12:06 +1100 Subject: [PATCH 17/26] Submodule update --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index 57aeb5240..a7a90fe91 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 +Subproject commit a7a90fe913f8a466f32f6e284cf46653944acd6f From 37452f238c3c35063a9396c268582fb613a6ef25 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 7 Nov 2020 08:17:15 +1100 Subject: [PATCH 18/26] This might need a bit more clang/LLVM gymnastics, go back to MUSL and see if updating the submodule as @mbargull suggested does the trick --- .github/workflows/rust.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f48dfff65..ef0972255 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -134,12 +134,12 @@ jobs: - name: Install htslib dependencies run: brew install bzip2 zlib xz curl-openssl - - name: Test build without default features for the default x86_64 OSX target - uses: actions-rs/cargo@v1 - with: - use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 - command: test - args: --release +# - name: Test build without default features for the default x86_64 OSX target +# uses: actions-rs/cargo@v1 +# with: +# use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 +# command: test +# args: --release - name: Test musl build without default features uses: actions-rs/cargo@v1 From dbf02668eab43a615bd367e7d6fc4b5b48da473d Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 7 Nov 2020 08:25:50 +1100 Subject: [PATCH 19/26] Switch submodule to develop upstream branch --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index a7a90fe91..57aeb5240 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit a7a90fe913f8a466f32f6e284cf46653944acd6f +Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 From 4b562c87ade7a98ccf1d3781257f10d63dee5ef4 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 7 Nov 2020 22:00:16 +1100 Subject: [PATCH 20/26] Submodule update --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index 57aeb5240..b710781df 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 +Subproject commit b710781df0d9bb6f665756316653554fe32e5c68 From 7b6aeb3295f598964aa69bf230ca77018c6e3219 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Tue, 10 Nov 2020 05:51:42 +1100 Subject: [PATCH 21/26] Try with (possibly broken) regenerated OSX bindgen --- hts-sys/osx_prebuilt_bindings.rs | 294 +------------------------------ 1 file changed, 4 insertions(+), 290 deletions(-) diff --git a/hts-sys/osx_prebuilt_bindings.rs b/hts-sys/osx_prebuilt_bindings.rs index d0521c138..c0dbeffca 100644 --- a/hts-sys/osx_prebuilt_bindings.rs +++ b/hts-sys/osx_prebuilt_bindings.rs @@ -344,7 +344,6 @@ pub const __MAC_10_14_1: u32 = 101401; pub const __MAC_10_14_4: u32 = 101404; 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 __IPHONE_2_0: u32 = 20000; pub const __IPHONE_2_1: u32 = 20100; pub const __IPHONE_2_2: u32 = 20200; @@ -386,10 +385,6 @@ pub const __IPHONE_12_3: u32 = 120300; 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 __TVOS_9_0: u32 = 90000; pub const __TVOS_9_1: u32 = 90100; pub const __TVOS_9_2: u32 = 90200; @@ -407,9 +402,7 @@ pub const __TVOS_12_1: u32 = 120100; pub const __TVOS_12_2: u32 = 120200; pub const __TVOS_12_3: u32 = 120300; 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_13_1: u32 = 130100; pub const __WATCHOS_1_0: u32 = 10000; pub const __WATCHOS_2_0: u32 = 20000; pub const __WATCHOS_2_1: u32 = 20100; @@ -426,8 +419,7 @@ pub const __WATCHOS_5_0: u32 = 50000; pub const __WATCHOS_5_1: u32 = 50100; pub const __WATCHOS_5_2: u32 = 50200; pub const __WATCHOS_6_0: u32 = 60000; -pub const __WATCHOS_6_1: u32 = 60100; -pub const __WATCHOS_6_2: u32 = 60200; +pub const __WATCHOS_6_0_1: u32 = 60001; pub const __DRIVERKIT_19_0: u32 = 190000; pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 101500; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; @@ -3246,7 +3238,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; + pub static mut seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; } extern "C" { pub static mut seq_nt16_str: [::std::os::raw::c_char; 0usize]; @@ -14561,13 +14553,6 @@ fn bindgen_test_layout_fd_set() { ) ); } -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; @@ -16436,7 +16421,7 @@ fn bindgen_test_layout_sam_hdr_t() { } pub type bam_hdr_t = sam_hdr_t; extern "C" { - pub static bam_cigar_table: [i8; 256usize]; + pub static mut bam_cigar_table: [i8; 256usize]; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19423,277 +19408,6 @@ fn bindgen_test_layout_kbitset_iter_t() { ) ); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __faidx_t { - _unused: [u8; 0], -} -pub type faidx_t = __faidx_t; -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 = u32; -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; -} -extern "C" { - pub fn fai_build(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -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 = u32; -extern "C" { - pub fn fai_load3( - fn_: *const ::std::os::raw::c_char, - fnfai: *const ::std::os::raw::c_char, - fngzi: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_int, - ) -> *mut faidx_t; -} -extern "C" { - pub fn fai_load(fn_: *const ::std::os::raw::c_char) -> *mut faidx_t; -} -extern "C" { - pub fn fai_load3_format( - fn_: *const ::std::os::raw::c_char, - fnfai: *const ::std::os::raw::c_char, - fngzi: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_int, - format: fai_format_options, - ) -> *mut faidx_t; -} -extern "C" { - pub fn fai_load_format( - fn_: *const ::std::os::raw::c_char, - format: fai_format_options, - ) -> *mut faidx_t; -} -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; -} -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; -} -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; -} -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; -} -extern "C" { - pub fn faidx_fetch_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn faidx_fetch_seq( - fai: *const faidx_t, - c_name: *const ::std::os::raw::c_char, - p_beg_i: ::std::os::raw::c_int, - p_end_i: ::std::os::raw::c_int, - len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn faidx_fetch_seq64( - fai: *const faidx_t, - c_name: *const ::std::os::raw::c_char, - p_beg_i: hts_pos_t, - p_end_i: hts_pos_t, - len: *mut hts_pos_t, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn faidx_fetch_qual( - fai: *const faidx_t, - c_name: *const ::std::os::raw::c_char, - p_beg_i: ::std::os::raw::c_int, - p_end_i: ::std::os::raw::c_int, - len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn faidx_fetch_qual64( - fai: *const faidx_t, - c_name: *const ::std::os::raw::c_char, - p_beg_i: hts_pos_t, - p_end_i: hts_pos_t, - len: *mut hts_pos_t, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn faidx_has_seq( - fai: *const faidx_t, - seq: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn faidx_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn faidx_iseq( - fai: *const faidx_t, - i: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn faidx_seq_len( - fai: *const faidx_t, - seq: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fai_parse_region( - fai: *const faidx_t, - s: *const ::std::os::raw::c_char, - tid: *mut ::std::os::raw::c_int, - beg: *mut hts_pos_t, - end: *mut hts_pos_t, - flags: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn fai_set_cache_size(fai: *mut faidx_t, cache_size: ::std::os::raw::c_int); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_tpool_process { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_tpool_result { - _unused: [u8; 0], -} -extern "C" { - pub fn hts_tpool_init(n: ::std::os::raw::c_int) -> *mut hts_tpool; -} -extern "C" { - pub fn hts_tpool_size(p: *mut hts_tpool) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_dispatch( - p: *mut hts_tpool, - q: *mut hts_tpool_process, - func: ::std::option::Option< - unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, - >, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_dispatch2( - p: *mut hts_tpool, - q: *mut hts_tpool_process, - func: ::std::option::Option< - unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, - >, - arg: *mut ::std::os::raw::c_void, - nonblock: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_dispatch3( - p: *mut hts_tpool, - q: *mut hts_tpool_process, - exec_func: ::std::option::Option< - unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, - >, - arg: *mut ::std::os::raw::c_void, - job_cleanup: ::std::option::Option, - result_cleanup: ::std::option::Option< - unsafe extern "C" fn(data: *mut ::std::os::raw::c_void), - >, - nonblock: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_wake_dispatch(q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_flush(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; -} -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; -} -extern "C" { - pub fn hts_tpool_process_qsize(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_destroy(p: *mut hts_tpool); -} -extern "C" { - pub fn hts_tpool_kill(p: *mut hts_tpool); -} -extern "C" { - pub fn hts_tpool_next_result(q: *mut hts_tpool_process) -> *mut hts_tpool_result; -} -extern "C" { - pub fn hts_tpool_next_result_wait(q: *mut hts_tpool_process) -> *mut hts_tpool_result; -} -extern "C" { - pub fn hts_tpool_delete_result(r: *mut hts_tpool_result, free_data: ::std::os::raw::c_int); -} -extern "C" { - pub fn hts_tpool_result_data(r: *mut hts_tpool_result) -> *mut ::std::os::raw::c_void; -} -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; -} -extern "C" { - pub fn hts_tpool_process_destroy(q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_empty(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_process_len(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_process_sz(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_tpool_process_shutdown(q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_attach(p: *mut hts_tpool, q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_detach(p: *mut hts_tpool, q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_ref_incr(q: *mut hts_tpool_process); -} -extern "C" { - pub fn hts_tpool_process_ref_decr(q: *mut hts_tpool_process); -} extern "C" { #[link_name = "\u{1}_wrap_kbs_init2"] pub fn kbs_init2(ni: size_t, fill: ::std::os::raw::c_int) -> *mut kbitset_t; From c68d548f4cd18ded2c08d2876d6251dfc3fba73d Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Tue, 10 Nov 2020 06:15:50 +1100 Subject: [PATCH 22/26] Revert OSX bindings generation --- hts-sys/osx_prebuilt_bindings.rs | 294 ++++++++++++++++++++++++++++++- 1 file changed, 290 insertions(+), 4 deletions(-) diff --git a/hts-sys/osx_prebuilt_bindings.rs b/hts-sys/osx_prebuilt_bindings.rs index c0dbeffca..d0521c138 100644 --- a/hts-sys/osx_prebuilt_bindings.rs +++ b/hts-sys/osx_prebuilt_bindings.rs @@ -344,6 +344,7 @@ pub const __MAC_10_14_1: u32 = 101401; pub const __MAC_10_14_4: u32 = 101404; 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 __IPHONE_2_0: u32 = 20000; pub const __IPHONE_2_1: u32 = 20100; pub const __IPHONE_2_2: u32 = 20200; @@ -385,6 +386,10 @@ pub const __IPHONE_12_3: u32 = 120300; 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 __TVOS_9_0: u32 = 90000; pub const __TVOS_9_1: u32 = 90100; pub const __TVOS_9_2: u32 = 90200; @@ -402,7 +407,9 @@ pub const __TVOS_12_1: u32 = 120100; pub const __TVOS_12_2: u32 = 120200; pub const __TVOS_12_3: u32 = 120300; pub const __TVOS_13_0: u32 = 130000; -pub const __TVOS_13_1: u32 = 130100; +pub const __TVOS_13_2: u32 = 130200; +pub const __TVOS_13_3: u32 = 130300; +pub const __TVOS_13_4: u32 = 130400; pub const __WATCHOS_1_0: u32 = 10000; pub const __WATCHOS_2_0: u32 = 20000; pub const __WATCHOS_2_1: u32 = 20100; @@ -419,7 +426,8 @@ pub const __WATCHOS_5_0: u32 = 50000; pub const __WATCHOS_5_1: u32 = 50100; pub const __WATCHOS_5_2: u32 = 50200; pub const __WATCHOS_6_0: u32 = 60000; -pub const __WATCHOS_6_0_1: u32 = 60001; +pub const __WATCHOS_6_1: u32 = 60100; +pub const __WATCHOS_6_2: u32 = 60200; pub const __DRIVERKIT_19_0: u32 = 190000; pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 101500; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; @@ -3238,7 +3246,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub static mut seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; + pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; } extern "C" { pub static mut seq_nt16_str: [::std::os::raw::c_char; 0usize]; @@ -14553,6 +14561,13 @@ fn bindgen_test_layout_fd_set() { ) ); } +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; @@ -16421,7 +16436,7 @@ fn bindgen_test_layout_sam_hdr_t() { } pub type bam_hdr_t = sam_hdr_t; extern "C" { - pub static mut bam_cigar_table: [i8; 256usize]; + pub static bam_cigar_table: [i8; 256usize]; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19408,6 +19423,277 @@ fn bindgen_test_layout_kbitset_iter_t() { ) ); } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __faidx_t { + _unused: [u8; 0], +} +pub type faidx_t = __faidx_t; +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 = u32; +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; +} +extern "C" { + pub fn fai_build(fn_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +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 = u32; +extern "C" { + pub fn fai_load3( + fn_: *const ::std::os::raw::c_char, + fnfai: *const ::std::os::raw::c_char, + fngzi: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut faidx_t; +} +extern "C" { + pub fn fai_load(fn_: *const ::std::os::raw::c_char) -> *mut faidx_t; +} +extern "C" { + pub fn fai_load3_format( + fn_: *const ::std::os::raw::c_char, + fnfai: *const ::std::os::raw::c_char, + fngzi: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + format: fai_format_options, + ) -> *mut faidx_t; +} +extern "C" { + pub fn fai_load_format( + fn_: *const ::std::os::raw::c_char, + format: fai_format_options, + ) -> *mut faidx_t; +} +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; +} +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; +} +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; +} +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; +} +extern "C" { + pub fn faidx_fetch_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn faidx_fetch_seq( + fai: *const faidx_t, + c_name: *const ::std::os::raw::c_char, + p_beg_i: ::std::os::raw::c_int, + p_end_i: ::std::os::raw::c_int, + len: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn faidx_fetch_seq64( + fai: *const faidx_t, + c_name: *const ::std::os::raw::c_char, + p_beg_i: hts_pos_t, + p_end_i: hts_pos_t, + len: *mut hts_pos_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn faidx_fetch_qual( + fai: *const faidx_t, + c_name: *const ::std::os::raw::c_char, + p_beg_i: ::std::os::raw::c_int, + p_end_i: ::std::os::raw::c_int, + len: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn faidx_fetch_qual64( + fai: *const faidx_t, + c_name: *const ::std::os::raw::c_char, + p_beg_i: hts_pos_t, + p_end_i: hts_pos_t, + len: *mut hts_pos_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn faidx_has_seq( + fai: *const faidx_t, + seq: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn faidx_nseq(fai: *const faidx_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn faidx_iseq( + fai: *const faidx_t, + i: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn faidx_seq_len( + fai: *const faidx_t, + seq: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fai_parse_region( + fai: *const faidx_t, + s: *const ::std::os::raw::c_char, + tid: *mut ::std::os::raw::c_int, + beg: *mut hts_pos_t, + end: *mut hts_pos_t, + flags: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn fai_set_cache_size(fai: *mut faidx_t, cache_size: ::std::os::raw::c_int); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_tpool_process { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_tpool_result { + _unused: [u8; 0], +} +extern "C" { + pub fn hts_tpool_init(n: ::std::os::raw::c_int) -> *mut hts_tpool; +} +extern "C" { + pub fn hts_tpool_size(p: *mut hts_tpool) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_dispatch( + p: *mut hts_tpool, + q: *mut hts_tpool_process, + func: ::std::option::Option< + unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_dispatch2( + p: *mut hts_tpool, + q: *mut hts_tpool_process, + func: ::std::option::Option< + unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + arg: *mut ::std::os::raw::c_void, + nonblock: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_dispatch3( + p: *mut hts_tpool, + q: *mut hts_tpool_process, + exec_func: ::std::option::Option< + unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, + >, + arg: *mut ::std::os::raw::c_void, + job_cleanup: ::std::option::Option, + result_cleanup: ::std::option::Option< + unsafe extern "C" fn(data: *mut ::std::os::raw::c_void), + >, + nonblock: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_wake_dispatch(q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_flush(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} +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; +} +extern "C" { + pub fn hts_tpool_process_qsize(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_destroy(p: *mut hts_tpool); +} +extern "C" { + pub fn hts_tpool_kill(p: *mut hts_tpool); +} +extern "C" { + pub fn hts_tpool_next_result(q: *mut hts_tpool_process) -> *mut hts_tpool_result; +} +extern "C" { + pub fn hts_tpool_next_result_wait(q: *mut hts_tpool_process) -> *mut hts_tpool_result; +} +extern "C" { + pub fn hts_tpool_delete_result(r: *mut hts_tpool_result, free_data: ::std::os::raw::c_int); +} +extern "C" { + pub fn hts_tpool_result_data(r: *mut hts_tpool_result) -> *mut ::std::os::raw::c_void; +} +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; +} +extern "C" { + pub fn hts_tpool_process_destroy(q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_empty(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_process_len(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_process_sz(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_tpool_process_shutdown(q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_attach(p: *mut hts_tpool, q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_detach(p: *mut hts_tpool, q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_ref_incr(q: *mut hts_tpool_process); +} +extern "C" { + pub fn hts_tpool_process_ref_decr(q: *mut hts_tpool_process); +} extern "C" { #[link_name = "\u{1}_wrap_kbs_init2"] pub fn kbs_init2(ni: size_t, fill: ::std::os::raw::c_int) -> *mut kbitset_t; From 949f23d99d479e8396a275d9f94b607e191903f5 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Thu, 12 Nov 2020 17:04:36 +1100 Subject: [PATCH 23/26] Regenerate OSX bindings, thanks @pmarks --- hts-sys/osx_prebuilt_bindings.rs | 17145 ++++++++++++++--------------- 1 file changed, 8565 insertions(+), 8580 deletions(-) diff --git a/hts-sys/osx_prebuilt_bindings.rs b/hts-sys/osx_prebuilt_bindings.rs index d0521c138..1c9b53774 100644 --- a/hts-sys/osx_prebuilt_bindings.rs +++ b/hts-sys/osx_prebuilt_bindings.rs @@ -388,8 +388,6 @@ 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 __TVOS_9_0: u32 = 90000; pub const __TVOS_9_1: u32 = 90100; pub const __TVOS_9_2: u32 = 90200; @@ -433,6 +431,208 @@ pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 101500; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; pub const __DARWIN_WCHAR_MIN: i32 = -2147483648; pub const _FORTIFY_SOURCE: u32 = 2; +pub const __DARWIN_NSIG: u32 = 32; +pub const NSIG: u32 = 32; +pub const _I386_SIGNAL_H_: 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 FP_PREC_24B: u32 = 0; +pub const FP_PREC_53B: u32 = 2; +pub const FP_PREC_64B: u32 = 3; +pub const FP_RND_NEAR: u32 = 0; +pub const FP_RND_DOWN: u32 = 1; +pub const FP_RND_UP: u32 = 2; +pub const FP_CHOP: u32 = 3; +pub const FP_STATE_BYTES: u32 = 512; +pub const SIGEV_NONE: u32 = 0; +pub const SIGEV_SIGNAL: u32 = 1; +pub const SIGEV_THREAD: u32 = 3; +pub const ILL_NOOP: u32 = 0; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLTRP: u32 = 2; +pub const ILL_PRVOPC: u32 = 3; +pub const ILL_ILLOPN: u32 = 4; +pub const ILL_ILLADR: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const FPE_NOOP: u32 = 0; +pub const FPE_FLTDIV: u32 = 1; +pub const FPE_FLTOVF: u32 = 2; +pub const FPE_FLTUND: u32 = 3; +pub const FPE_FLTRES: u32 = 4; +pub const FPE_FLTINV: u32 = 5; +pub const FPE_FLTSUB: u32 = 6; +pub const FPE_INTDIV: u32 = 7; +pub const FPE_INTOVF: u32 = 8; +pub const SEGV_NOOP: u32 = 0; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const BUS_NOOP: u32 = 0; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const CLD_NOOP: u32 = 0; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const SA_ONSTACK: u32 = 1; +pub const SA_RESTART: u32 = 2; +pub const SA_RESETHAND: u32 = 4; +pub const SA_NOCLDSTOP: u32 = 8; +pub const SA_NODEFER: u32 = 16; +pub const SA_NOCLDWAIT: u32 = 32; +pub const SA_SIGINFO: u32 = 64; +pub const SA_USERTRAMP: u32 = 256; +pub const SA_64REGSET: u32 = 512; +pub const SA_USERSPACE_MASK: u32 = 127; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 3; +pub const SI_USER: u32 = 65537; +pub const SI_QUEUE: u32 = 65538; +pub const SI_TIMER: u32 = 65539; +pub const SI_ASYNCIO: u32 = 65540; +pub const SI_MESGQ: u32 = 65541; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 4; +pub const MINSIGSTKSZ: u32 = 32768; +pub const SIGSTKSZ: u32 = 131072; +pub const SV_ONSTACK: u32 = 1; +pub const SV_INTERRUPT: u32 = 2; +pub const SV_RESETHAND: u32 = 4; +pub const SV_NODEFER: u32 = 16; +pub const SV_NOCLDSTOP: u32 = 8; +pub const SV_SIGINFO: u32 = 64; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const PRIO_DARWIN_THREAD: u32 = 3; +pub const PRIO_DARWIN_PROCESS: u32 = 4; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_DARWIN_BG: u32 = 4096; +pub const PRIO_DARWIN_NONUI: u32 = 4097; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_INFO_V0: u32 = 0; +pub const RUSAGE_INFO_V1: u32 = 1; +pub const RUSAGE_INFO_V2: u32 = 2; +pub const RUSAGE_INFO_V3: u32 = 3; +pub const RUSAGE_INFO_V4: u32 = 4; +pub const RUSAGE_INFO_CURRENT: u32 = 4; +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_SCOPE_PROCESS: u32 = 0; +pub const IOPOL_SCOPE_THREAD: u32 = 1; +pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2; +pub const IOPOL_DEFAULT: u32 = 0; +pub const IOPOL_IMPORTANT: u32 = 1; +pub const IOPOL_PASSIVE: u32 = 2; +pub const IOPOL_THROTTLE: u32 = 3; +pub const IOPOL_UTILITY: u32 = 4; +pub const IOPOL_STANDARD: u32 = 5; +pub const IOPOL_APPLICATION: u32 = 5; +pub const IOPOL_NORMAL: u32 = 1; +pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0; +pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1; +pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2; +pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0; +pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WCOREFLAG: u32 = 128; +pub const _WSTOPPED: u32 = 127; +pub const WEXITED: u32 = 4; +pub const WSTOPPED: u32 = 8; +pub const WCONTINUED: u32 = 16; +pub const WNOWAIT: u32 = 32; +pub const WAIT_ANY: i32 = -1; +pub const WAIT_MYPGRP: u32 = 0; +pub const _QUAD_HIGHWORD: u32 = 1; +pub const _QUAD_LOWWORD: u32 = 0; +pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234; +pub const __DARWIN_BIG_ENDIAN: u32 = 4321; +pub const __DARWIN_PDP_ENDIAN: u32 = 3412; +pub const __DARWIN_BYTE_ORDER: u32 = 1234; +pub const LITTLE_ENDIAN: u32 = 1234; +pub const BIG_ENDIAN: u32 = 4321; +pub const PDP_ENDIAN: u32 = 3412; +pub const BYTE_ORDER: u32 = 1234; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const _USE_FORTIFY_LEVEL: u32 = 2; +pub const __HAS_FIXED_CHK_PROTOTYPES: u32 = 1; +pub const __GNUC_VA_LIST: u32 = 1; pub const RENAME_SECLUDE: u32 = 1; pub const RENAME_SWAP: u32 = 2; pub const RENAME_EXCL: u32 = 4; @@ -466,34 +666,6 @@ pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; pub const L_ctermid: u32 = 1024; -pub const _USE_FORTIFY_LEVEL: u32 = 2; -pub const HTS_PATH_SEPARATOR_CHAR: u8 = 58u8; -pub const HTS_PATH_SEPARATOR_STR: &'static [u8; 2usize] = b":\0"; -pub const HTS_RESIZE_CLEAR: u32 = 1; -pub const HTS_IDX_DELIM: &'static [u8; 8usize] = b"##idx##\0"; -pub const HTS_VERSION: u32 = 101002; -pub const HTS_IDX_NOCOOR: i32 = -2; -pub const HTS_IDX_START: i32 = -3; -pub const HTS_IDX_REST: i32 = -4; -pub const HTS_IDX_NONE: i32 = -5; -pub const HTS_FMT_CSI: u32 = 0; -pub const HTS_FMT_BAI: u32 = 1; -pub const HTS_FMT_TBI: u32 = 2; -pub const HTS_FMT_CRAI: u32 = 3; -pub const HTS_POS_MIN: i64 = -9223372036854775808; -pub const PRIhts_pos: &'static [u8; 4usize] = b"lld\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; -pub const HTS_PARSE_ONE_COORD: u32 = 2; -pub const HTS_PARSE_LIST: u32 = 4; -pub const FT_UNKN: u32 = 0; -pub const FT_GZ: u32 = 1; -pub const FT_VCF: u32 = 2; -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 __DARWIN_CLK_TCK: u32 = 100; pub const CHAR_BIT: u32 = 8; pub const MB_LEN_MAX: u32 = 6; @@ -717,212 +889,39 @@ pub const ENOTRECOVERABLE: u32 = 104; pub const EOWNERDEAD: u32 = 105; pub const EQFULL: u32 = 106; pub const ELAST: u32 = 106; -pub const __DARWIN_NSIG: u32 = 32; -pub const NSIG: u32 = 32; -pub const _I386_SIGNAL_H_: 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 FP_PREC_24B: u32 = 0; -pub const FP_PREC_53B: u32 = 2; -pub const FP_PREC_64B: u32 = 3; -pub const FP_RND_NEAR: u32 = 0; -pub const FP_RND_DOWN: u32 = 1; -pub const FP_RND_UP: u32 = 2; -pub const FP_CHOP: u32 = 3; -pub const FP_STATE_BYTES: u32 = 512; -pub const SIGEV_NONE: u32 = 0; -pub const SIGEV_SIGNAL: u32 = 1; -pub const SIGEV_THREAD: u32 = 3; -pub const ILL_NOOP: u32 = 0; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLTRP: u32 = 2; -pub const ILL_PRVOPC: u32 = 3; -pub const ILL_ILLOPN: u32 = 4; -pub const ILL_ILLADR: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const FPE_NOOP: u32 = 0; -pub const FPE_FLTDIV: u32 = 1; -pub const FPE_FLTOVF: u32 = 2; -pub const FPE_FLTUND: u32 = 3; -pub const FPE_FLTRES: u32 = 4; -pub const FPE_FLTINV: u32 = 5; -pub const FPE_FLTSUB: u32 = 6; -pub const FPE_INTDIV: u32 = 7; -pub const FPE_INTOVF: u32 = 8; -pub const SEGV_NOOP: u32 = 0; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const BUS_NOOP: u32 = 0; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const CLD_NOOP: u32 = 0; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const SA_ONSTACK: u32 = 1; -pub const SA_RESTART: u32 = 2; -pub const SA_RESETHAND: u32 = 4; -pub const SA_NOCLDSTOP: u32 = 8; -pub const SA_NODEFER: u32 = 16; -pub const SA_NOCLDWAIT: u32 = 32; -pub const SA_SIGINFO: u32 = 64; -pub const SA_USERTRAMP: u32 = 256; -pub const SA_64REGSET: u32 = 512; -pub const SA_USERSPACE_MASK: u32 = 127; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SI_USER: u32 = 65537; -pub const SI_QUEUE: u32 = 65538; -pub const SI_TIMER: u32 = 65539; -pub const SI_ASYNCIO: u32 = 65540; -pub const SI_MESGQ: u32 = 65541; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 4; -pub const MINSIGSTKSZ: u32 = 32768; -pub const SIGSTKSZ: u32 = 131072; -pub const SV_ONSTACK: u32 = 1; -pub const SV_INTERRUPT: u32 = 2; -pub const SV_RESETHAND: u32 = 4; -pub const SV_NODEFER: u32 = 16; -pub const SV_NOCLDSTOP: u32 = 8; -pub const SV_SIGINFO: u32 = 64; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const PRIO_DARWIN_THREAD: u32 = 3; -pub const PRIO_DARWIN_PROCESS: u32 = 4; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_DARWIN_BG: u32 = 4096; -pub const PRIO_DARWIN_NONUI: u32 = 4097; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_INFO_V0: u32 = 0; -pub const RUSAGE_INFO_V1: u32 = 1; -pub const RUSAGE_INFO_V2: u32 = 2; -pub const RUSAGE_INFO_V3: u32 = 3; -pub const RUSAGE_INFO_V4: u32 = 4; -pub const RUSAGE_INFO_CURRENT: u32 = 4; -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_SCOPE_PROCESS: u32 = 0; -pub const IOPOL_SCOPE_THREAD: u32 = 1; -pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2; -pub const IOPOL_DEFAULT: u32 = 0; -pub const IOPOL_IMPORTANT: u32 = 1; -pub const IOPOL_PASSIVE: u32 = 2; -pub const IOPOL_THROTTLE: u32 = 3; -pub const IOPOL_UTILITY: u32 = 4; -pub const IOPOL_STANDARD: u32 = 5; -pub const IOPOL_APPLICATION: u32 = 5; -pub const IOPOL_NORMAL: u32 = 1; -pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0; -pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1; -pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0; -pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1; -pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2; -pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0; -pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WCOREFLAG: u32 = 128; -pub const _WSTOPPED: u32 = 127; -pub const WEXITED: u32 = 4; -pub const WSTOPPED: u32 = 8; -pub const WCONTINUED: u32 = 16; -pub const WNOWAIT: u32 = 32; -pub const WAIT_ANY: i32 = -1; -pub const WAIT_MYPGRP: u32 = 0; -pub const _QUAD_HIGHWORD: u32 = 1; -pub const _QUAD_LOWWORD: u32 = 0; -pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234; -pub const __DARWIN_BIG_ENDIAN: u32 = 4321; -pub const __DARWIN_PDP_ENDIAN: u32 = 3412; -pub const __DARWIN_BYTE_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const __HAS_FIXED_CHK_PROTOTYPES: u32 = 1; -pub const __GNUC_VA_LIST: u32 = 1; 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 HAVE___BUILTIN_CLZ: u32 = 1; +pub const HTS_PATH_SEPARATOR_CHAR: u8 = 58u8; +pub const HTS_PATH_SEPARATOR_STR: &'static [u8; 2usize] = b":\0"; +pub const HTS_RESIZE_CLEAR: u32 = 1; +pub const HTS_IDX_DELIM: &'static [u8; 8usize] = b"##idx##\0"; +pub const HTS_VERSION: u32 = 101190; +pub const HTS_IDX_NOCOOR: i32 = -2; +pub const HTS_IDX_START: i32 = -3; +pub const HTS_IDX_REST: i32 = -4; +pub const HTS_IDX_NONE: i32 = -5; +pub const HTS_FMT_CSI: u32 = 0; +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: &'static [u8; 4usize] = b"lld\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; +pub const HTS_PARSE_ONE_COORD: u32 = 2; +pub const HTS_PARSE_LIST: u32 = 4; +pub const FT_UNKN: u32 = 0; +pub const FT_GZ: u32 = 1; +pub const FT_VCF: u32 = 2; +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 = 1; pub const BCF_HL_FLT: u32 = 0; pub const BCF_HL_INFO: u32 = 1; @@ -1693,4432 +1692,3701 @@ extern "C" { __base: ::std::os::raw::c_int, ) -> uintmax_t; } -pub type va_list = __darwin_va_list; +pub const htsLogLevel_HTS_LOG_OFF: htsLogLevel = 0; +pub const htsLogLevel_HTS_LOG_ERROR: htsLogLevel = 1; +pub const htsLogLevel_HTS_LOG_WARNING: htsLogLevel = 3; +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 = u32; 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; + pub fn hts_set_log_level(level: htsLogLevel); } 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; + pub fn hts_get_log_level() -> htsLogLevel; } extern "C" { - pub fn renameatx_np( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: *const ::std::os::raw::c_char, - arg5: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + pub static mut hts_verbose: ::std::os::raw::c_int; } -pub type fpos_t = __darwin_off_t; +extern "C" { + pub fn hts_log( + severity: htsLogLevel, + context: *const ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ); +} +pub const idtype_t_P_ALL: idtype_t = 0; +pub const idtype_t_P_PID: idtype_t = 1; +pub const idtype_t_P_PGID: idtype_t = 2; +pub type idtype_t = u32; +pub type pid_t = __darwin_pid_t; +pub type id_t = __darwin_id_t; +pub type sig_atomic_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __sbuf { - pub _base: *mut ::std::os::raw::c_uchar, - pub _size: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___sbuf() { - assert_eq!( - ::std::mem::size_of::<__sbuf>(), - 16usize, - concat!("Size of: ", stringify!(__sbuf)) - ); - assert_eq!( - ::std::mem::align_of::<__sbuf>(), - 8usize, - concat!("Alignment of ", stringify!(__sbuf)) +pub struct __darwin_i386_thread_state { + pub __eax: ::std::os::raw::c_uint, + pub __ebx: ::std::os::raw::c_uint, + pub __ecx: ::std::os::raw::c_uint, + pub __edx: ::std::os::raw::c_uint, + pub __edi: ::std::os::raw::c_uint, + pub __esi: ::std::os::raw::c_uint, + pub __ebp: ::std::os::raw::c_uint, + pub __esp: ::std::os::raw::c_uint, + pub __ss: ::std::os::raw::c_uint, + pub __eflags: ::std::os::raw::c_uint, + pub __eip: ::std::os::raw::c_uint, + pub __cs: ::std::os::raw::c_uint, + pub __ds: ::std::os::raw::c_uint, + pub __es: ::std::os::raw::c_uint, + pub __fs: ::std::os::raw::c_uint, + pub __gs: ::std::os::raw::c_uint, +} +#[test] +fn bindgen_test_layout___darwin_i386_thread_state() { + assert_eq!( + ::std::mem::size_of::<__darwin_i386_thread_state>(), + 64usize, + concat!("Size of: ", stringify!(__darwin_i386_thread_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sbuf>()))._base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__sbuf), - "::", - stringify!(_base) - ) + ::std::mem::align_of::<__darwin_i386_thread_state>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_i386_thread_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sbuf>()))._size as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eax as *const _ as usize + }, + 0usize, concat!( "Offset of field: ", - stringify!(__sbuf), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_size) + stringify!(__eax) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sFILEX { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sFILE { - pub _p: *mut ::std::os::raw::c_uchar, - pub _r: ::std::os::raw::c_int, - pub _w: ::std::os::raw::c_int, - pub _flags: ::std::os::raw::c_short, - pub _file: ::std::os::raw::c_short, - pub _bf: __sbuf, - pub _lbfsize: ::std::os::raw::c_int, - pub _cookie: *mut ::std::os::raw::c_void, - pub _close: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub _read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub _seek: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: fpos_t, - arg3: ::std::os::raw::c_int, - ) -> fpos_t, - >, - pub _write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub _ub: __sbuf, - pub _extra: *mut __sFILEX, - pub _ur: ::std::os::raw::c_int, - pub _ubuf: [::std::os::raw::c_uchar; 3usize], - pub _nbuf: [::std::os::raw::c_uchar; 1usize], - pub _lb: __sbuf, - pub _blksize: ::std::os::raw::c_int, - pub _offset: fpos_t, -} -#[test] -fn bindgen_test_layout___sFILE() { - assert_eq!( - ::std::mem::size_of::<__sFILE>(), - 152usize, - concat!("Size of: ", stringify!(__sFILE)) - ); - assert_eq!( - ::std::mem::align_of::<__sFILE>(), - 8usize, - concat!("Alignment of ", stringify!(__sFILE)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._p as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebx as *const _ as usize + }, + 4usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_p) + stringify!(__ebx) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._r as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ecx as *const _ as usize + }, 8usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_r) + stringify!(__ecx) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._w as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edx as *const _ as usize + }, 12usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_w) + stringify!(__edx) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._flags as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edi as *const _ as usize + }, 16usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_flags) + stringify!(__edi) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._file as *const _ as usize }, - 18usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esi as *const _ as usize + }, + 20usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_file) + stringify!(__esi) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._bf as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebp as *const _ as usize + }, 24usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_bf) + stringify!(__ebp) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._lbfsize as *const _ as usize }, - 40usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esp as *const _ as usize + }, + 28usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_lbfsize) + stringify!(__esp) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._cookie as *const _ as usize }, - 48usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ss as *const _ as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_cookie) + stringify!(__ss) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._close as *const _ as usize }, - 56usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eflags as *const _ as usize + }, + 36usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_close) + stringify!(__eflags) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._read as *const _ as usize }, - 64usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eip as *const _ as usize + }, + 40usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_read) + stringify!(__eip) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._seek as *const _ as usize }, - 72usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__cs as *const _ as usize }, + 44usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_seek) + stringify!(__cs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._write as *const _ as usize }, - 80usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ds as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_write) + stringify!(__ds) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._ub as *const _ as usize }, - 88usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__es as *const _ as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_ub) + stringify!(__es) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._extra as *const _ as usize }, - 104usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__fs as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_extra) + stringify!(__fs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._ur as *const _ as usize }, - 112usize, + unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__gs as *const _ as usize }, + 60usize, concat!( "Offset of field: ", - stringify!(__sFILE), + stringify!(__darwin_i386_thread_state), "::", - stringify!(_ur) + stringify!(__gs) ) ); +} +#[repr(C)] +#[repr(align(2))] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_fp_control { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, +} +#[test] +fn bindgen_test_layout___darwin_fp_control() { assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._ubuf as *const _ as usize }, - 116usize, - concat!( - "Offset of field: ", - stringify!(__sFILE), - "::", - stringify!(_ubuf) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._nbuf as *const _ as usize }, - 119usize, - concat!( - "Offset of field: ", - stringify!(__sFILE), - "::", - stringify!(_nbuf) - ) + ::std::mem::size_of::<__darwin_fp_control>(), + 2usize, + concat!("Size of: ", stringify!(__darwin_fp_control)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._lb as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(__sFILE), - "::", - stringify!(_lb) - ) + ::std::mem::align_of::<__darwin_fp_control>(), + 2usize, + concat!("Alignment of ", stringify!(__darwin_fp_control)) ); +} +impl __darwin_fp_control { + #[inline] + pub fn __invalid(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } + } + #[inline] + pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn __denorm(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } + } + #[inline] + pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } + } + #[inline] + pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } + } + #[inline] + pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn __undfl(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } + } + #[inline] + pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn __precis(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } + } + #[inline] + pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn __pc(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) } + } + #[inline] + pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 2u8, val as u64) + } + } + #[inline] + pub fn __rc(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) } + } + #[inline] + pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 2u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + __invalid: ::std::os::raw::c_ushort, + __denorm: ::std::os::raw::c_ushort, + __zdiv: ::std::os::raw::c_ushort, + __ovrfl: ::std::os::raw::c_ushort, + __undfl: ::std::os::raw::c_ushort, + __precis: ::std::os::raw::c_ushort, + __pc: ::std::os::raw::c_ushort, + __rc: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; + __invalid as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; + __denorm as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; + __zdiv as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; + __ovrfl as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; + __undfl as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; + __precis as u64 + }); + __bindgen_bitfield_unit.set(8usize, 2u8, { + let __pc: u16 = unsafe { ::std::mem::transmute(__pc) }; + __pc as u64 + }); + __bindgen_bitfield_unit.set(10usize, 2u8, { + let __rc: u16 = unsafe { ::std::mem::transmute(__rc) }; + __rc as u64 + }); + __bindgen_bitfield_unit + } +} +pub type __darwin_fp_control_t = __darwin_fp_control; +#[repr(C)] +#[repr(align(2))] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_fp_status { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, +} +#[test] +fn bindgen_test_layout___darwin_fp_status() { assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._blksize as *const _ as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(__sFILE), - "::", - stringify!(_blksize) - ) + ::std::mem::size_of::<__darwin_fp_status>(), + 2usize, + concat!("Size of: ", stringify!(__darwin_fp_status)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sFILE>()))._offset as *const _ as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(__sFILE), - "::", - stringify!(_offset) - ) + ::std::mem::align_of::<__darwin_fp_status>(), + 2usize, + concat!("Alignment of ", stringify!(__darwin_fp_status)) ); } -pub type FILE = __sFILE; -extern "C" { - pub static mut __stdinp: *mut FILE; -} -extern "C" { - pub static mut __stdoutp: *mut FILE; -} -extern "C" { - pub static mut __stderrp: *mut FILE; -} -extern "C" { - pub fn clearerr(arg1: *mut FILE); -} -extern "C" { - pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fgets( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: *mut FILE, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn fopen( - __filename: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn fprintf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fread( - __ptr: *mut ::std::os::raw::c_void, - __size: ::std::os::raw::c_ulong, - __nitems: ::std::os::raw::c_ulong, - __stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn freopen( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: *mut FILE, - ) -> *mut FILE; +impl __darwin_fp_status { + #[inline] + pub fn __invalid(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } + } + #[inline] + pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn __denorm(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } + } + #[inline] + pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } + } + #[inline] + pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } + } + #[inline] + pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn __undfl(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } + } + #[inline] + pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn __precis(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } + } + #[inline] + pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn __stkflt(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) } + } + #[inline] + pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn __errsumm(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } + } + #[inline] + pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn __c0(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } + } + #[inline] + pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn __c1(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } + } + #[inline] + pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn __c2(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } + } + #[inline] + pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn __tos(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) } + } + #[inline] + pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 3u8, val as u64) + } + } + #[inline] + pub fn __c3(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn __busy(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + __invalid: ::std::os::raw::c_ushort, + __denorm: ::std::os::raw::c_ushort, + __zdiv: ::std::os::raw::c_ushort, + __ovrfl: ::std::os::raw::c_ushort, + __undfl: ::std::os::raw::c_ushort, + __precis: ::std::os::raw::c_ushort, + __stkflt: ::std::os::raw::c_ushort, + __errsumm: ::std::os::raw::c_ushort, + __c0: ::std::os::raw::c_ushort, + __c1: ::std::os::raw::c_ushort, + __c2: ::std::os::raw::c_ushort, + __tos: ::std::os::raw::c_ushort, + __c3: ::std::os::raw::c_ushort, + __busy: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; + __invalid as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; + __denorm as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; + __zdiv as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; + __ovrfl as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; + __undfl as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; + __precis as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) }; + __stkflt as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) }; + __errsumm as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let __c0: u16 = unsafe { ::std::mem::transmute(__c0) }; + __c0 as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let __c1: u16 = unsafe { ::std::mem::transmute(__c1) }; + __c1 as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let __c2: u16 = unsafe { ::std::mem::transmute(__c2) }; + __c2 as u64 + }); + __bindgen_bitfield_unit.set(11usize, 3u8, { + let __tos: u16 = unsafe { ::std::mem::transmute(__tos) }; + __tos as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let __c3: u16 = unsafe { ::std::mem::transmute(__c3) }; + __c3 as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let __busy: u16 = unsafe { ::std::mem::transmute(__busy) }; + __busy as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - pub fn fscanf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; +pub type __darwin_fp_status_t = __darwin_fp_status; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_mmst_reg { + pub __mmst_reg: [::std::os::raw::c_char; 10usize], + pub __mmst_rsrv: [::std::os::raw::c_char; 6usize], } -extern "C" { - pub fn fseek( - arg1: *mut FILE, - arg2: ::std::os::raw::c_long, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn fwrite( - __ptr: *const ::std::os::raw::c_void, - __size: ::std::os::raw::c_ulong, - __nitems: ::std::os::raw::c_ulong, - __stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getchar() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn perror(arg1: *const ::std::os::raw::c_char); -} -extern "C" { - pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn rename( - __old: *const ::std::os::raw::c_char, - __new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout___darwin_mmst_reg() { + assert_eq!( + ::std::mem::size_of::<__darwin_mmst_reg>(), + 16usize, + concat!("Size of: ", stringify!(__darwin_mmst_reg)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mmst_reg>(), + 1usize, + concat!("Alignment of ", stringify!(__darwin_mmst_reg)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_reg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mmst_reg), + "::", + stringify!(__mmst_reg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_rsrv as *const _ as usize }, + 10usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mmst_reg), + "::", + stringify!(__mmst_rsrv) + ) + ); } -extern "C" { - pub fn rewind(arg1: *mut FILE); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_xmm_reg { + pub __xmm_reg: [::std::os::raw::c_char; 16usize], } -extern "C" { - pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout___darwin_xmm_reg() { + assert_eq!( + ::std::mem::size_of::<__darwin_xmm_reg>(), + 16usize, + concat!("Size of: ", stringify!(__darwin_xmm_reg)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_xmm_reg>(), + 1usize, + concat!("Alignment of ", stringify!(__darwin_xmm_reg)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_xmm_reg>())).__xmm_reg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_xmm_reg), + "::", + stringify!(__xmm_reg) + ) + ); } -extern "C" { - pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_ymm_reg { + pub __ymm_reg: [::std::os::raw::c_char; 32usize], } -extern "C" { - pub fn setvbuf( - arg1: *mut FILE, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: size_t, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout___darwin_ymm_reg() { + assert_eq!( + ::std::mem::size_of::<__darwin_ymm_reg>(), + 32usize, + concat!("Size of: ", stringify!(__darwin_ymm_reg)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_ymm_reg>(), + 1usize, + concat!("Alignment of ", stringify!(__darwin_ymm_reg)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_ymm_reg>())).__ymm_reg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_ymm_reg), + "::", + stringify!(__ymm_reg) + ) + ); } -extern "C" { - pub fn sprintf( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_zmm_reg { + pub __zmm_reg: [::std::os::raw::c_char; 64usize], } -extern "C" { - pub fn sscanf( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout___darwin_zmm_reg() { + assert_eq!( + ::std::mem::size_of::<__darwin_zmm_reg>(), + 64usize, + concat!("Size of: ", stringify!(__darwin_zmm_reg)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_zmm_reg>(), + 1usize, + concat!("Alignment of ", stringify!(__darwin_zmm_reg)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_zmm_reg>())).__zmm_reg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_zmm_reg), + "::", + stringify!(__zmm_reg) + ) + ); } -extern "C" { - pub fn tmpfile() -> *mut FILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_opmask_reg { + pub __opmask_reg: [::std::os::raw::c_char; 8usize], } -extern "C" { - pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout___darwin_opmask_reg() { + assert_eq!( + ::std::mem::size_of::<__darwin_opmask_reg>(), + 8usize, + concat!("Size of: ", stringify!(__darwin_opmask_reg)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_opmask_reg>(), + 1usize, + concat!("Alignment of ", stringify!(__darwin_opmask_reg)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_opmask_reg>())).__opmask_reg as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_opmask_reg), + "::", + stringify!(__opmask_reg) + ) + ); } -extern "C" { - pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_i386_float_state { + pub __fpu_reserved: [::std::os::raw::c_int; 2usize], + pub __fpu_fcw: __darwin_fp_control, + pub __fpu_fsw: __darwin_fp_status, + pub __fpu_ftw: __uint8_t, + pub __fpu_rsrv1: __uint8_t, + pub __fpu_fop: __uint16_t, + pub __fpu_ip: __uint32_t, + pub __fpu_cs: __uint16_t, + pub __fpu_rsrv2: __uint16_t, + pub __fpu_dp: __uint32_t, + pub __fpu_ds: __uint16_t, + pub __fpu_rsrv3: __uint16_t, + pub __fpu_mxcsr: __uint32_t, + pub __fpu_mxcsrmask: __uint32_t, + pub __fpu_stmm0: __darwin_mmst_reg, + pub __fpu_stmm1: __darwin_mmst_reg, + pub __fpu_stmm2: __darwin_mmst_reg, + pub __fpu_stmm3: __darwin_mmst_reg, + pub __fpu_stmm4: __darwin_mmst_reg, + pub __fpu_stmm5: __darwin_mmst_reg, + pub __fpu_stmm6: __darwin_mmst_reg, + pub __fpu_stmm7: __darwin_mmst_reg, + pub __fpu_xmm0: __darwin_xmm_reg, + pub __fpu_xmm1: __darwin_xmm_reg, + pub __fpu_xmm2: __darwin_xmm_reg, + pub __fpu_xmm3: __darwin_xmm_reg, + pub __fpu_xmm4: __darwin_xmm_reg, + pub __fpu_xmm5: __darwin_xmm_reg, + pub __fpu_xmm6: __darwin_xmm_reg, + pub __fpu_xmm7: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], + pub __fpu_reserved1: ::std::os::raw::c_int, } -extern "C" { - pub fn vfprintf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - arg3: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vprintf( - arg1: *const ::std::os::raw::c_char, - arg2: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vsprintf( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; -} -extern "C" { - pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn popen( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __svfscanf( - arg1: *mut FILE, - arg2: *const ::std::os::raw::c_char, - arg3: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn flockfile(arg1: *mut FILE); -} -extern "C" { - pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn funlockfile(arg1: *mut FILE); -} -extern "C" { - pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getchar_unlocked() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn tempnam( - __dir: *const ::std::os::raw::c_char, - __prefix: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -pub type off_t = __darwin_off_t; -extern "C" { - pub fn fseeko( - __stream: *mut FILE, - __offset: off_t, - __whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftello(__stream: *mut FILE) -> off_t; -} -extern "C" { - pub fn snprintf( - __str: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, - __format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vfscanf( - __stream: *mut FILE, - __format: *const ::std::os::raw::c_char, - arg1: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vscanf( - __format: *const ::std::os::raw::c_char, - arg1: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vsnprintf( - __str: *mut ::std::os::raw::c_char, - __size: ::std::os::raw::c_ulong, - __format: *const ::std::os::raw::c_char, - arg1: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vsscanf( - __str: *const ::std::os::raw::c_char, - __format: *const ::std::os::raw::c_char, - arg1: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -pub type ssize_t = __darwin_ssize_t; -extern "C" { - pub fn dprintf( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vdprintf( - arg1: ::std::os::raw::c_int, - arg2: *const ::std::os::raw::c_char, - arg3: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getdelim( - __linep: *mut *mut ::std::os::raw::c_char, - __linecapp: *mut size_t, - __delimiter: ::std::os::raw::c_int, - __stream: *mut FILE, - ) -> ssize_t; -} -extern "C" { - pub fn getline( - __linep: *mut *mut ::std::os::raw::c_char, - __linecapp: *mut size_t, - __stream: *mut FILE, - ) -> ssize_t; -} -extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, - __size: size_t, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn open_memstream( - __bufp: *mut *mut ::std::os::raw::c_char, - __sizep: *mut size_t, - ) -> *mut FILE; -} -extern "C" { - pub static sys_nerr: ::std::os::raw::c_int; -} -extern "C" { - pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub fn asprintf( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn fgetln(arg1: *mut FILE, arg2: *mut size_t) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn fmtcheck( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setbuffer( - arg1: *mut FILE, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, +#[test] +fn bindgen_test_layout___darwin_i386_float_state() { + assert_eq!( + ::std::mem::size_of::<__darwin_i386_float_state>(), + 524usize, + concat!("Size of: ", stringify!(__darwin_i386_float_state)) ); -} -extern "C" { - pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn vasprintf( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn zopen( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut FILE; -} -extern "C" { - pub fn funopen( - arg1: *const ::std::os::raw::c_void, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg3: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg4: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: fpos_t, - arg3: ::std::os::raw::c_int, - ) -> fpos_t, - >, - arg5: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - ) -> *mut FILE; -} -extern "C" { - pub fn __sprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: size_t, - arg4: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __snprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: size_t, - arg3: ::std::os::raw::c_int, - arg4: size_t, - arg5: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __vsprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: size_t, - arg4: *const ::std::os::raw::c_char, - arg5: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __vsnprintf_chk( - arg1: *mut ::std::os::raw::c_char, - arg2: size_t, - arg3: ::std::os::raw::c_int, - arg4: size_t, - arg5: *const ::std::os::raw::c_char, - arg6: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -pub const htsLogLevel_HTS_LOG_OFF: htsLogLevel = 0; -pub const htsLogLevel_HTS_LOG_ERROR: htsLogLevel = 1; -pub const htsLogLevel_HTS_LOG_WARNING: htsLogLevel = 3; -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 = u32; -extern "C" { - pub fn hts_set_log_level(level: htsLogLevel); -} -extern "C" { - pub fn hts_get_log_level() -> htsLogLevel; -} -extern "C" { - pub static mut hts_verbose: ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_log( - severity: htsLogLevel, - context: *const ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cram_fd { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hFILE { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_tpool { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kstring_t { - pub l: size_t, - pub m: size_t, - pub s: *mut ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_kstring_t() { assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(kstring_t)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(kstring_t)) + ::std::mem::align_of::<__darwin_i386_float_state>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_i386_float_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved as *const _ + as usize + }, 0usize, concat!( "Offset of field: ", - stringify!(kstring_t), + stringify!(__darwin_i386_float_state), "::", - stringify!(l) + stringify!(__fpu_reserved) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).m as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fcw as *const _ as usize + }, 8usize, concat!( "Offset of field: ", - stringify!(kstring_t), + stringify!(__darwin_i386_float_state), "::", - stringify!(m) + stringify!(__fpu_fcw) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fsw as *const _ as usize + }, + 10usize, concat!( "Offset of field: ", - stringify!(kstring_t), + stringify!(__darwin_i386_float_state), "::", - stringify!(s) + stringify!(__fpu_fsw) ) ); -} -extern "C" { - pub fn hts_resize_array_( - arg1: size_t, - arg2: size_t, - arg3: size_t, - arg4: *mut ::std::os::raw::c_void, - arg5: *mut *mut ::std::os::raw::c_void, - arg6: ::std::os::raw::c_int, - arg7: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_free(ptr: *mut ::std::os::raw::c_void); -} -pub const htsFormatCategory_unknown_category: htsFormatCategory = 0; -pub const htsFormatCategory_sequence_data: htsFormatCategory = 1; -pub const htsFormatCategory_variant_data: htsFormatCategory = 2; -pub const htsFormatCategory_index_file: htsFormatCategory = 3; -pub const htsFormatCategory_region_list: htsFormatCategory = 4; -pub const htsFormatCategory_category_maximum: htsFormatCategory = 32767; -pub type htsFormatCategory = u32; -pub const htsExactFormat_unknown_format: htsExactFormat = 0; -pub const htsExactFormat_binary_format: htsExactFormat = 1; -pub const htsExactFormat_text_format: htsExactFormat = 2; -pub const htsExactFormat_sam: htsExactFormat = 3; -pub const htsExactFormat_bam: htsExactFormat = 4; -pub const htsExactFormat_bai: htsExactFormat = 5; -pub const htsExactFormat_cram: htsExactFormat = 6; -pub const htsExactFormat_crai: htsExactFormat = 7; -pub const htsExactFormat_vcf: htsExactFormat = 8; -pub const htsExactFormat_bcf: htsExactFormat = 9; -pub const htsExactFormat_csi: htsExactFormat = 10; -pub const htsExactFormat_gzi: htsExactFormat = 11; -pub const htsExactFormat_tbi: htsExactFormat = 12; -pub const htsExactFormat_bed: htsExactFormat = 13; -pub const htsExactFormat_htsget: htsExactFormat = 14; -pub const htsExactFormat_json: htsExactFormat = 14; -pub const htsExactFormat_empty_format: htsExactFormat = 15; -pub const htsExactFormat_fasta_format: htsExactFormat = 16; -pub const htsExactFormat_fastq_format: htsExactFormat = 17; -pub const htsExactFormat_fai_format: htsExactFormat = 18; -pub const htsExactFormat_fqi_format: htsExactFormat = 19; -pub const htsExactFormat_format_maximum: htsExactFormat = 32767; -pub type htsExactFormat = u32; -pub const htsCompression_no_compression: htsCompression = 0; -pub const htsCompression_gzip: htsCompression = 1; -pub const htsCompression_bgzf: htsCompression = 2; -pub const htsCompression_custom: htsCompression = 3; -pub const htsCompression_bzip2_compression: htsCompression = 4; -pub const htsCompression_compression_maximum: htsCompression = 32767; -pub type htsCompression = u32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct htsFormat { - pub category: htsFormatCategory, - pub format: htsExactFormat, - pub version: htsFormat__bindgen_ty_1, - pub compression: htsCompression, - pub compression_level: ::std::os::raw::c_short, - pub specific: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct htsFormat__bindgen_ty_1 { - pub major: ::std::os::raw::c_short, - pub minor: ::std::os::raw::c_short, -} -#[test] -fn bindgen_test_layout_htsFormat__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(htsFormat__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(htsFormat__bindgen_ty_1)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).major as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ftw as *const _ as usize + }, + 12usize, concat!( "Offset of field: ", - stringify!(htsFormat__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(major) + stringify!(__fpu_ftw) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).minor as *const _ as usize }, - 2usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv1 as *const _ as usize + }, + 13usize, concat!( "Offset of field: ", - stringify!(htsFormat__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(minor) + stringify!(__fpu_rsrv1) ) ); -} -#[test] -fn bindgen_test_layout_htsFormat() { - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(htsFormat)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(htsFormat)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).category as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fop as *const _ as usize + }, + 14usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(category) + stringify!(__fpu_fop) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ip as *const _ as usize + }, + 16usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(format) + stringify!(__fpu_ip) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_cs as *const _ as usize + }, + 20usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(version) + stringify!(__fpu_cs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).compression as *const _ as usize }, - 12usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv2 as *const _ as usize + }, + 22usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(compression) + stringify!(__fpu_rsrv2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).compression_level as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_dp as *const _ as usize + }, + 24usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(compression_level) + stringify!(__fpu_dp) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).specific as *const _ as usize }, - 24usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ds as *const _ as usize + }, + 28usize, concat!( "Offset of field: ", - stringify!(htsFormat), + stringify!(__darwin_i386_float_state), "::", - stringify!(specific) + stringify!(__fpu_ds) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __hts_idx_t { - _unused: [u8; 0], -} -pub type hts_idx_t = __hts_idx_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct htsFile { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>, - pub lineno: i64, - pub line: kstring_t, - pub fn_: *mut ::std::os::raw::c_char, - pub fn_aux: *mut ::std::os::raw::c_char, - pub fp: htsFile__bindgen_ty_1, - pub state: *mut ::std::os::raw::c_void, - pub format: htsFormat, - pub idx: *mut hts_idx_t, - pub fnidx: *const ::std::os::raw::c_char, - pub bam_header: *mut sam_hdr_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union htsFile__bindgen_ty_1 { - pub bgzf: *mut BGZF, - pub cram: *mut cram_fd, - pub hfile: *mut hFILE, - _bindgen_union_align: u64, -} -#[test] -fn bindgen_test_layout_htsFile__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(htsFile__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(htsFile__bindgen_ty_1)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv3 as *const _ as usize + }, + 30usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_float_state), + "::", + stringify!(__fpu_rsrv3) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bgzf as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsr as *const _ as usize + }, + 32usize, concat!( "Offset of field: ", - stringify!(htsFile__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(bgzf) + stringify!(__fpu_mxcsr) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cram as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsrmask as *const _ + as usize + }, + 36usize, concat!( "Offset of field: ", - stringify!(htsFile__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(cram) + stringify!(__fpu_mxcsrmask) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hfile as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm0 as *const _ as usize + }, + 40usize, concat!( "Offset of field: ", - stringify!(htsFile__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(hfile) + stringify!(__fpu_stmm0) ) ); -} -#[test] -fn bindgen_test_layout_htsFile() { assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(htsFile)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm1 as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_float_state), + "::", + stringify!(__fpu_stmm1) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(htsFile)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm2 as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_float_state), + "::", + stringify!(__fpu_stmm2) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).lineno as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm3 as *const _ as usize + }, + 88usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(lineno) + stringify!(__fpu_stmm3) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).line as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm4 as *const _ as usize + }, + 104usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(line) + stringify!(__fpu_stmm4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fn_ as *const _ as usize }, - 40usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm5 as *const _ as usize + }, + 120usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(fn_) + stringify!(__fpu_stmm5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fn_aux as *const _ as usize }, - 48usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm6 as *const _ as usize + }, + 136usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(fn_aux) + stringify!(__fpu_stmm6) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fp as *const _ as usize }, - 56usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm7 as *const _ as usize + }, + 152usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(fp) + stringify!(__fpu_stmm7) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).state as *const _ as usize }, - 64usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm0 as *const _ as usize + }, + 168usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(state) + stringify!(__fpu_xmm0) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, - 72usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm1 as *const _ as usize + }, + 184usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(format) + stringify!(__fpu_xmm1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).idx as *const _ as usize }, - 104usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm2 as *const _ as usize + }, + 200usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(idx) + stringify!(__fpu_xmm2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fnidx as *const _ as usize }, - 112usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm3 as *const _ as usize + }, + 216usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(fnidx) + stringify!(__fpu_xmm3) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bam_header as *const _ as usize }, - 120usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm4 as *const _ as usize + }, + 232usize, concat!( "Offset of field: ", - stringify!(htsFile), + stringify!(__darwin_i386_float_state), "::", - stringify!(bam_header) + stringify!(__fpu_xmm4) ) ); -} -impl htsFile { - #[inline] - pub fn is_bin(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_bin(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn is_write(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_write(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn is_be(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_be(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn is_cram(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_cram(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn is_bgzf(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_bgzf(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn dummy(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_dummy(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - is_bin: u32, - is_write: u32, - is_be: u32, - is_cram: u32, - is_bgzf: u32, - dummy: u32, - ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let is_bin: u32 = unsafe { ::std::mem::transmute(is_bin) }; - is_bin as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let is_write: u32 = unsafe { ::std::mem::transmute(is_write) }; - is_write as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let is_be: u32 = unsafe { ::std::mem::transmute(is_be) }; - is_be as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let is_cram: u32 = unsafe { ::std::mem::transmute(is_cram) }; - is_cram as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let is_bgzf: u32 = unsafe { ::std::mem::transmute(is_bgzf) }; - is_bgzf as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let dummy: u32 = unsafe { ::std::mem::transmute(dummy) }; - dummy as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct htsThreadPool { - pub pool: *mut hts_tpool, - pub qsize: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_htsThreadPool() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(htsThreadPool)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(htsThreadPool)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pool as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm5 as *const _ as usize + }, + 248usize, concat!( "Offset of field: ", - stringify!(htsThreadPool), + stringify!(__darwin_i386_float_state), "::", - stringify!(pool) + stringify!(__fpu_xmm5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).qsize as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm6 as *const _ as usize + }, + 264usize, concat!( "Offset of field: ", - stringify!(htsThreadPool), + stringify!(__darwin_i386_float_state), "::", - stringify!(qsize) + stringify!(__fpu_xmm6) ) ); -} -pub const sam_fields_SAM_QNAME: sam_fields = 1; -pub const sam_fields_SAM_FLAG: sam_fields = 2; -pub const sam_fields_SAM_RNAME: sam_fields = 4; -pub const sam_fields_SAM_POS: sam_fields = 8; -pub const sam_fields_SAM_MAPQ: sam_fields = 16; -pub const sam_fields_SAM_CIGAR: sam_fields = 32; -pub const sam_fields_SAM_RNEXT: sam_fields = 64; -pub const sam_fields_SAM_PNEXT: sam_fields = 128; -pub const sam_fields_SAM_TLEN: sam_fields = 256; -pub const sam_fields_SAM_SEQ: sam_fields = 512; -pub const sam_fields_SAM_QUAL: sam_fields = 1024; -pub const sam_fields_SAM_AUX: sam_fields = 2048; -pub const sam_fields_SAM_RGAUX: sam_fields = 4096; -pub type sam_fields = u32; -pub const hts_fmt_option_CRAM_OPT_DECODE_MD: hts_fmt_option = 0; -pub const hts_fmt_option_CRAM_OPT_PREFIX: hts_fmt_option = 1; -pub const hts_fmt_option_CRAM_OPT_VERBOSITY: hts_fmt_option = 2; -pub const hts_fmt_option_CRAM_OPT_SEQS_PER_SLICE: hts_fmt_option = 3; -pub const hts_fmt_option_CRAM_OPT_SLICES_PER_CONTAINER: hts_fmt_option = 4; -pub const hts_fmt_option_CRAM_OPT_RANGE: hts_fmt_option = 5; -pub const hts_fmt_option_CRAM_OPT_VERSION: hts_fmt_option = 6; -pub const hts_fmt_option_CRAM_OPT_EMBED_REF: hts_fmt_option = 7; -pub const hts_fmt_option_CRAM_OPT_IGNORE_MD5: hts_fmt_option = 8; -pub const hts_fmt_option_CRAM_OPT_REFERENCE: hts_fmt_option = 9; -pub const hts_fmt_option_CRAM_OPT_MULTI_SEQ_PER_SLICE: hts_fmt_option = 10; -pub const hts_fmt_option_CRAM_OPT_NO_REF: hts_fmt_option = 11; -pub const hts_fmt_option_CRAM_OPT_USE_BZIP2: hts_fmt_option = 12; -pub const hts_fmt_option_CRAM_OPT_SHARED_REF: hts_fmt_option = 13; -pub const hts_fmt_option_CRAM_OPT_NTHREADS: hts_fmt_option = 14; -pub const hts_fmt_option_CRAM_OPT_THREAD_POOL: hts_fmt_option = 15; -pub const hts_fmt_option_CRAM_OPT_USE_LZMA: hts_fmt_option = 16; -pub const hts_fmt_option_CRAM_OPT_USE_RANS: hts_fmt_option = 17; -pub const hts_fmt_option_CRAM_OPT_REQUIRED_FIELDS: hts_fmt_option = 18; -pub const hts_fmt_option_CRAM_OPT_LOSSY_NAMES: hts_fmt_option = 19; -pub const hts_fmt_option_CRAM_OPT_BASES_PER_SLICE: hts_fmt_option = 20; -pub const hts_fmt_option_CRAM_OPT_STORE_MD: hts_fmt_option = 21; -pub const hts_fmt_option_CRAM_OPT_STORE_NM: hts_fmt_option = 22; -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; -pub const hts_fmt_option_HTS_OPT_CACHE_SIZE: hts_fmt_option = 103; -pub const hts_fmt_option_HTS_OPT_BLOCK_SIZE: hts_fmt_option = 104; -pub type hts_fmt_option = u32; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct hts_opt { - pub arg: *mut ::std::os::raw::c_char, - pub opt: hts_fmt_option, - pub val: hts_opt__bindgen_ty_1, - pub next: *mut hts_opt, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union hts_opt__bindgen_ty_1 { - pub i: ::std::os::raw::c_int, - pub s: *mut ::std::os::raw::c_char, - _bindgen_union_align: u64, -} -#[test] -fn bindgen_test_layout_hts_opt__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(hts_opt__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_opt__bindgen_ty_1)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).i as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm7 as *const _ as usize + }, + 280usize, concat!( "Offset of field: ", - stringify!(hts_opt__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(i) + stringify!(__fpu_xmm7) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv4 as *const _ as usize + }, + 296usize, concat!( "Offset of field: ", - stringify!(hts_opt__bindgen_ty_1), + stringify!(__darwin_i386_float_state), "::", - stringify!(s) + stringify!(__fpu_rsrv4) ) ); -} -#[test] -fn bindgen_test_layout_hts_opt() { - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(hts_opt)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_opt)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved1 as *const _ + as usize + }, + 520usize, concat!( "Offset of field: ", - stringify!(hts_opt), + stringify!(__darwin_i386_float_state), "::", - stringify!(arg) + stringify!(__fpu_reserved1) ) ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).opt as *const _ as usize }, - 8usize, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_i386_avx_state { + pub __fpu_reserved: [::std::os::raw::c_int; 2usize], + pub __fpu_fcw: __darwin_fp_control, + pub __fpu_fsw: __darwin_fp_status, + pub __fpu_ftw: __uint8_t, + pub __fpu_rsrv1: __uint8_t, + pub __fpu_fop: __uint16_t, + pub __fpu_ip: __uint32_t, + pub __fpu_cs: __uint16_t, + pub __fpu_rsrv2: __uint16_t, + pub __fpu_dp: __uint32_t, + pub __fpu_ds: __uint16_t, + pub __fpu_rsrv3: __uint16_t, + pub __fpu_mxcsr: __uint32_t, + pub __fpu_mxcsrmask: __uint32_t, + pub __fpu_stmm0: __darwin_mmst_reg, + pub __fpu_stmm1: __darwin_mmst_reg, + pub __fpu_stmm2: __darwin_mmst_reg, + pub __fpu_stmm3: __darwin_mmst_reg, + pub __fpu_stmm4: __darwin_mmst_reg, + pub __fpu_stmm5: __darwin_mmst_reg, + pub __fpu_stmm6: __darwin_mmst_reg, + pub __fpu_stmm7: __darwin_mmst_reg, + pub __fpu_xmm0: __darwin_xmm_reg, + pub __fpu_xmm1: __darwin_xmm_reg, + pub __fpu_xmm2: __darwin_xmm_reg, + pub __fpu_xmm3: __darwin_xmm_reg, + pub __fpu_xmm4: __darwin_xmm_reg, + pub __fpu_xmm5: __darwin_xmm_reg, + pub __fpu_xmm6: __darwin_xmm_reg, + pub __fpu_xmm7: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], + pub __fpu_reserved1: ::std::os::raw::c_int, + pub __avx_reserved1: [::std::os::raw::c_char; 64usize], + pub __fpu_ymmh0: __darwin_xmm_reg, + pub __fpu_ymmh1: __darwin_xmm_reg, + pub __fpu_ymmh2: __darwin_xmm_reg, + pub __fpu_ymmh3: __darwin_xmm_reg, + pub __fpu_ymmh4: __darwin_xmm_reg, + pub __fpu_ymmh5: __darwin_xmm_reg, + pub __fpu_ymmh6: __darwin_xmm_reg, + pub __fpu_ymmh7: __darwin_xmm_reg, +} +#[test] +fn bindgen_test_layout___darwin_i386_avx_state() { + assert_eq!( + ::std::mem::size_of::<__darwin_i386_avx_state>(), + 716usize, + concat!("Size of: ", stringify!(__darwin_i386_avx_state)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_i386_avx_state>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_i386_avx_state)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved as *const _ as usize + }, + 0usize, concat!( "Offset of field: ", - stringify!(hts_opt), + stringify!(__darwin_i386_avx_state), "::", - stringify!(opt) + stringify!(__fpu_reserved) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).val as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fcw as *const _ as usize + }, + 8usize, concat!( "Offset of field: ", - stringify!(hts_opt), + stringify!(__darwin_i386_avx_state), "::", - stringify!(val) + stringify!(__fpu_fcw) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).next as *const _ as usize }, - 24usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fsw as *const _ as usize + }, + 10usize, concat!( "Offset of field: ", - stringify!(hts_opt), + stringify!(__darwin_i386_avx_state), "::", - stringify!(next) + stringify!(__fpu_fsw) ) ); -} -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; -} -extern "C" { - pub fn hts_opt_apply(fp: *mut htsFile, opts: *mut hts_opt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_opt_free(opts: *mut hts_opt); -} -extern "C" { - pub fn hts_parse_format( - opt: *mut htsFormat, - str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_parse_opt_list( - opt: *mut htsFormat, - str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; -} -extern "C" { - pub static mut seq_nt16_str: [::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut seq_nt16_int: [::std::os::raw::c_int; 0usize]; -} -extern "C" { - pub fn hts_version() -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn hts_detect_format(fp: *mut hFILE, fmt: *mut htsFormat) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_format_description(format: *const htsFormat) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn hts_open( - fn_: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut htsFile; -} -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; -} -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; -} -extern "C" { - pub fn hts_close(fp: *mut htsFile) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_get_format(fp: *mut htsFile) -> *const htsFormat; -} -extern "C" { - pub fn hts_format_file_extension(format: *const htsFormat) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn hts_set_opt(fp: *mut htsFile, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_getline( - fp: *mut htsFile, - delimiter: ::std::os::raw::c_int, - str: *mut kstring_t, - ) -> ::std::os::raw::c_int; -} -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; -} -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; -} -extern "C" { - pub fn hts_set_threads(fp: *mut htsFile, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_set_thread_pool(fp: *mut htsFile, p: *mut htsThreadPool) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_set_cache_size(fp: *mut htsFile, n: ::std::os::raw::c_int); -} -extern "C" { - pub fn hts_set_fai_filename( - fp: *mut htsFile, - fn_aux: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_check_EOF(fp: *mut htsFile) -> ::std::os::raw::c_int; -} -pub type hts_pos_t = i64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_pair_pos_t { - pub beg: hts_pos_t, - pub end: hts_pos_t, -} -#[test] -fn bindgen_test_layout_hts_pair_pos_t() { assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(hts_pair_pos_t)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ftw as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx_state), + "::", + stringify!(__fpu_ftw) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_pair_pos_t)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv1 as *const _ as usize + }, + 13usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx_state), + "::", + stringify!(__fpu_rsrv1) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).beg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fop as *const _ as usize + }, + 14usize, concat!( "Offset of field: ", - stringify!(hts_pair_pos_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(beg) + stringify!(__fpu_fop) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).end as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ip as *const _ as usize + }, + 16usize, concat!( "Offset of field: ", - stringify!(hts_pair_pos_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(end) + stringify!(__fpu_ip) ) ); -} -pub type hts_pair32_t = hts_pair_pos_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_pair64_t { - pub u: u64, - pub v: u64, -} -#[test] -fn bindgen_test_layout_hts_pair64_t() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(hts_pair64_t)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_pair64_t)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_cs as *const _ as usize + }, + 20usize, concat!( "Offset of field: ", - stringify!(hts_pair64_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(u) + stringify!(__fpu_cs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv2 as *const _ as usize + }, + 22usize, concat!( "Offset of field: ", - stringify!(hts_pair64_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(v) + stringify!(__fpu_rsrv2) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_pair64_max_t { - pub u: u64, - pub v: u64, - pub max: u64, -} -#[test] -fn bindgen_test_layout_hts_pair64_max_t() { assert_eq!( - ::std::mem::size_of::(), + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_dp as *const _ as usize + }, 24usize, - concat!("Size of: ", stringify!(hts_pair64_max_t)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_pair64_max_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).u as *const _ as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(hts_pair64_max_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(u) + stringify!(__fpu_dp) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ds as *const _ as usize + }, + 28usize, concat!( "Offset of field: ", - stringify!(hts_pair64_max_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(v) + stringify!(__fpu_ds) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).max as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv3 as *const _ as usize + }, + 30usize, concat!( "Offset of field: ", - stringify!(hts_pair64_max_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(max) + stringify!(__fpu_rsrv3) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_reglist_t { - pub reg: *const ::std::os::raw::c_char, - pub intervals: *mut hts_pair_pos_t, - pub tid: ::std::os::raw::c_int, - pub count: u32, - pub min_beg: hts_pos_t, - pub max_end: hts_pos_t, -} -#[test] -fn bindgen_test_layout_hts_reglist_t() { - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(hts_reglist_t)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_reglist_t)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsr as *const _ as usize + }, + 32usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(reg) + stringify!(__fpu_mxcsr) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).intervals as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsrmask as *const _ as usize + }, + 36usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(intervals) + stringify!(__fpu_mxcsrmask) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tid as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm0 as *const _ as usize + }, + 40usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(tid) + stringify!(__fpu_stmm0) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, - 20usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm1 as *const _ as usize + }, + 56usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(count) + stringify!(__fpu_stmm1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).min_beg as *const _ as usize }, - 24usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm2 as *const _ as usize + }, + 72usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(min_beg) + stringify!(__fpu_stmm2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).max_end as *const _ as usize }, - 32usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm3 as *const _ as usize + }, + 88usize, concat!( "Offset of field: ", - stringify!(hts_reglist_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(max_end) + stringify!(__fpu_stmm3) ) ); -} -pub type hts_readrec_func = ::std::option::Option< - unsafe extern "C" fn( - fp: *mut BGZF, - data: *mut ::std::os::raw::c_void, - r: *mut ::std::os::raw::c_void, - tid: *mut ::std::os::raw::c_int, - beg: *mut hts_pos_t, - end: *mut hts_pos_t, - ) -> ::std::os::raw::c_int, ->; -pub type hts_seek_func = ::std::option::Option< - unsafe extern "C" fn( - fp: *mut ::std::os::raw::c_void, - offset: i64, - where_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type hts_tell_func = - ::std::option::Option i64>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_itr_t { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>, - pub tid: ::std::os::raw::c_int, - pub n_off: ::std::os::raw::c_int, - pub i: ::std::os::raw::c_int, - pub n_reg: ::std::os::raw::c_int, - pub beg: hts_pos_t, - pub end: hts_pos_t, - pub reg_list: *mut hts_reglist_t, - pub curr_tid: ::std::os::raw::c_int, - pub curr_reg: ::std::os::raw::c_int, - pub curr_intv: ::std::os::raw::c_int, - pub curr_beg: hts_pos_t, - pub curr_end: hts_pos_t, - pub curr_off: u64, - pub nocoor_off: u64, - pub off: *mut hts_pair64_max_t, - pub readrec: hts_readrec_func, - pub seek: hts_seek_func, - pub tell: hts_tell_func, - pub bins: hts_itr_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_itr_t__bindgen_ty_1 { - pub n: ::std::os::raw::c_int, - pub m: ::std::os::raw::c_int, - pub a: *mut ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_hts_itr_t__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(hts_itr_t__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_itr_t__bindgen_ty_1)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm4 as *const _ as usize + }, + 104usize, concat!( "Offset of field: ", - stringify!(hts_itr_t__bindgen_ty_1), + stringify!(__darwin_i386_avx_state), "::", - stringify!(n) + stringify!(__fpu_stmm4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).m as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm5 as *const _ as usize + }, + 120usize, concat!( "Offset of field: ", - stringify!(hts_itr_t__bindgen_ty_1), + stringify!(__darwin_i386_avx_state), "::", - stringify!(m) + stringify!(__fpu_stmm5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).a as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm6 as *const _ as usize + }, + 136usize, concat!( "Offset of field: ", - stringify!(hts_itr_t__bindgen_ty_1), + stringify!(__darwin_i386_avx_state), "::", - stringify!(a) + stringify!(__fpu_stmm6) ) ); -} -#[test] -fn bindgen_test_layout_hts_itr_t() { - assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(hts_itr_t)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hts_itr_t)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm7 as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx_state), + "::", + stringify!(__fpu_stmm7) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tid as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm0 as *const _ as usize + }, + 168usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(tid) + stringify!(__fpu_xmm0) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_off as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm1 as *const _ as usize + }, + 184usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(n_off) + stringify!(__fpu_xmm1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).i as *const _ as usize }, - 12usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm2 as *const _ as usize + }, + 200usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(i) + stringify!(__fpu_xmm2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_reg as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm3 as *const _ as usize + }, + 216usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(n_reg) + stringify!(__fpu_xmm3) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).beg as *const _ as usize }, - 24usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm4 as *const _ as usize + }, + 232usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(beg) + stringify!(__fpu_xmm4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).end as *const _ as usize }, - 32usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm5 as *const _ as usize + }, + 248usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(end) + stringify!(__fpu_xmm5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reg_list as *const _ as usize }, - 40usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm6 as *const _ as usize + }, + 264usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(reg_list) + stringify!(__fpu_xmm6) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_tid as *const _ as usize }, - 48usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm7 as *const _ as usize + }, + 280usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_tid) + stringify!(__fpu_xmm7) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_reg as *const _ as usize }, - 52usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv4 as *const _ as usize + }, + 296usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_reg) + stringify!(__fpu_rsrv4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_intv as *const _ as usize }, - 56usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved1 as *const _ as usize + }, + 520usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_intv) + stringify!(__fpu_reserved1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_beg as *const _ as usize }, - 64usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__avx_reserved1 as *const _ as usize + }, + 524usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_beg) + stringify!(__avx_reserved1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_end as *const _ as usize }, - 72usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh0 as *const _ as usize + }, + 588usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_end) + stringify!(__fpu_ymmh0) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).curr_off as *const _ as usize }, - 80usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh1 as *const _ as usize + }, + 604usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(curr_off) + stringify!(__fpu_ymmh1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).nocoor_off as *const _ as usize }, - 88usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh2 as *const _ as usize + }, + 620usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(nocoor_off) + stringify!(__fpu_ymmh2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).off as *const _ as usize }, - 96usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh3 as *const _ as usize + }, + 636usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(off) + stringify!(__fpu_ymmh3) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).readrec as *const _ as usize }, - 104usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh4 as *const _ as usize + }, + 652usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(readrec) + stringify!(__fpu_ymmh4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).seek as *const _ as usize }, - 112usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh5 as *const _ as usize + }, + 668usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(seek) + stringify!(__fpu_ymmh5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tell as *const _ as usize }, - 120usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh6 as *const _ as usize + }, + 684usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(tell) + stringify!(__fpu_ymmh6) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bins as *const _ as usize }, - 128usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh7 as *const _ as usize + }, + 700usize, concat!( "Offset of field: ", - stringify!(hts_itr_t), + stringify!(__darwin_i386_avx_state), "::", - stringify!(bins) + stringify!(__fpu_ymmh7) ) ); } -impl hts_itr_t { - #[inline] - pub fn read_rest(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_read_rest(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn finished(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_finished(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn is_cram(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_is_cram(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn nocoor(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_nocoor(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn multi(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_multi(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn dummy(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_dummy(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - read_rest: u32, - finished: u32, - is_cram: u32, - nocoor: u32, - multi: u32, - dummy: u32, - ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let read_rest: u32 = unsafe { ::std::mem::transmute(read_rest) }; - read_rest as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let finished: u32 = unsafe { ::std::mem::transmute(finished) }; - finished as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let is_cram: u32 = unsafe { ::std::mem::transmute(is_cram) }; - is_cram as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let nocoor: u32 = unsafe { ::std::mem::transmute(nocoor) }; - nocoor as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let multi: u32 = unsafe { ::std::mem::transmute(multi) }; - multi as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let dummy: u32 = unsafe { ::std::mem::transmute(dummy) }; - dummy as u64 - }); - __bindgen_bitfield_unit - } -} #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct aux_key_t { - pub key: ::std::os::raw::c_int, - pub min_off: u64, - pub max_off: u64, +#[derive(Copy, Clone)] +pub struct __darwin_i386_avx512_state { + pub __fpu_reserved: [::std::os::raw::c_int; 2usize], + pub __fpu_fcw: __darwin_fp_control, + pub __fpu_fsw: __darwin_fp_status, + pub __fpu_ftw: __uint8_t, + pub __fpu_rsrv1: __uint8_t, + pub __fpu_fop: __uint16_t, + pub __fpu_ip: __uint32_t, + pub __fpu_cs: __uint16_t, + pub __fpu_rsrv2: __uint16_t, + pub __fpu_dp: __uint32_t, + pub __fpu_ds: __uint16_t, + pub __fpu_rsrv3: __uint16_t, + pub __fpu_mxcsr: __uint32_t, + pub __fpu_mxcsrmask: __uint32_t, + pub __fpu_stmm0: __darwin_mmst_reg, + pub __fpu_stmm1: __darwin_mmst_reg, + pub __fpu_stmm2: __darwin_mmst_reg, + pub __fpu_stmm3: __darwin_mmst_reg, + pub __fpu_stmm4: __darwin_mmst_reg, + pub __fpu_stmm5: __darwin_mmst_reg, + pub __fpu_stmm6: __darwin_mmst_reg, + pub __fpu_stmm7: __darwin_mmst_reg, + pub __fpu_xmm0: __darwin_xmm_reg, + pub __fpu_xmm1: __darwin_xmm_reg, + pub __fpu_xmm2: __darwin_xmm_reg, + pub __fpu_xmm3: __darwin_xmm_reg, + pub __fpu_xmm4: __darwin_xmm_reg, + pub __fpu_xmm5: __darwin_xmm_reg, + pub __fpu_xmm6: __darwin_xmm_reg, + pub __fpu_xmm7: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], + pub __fpu_reserved1: ::std::os::raw::c_int, + pub __avx_reserved1: [::std::os::raw::c_char; 64usize], + pub __fpu_ymmh0: __darwin_xmm_reg, + pub __fpu_ymmh1: __darwin_xmm_reg, + pub __fpu_ymmh2: __darwin_xmm_reg, + pub __fpu_ymmh3: __darwin_xmm_reg, + pub __fpu_ymmh4: __darwin_xmm_reg, + pub __fpu_ymmh5: __darwin_xmm_reg, + pub __fpu_ymmh6: __darwin_xmm_reg, + pub __fpu_ymmh7: __darwin_xmm_reg, + pub __fpu_k0: __darwin_opmask_reg, + pub __fpu_k1: __darwin_opmask_reg, + pub __fpu_k2: __darwin_opmask_reg, + pub __fpu_k3: __darwin_opmask_reg, + pub __fpu_k4: __darwin_opmask_reg, + pub __fpu_k5: __darwin_opmask_reg, + pub __fpu_k6: __darwin_opmask_reg, + pub __fpu_k7: __darwin_opmask_reg, + pub __fpu_zmmh0: __darwin_ymm_reg, + pub __fpu_zmmh1: __darwin_ymm_reg, + pub __fpu_zmmh2: __darwin_ymm_reg, + pub __fpu_zmmh3: __darwin_ymm_reg, + pub __fpu_zmmh4: __darwin_ymm_reg, + pub __fpu_zmmh5: __darwin_ymm_reg, + pub __fpu_zmmh6: __darwin_ymm_reg, + pub __fpu_zmmh7: __darwin_ymm_reg, } #[test] -fn bindgen_test_layout_aux_key_t() { +fn bindgen_test_layout___darwin_i386_avx512_state() { assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(aux_key_t)) + ::std::mem::size_of::<__darwin_i386_avx512_state>(), + 1036usize, + concat!("Size of: ", stringify!(__darwin_i386_avx512_state)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(aux_key_t)) + ::std::mem::align_of::<__darwin_i386_avx512_state>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_i386_avx512_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).key as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved as *const _ + as usize + }, 0usize, concat!( "Offset of field: ", - stringify!(aux_key_t), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(key) + stringify!(__fpu_reserved) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).min_off as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fcw as *const _ as usize + }, 8usize, concat!( "Offset of field: ", - stringify!(aux_key_t), + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_fcw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fsw as *const _ as usize + }, + 10usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_fsw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ftw as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ftw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv1 as *const _ as usize + }, + 13usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_rsrv1) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fop as *const _ as usize + }, + 14usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), "::", - stringify!(min_off) + stringify!(__fpu_fop) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).max_off as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ip as *const _ as usize + }, 16usize, concat!( "Offset of field: ", - stringify!(aux_key_t), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(max_off) + stringify!(__fpu_ip) ) ); -} -pub type hts_itr_multi_t = hts_itr_t; -extern "C" { - pub fn hts_idx_init( - n: ::std::os::raw::c_int, - fmt: ::std::os::raw::c_int, - offset0: u64, - min_shift: ::std::os::raw::c_int, - n_lvls: ::std::os::raw::c_int, - ) -> *mut hts_idx_t; -} -extern "C" { - pub fn hts_idx_destroy(idx: *mut hts_idx_t); -} -extern "C" { - pub fn hts_idx_push( - idx: *mut hts_idx_t, - tid: ::std::os::raw::c_int, - beg: hts_pos_t, - end: hts_pos_t, - offset: u64, - is_mapped: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_finish(idx: *mut hts_idx_t, final_offset: u64) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_fmt(idx: *mut hts_idx_t) -> ::std::os::raw::c_int; -} -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; -} -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; -} -extern "C" { - pub fn hts_idx_save_as( - idx: *const hts_idx_t, - fn_: *const ::std::os::raw::c_char, - fnidx: *const ::std::os::raw::c_char, - fmt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_load( - fn_: *const ::std::os::raw::c_char, - fmt: ::std::os::raw::c_int, - ) -> *mut hts_idx_t; -} -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; -} -extern "C" { - pub fn hts_idx_load3( - fn_: *const ::std::os::raw::c_char, - fnidx: *const ::std::os::raw::c_char, - fmt: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> *mut hts_idx_t; -} -extern "C" { - pub fn hts_idx_get_meta(idx: *mut hts_idx_t, l_meta: *mut u32) -> *mut u8; -} -extern "C" { - pub fn hts_idx_set_meta( - idx: *mut hts_idx_t, - l_meta: u32, - meta: *mut u8, - is_copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_get_stat( - idx: *const hts_idx_t, - tid: ::std::os::raw::c_int, - mapped: *mut u64, - unmapped: *mut u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_get_n_no_coor(idx: *const hts_idx_t) -> u64; -} -extern "C" { - pub fn hts_parse_decimal( - str: *const ::std::os::raw::c_char, - strend: *mut *mut ::std::os::raw::c_char, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -pub type hts_name2id_f = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type hts_id2name_f = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char, ->; -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; -} -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; -} -extern "C" { - pub fn hts_parse_region( - s: *const ::std::os::raw::c_char, - tid: *mut ::std::os::raw::c_int, - beg: *mut hts_pos_t, - end: *mut hts_pos_t, - getid: hts_name2id_f, - hdr: *mut ::std::os::raw::c_void, - flags: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn hts_itr_query( - idx: *const hts_idx_t, - tid: ::std::os::raw::c_int, - beg: hts_pos_t, - end: hts_pos_t, - readrec: hts_readrec_func, - ) -> *mut hts_itr_t; -} -extern "C" { - pub fn hts_itr_destroy(iter: *mut hts_itr_t); -} -pub type hts_itr_query_func = ::std::option::Option< - unsafe extern "C" fn( - idx: *const hts_idx_t, - tid: ::std::os::raw::c_int, - beg: hts_pos_t, - end: hts_pos_t, - readrec: hts_readrec_func, - ) -> *mut hts_itr_t, ->; -extern "C" { - pub fn hts_itr_querys( - idx: *const hts_idx_t, - reg: *const ::std::os::raw::c_char, - getid: hts_name2id_f, - hdr: *mut ::std::os::raw::c_void, - itr_query: hts_itr_query_func, - readrec: hts_readrec_func, - ) -> *mut hts_itr_t; -} -extern "C" { - pub fn hts_itr_next( - fp: *mut BGZF, - iter: *mut hts_itr_t, - r: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_idx_seqnames( - idx: *const hts_idx_t, - n: *mut ::std::os::raw::c_int, - getid: hts_id2name_f, - hdr: *mut ::std::os::raw::c_void, - ) -> *mut *const ::std::os::raw::c_char; -} -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, ->; -extern "C" { - pub fn hts_itr_multi_bam(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_itr_multi_cram(idx: *const hts_idx_t, iter: *mut hts_itr_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn hts_itr_regions( - idx: *const hts_idx_t, - reglist: *mut hts_reglist_t, - count: ::std::os::raw::c_int, - getid: hts_name2id_f, - hdr: *mut ::std::os::raw::c_void, - itr_specific: hts_itr_multi_query_func, - readrec: hts_readrec_func, - seek: hts_seek_func, - tell: hts_tell_func, - ) -> *mut hts_itr_t; -} -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; -} -extern "C" { - pub fn hts_reglist_create( - argv: *mut *mut ::std::os::raw::c_char, - argc: ::std::os::raw::c_int, - r_count: *mut ::std::os::raw::c_int, - hdr: *mut ::std::os::raw::c_void, - getid: hts_name2id_f, - ) -> *mut hts_reglist_t; -} -extern "C" { - pub fn hts_reglist_free(reglist: *mut hts_reglist_t, count: ::std::os::raw::c_int); -} -extern "C" { - pub fn hts_file_type(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct errmod_t { - _unused: [u8; 0], -} -extern "C" { - pub fn errmod_init(depcorr: f64) -> *mut errmod_t; -} -extern "C" { - pub fn errmod_destroy(em: *mut errmod_t); -} -extern "C" { - pub fn errmod_cal( - em: *const errmod_t, - n: ::std::os::raw::c_int, - m: ::std::os::raw::c_int, - bases: *mut u16, - q: *mut f32, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct probaln_par_t { - pub d: f32, - pub e: f32, - pub bw: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_probaln_par_t() { - assert_eq!( - ::std::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(probaln_par_t)) - ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(probaln_par_t)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_cs as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_cs) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).d as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv2 as *const _ as usize + }, + 22usize, concat!( "Offset of field: ", - stringify!(probaln_par_t), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(d) + stringify!(__fpu_rsrv2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).e as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_dp as *const _ as usize + }, + 24usize, concat!( "Offset of field: ", - stringify!(probaln_par_t), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(e) + stringify!(__fpu_dp) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bw as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ds as *const _ as usize + }, + 28usize, concat!( "Offset of field: ", - stringify!(probaln_par_t), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(bw) + stringify!(__fpu_ds) ) ); -} -extern "C" { - pub fn probaln_glocal( - ref_: *const u8, - l_ref: ::std::os::raw::c_int, - query: *const u8, - l_query: ::std::os::raw::c_int, - iqual: *const u8, - c: *const probaln_par_t, - state: *mut ::std::os::raw::c_int, - q: *mut u8, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hts_md5_context { - _unused: [u8; 0], -} -extern "C" { - pub fn hts_md5_init() -> *mut hts_md5_context; -} -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, - ); -} -extern "C" { - pub fn hts_md5_final(digest: *mut ::std::os::raw::c_uchar, ctx: *mut hts_md5_context); -} -extern "C" { - pub fn hts_md5_reset(ctx: *mut hts_md5_context); -} -extern "C" { - pub fn hts_md5_hex(hex: *mut ::std::os::raw::c_char, digest: *const ::std::os::raw::c_uchar); -} -extern "C" { - pub fn hts_md5_destroy(ctx: *mut hts_md5_context); -} -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 errno_t = ::std::os::raw::c_int; -extern "C" { - pub fn __error() -> *mut ::std::os::raw::c_int; -} -pub const idtype_t_P_ALL: idtype_t = 0; -pub const idtype_t_P_PID: idtype_t = 1; -pub const idtype_t_P_PGID: idtype_t = 2; -pub type idtype_t = u32; -pub type pid_t = __darwin_pid_t; -pub type id_t = __darwin_id_t; -pub type sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_i386_thread_state { - pub __eax: ::std::os::raw::c_uint, - pub __ebx: ::std::os::raw::c_uint, - pub __ecx: ::std::os::raw::c_uint, - pub __edx: ::std::os::raw::c_uint, - pub __edi: ::std::os::raw::c_uint, - pub __esi: ::std::os::raw::c_uint, - pub __ebp: ::std::os::raw::c_uint, - pub __esp: ::std::os::raw::c_uint, - pub __ss: ::std::os::raw::c_uint, - pub __eflags: ::std::os::raw::c_uint, - pub __eip: ::std::os::raw::c_uint, - pub __cs: ::std::os::raw::c_uint, - pub __ds: ::std::os::raw::c_uint, - pub __es: ::std::os::raw::c_uint, - pub __fs: ::std::os::raw::c_uint, - pub __gs: ::std::os::raw::c_uint, -} -#[test] -fn bindgen_test_layout___darwin_i386_thread_state() { assert_eq!( - ::std::mem::size_of::<__darwin_i386_thread_state>(), - 64usize, - concat!("Size of: ", stringify!(__darwin_i386_thread_state)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv3 as *const _ as usize + }, + 30usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_rsrv3) + ) ); assert_eq!( - ::std::mem::align_of::<__darwin_i386_thread_state>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_i386_thread_state)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsr as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_mxcsr) + ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eax as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsrmask as *const _ + as usize }, - 0usize, + 36usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__eax) + stringify!(__fpu_mxcsrmask) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebx as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm0 as *const _ as usize }, - 4usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ebx) + stringify!(__fpu_stmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ecx as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm1 as *const _ as usize }, - 8usize, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ecx) + stringify!(__fpu_stmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edx as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm2 as *const _ as usize }, - 12usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__edx) + stringify!(__fpu_stmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__edi as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm3 as *const _ as usize }, - 16usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__edi) + stringify!(__fpu_stmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esi as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm4 as *const _ as usize }, - 20usize, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__esi) + stringify!(__fpu_stmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ebp as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm5 as *const _ as usize }, - 24usize, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ebp) + stringify!(__fpu_stmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__esp as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm6 as *const _ as usize }, - 28usize, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__esp) + stringify!(__fpu_stmm6) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ss as *const _ as usize }, - 32usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm7 as *const _ as usize + }, + 152usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ss) + stringify!(__fpu_stmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eflags as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm0 as *const _ as usize }, - 36usize, + 168usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__eflags) + stringify!(__fpu_xmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__eip as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm1 as *const _ as usize }, - 40usize, + 184usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__eip) + stringify!(__fpu_xmm1) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__cs as *const _ as usize }, - 44usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm2 as *const _ as usize + }, + 200usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__cs) + stringify!(__fpu_xmm2) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__ds as *const _ as usize }, - 48usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm3 as *const _ as usize + }, + 216usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ds) + stringify!(__fpu_xmm3) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__es as *const _ as usize }, - 52usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm4 as *const _ as usize + }, + 232usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__es) + stringify!(__fpu_xmm4) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__fs as *const _ as usize }, - 56usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm5 as *const _ as usize + }, + 248usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__fs) + stringify!(__fpu_xmm5) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_i386_thread_state>())).__gs as *const _ as usize }, - 60usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm6 as *const _ as usize + }, + 264usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_thread_state), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__gs) + stringify!(__fpu_xmm6) ) ); -} -#[repr(C)] -#[repr(align(2))] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_fp_control { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, -} -#[test] -fn bindgen_test_layout___darwin_fp_control() { assert_eq!( - ::std::mem::size_of::<__darwin_fp_control>(), - 2usize, - concat!("Size of: ", stringify!(__darwin_fp_control)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm7 as *const _ as usize + }, + 280usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_xmm7) + ) ); assert_eq!( - ::std::mem::align_of::<__darwin_fp_control>(), - 2usize, - concat!("Alignment of ", stringify!(__darwin_fp_control)) - ); -} -impl __darwin_fp_control { - #[inline] - pub fn __invalid(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } - } - #[inline] - pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn __denorm(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } - } - #[inline] - pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } - } - #[inline] - pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } - } - #[inline] - pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn __undfl(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } - } - #[inline] - pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv4 as *const _ as usize + }, + 296usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_rsrv4) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn __precis(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } - } - #[inline] - pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved1 as *const _ + as usize + }, + 520usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_reserved1) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn __pc(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) } - } - #[inline] - pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__avx_reserved1 as *const _ + as usize + }, + 524usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__avx_reserved1) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 2u8, val as u64) - } - } - #[inline] - pub fn __rc(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) } - } - #[inline] - pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh0 as *const _ as usize + }, + 588usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh0) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 2u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - __invalid: ::std::os::raw::c_ushort, - __denorm: ::std::os::raw::c_ushort, - __zdiv: ::std::os::raw::c_ushort, - __ovrfl: ::std::os::raw::c_ushort, - __undfl: ::std::os::raw::c_ushort, - __precis: ::std::os::raw::c_ushort, - __pc: ::std::os::raw::c_ushort, - __rc: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; - __invalid as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; - __denorm as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; - __zdiv as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; - __ovrfl as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; - __undfl as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; - __precis as u64 - }); - __bindgen_bitfield_unit.set(8usize, 2u8, { - let __pc: u16 = unsafe { ::std::mem::transmute(__pc) }; - __pc as u64 - }); - __bindgen_bitfield_unit.set(10usize, 2u8, { - let __rc: u16 = unsafe { ::std::mem::transmute(__rc) }; - __rc as u64 - }); - __bindgen_bitfield_unit - } -} -pub type __darwin_fp_control_t = __darwin_fp_control; -#[repr(C)] -#[repr(align(2))] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_fp_status { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>, -} -#[test] -fn bindgen_test_layout___darwin_fp_status() { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh1 as *const _ as usize + }, + 604usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh1) + ) + ); assert_eq!( - ::std::mem::size_of::<__darwin_fp_status>(), - 2usize, - concat!("Size of: ", stringify!(__darwin_fp_status)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh2 as *const _ as usize + }, + 620usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh2) + ) ); assert_eq!( - ::std::mem::align_of::<__darwin_fp_status>(), - 2usize, - concat!("Alignment of ", stringify!(__darwin_fp_status)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh3 as *const _ as usize + }, + 636usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh3) + ) ); -} -impl __darwin_fp_status { - #[inline] - pub fn __invalid(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } - } - #[inline] - pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) { + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn __denorm(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } - } - #[inline] - pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn __zdiv(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } - } - #[inline] - pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh4 as *const _ as usize + }, + 652usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh4) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) } - } - #[inline] - pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh5 as *const _ as usize + }, + 668usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh5) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn __undfl(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) } - } - #[inline] - pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh6 as *const _ as usize + }, + 684usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh6) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn __precis(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) } - } - #[inline] - pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh7 as *const _ as usize + }, + 700usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_ymmh7) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn __stkflt(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) } - } - #[inline] - pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k0 as *const _ as usize + }, + 716usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k0) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn __errsumm(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } - } - #[inline] - pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k1 as *const _ as usize + }, + 724usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k1) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn __c0(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } - } - #[inline] - pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k2 as *const _ as usize + }, + 732usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k2) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn __c1(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } - } - #[inline] - pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k3 as *const _ as usize + }, + 740usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k3) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn __c2(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } - } - #[inline] - pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k4 as *const _ as usize + }, + 748usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k4) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) - } - } - #[inline] - pub fn __tos(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) } - } - #[inline] - pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k5 as *const _ as usize + }, + 756usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k5) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 3u8, val as u64) - } - } - #[inline] - pub fn __c3(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k6 as *const _ as usize + }, + 764usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k6) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn __busy(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k7 as *const _ as usize + }, + 772usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_k7) + ) + ); + assert_eq!( unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - __invalid: ::std::os::raw::c_ushort, - __denorm: ::std::os::raw::c_ushort, - __zdiv: ::std::os::raw::c_ushort, - __ovrfl: ::std::os::raw::c_ushort, - __undfl: ::std::os::raw::c_ushort, - __precis: ::std::os::raw::c_ushort, - __stkflt: ::std::os::raw::c_ushort, - __errsumm: ::std::os::raw::c_ushort, - __c0: ::std::os::raw::c_ushort, - __c1: ::std::os::raw::c_ushort, - __c2: ::std::os::raw::c_ushort, - __tos: ::std::os::raw::c_ushort, - __c3: ::std::os::raw::c_ushort, - __busy: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) }; - __invalid as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) }; - __denorm as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) }; - __zdiv as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) }; - __ovrfl as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) }; - __undfl as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let __precis: u16 = unsafe { ::std::mem::transmute(__precis) }; - __precis as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) }; - __stkflt as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) }; - __errsumm as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let __c0: u16 = unsafe { ::std::mem::transmute(__c0) }; - __c0 as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let __c1: u16 = unsafe { ::std::mem::transmute(__c1) }; - __c1 as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let __c2: u16 = unsafe { ::std::mem::transmute(__c2) }; - __c2 as u64 - }); - __bindgen_bitfield_unit.set(11usize, 3u8, { - let __tos: u16 = unsafe { ::std::mem::transmute(__tos) }; - __tos as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let __c3: u16 = unsafe { ::std::mem::transmute(__c3) }; - __c3 as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let __busy: u16 = unsafe { ::std::mem::transmute(__busy) }; - __busy as u64 - }); - __bindgen_bitfield_unit - } -} -pub type __darwin_fp_status_t = __darwin_fp_status; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_mmst_reg { - pub __mmst_reg: [::std::os::raw::c_char; 10usize], - pub __mmst_rsrv: [::std::os::raw::c_char; 6usize], -} -#[test] -fn bindgen_test_layout___darwin_mmst_reg() { - assert_eq!( - ::std::mem::size_of::<__darwin_mmst_reg>(), - 16usize, - concat!("Size of: ", stringify!(__darwin_mmst_reg)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mmst_reg>(), - 1usize, - concat!("Alignment of ", stringify!(__darwin_mmst_reg)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_reg as *const _ as usize }, - 0usize, + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh0 as *const _ as usize + }, + 780usize, concat!( "Offset of field: ", - stringify!(__darwin_mmst_reg), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__mmst_reg) + stringify!(__fpu_zmmh0) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mmst_reg>())).__mmst_rsrv as *const _ as usize }, - 10usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh1 as *const _ as usize + }, + 812usize, concat!( "Offset of field: ", - stringify!(__darwin_mmst_reg), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__mmst_rsrv) + stringify!(__fpu_zmmh1) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_xmm_reg { - pub __xmm_reg: [::std::os::raw::c_char; 16usize], -} -#[test] -fn bindgen_test_layout___darwin_xmm_reg() { - assert_eq!( - ::std::mem::size_of::<__darwin_xmm_reg>(), - 16usize, - concat!("Size of: ", stringify!(__darwin_xmm_reg)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_xmm_reg>(), - 1usize, - concat!("Alignment of ", stringify!(__darwin_xmm_reg)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_xmm_reg>())).__xmm_reg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh2 as *const _ as usize + }, + 844usize, concat!( "Offset of field: ", - stringify!(__darwin_xmm_reg), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__xmm_reg) + stringify!(__fpu_zmmh2) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_ymm_reg { - pub __ymm_reg: [::std::os::raw::c_char; 32usize], -} -#[test] -fn bindgen_test_layout___darwin_ymm_reg() { - assert_eq!( - ::std::mem::size_of::<__darwin_ymm_reg>(), - 32usize, - concat!("Size of: ", stringify!(__darwin_ymm_reg)) - ); assert_eq!( - ::std::mem::align_of::<__darwin_ymm_reg>(), - 1usize, - concat!("Alignment of ", stringify!(__darwin_ymm_reg)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh3 as *const _ as usize + }, + 876usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_zmmh3) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ymm_reg>())).__ymm_reg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh4 as *const _ as usize + }, + 908usize, concat!( "Offset of field: ", - stringify!(__darwin_ymm_reg), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__ymm_reg) + stringify!(__fpu_zmmh4) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_zmm_reg { - pub __zmm_reg: [::std::os::raw::c_char; 64usize], -} -#[test] -fn bindgen_test_layout___darwin_zmm_reg() { assert_eq!( - ::std::mem::size_of::<__darwin_zmm_reg>(), - 64usize, - concat!("Size of: ", stringify!(__darwin_zmm_reg)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh5 as *const _ as usize + }, + 940usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_zmmh5) + ) ); assert_eq!( - ::std::mem::align_of::<__darwin_zmm_reg>(), - 1usize, - concat!("Alignment of ", stringify!(__darwin_zmm_reg)) + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh6 as *const _ as usize + }, + 972usize, + concat!( + "Offset of field: ", + stringify!(__darwin_i386_avx512_state), + "::", + stringify!(__fpu_zmmh6) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_zmm_reg>())).__zmm_reg as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh7 as *const _ as usize + }, + 1004usize, concat!( "Offset of field: ", - stringify!(__darwin_zmm_reg), + stringify!(__darwin_i386_avx512_state), "::", - stringify!(__zmm_reg) + stringify!(__fpu_zmmh7) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __darwin_opmask_reg { - pub __opmask_reg: [::std::os::raw::c_char; 8usize], +pub struct __darwin_i386_exception_state { + pub __trapno: __uint16_t, + pub __cpu: __uint16_t, + pub __err: __uint32_t, + pub __faultvaddr: __uint32_t, } #[test] -fn bindgen_test_layout___darwin_opmask_reg() { +fn bindgen_test_layout___darwin_i386_exception_state() { assert_eq!( - ::std::mem::size_of::<__darwin_opmask_reg>(), - 8usize, - concat!("Size of: ", stringify!(__darwin_opmask_reg)) + ::std::mem::size_of::<__darwin_i386_exception_state>(), + 12usize, + concat!("Size of: ", stringify!(__darwin_i386_exception_state)) ); assert_eq!( - ::std::mem::align_of::<__darwin_opmask_reg>(), - 1usize, - concat!("Alignment of ", stringify!(__darwin_opmask_reg)) + ::std::mem::align_of::<__darwin_i386_exception_state>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_i386_exception_state)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_opmask_reg>())).__opmask_reg as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__trapno as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_opmask_reg), + stringify!(__darwin_i386_exception_state), "::", - stringify!(__opmask_reg) + stringify!(__trapno) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_i386_float_state { - pub __fpu_reserved: [::std::os::raw::c_int; 2usize], - pub __fpu_fcw: __darwin_fp_control, - pub __fpu_fsw: __darwin_fp_status, - pub __fpu_ftw: __uint8_t, - pub __fpu_rsrv1: __uint8_t, - pub __fpu_fop: __uint16_t, - pub __fpu_ip: __uint32_t, - pub __fpu_cs: __uint16_t, - pub __fpu_rsrv2: __uint16_t, - pub __fpu_dp: __uint32_t, - pub __fpu_ds: __uint16_t, - pub __fpu_rsrv3: __uint16_t, - pub __fpu_mxcsr: __uint32_t, - pub __fpu_mxcsrmask: __uint32_t, - pub __fpu_stmm0: __darwin_mmst_reg, - pub __fpu_stmm1: __darwin_mmst_reg, - pub __fpu_stmm2: __darwin_mmst_reg, - pub __fpu_stmm3: __darwin_mmst_reg, - pub __fpu_stmm4: __darwin_mmst_reg, - pub __fpu_stmm5: __darwin_mmst_reg, - pub __fpu_stmm6: __darwin_mmst_reg, - pub __fpu_stmm7: __darwin_mmst_reg, - pub __fpu_xmm0: __darwin_xmm_reg, - pub __fpu_xmm1: __darwin_xmm_reg, - pub __fpu_xmm2: __darwin_xmm_reg, - pub __fpu_xmm3: __darwin_xmm_reg, - pub __fpu_xmm4: __darwin_xmm_reg, - pub __fpu_xmm5: __darwin_xmm_reg, - pub __fpu_xmm6: __darwin_xmm_reg, - pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], - pub __fpu_reserved1: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___darwin_i386_float_state() { - assert_eq!( - ::std::mem::size_of::<__darwin_i386_float_state>(), - 524usize, - concat!("Size of: ", stringify!(__darwin_i386_float_state)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_i386_float_state>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_i386_float_state)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved as *const _ - as usize + &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__cpu as *const _ as usize }, - 0usize, + 2usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_i386_exception_state), "::", - stringify!(__fpu_reserved) + stringify!(__cpu) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fcw as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__err as *const _ as usize }, - 8usize, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_i386_exception_state), "::", - stringify!(__fpu_fcw) + stringify!(__err) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fsw as *const _ as usize + &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__faultvaddr as *const _ + as usize }, - 10usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_i386_exception_state), "::", - stringify!(__fpu_fsw) + stringify!(__faultvaddr) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_debug_state32 { + pub __dr0: ::std::os::raw::c_uint, + pub __dr1: ::std::os::raw::c_uint, + pub __dr2: ::std::os::raw::c_uint, + pub __dr3: ::std::os::raw::c_uint, + pub __dr4: ::std::os::raw::c_uint, + pub __dr5: ::std::os::raw::c_uint, + pub __dr6: ::std::os::raw::c_uint, + pub __dr7: ::std::os::raw::c_uint, +} +#[test] +fn bindgen_test_layout___darwin_x86_debug_state32() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_debug_state32>(), + 32usize, + concat!("Size of: ", stringify!(__darwin_x86_debug_state32)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_x86_debug_state32>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_x86_debug_state32)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ftw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr0 as *const _ as usize }, - 12usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_ftw) + stringify!(__dr0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr1 as *const _ as usize }, - 13usize, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_rsrv1) + stringify!(__dr1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_fop as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr2 as *const _ as usize }, - 14usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_fop) + stringify!(__dr2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr3 as *const _ as usize }, - 16usize, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_ip) + stringify!(__dr3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr4 as *const _ as usize }, - 20usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_cs) + stringify!(__dr4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr5 as *const _ as usize }, - 22usize, + 20usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_rsrv2) + stringify!(__dr5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_dp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr6 as *const _ as usize }, 24usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_dp) + stringify!(__dr6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr7 as *const _ as usize }, 28usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_debug_state32), "::", - stringify!(__fpu_ds) + stringify!(__dr7) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __x86_pagein_state { + pub __pagein_error: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout___x86_pagein_state() { + assert_eq!( + ::std::mem::size_of::<__x86_pagein_state>(), + 4usize, + concat!("Size of: ", stringify!(__x86_pagein_state)) + ); + assert_eq!( + ::std::mem::align_of::<__x86_pagein_state>(), + 4usize, + concat!("Alignment of ", stringify!(__x86_pagein_state)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv3 as *const _ as usize + &(*(::std::ptr::null::<__x86_pagein_state>())).__pagein_error as *const _ as usize }, - 30usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__x86_pagein_state), "::", - stringify!(__fpu_rsrv3) + stringify!(__pagein_error) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_thread_state64 { + pub __rax: __uint64_t, + pub __rbx: __uint64_t, + pub __rcx: __uint64_t, + pub __rdx: __uint64_t, + pub __rdi: __uint64_t, + pub __rsi: __uint64_t, + pub __rbp: __uint64_t, + pub __rsp: __uint64_t, + pub __r8: __uint64_t, + pub __r9: __uint64_t, + pub __r10: __uint64_t, + pub __r11: __uint64_t, + pub __r12: __uint64_t, + pub __r13: __uint64_t, + pub __r14: __uint64_t, + pub __r15: __uint64_t, + pub __rip: __uint64_t, + pub __rflags: __uint64_t, + pub __cs: __uint64_t, + pub __fs: __uint64_t, + pub __gs: __uint64_t, +} +#[test] +fn bindgen_test_layout___darwin_x86_thread_state64() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_thread_state64>(), + 168usize, + concat!("Size of: ", stringify!(__darwin_x86_thread_state64)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_x86_thread_state64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_x86_thread_state64)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsr as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rax as *const _ as usize }, - 32usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_mxcsr) + stringify!(__rax) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_mxcsrmask as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbx as *const _ as usize }, - 36usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_mxcsrmask) + stringify!(__rbx) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rcx as *const _ as usize }, - 40usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm0) + stringify!(__rcx) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdx as *const _ as usize }, - 56usize, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm1) + stringify!(__rdx) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdi as *const _ as usize }, - 72usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm2) + stringify!(__rdi) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsi as *const _ as usize }, - 88usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm3) + stringify!(__rsi) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbp as *const _ as usize }, - 104usize, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm4) + stringify!(__rbp) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsp as *const _ as usize }, - 120usize, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm5) + stringify!(__rsp) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r8 as *const _ as usize }, - 136usize, + 64usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm6) + stringify!(__r8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_stmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r9 as *const _ as usize }, - 152usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_stmm7) + stringify!(__r9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r10 as *const _ as usize }, - 168usize, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm0) + stringify!(__r10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r11 as *const _ as usize }, - 184usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm1) + stringify!(__r11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r12 as *const _ as usize }, - 200usize, + 96usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm2) + stringify!(__r12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r13 as *const _ as usize }, - 216usize, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm3) + stringify!(__r13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r14 as *const _ as usize }, - 232usize, + 112usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm4) + stringify!(__r14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r15 as *const _ as usize }, - 248usize, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm5) + stringify!(__r15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rip as *const _ as usize }, - 264usize, + 128usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm6) + stringify!(__rip) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_xmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rflags as *const _ as usize }, - 280usize, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_xmm7) + stringify!(__rflags) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_rsrv4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__cs as *const _ as usize }, - 296usize, + 144usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_rsrv4) + stringify!(__cs) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_float_state>())).__fpu_reserved1 as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__fs as *const _ as usize }, - 520usize, + 152usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_float_state), + stringify!(__darwin_x86_thread_state64), "::", - stringify!(__fpu_reserved1) + stringify!(__fs) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__gs as *const _ as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_thread_state64), + "::", + stringify!(__gs) ) ); } #[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_i386_avx_state { - pub __fpu_reserved: [::std::os::raw::c_int; 2usize], - pub __fpu_fcw: __darwin_fp_control, - pub __fpu_fsw: __darwin_fp_status, - pub __fpu_ftw: __uint8_t, - pub __fpu_rsrv1: __uint8_t, - pub __fpu_fop: __uint16_t, - pub __fpu_ip: __uint32_t, - pub __fpu_cs: __uint16_t, - pub __fpu_rsrv2: __uint16_t, - pub __fpu_dp: __uint32_t, - pub __fpu_ds: __uint16_t, - pub __fpu_rsrv3: __uint16_t, - pub __fpu_mxcsr: __uint32_t, - pub __fpu_mxcsrmask: __uint32_t, - pub __fpu_stmm0: __darwin_mmst_reg, - pub __fpu_stmm1: __darwin_mmst_reg, - pub __fpu_stmm2: __darwin_mmst_reg, - pub __fpu_stmm3: __darwin_mmst_reg, - pub __fpu_stmm4: __darwin_mmst_reg, - pub __fpu_stmm5: __darwin_mmst_reg, - pub __fpu_stmm6: __darwin_mmst_reg, - pub __fpu_stmm7: __darwin_mmst_reg, - pub __fpu_xmm0: __darwin_xmm_reg, - pub __fpu_xmm1: __darwin_xmm_reg, - pub __fpu_xmm2: __darwin_xmm_reg, - pub __fpu_xmm3: __darwin_xmm_reg, - pub __fpu_xmm4: __darwin_xmm_reg, - pub __fpu_xmm5: __darwin_xmm_reg, - pub __fpu_xmm6: __darwin_xmm_reg, - pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], - pub __fpu_reserved1: ::std::os::raw::c_int, - pub __avx_reserved1: [::std::os::raw::c_char; 64usize], - pub __fpu_ymmh0: __darwin_xmm_reg, - pub __fpu_ymmh1: __darwin_xmm_reg, - pub __fpu_ymmh2: __darwin_xmm_reg, - pub __fpu_ymmh3: __darwin_xmm_reg, - pub __fpu_ymmh4: __darwin_xmm_reg, - pub __fpu_ymmh5: __darwin_xmm_reg, - pub __fpu_ymmh6: __darwin_xmm_reg, - pub __fpu_ymmh7: __darwin_xmm_reg, +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_thread_full_state64 { + pub __ss64: __darwin_x86_thread_state64, + pub __ds: __uint64_t, + pub __es: __uint64_t, + pub __ss: __uint64_t, + pub __gsbase: __uint64_t, } #[test] -fn bindgen_test_layout___darwin_i386_avx_state() { +fn bindgen_test_layout___darwin_x86_thread_full_state64() { assert_eq!( - ::std::mem::size_of::<__darwin_i386_avx_state>(), - 716usize, - concat!("Size of: ", stringify!(__darwin_i386_avx_state)) + ::std::mem::size_of::<__darwin_x86_thread_full_state64>(), + 200usize, + concat!("Size of: ", stringify!(__darwin_x86_thread_full_state64)) ); assert_eq!( - ::std::mem::align_of::<__darwin_i386_avx_state>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_i386_avx_state)) + ::std::mem::align_of::<__darwin_x86_thread_full_state64>(), + 8usize, + concat!( + "Alignment of ", + stringify!(__darwin_x86_thread_full_state64) + ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss64 as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_thread_full_state64), "::", - stringify!(__fpu_reserved) + stringify!(__ss64) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fcw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ds as *const _ as usize }, - 8usize, + 168usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_thread_full_state64), "::", - stringify!(__fpu_fcw) + stringify!(__ds) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fsw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__es as *const _ as usize }, - 10usize, + 176usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_thread_full_state64), "::", - stringify!(__fpu_fsw) + stringify!(__es) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ftw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss as *const _ as usize }, - 12usize, + 184usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_thread_full_state64), "::", - stringify!(__fpu_ftw) + stringify!(__ss) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__gsbase as *const _ + as usize }, - 13usize, + 192usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_thread_full_state64), "::", - stringify!(__fpu_rsrv1) + stringify!(__gsbase) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_fop as *const _ as usize - }, - 14usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_avx_state), +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_x86_float_state64 { + pub __fpu_reserved: [::std::os::raw::c_int; 2usize], + pub __fpu_fcw: __darwin_fp_control, + pub __fpu_fsw: __darwin_fp_status, + pub __fpu_ftw: __uint8_t, + pub __fpu_rsrv1: __uint8_t, + pub __fpu_fop: __uint16_t, + pub __fpu_ip: __uint32_t, + pub __fpu_cs: __uint16_t, + pub __fpu_rsrv2: __uint16_t, + pub __fpu_dp: __uint32_t, + pub __fpu_ds: __uint16_t, + pub __fpu_rsrv3: __uint16_t, + pub __fpu_mxcsr: __uint32_t, + pub __fpu_mxcsrmask: __uint32_t, + pub __fpu_stmm0: __darwin_mmst_reg, + pub __fpu_stmm1: __darwin_mmst_reg, + pub __fpu_stmm2: __darwin_mmst_reg, + pub __fpu_stmm3: __darwin_mmst_reg, + pub __fpu_stmm4: __darwin_mmst_reg, + pub __fpu_stmm5: __darwin_mmst_reg, + pub __fpu_stmm6: __darwin_mmst_reg, + pub __fpu_stmm7: __darwin_mmst_reg, + pub __fpu_xmm0: __darwin_xmm_reg, + pub __fpu_xmm1: __darwin_xmm_reg, + pub __fpu_xmm2: __darwin_xmm_reg, + pub __fpu_xmm3: __darwin_xmm_reg, + pub __fpu_xmm4: __darwin_xmm_reg, + pub __fpu_xmm5: __darwin_xmm_reg, + pub __fpu_xmm6: __darwin_xmm_reg, + pub __fpu_xmm7: __darwin_xmm_reg, + pub __fpu_xmm8: __darwin_xmm_reg, + pub __fpu_xmm9: __darwin_xmm_reg, + pub __fpu_xmm10: __darwin_xmm_reg, + pub __fpu_xmm11: __darwin_xmm_reg, + pub __fpu_xmm12: __darwin_xmm_reg, + pub __fpu_xmm13: __darwin_xmm_reg, + pub __fpu_xmm14: __darwin_xmm_reg, + pub __fpu_xmm15: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], + pub __fpu_reserved1: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout___darwin_x86_float_state64() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_float_state64>(), + 524usize, + concat!("Size of: ", stringify!(__darwin_x86_float_state64)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_x86_float_state64>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_x86_float_state64)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), + "::", + stringify!(__fpu_reserved) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fcw as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), + "::", + stringify!(__fpu_fcw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fsw as *const _ as usize + }, + 10usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), + "::", + stringify!(__fpu_fsw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ftw as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), + "::", + stringify!(__fpu_ftw) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv1 as *const _ as usize + }, + 13usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), + "::", + stringify!(__fpu_rsrv1) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fop as *const _ as usize + }, + 14usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_fop) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ip as *const _ as usize }, 16usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_ip) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_cs as *const _ as usize }, 20usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_cs) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv2 as *const _ as usize }, 22usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_rsrv2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_dp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_dp as *const _ as usize }, 24usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_dp) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ds as *const _ as usize }, 28usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_ds) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv3 as *const _ as usize }, 30usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_rsrv3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsr as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsr as *const _ as usize }, 32usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_mxcsr) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_mxcsrmask as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsrmask as *const _ + as usize }, 36usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_mxcsrmask) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm0 as *const _ as usize }, 40usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm1 as *const _ as usize }, 56usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm2 as *const _ as usize }, 72usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm3 as *const _ as usize }, 88usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm4 as *const _ as usize }, 104usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm5 as *const _ as usize }, 120usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm6 as *const _ as usize }, 136usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_stmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm7 as *const _ as usize }, 152usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_stmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm0 as *const _ as usize }, 168usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm1 as *const _ as usize }, 184usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm2 as *const _ as usize }, 200usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm3 as *const _ as usize }, 216usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm4 as *const _ as usize }, 232usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm5 as *const _ as usize }, 248usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm6 as *const _ as usize }, 264usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_xmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm7 as *const _ as usize }, 280usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", stringify!(__fpu_xmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_rsrv4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm8 as *const _ as usize }, 296usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_rsrv4) + stringify!(__fpu_xmm8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_reserved1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm9 as *const _ as usize }, - 520usize, + 312usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_reserved1) + stringify!(__fpu_xmm9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__avx_reserved1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm10 as *const _ as usize }, - 524usize, + 328usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__avx_reserved1) + stringify!(__fpu_xmm10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm11 as *const _ as usize }, - 588usize, + 344usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh0) + stringify!(__fpu_xmm11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm12 as *const _ as usize }, - 604usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_avx_state), - "::", - stringify!(__fpu_ymmh1) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh2 as *const _ as usize - }, - 620usize, + 360usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh2) + stringify!(__fpu_xmm12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm13 as *const _ as usize }, - 636usize, + 376usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh3) + stringify!(__fpu_xmm13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm14 as *const _ as usize }, - 652usize, + 392usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh4) + stringify!(__fpu_xmm14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm15 as *const _ as usize }, - 668usize, + 408usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh5) + stringify!(__fpu_xmm15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv4 as *const _ as usize }, - 684usize, + 424usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh6) + stringify!(__fpu_rsrv4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx_state>())).__fpu_ymmh7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved1 as *const _ + as usize }, - 700usize, + 520usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx_state), + stringify!(__darwin_x86_float_state64), "::", - stringify!(__fpu_ymmh7) + stringify!(__fpu_reserved1) ) ); } #[repr(C)] #[derive(Copy, Clone)] -pub struct __darwin_i386_avx512_state { +pub struct __darwin_x86_avx_state64 { pub __fpu_reserved: [::std::os::raw::c_int; 2usize], pub __fpu_fcw: __darwin_fp_control, pub __fpu_fsw: __darwin_fp_status, @@ -6149,7 +5417,15 @@ pub struct __darwin_i386_avx512_state { pub __fpu_xmm5: __darwin_xmm_reg, pub __fpu_xmm6: __darwin_xmm_reg, pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize], + pub __fpu_xmm8: __darwin_xmm_reg, + pub __fpu_xmm9: __darwin_xmm_reg, + pub __fpu_xmm10: __darwin_xmm_reg, + pub __fpu_xmm11: __darwin_xmm_reg, + pub __fpu_xmm12: __darwin_xmm_reg, + pub __fpu_xmm13: __darwin_xmm_reg, + pub __fpu_xmm14: __darwin_xmm_reg, + pub __fpu_xmm15: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], pub __fpu_reserved1: ::std::os::raw::c_int, pub __avx_reserved1: [::std::os::raw::c_char; 64usize], pub __fpu_ymmh0: __darwin_xmm_reg, @@ -6160,8574 +5436,9251 @@ pub struct __darwin_i386_avx512_state { pub __fpu_ymmh5: __darwin_xmm_reg, pub __fpu_ymmh6: __darwin_xmm_reg, pub __fpu_ymmh7: __darwin_xmm_reg, - pub __fpu_k0: __darwin_opmask_reg, - pub __fpu_k1: __darwin_opmask_reg, - pub __fpu_k2: __darwin_opmask_reg, - pub __fpu_k3: __darwin_opmask_reg, - pub __fpu_k4: __darwin_opmask_reg, - pub __fpu_k5: __darwin_opmask_reg, - pub __fpu_k6: __darwin_opmask_reg, - pub __fpu_k7: __darwin_opmask_reg, - pub __fpu_zmmh0: __darwin_ymm_reg, - pub __fpu_zmmh1: __darwin_ymm_reg, - pub __fpu_zmmh2: __darwin_ymm_reg, - pub __fpu_zmmh3: __darwin_ymm_reg, - pub __fpu_zmmh4: __darwin_ymm_reg, - pub __fpu_zmmh5: __darwin_ymm_reg, - pub __fpu_zmmh6: __darwin_ymm_reg, - pub __fpu_zmmh7: __darwin_ymm_reg, + pub __fpu_ymmh8: __darwin_xmm_reg, + pub __fpu_ymmh9: __darwin_xmm_reg, + pub __fpu_ymmh10: __darwin_xmm_reg, + pub __fpu_ymmh11: __darwin_xmm_reg, + pub __fpu_ymmh12: __darwin_xmm_reg, + pub __fpu_ymmh13: __darwin_xmm_reg, + pub __fpu_ymmh14: __darwin_xmm_reg, + pub __fpu_ymmh15: __darwin_xmm_reg, } #[test] -fn bindgen_test_layout___darwin_i386_avx512_state() { +fn bindgen_test_layout___darwin_x86_avx_state64() { assert_eq!( - ::std::mem::size_of::<__darwin_i386_avx512_state>(), - 1036usize, - concat!("Size of: ", stringify!(__darwin_i386_avx512_state)) + ::std::mem::size_of::<__darwin_x86_avx_state64>(), + 844usize, + concat!("Size of: ", stringify!(__darwin_x86_avx_state64)) ); assert_eq!( - ::std::mem::align_of::<__darwin_i386_avx512_state>(), + ::std::mem::align_of::<__darwin_x86_avx_state64>(), 4usize, - concat!("Alignment of ", stringify!(__darwin_i386_avx512_state)) + concat!("Alignment of ", stringify!(__darwin_x86_avx_state64)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_reserved) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fcw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fcw as *const _ as usize }, 8usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_fcw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fsw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fsw as *const _ as usize }, 10usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_fsw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ftw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ftw as *const _ as usize }, 12usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_ftw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv1 as *const _ as usize }, 13usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_rsrv1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_fop as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fop as *const _ as usize }, 14usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_fop) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ip as *const _ as usize }, 16usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_ip) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_cs as *const _ as usize }, 20usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_cs) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv2 as *const _ as usize }, 22usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_rsrv2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_dp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_dp as *const _ as usize }, 24usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_dp) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ds as *const _ as usize }, 28usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_ds) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv3 as *const _ as usize }, 30usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_rsrv3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsr as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsr as *const _ as usize }, 32usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_mxcsr) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_mxcsrmask as *const _ + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsrmask as *const _ as usize }, 36usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_mxcsrmask) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm0 as *const _ as usize }, 40usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm1 as *const _ as usize }, 56usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm2 as *const _ as usize }, 72usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm3 as *const _ as usize }, 88usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm4 as *const _ as usize }, 104usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm5 as *const _ as usize }, 120usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm6 as *const _ as usize }, 136usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_stmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm7 as *const _ as usize }, 152usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_stmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm0 as *const _ as usize }, 168usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm1 as *const _ as usize }, 184usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm2 as *const _ as usize }, 200usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm3 as *const _ as usize }, 216usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm4 as *const _ as usize }, 232usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm5 as *const _ as usize }, 248usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm6 as *const _ as usize }, 264usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_xmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm7 as *const _ as usize }, 280usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", stringify!(__fpu_xmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_rsrv4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm8 as *const _ as usize }, 296usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_rsrv4) + stringify!(__fpu_xmm8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_reserved1 as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm9 as *const _ as usize }, - 520usize, + 312usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_reserved1) + stringify!(__fpu_xmm9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__avx_reserved1 as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm10 as *const _ as usize }, - 524usize, + 328usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__avx_reserved1) + stringify!(__fpu_xmm10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm11 as *const _ as usize }, - 588usize, + 344usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh0) + stringify!(__fpu_xmm11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm12 as *const _ as usize }, - 604usize, + 360usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh1) + stringify!(__fpu_xmm12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm13 as *const _ as usize }, - 620usize, + 376usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh2) + stringify!(__fpu_xmm13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm14 as *const _ as usize }, - 636usize, + 392usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh3) + stringify!(__fpu_xmm14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm15 as *const _ as usize }, - 652usize, + 408usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh4) + stringify!(__fpu_xmm15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv4 as *const _ as usize }, - 668usize, + 424usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh5) + stringify!(__fpu_rsrv4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved1 as *const _ + as usize }, - 684usize, + 520usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh6) + stringify!(__fpu_reserved1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_ymmh7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__avx_reserved1 as *const _ + as usize }, - 700usize, + 524usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_ymmh7) + stringify!(__avx_reserved1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh0 as *const _ as usize }, - 716usize, + 588usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k0) + stringify!(__fpu_ymmh0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh1 as *const _ as usize }, - 724usize, + 604usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k1) + stringify!(__fpu_ymmh1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh2 as *const _ as usize }, - 732usize, + 620usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k2) + stringify!(__fpu_ymmh2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh3 as *const _ as usize }, - 740usize, + 636usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k3) + stringify!(__fpu_ymmh3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh4 as *const _ as usize }, - 748usize, + 652usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k4) + stringify!(__fpu_ymmh4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh5 as *const _ as usize }, - 756usize, + 668usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k5) + stringify!(__fpu_ymmh5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh6 as *const _ as usize }, - 764usize, + 684usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k6) + stringify!(__fpu_ymmh6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_k7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh7 as *const _ as usize }, - 772usize, + 700usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_k7) + stringify!(__fpu_ymmh7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh8 as *const _ as usize }, - 780usize, + 716usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh0) + stringify!(__fpu_ymmh8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh9 as *const _ as usize }, - 812usize, + 732usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh1) + stringify!(__fpu_ymmh9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh10 as *const _ as usize }, - 844usize, + 748usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh2) + stringify!(__fpu_ymmh10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh11 as *const _ as usize }, - 876usize, + 764usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh3) + stringify!(__fpu_ymmh11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh12 as *const _ as usize }, - 908usize, + 780usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh4) + stringify!(__fpu_ymmh12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh13 as *const _ as usize }, - 940usize, + 796usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh5) + stringify!(__fpu_ymmh13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh14 as *const _ as usize }, - 972usize, + 812usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh6) + stringify!(__fpu_ymmh14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_i386_avx512_state>())).__fpu_zmmh7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh15 as *const _ as usize }, - 1004usize, + 828usize, concat!( "Offset of field: ", - stringify!(__darwin_i386_avx512_state), + stringify!(__darwin_x86_avx_state64), "::", - stringify!(__fpu_zmmh7) + stringify!(__fpu_ymmh15) ) ); } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_i386_exception_state { - pub __trapno: __uint16_t, - pub __cpu: __uint16_t, - pub __err: __uint32_t, - pub __faultvaddr: __uint32_t, -} -#[test] -fn bindgen_test_layout___darwin_i386_exception_state() { - assert_eq!( - ::std::mem::size_of::<__darwin_i386_exception_state>(), - 12usize, - concat!("Size of: ", stringify!(__darwin_i386_exception_state)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_i386_exception_state>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_i386_exception_state)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__trapno as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_exception_state), - "::", - stringify!(__trapno) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__cpu as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_exception_state), - "::", - stringify!(__cpu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__err as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_exception_state), - "::", - stringify!(__err) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_i386_exception_state>())).__faultvaddr as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__darwin_i386_exception_state), - "::", - stringify!(__faultvaddr) - ) - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_debug_state32 { - pub __dr0: ::std::os::raw::c_uint, - pub __dr1: ::std::os::raw::c_uint, - pub __dr2: ::std::os::raw::c_uint, - pub __dr3: ::std::os::raw::c_uint, - pub __dr4: ::std::os::raw::c_uint, - pub __dr5: ::std::os::raw::c_uint, - pub __dr6: ::std::os::raw::c_uint, - pub __dr7: ::std::os::raw::c_uint, +#[derive(Copy, Clone)] +pub struct __darwin_x86_avx512_state64 { + pub __fpu_reserved: [::std::os::raw::c_int; 2usize], + pub __fpu_fcw: __darwin_fp_control, + pub __fpu_fsw: __darwin_fp_status, + pub __fpu_ftw: __uint8_t, + pub __fpu_rsrv1: __uint8_t, + pub __fpu_fop: __uint16_t, + pub __fpu_ip: __uint32_t, + pub __fpu_cs: __uint16_t, + pub __fpu_rsrv2: __uint16_t, + pub __fpu_dp: __uint32_t, + pub __fpu_ds: __uint16_t, + pub __fpu_rsrv3: __uint16_t, + pub __fpu_mxcsr: __uint32_t, + pub __fpu_mxcsrmask: __uint32_t, + pub __fpu_stmm0: __darwin_mmst_reg, + pub __fpu_stmm1: __darwin_mmst_reg, + pub __fpu_stmm2: __darwin_mmst_reg, + pub __fpu_stmm3: __darwin_mmst_reg, + pub __fpu_stmm4: __darwin_mmst_reg, + pub __fpu_stmm5: __darwin_mmst_reg, + pub __fpu_stmm6: __darwin_mmst_reg, + pub __fpu_stmm7: __darwin_mmst_reg, + pub __fpu_xmm0: __darwin_xmm_reg, + pub __fpu_xmm1: __darwin_xmm_reg, + pub __fpu_xmm2: __darwin_xmm_reg, + pub __fpu_xmm3: __darwin_xmm_reg, + pub __fpu_xmm4: __darwin_xmm_reg, + pub __fpu_xmm5: __darwin_xmm_reg, + pub __fpu_xmm6: __darwin_xmm_reg, + pub __fpu_xmm7: __darwin_xmm_reg, + pub __fpu_xmm8: __darwin_xmm_reg, + pub __fpu_xmm9: __darwin_xmm_reg, + pub __fpu_xmm10: __darwin_xmm_reg, + pub __fpu_xmm11: __darwin_xmm_reg, + pub __fpu_xmm12: __darwin_xmm_reg, + pub __fpu_xmm13: __darwin_xmm_reg, + pub __fpu_xmm14: __darwin_xmm_reg, + pub __fpu_xmm15: __darwin_xmm_reg, + pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], + pub __fpu_reserved1: ::std::os::raw::c_int, + pub __avx_reserved1: [::std::os::raw::c_char; 64usize], + pub __fpu_ymmh0: __darwin_xmm_reg, + pub __fpu_ymmh1: __darwin_xmm_reg, + pub __fpu_ymmh2: __darwin_xmm_reg, + pub __fpu_ymmh3: __darwin_xmm_reg, + pub __fpu_ymmh4: __darwin_xmm_reg, + pub __fpu_ymmh5: __darwin_xmm_reg, + pub __fpu_ymmh6: __darwin_xmm_reg, + pub __fpu_ymmh7: __darwin_xmm_reg, + pub __fpu_ymmh8: __darwin_xmm_reg, + pub __fpu_ymmh9: __darwin_xmm_reg, + pub __fpu_ymmh10: __darwin_xmm_reg, + pub __fpu_ymmh11: __darwin_xmm_reg, + pub __fpu_ymmh12: __darwin_xmm_reg, + pub __fpu_ymmh13: __darwin_xmm_reg, + pub __fpu_ymmh14: __darwin_xmm_reg, + pub __fpu_ymmh15: __darwin_xmm_reg, + pub __fpu_k0: __darwin_opmask_reg, + pub __fpu_k1: __darwin_opmask_reg, + pub __fpu_k2: __darwin_opmask_reg, + pub __fpu_k3: __darwin_opmask_reg, + pub __fpu_k4: __darwin_opmask_reg, + pub __fpu_k5: __darwin_opmask_reg, + pub __fpu_k6: __darwin_opmask_reg, + pub __fpu_k7: __darwin_opmask_reg, + pub __fpu_zmmh0: __darwin_ymm_reg, + pub __fpu_zmmh1: __darwin_ymm_reg, + pub __fpu_zmmh2: __darwin_ymm_reg, + pub __fpu_zmmh3: __darwin_ymm_reg, + pub __fpu_zmmh4: __darwin_ymm_reg, + pub __fpu_zmmh5: __darwin_ymm_reg, + pub __fpu_zmmh6: __darwin_ymm_reg, + pub __fpu_zmmh7: __darwin_ymm_reg, + pub __fpu_zmmh8: __darwin_ymm_reg, + pub __fpu_zmmh9: __darwin_ymm_reg, + pub __fpu_zmmh10: __darwin_ymm_reg, + pub __fpu_zmmh11: __darwin_ymm_reg, + pub __fpu_zmmh12: __darwin_ymm_reg, + pub __fpu_zmmh13: __darwin_ymm_reg, + pub __fpu_zmmh14: __darwin_ymm_reg, + pub __fpu_zmmh15: __darwin_ymm_reg, + pub __fpu_zmm16: __darwin_zmm_reg, + pub __fpu_zmm17: __darwin_zmm_reg, + pub __fpu_zmm18: __darwin_zmm_reg, + pub __fpu_zmm19: __darwin_zmm_reg, + pub __fpu_zmm20: __darwin_zmm_reg, + pub __fpu_zmm21: __darwin_zmm_reg, + pub __fpu_zmm22: __darwin_zmm_reg, + pub __fpu_zmm23: __darwin_zmm_reg, + pub __fpu_zmm24: __darwin_zmm_reg, + pub __fpu_zmm25: __darwin_zmm_reg, + pub __fpu_zmm26: __darwin_zmm_reg, + pub __fpu_zmm27: __darwin_zmm_reg, + pub __fpu_zmm28: __darwin_zmm_reg, + pub __fpu_zmm29: __darwin_zmm_reg, + pub __fpu_zmm30: __darwin_zmm_reg, + pub __fpu_zmm31: __darwin_zmm_reg, } #[test] -fn bindgen_test_layout___darwin_x86_debug_state32() { +fn bindgen_test_layout___darwin_x86_avx512_state64() { assert_eq!( - ::std::mem::size_of::<__darwin_x86_debug_state32>(), - 32usize, - concat!("Size of: ", stringify!(__darwin_x86_debug_state32)) + ::std::mem::size_of::<__darwin_x86_avx512_state64>(), + 2444usize, + concat!("Size of: ", stringify!(__darwin_x86_avx512_state64)) ); assert_eq!( - ::std::mem::align_of::<__darwin_x86_debug_state32>(), + ::std::mem::align_of::<__darwin_x86_avx512_state64>(), 4usize, - concat!("Alignment of ", stringify!(__darwin_x86_debug_state32)) + concat!("Alignment of ", stringify!(__darwin_x86_avx512_state64)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved as *const _ + as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr0) + stringify!(__fpu_reserved) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fcw as *const _ as usize }, - 4usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr1) + stringify!(__fpu_fcw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fsw as *const _ as usize }, - 8usize, + 10usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr2) + stringify!(__fpu_fsw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ftw as *const _ as usize }, 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr3) + stringify!(__fpu_ftw) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv1 as *const _ as usize + }, + 13usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_avx512_state64), + "::", + stringify!(__fpu_rsrv1) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fop as *const _ as usize + }, + 14usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_avx512_state64), + "::", + stringify!(__fpu_fop) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ip as *const _ as usize }, 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr4) + stringify!(__fpu_ip) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_cs as *const _ as usize }, 20usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr5) + stringify!(__fpu_cs) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv2 as *const _ as usize + }, + 22usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_avx512_state64), + "::", + stringify!(__fpu_rsrv2) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_dp as *const _ as usize }, 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr6) + stringify!(__fpu_dp) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state32>())).__dr7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ds as *const _ as usize }, 28usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state32), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__dr7) + stringify!(__fpu_ds) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __x86_pagein_state { - pub __pagein_error: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___x86_pagein_state() { assert_eq!( - ::std::mem::size_of::<__x86_pagein_state>(), - 4usize, - concat!("Size of: ", stringify!(__x86_pagein_state)) + unsafe { + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv3 as *const _ as usize + }, + 30usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_avx512_state64), + "::", + stringify!(__fpu_rsrv3) + ) ); assert_eq!( - ::std::mem::align_of::<__x86_pagein_state>(), - 4usize, - concat!("Alignment of ", stringify!(__x86_pagein_state)) + unsafe { + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsr as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(__darwin_x86_avx512_state64), + "::", + stringify!(__fpu_mxcsr) + ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__x86_pagein_state>())).__pagein_error as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsrmask as *const _ + as usize }, - 0usize, + 36usize, concat!( "Offset of field: ", - stringify!(__x86_pagein_state), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__pagein_error) + stringify!(__fpu_mxcsrmask) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_thread_state64 { - pub __rax: __uint64_t, - pub __rbx: __uint64_t, - pub __rcx: __uint64_t, - pub __rdx: __uint64_t, - pub __rdi: __uint64_t, - pub __rsi: __uint64_t, - pub __rbp: __uint64_t, - pub __rsp: __uint64_t, - pub __r8: __uint64_t, - pub __r9: __uint64_t, - pub __r10: __uint64_t, - pub __r11: __uint64_t, - pub __r12: __uint64_t, - pub __r13: __uint64_t, - pub __r14: __uint64_t, - pub __r15: __uint64_t, - pub __rip: __uint64_t, - pub __rflags: __uint64_t, - pub __cs: __uint64_t, - pub __fs: __uint64_t, - pub __gs: __uint64_t, -} -#[test] -fn bindgen_test_layout___darwin_x86_thread_state64() { - assert_eq!( - ::std::mem::size_of::<__darwin_x86_thread_state64>(), - 168usize, - concat!("Size of: ", stringify!(__darwin_x86_thread_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_thread_state64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_x86_thread_state64)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rax as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm0 as *const _ as usize }, - 0usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rax) + stringify!(__fpu_stmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbx as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm1 as *const _ as usize }, - 8usize, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rbx) + stringify!(__fpu_stmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rcx as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm2 as *const _ as usize }, - 16usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rcx) + stringify!(__fpu_stmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdx as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm3 as *const _ as usize }, - 24usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rdx) + stringify!(__fpu_stmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rdi as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm4 as *const _ as usize }, - 32usize, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rdi) + stringify!(__fpu_stmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsi as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm5 as *const _ as usize }, - 40usize, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rsi) + stringify!(__fpu_stmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rbp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm6 as *const _ as usize }, - 48usize, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rbp) + stringify!(__fpu_stmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rsp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm7 as *const _ as usize }, - 56usize, + 152usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rsp) + stringify!(__fpu_stmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r8 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm0 as *const _ as usize }, - 64usize, + 168usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r8) + stringify!(__fpu_xmm0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r9 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm1 as *const _ as usize }, - 72usize, + 184usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r9) + stringify!(__fpu_xmm1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r10 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm2 as *const _ as usize }, - 80usize, + 200usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r10) + stringify!(__fpu_xmm2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r11 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm3 as *const _ as usize }, - 88usize, + 216usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r11) + stringify!(__fpu_xmm3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r12 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm4 as *const _ as usize }, - 96usize, + 232usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r12) + stringify!(__fpu_xmm4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r13 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm5 as *const _ as usize }, - 104usize, + 248usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r13) + stringify!(__fpu_xmm5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r14 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm6 as *const _ as usize }, - 112usize, + 264usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r14) + stringify!(__fpu_xmm6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__r15 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm7 as *const _ as usize }, - 120usize, + 280usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__r15) + stringify!(__fpu_xmm7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm8 as *const _ as usize }, - 128usize, + 296usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rip) + stringify!(__fpu_xmm8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__rflags as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm9 as *const _ as usize }, - 136usize, + 312usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__rflags) + stringify!(__fpu_xmm9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm10 as *const _ as usize }, - 144usize, + 328usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__cs) + stringify!(__fpu_xmm10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__fs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm11 as *const _ as usize }, - 152usize, + 344usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fs) + stringify!(__fpu_xmm11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_state64>())).__gs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm12 as *const _ as usize }, - 160usize, + 360usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__gs) - ) - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_thread_full_state64 { - pub __ss64: __darwin_x86_thread_state64, - pub __ds: __uint64_t, - pub __es: __uint64_t, - pub __ss: __uint64_t, - pub __gsbase: __uint64_t, -} -#[test] -fn bindgen_test_layout___darwin_x86_thread_full_state64() { - assert_eq!( - ::std::mem::size_of::<__darwin_x86_thread_full_state64>(), - 200usize, - concat!("Size of: ", stringify!(__darwin_x86_thread_full_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_thread_full_state64>(), - 8usize, - concat!( - "Alignment of ", - stringify!(__darwin_x86_thread_full_state64) + stringify!(__fpu_xmm12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss64 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm13 as *const _ as usize }, - 0usize, + 376usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_full_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__ss64) + stringify!(__fpu_xmm13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm14 as *const _ as usize }, - 168usize, + 392usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_full_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__ds) + stringify!(__fpu_xmm14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__es as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm15 as *const _ as usize }, - 176usize, + 408usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_full_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__es) + stringify!(__fpu_xmm15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__ss as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv4 as *const _ as usize }, - 184usize, + 424usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_full_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__ss) + stringify!(__fpu_rsrv4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_thread_full_state64>())).__gsbase as *const _ + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved1 as *const _ as usize }, - 192usize, + 520usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_thread_full_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__gsbase) + stringify!(__fpu_reserved1) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_x86_float_state64 { - pub __fpu_reserved: [::std::os::raw::c_int; 2usize], - pub __fpu_fcw: __darwin_fp_control, - pub __fpu_fsw: __darwin_fp_status, - pub __fpu_ftw: __uint8_t, - pub __fpu_rsrv1: __uint8_t, - pub __fpu_fop: __uint16_t, - pub __fpu_ip: __uint32_t, - pub __fpu_cs: __uint16_t, - pub __fpu_rsrv2: __uint16_t, - pub __fpu_dp: __uint32_t, - pub __fpu_ds: __uint16_t, - pub __fpu_rsrv3: __uint16_t, - pub __fpu_mxcsr: __uint32_t, - pub __fpu_mxcsrmask: __uint32_t, - pub __fpu_stmm0: __darwin_mmst_reg, - pub __fpu_stmm1: __darwin_mmst_reg, - pub __fpu_stmm2: __darwin_mmst_reg, - pub __fpu_stmm3: __darwin_mmst_reg, - pub __fpu_stmm4: __darwin_mmst_reg, - pub __fpu_stmm5: __darwin_mmst_reg, - pub __fpu_stmm6: __darwin_mmst_reg, - pub __fpu_stmm7: __darwin_mmst_reg, - pub __fpu_xmm0: __darwin_xmm_reg, - pub __fpu_xmm1: __darwin_xmm_reg, - pub __fpu_xmm2: __darwin_xmm_reg, - pub __fpu_xmm3: __darwin_xmm_reg, - pub __fpu_xmm4: __darwin_xmm_reg, - pub __fpu_xmm5: __darwin_xmm_reg, - pub __fpu_xmm6: __darwin_xmm_reg, - pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_xmm8: __darwin_xmm_reg, - pub __fpu_xmm9: __darwin_xmm_reg, - pub __fpu_xmm10: __darwin_xmm_reg, - pub __fpu_xmm11: __darwin_xmm_reg, - pub __fpu_xmm12: __darwin_xmm_reg, - pub __fpu_xmm13: __darwin_xmm_reg, - pub __fpu_xmm14: __darwin_xmm_reg, - pub __fpu_xmm15: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], - pub __fpu_reserved1: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___darwin_x86_float_state64() { - assert_eq!( - ::std::mem::size_of::<__darwin_x86_float_state64>(), - 524usize, - concat!("Size of: ", stringify!(__darwin_x86_float_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_float_state64>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_x86_float_state64)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved as *const _ + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__avx_reserved1 as *const _ as usize }, - 0usize, + 524usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_reserved) + stringify!(__avx_reserved1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fcw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh0 as *const _ as usize }, - 8usize, + 588usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fcw) + stringify!(__fpu_ymmh0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fsw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh1 as *const _ as usize }, - 10usize, + 604usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fsw) + stringify!(__fpu_ymmh1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ftw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh2 as *const _ as usize }, - 12usize, + 620usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ftw) + stringify!(__fpu_ymmh2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh3 as *const _ as usize }, - 13usize, + 636usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv1) + stringify!(__fpu_ymmh3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_fop as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh4 as *const _ as usize }, - 14usize, + 652usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fop) + stringify!(__fpu_ymmh4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh5 as *const _ as usize }, - 16usize, + 668usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ip) + stringify!(__fpu_ymmh5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh6 as *const _ as usize }, - 20usize, + 684usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_cs) + stringify!(__fpu_ymmh6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh7 as *const _ as usize }, - 22usize, + 700usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv2) + stringify!(__fpu_ymmh7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_dp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh8 as *const _ as usize }, - 24usize, + 716usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_dp) + stringify!(__fpu_ymmh8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh9 as *const _ as usize }, - 28usize, + 732usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ds) + stringify!(__fpu_ymmh9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh10 as *const _ + as usize }, - 30usize, + 748usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv3) + stringify!(__fpu_ymmh10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsr as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh11 as *const _ + as usize }, - 32usize, + 764usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_mxcsr) + stringify!(__fpu_ymmh11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_mxcsrmask as *const _ + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh12 as *const _ as usize }, - 36usize, + 780usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_mxcsrmask) + stringify!(__fpu_ymmh12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh13 as *const _ + as usize }, - 40usize, + 796usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm0) + stringify!(__fpu_ymmh13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh14 as *const _ + as usize }, - 56usize, + 812usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm1) + stringify!(__fpu_ymmh14) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh15 as *const _ + as usize }, - 72usize, + 828usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm2) + stringify!(__fpu_ymmh15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k0 as *const _ as usize }, - 88usize, + 844usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm3) + stringify!(__fpu_k0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k1 as *const _ as usize }, - 104usize, + 852usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm4) + stringify!(__fpu_k1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k2 as *const _ as usize }, - 120usize, + 860usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm5) + stringify!(__fpu_k2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k3 as *const _ as usize }, - 136usize, + 868usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm6) + stringify!(__fpu_k3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_stmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k4 as *const _ as usize }, - 152usize, + 876usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm7) + stringify!(__fpu_k4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k5 as *const _ as usize }, - 168usize, + 884usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm0) + stringify!(__fpu_k5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k6 as *const _ as usize }, - 184usize, + 892usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm1) + stringify!(__fpu_k6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k7 as *const _ as usize }, - 200usize, + 900usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm2) + stringify!(__fpu_k7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh0 as *const _ as usize }, - 216usize, + 908usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm3) + stringify!(__fpu_zmmh0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh1 as *const _ as usize }, - 232usize, + 940usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm4) + stringify!(__fpu_zmmh1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh2 as *const _ as usize }, - 248usize, + 972usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm5) + stringify!(__fpu_zmmh2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh3 as *const _ as usize }, - 264usize, + 1004usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm6) + stringify!(__fpu_zmmh3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh4 as *const _ as usize }, - 280usize, + 1036usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm7) + stringify!(__fpu_zmmh4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm8 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh5 as *const _ as usize }, - 296usize, + 1068usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm8) + stringify!(__fpu_zmmh5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm9 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh6 as *const _ as usize }, - 312usize, + 1100usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm9) + stringify!(__fpu_zmmh6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm10 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh7 as *const _ as usize }, - 328usize, + 1132usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm10) + stringify!(__fpu_zmmh7) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm11 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh8 as *const _ as usize }, - 344usize, + 1164usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm11) + stringify!(__fpu_zmmh8) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm12 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh9 as *const _ as usize }, - 360usize, + 1196usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm12) + stringify!(__fpu_zmmh9) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm13 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh10 as *const _ + as usize }, - 376usize, + 1228usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm13) + stringify!(__fpu_zmmh10) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm14 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh11 as *const _ + as usize }, - 392usize, + 1260usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm14) + stringify!(__fpu_zmmh11) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_xmm15 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh12 as *const _ + as usize }, - 408usize, + 1292usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_xmm15) + stringify!(__fpu_zmmh12) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_rsrv4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh13 as *const _ + as usize }, - 424usize, + 1324usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv4) + stringify!(__fpu_zmmh13) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_float_state64>())).__fpu_reserved1 as *const _ + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh14 as *const _ as usize }, - 520usize, + 1356usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_float_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_reserved1) + stringify!(__fpu_zmmh14) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_x86_avx_state64 { - pub __fpu_reserved: [::std::os::raw::c_int; 2usize], - pub __fpu_fcw: __darwin_fp_control, - pub __fpu_fsw: __darwin_fp_status, - pub __fpu_ftw: __uint8_t, - pub __fpu_rsrv1: __uint8_t, - pub __fpu_fop: __uint16_t, - pub __fpu_ip: __uint32_t, - pub __fpu_cs: __uint16_t, - pub __fpu_rsrv2: __uint16_t, - pub __fpu_dp: __uint32_t, - pub __fpu_ds: __uint16_t, - pub __fpu_rsrv3: __uint16_t, - pub __fpu_mxcsr: __uint32_t, - pub __fpu_mxcsrmask: __uint32_t, - pub __fpu_stmm0: __darwin_mmst_reg, - pub __fpu_stmm1: __darwin_mmst_reg, - pub __fpu_stmm2: __darwin_mmst_reg, - pub __fpu_stmm3: __darwin_mmst_reg, - pub __fpu_stmm4: __darwin_mmst_reg, - pub __fpu_stmm5: __darwin_mmst_reg, - pub __fpu_stmm6: __darwin_mmst_reg, - pub __fpu_stmm7: __darwin_mmst_reg, - pub __fpu_xmm0: __darwin_xmm_reg, - pub __fpu_xmm1: __darwin_xmm_reg, - pub __fpu_xmm2: __darwin_xmm_reg, - pub __fpu_xmm3: __darwin_xmm_reg, - pub __fpu_xmm4: __darwin_xmm_reg, - pub __fpu_xmm5: __darwin_xmm_reg, - pub __fpu_xmm6: __darwin_xmm_reg, - pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_xmm8: __darwin_xmm_reg, - pub __fpu_xmm9: __darwin_xmm_reg, - pub __fpu_xmm10: __darwin_xmm_reg, - pub __fpu_xmm11: __darwin_xmm_reg, - pub __fpu_xmm12: __darwin_xmm_reg, - pub __fpu_xmm13: __darwin_xmm_reg, - pub __fpu_xmm14: __darwin_xmm_reg, - pub __fpu_xmm15: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], - pub __fpu_reserved1: ::std::os::raw::c_int, - pub __avx_reserved1: [::std::os::raw::c_char; 64usize], - pub __fpu_ymmh0: __darwin_xmm_reg, - pub __fpu_ymmh1: __darwin_xmm_reg, - pub __fpu_ymmh2: __darwin_xmm_reg, - pub __fpu_ymmh3: __darwin_xmm_reg, - pub __fpu_ymmh4: __darwin_xmm_reg, - pub __fpu_ymmh5: __darwin_xmm_reg, - pub __fpu_ymmh6: __darwin_xmm_reg, - pub __fpu_ymmh7: __darwin_xmm_reg, - pub __fpu_ymmh8: __darwin_xmm_reg, - pub __fpu_ymmh9: __darwin_xmm_reg, - pub __fpu_ymmh10: __darwin_xmm_reg, - pub __fpu_ymmh11: __darwin_xmm_reg, - pub __fpu_ymmh12: __darwin_xmm_reg, - pub __fpu_ymmh13: __darwin_xmm_reg, - pub __fpu_ymmh14: __darwin_xmm_reg, - pub __fpu_ymmh15: __darwin_xmm_reg, -} -#[test] -fn bindgen_test_layout___darwin_x86_avx_state64() { - assert_eq!( - ::std::mem::size_of::<__darwin_x86_avx_state64>(), - 844usize, - concat!("Size of: ", stringify!(__darwin_x86_avx_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_avx_state64>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_x86_avx_state64)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh15 as *const _ + as usize }, - 0usize, + 1388usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_reserved) + stringify!(__fpu_zmmh15) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fcw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm16 as *const _ as usize }, - 8usize, + 1420usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fcw) + stringify!(__fpu_zmm16) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fsw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm17 as *const _ as usize }, - 10usize, + 1484usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fsw) + stringify!(__fpu_zmm17) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ftw as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm18 as *const _ as usize }, - 12usize, + 1548usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ftw) + stringify!(__fpu_zmm18) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm19 as *const _ as usize }, - 13usize, + 1612usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv1) + stringify!(__fpu_zmm19) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_fop as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm20 as *const _ as usize }, - 14usize, + 1676usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_fop) + stringify!(__fpu_zmm20) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ip as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm21 as *const _ as usize }, - 16usize, + 1740usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ip) + stringify!(__fpu_zmm21) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_cs as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm22 as *const _ as usize }, - 20usize, + 1804usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_cs) + stringify!(__fpu_zmm22) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm23 as *const _ as usize }, - 22usize, + 1868usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv2) + stringify!(__fpu_zmm23) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_dp as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm24 as *const _ as usize }, - 24usize, + 1932usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_dp) + stringify!(__fpu_zmm24) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ds as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm25 as *const _ as usize }, - 28usize, + 1996usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_ds) + stringify!(__fpu_zmm25) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm26 as *const _ as usize }, - 30usize, + 2060usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_rsrv3) + stringify!(__fpu_zmm26) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsr as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm27 as *const _ as usize }, - 32usize, + 2124usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_mxcsr) + stringify!(__fpu_zmm27) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_mxcsrmask as *const _ - as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm28 as *const _ as usize }, - 36usize, + 2188usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_mxcsrmask) + stringify!(__fpu_zmm28) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm29 as *const _ as usize }, - 40usize, + 2252usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm0) + stringify!(__fpu_zmm29) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm30 as *const _ as usize }, - 56usize, + 2316usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm1) + stringify!(__fpu_zmm30) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm31 as *const _ as usize }, - 72usize, + 2380usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_avx512_state64), "::", - stringify!(__fpu_stmm2) + stringify!(__fpu_zmm31) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_exception_state64 { + pub __trapno: __uint16_t, + pub __cpu: __uint16_t, + pub __err: __uint32_t, + pub __faultvaddr: __uint64_t, +} +#[test] +fn bindgen_test_layout___darwin_x86_exception_state64() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_exception_state64>(), + 16usize, + concat!("Size of: ", stringify!(__darwin_x86_exception_state64)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm3 as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx_state64), - "::", - stringify!(__fpu_stmm3) - ) + ::std::mem::align_of::<__darwin_x86_exception_state64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_x86_exception_state64)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__trapno as *const _ as usize }, - 104usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_exception_state64), "::", - stringify!(__fpu_stmm4) + stringify!(__trapno) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__cpu as *const _ as usize }, - 120usize, + 2usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_exception_state64), "::", - stringify!(__fpu_stmm5) + stringify!(__cpu) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__err as *const _ as usize }, - 136usize, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_exception_state64), "::", - stringify!(__fpu_stmm6) + stringify!(__err) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_stmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__faultvaddr as *const _ + as usize }, - 152usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_exception_state64), "::", - stringify!(__fpu_stmm7) + stringify!(__faultvaddr) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_debug_state64 { + pub __dr0: __uint64_t, + pub __dr1: __uint64_t, + pub __dr2: __uint64_t, + pub __dr3: __uint64_t, + pub __dr4: __uint64_t, + pub __dr5: __uint64_t, + pub __dr6: __uint64_t, + pub __dr7: __uint64_t, +} +#[test] +fn bindgen_test_layout___darwin_x86_debug_state64() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_debug_state64>(), + 64usize, + concat!("Size of: ", stringify!(__darwin_x86_debug_state64)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_x86_debug_state64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_x86_debug_state64)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr0 as *const _ as usize }, - 168usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm0) + stringify!(__dr0) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr1 as *const _ as usize }, - 184usize, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm1) + stringify!(__dr1) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr2 as *const _ as usize }, - 200usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm2) + stringify!(__dr2) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm3 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr3 as *const _ as usize }, - 216usize, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm3) + stringify!(__dr3) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm4 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr4 as *const _ as usize }, - 232usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm4) + stringify!(__dr4) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm5 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr5 as *const _ as usize }, - 248usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm5) + stringify!(__dr5) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm6 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr6 as *const _ as usize }, - 264usize, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm6) + stringify!(__dr6) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr7 as *const _ as usize }, - 280usize, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_debug_state64), "::", - stringify!(__fpu_xmm7) + stringify!(__dr7) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm8 as *const _ as usize - }, - 296usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx_state64), - "::", - stringify!(__fpu_xmm8) - ) +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_x86_cpmu_state64 { + pub __ctrs: [__uint64_t; 16usize], +} +#[test] +fn bindgen_test_layout___darwin_x86_cpmu_state64() { + assert_eq!( + ::std::mem::size_of::<__darwin_x86_cpmu_state64>(), + 128usize, + concat!("Size of: ", stringify!(__darwin_x86_cpmu_state64)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm9 as *const _ as usize - }, - 312usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx_state64), - "::", - stringify!(__fpu_xmm9) - ) + ::std::mem::align_of::<__darwin_x86_cpmu_state64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_x86_cpmu_state64)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm10 as *const _ as usize + &(*(::std::ptr::null::<__darwin_x86_cpmu_state64>())).__ctrs as *const _ as usize }, - 328usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_x86_cpmu_state64), "::", - stringify!(__fpu_xmm10) + stringify!(__ctrs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext32 { + pub __es: __darwin_i386_exception_state, + pub __ss: __darwin_i386_thread_state, + pub __fs: __darwin_i386_float_state, +} +#[test] +fn bindgen_test_layout___darwin_mcontext32() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm11 as *const _ as usize - }, - 344usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx_state64), - "::", - stringify!(__fpu_xmm11) - ) + ::std::mem::size_of::<__darwin_mcontext32>(), + 600usize, + concat!("Size of: ", stringify!(__darwin_mcontext32)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm12 as *const _ as usize - }, - 360usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx_state64), - "::", - stringify!(__fpu_xmm12) - ) + ::std::mem::align_of::<__darwin_mcontext32>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_mcontext32)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm13 as *const _ as usize - }, - 376usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__es as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext32), "::", - stringify!(__fpu_xmm13) + stringify!(__es) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm14 as *const _ as usize - }, - 392usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__ss as *const _ as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext32), "::", - stringify!(__fpu_xmm14) + stringify!(__ss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_xmm15 as *const _ as usize - }, - 408usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__fs as *const _ as usize }, + 76usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext32), "::", - stringify!(__fpu_xmm15) + stringify!(__fs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx32 { + pub __es: __darwin_i386_exception_state, + pub __ss: __darwin_i386_thread_state, + pub __fs: __darwin_i386_avx_state, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx32() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx32>(), + 792usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx32)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_rsrv4 as *const _ as usize - }, - 424usize, + ::std::mem::align_of::<__darwin_mcontext_avx32>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_mcontext_avx32)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__es as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx32), "::", - stringify!(__fpu_rsrv4) + stringify!(__es) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_reserved1 as *const _ - as usize - }, - 520usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__ss as *const _ as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx32), "::", - stringify!(__fpu_reserved1) + stringify!(__ss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__avx_reserved1 as *const _ - as usize - }, - 524usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__fs as *const _ as usize }, + 76usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx32), "::", - stringify!(__avx_reserved1) + stringify!(__fs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx512_32 { + pub __es: __darwin_i386_exception_state, + pub __ss: __darwin_i386_thread_state, + pub __fs: __darwin_i386_avx512_state, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx512_32() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx512_32>(), + 1112usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx512_32)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext_avx512_32>(), + 4usize, + concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_32)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh0 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__es as *const _ as usize }, - 588usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_32), "::", - stringify!(__fpu_ymmh0) + stringify!(__es) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh1 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__ss as *const _ as usize }, - 604usize, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_32), "::", - stringify!(__fpu_ymmh1) + stringify!(__ss) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh2 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__fs as *const _ as usize }, - 620usize, + 76usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_32), "::", - stringify!(__fpu_ymmh2) + stringify!(__fs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext64 { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_state64, + pub __fs: __darwin_x86_float_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext64() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext64>(), + 712usize, + concat!("Size of: ", stringify!(__darwin_mcontext64)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh3 as *const _ as usize - }, - 636usize, + ::std::mem::align_of::<__darwin_mcontext64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_mcontext64)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__es as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext64), "::", - stringify!(__fpu_ymmh3) + stringify!(__es) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh4 as *const _ as usize - }, - 652usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__ss as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext64), "::", - stringify!(__fpu_ymmh4) + stringify!(__ss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh5 as *const _ as usize - }, - 668usize, + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__fs as *const _ as usize }, + 184usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext64), "::", - stringify!(__fpu_ymmh5) + stringify!(__fs) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh6 as *const _ as usize - }, - 684usize, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext64_full { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_full_state64, + pub __fs: __darwin_x86_float_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext64_full() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext64_full>(), + 744usize, + concat!("Size of: ", stringify!(__darwin_mcontext64_full)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext64_full>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_mcontext64_full)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__es as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext64_full), "::", - stringify!(__fpu_ymmh6) + stringify!(__es) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__ss as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mcontext64_full), + "::", + stringify!(__ss) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__fs as *const _ as usize }, + 216usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mcontext64_full), + "::", + stringify!(__fs) + ) + ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx64 { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_state64, + pub __fs: __darwin_x86_avx_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx64() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx64>(), + 1032usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx64)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext_avx64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_mcontext_avx64)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__es as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mcontext_avx64), + "::", + stringify!(__es) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__ss as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mcontext_avx64), + "::", + stringify!(__ss) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__fs as *const _ as usize }, + 184usize, + concat!( + "Offset of field: ", + stringify!(__darwin_mcontext_avx64), + "::", + stringify!(__fs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx64_full { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_full_state64, + pub __fs: __darwin_x86_avx_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx64_full() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx64_full>(), + 1064usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx64_full)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext_avx64_full>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_mcontext_avx64_full)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh7 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__es as *const _ as usize }, - 700usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx64_full), "::", - stringify!(__fpu_ymmh7) + stringify!(__es) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh8 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__ss as *const _ as usize }, - 716usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx64_full), "::", - stringify!(__fpu_ymmh8) + stringify!(__ss) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh9 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__fs as *const _ as usize }, - 732usize, + 216usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx64_full), "::", - stringify!(__fpu_ymmh9) + stringify!(__fs) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx512_64 { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_state64, + pub __fs: __darwin_x86_avx512_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx512_64() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx512_64>(), + 2632usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext_avx512_64>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_64)) + ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh10 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__es as *const _ as usize }, - 748usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64), "::", - stringify!(__fpu_ymmh10) + stringify!(__es) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh11 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__ss as *const _ as usize }, - 764usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64), "::", - stringify!(__fpu_ymmh11) + stringify!(__ss) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh12 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__fs as *const _ as usize }, - 780usize, + 184usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64), "::", - stringify!(__fpu_ymmh12) + stringify!(__fs) + ) + ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __darwin_mcontext_avx512_64_full { + pub __es: __darwin_x86_exception_state64, + pub __ss: __darwin_x86_thread_full_state64, + pub __fs: __darwin_x86_avx512_state64, +} +#[test] +fn bindgen_test_layout___darwin_mcontext_avx512_64_full() { + assert_eq!( + ::std::mem::size_of::<__darwin_mcontext_avx512_64_full>(), + 2664usize, + concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64_full)) + ); + assert_eq!( + ::std::mem::align_of::<__darwin_mcontext_avx512_64_full>(), + 8usize, + concat!( + "Alignment of ", + stringify!(__darwin_mcontext_avx512_64_full) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh13 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__es as *const _ as usize }, - 796usize, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64_full), "::", - stringify!(__fpu_ymmh13) + stringify!(__es) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh14 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__ss as *const _ as usize }, - 812usize, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64_full), "::", - stringify!(__fpu_ymmh14) + stringify!(__ss) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx_state64>())).__fpu_ymmh15 as *const _ as usize + &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__fs as *const _ as usize }, - 828usize, + 216usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx_state64), + stringify!(__darwin_mcontext_avx512_64_full), "::", - stringify!(__fpu_ymmh15) + stringify!(__fs) ) ); } +pub type mcontext_t = *mut __darwin_mcontext64; +pub type pthread_attr_t = __darwin_pthread_attr_t; #[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_x86_avx512_state64 { - pub __fpu_reserved: [::std::os::raw::c_int; 2usize], - pub __fpu_fcw: __darwin_fp_control, - pub __fpu_fsw: __darwin_fp_status, - pub __fpu_ftw: __uint8_t, - pub __fpu_rsrv1: __uint8_t, - pub __fpu_fop: __uint16_t, - pub __fpu_ip: __uint32_t, - pub __fpu_cs: __uint16_t, - pub __fpu_rsrv2: __uint16_t, - pub __fpu_dp: __uint32_t, - pub __fpu_ds: __uint16_t, - pub __fpu_rsrv3: __uint16_t, - pub __fpu_mxcsr: __uint32_t, - pub __fpu_mxcsrmask: __uint32_t, - pub __fpu_stmm0: __darwin_mmst_reg, - pub __fpu_stmm1: __darwin_mmst_reg, - pub __fpu_stmm2: __darwin_mmst_reg, - pub __fpu_stmm3: __darwin_mmst_reg, - pub __fpu_stmm4: __darwin_mmst_reg, - pub __fpu_stmm5: __darwin_mmst_reg, - pub __fpu_stmm6: __darwin_mmst_reg, - pub __fpu_stmm7: __darwin_mmst_reg, - pub __fpu_xmm0: __darwin_xmm_reg, - pub __fpu_xmm1: __darwin_xmm_reg, - pub __fpu_xmm2: __darwin_xmm_reg, - pub __fpu_xmm3: __darwin_xmm_reg, - pub __fpu_xmm4: __darwin_xmm_reg, - pub __fpu_xmm5: __darwin_xmm_reg, - pub __fpu_xmm6: __darwin_xmm_reg, - pub __fpu_xmm7: __darwin_xmm_reg, - pub __fpu_xmm8: __darwin_xmm_reg, - pub __fpu_xmm9: __darwin_xmm_reg, - pub __fpu_xmm10: __darwin_xmm_reg, - pub __fpu_xmm11: __darwin_xmm_reg, - pub __fpu_xmm12: __darwin_xmm_reg, - pub __fpu_xmm13: __darwin_xmm_reg, - pub __fpu_xmm14: __darwin_xmm_reg, - pub __fpu_xmm15: __darwin_xmm_reg, - pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize], - pub __fpu_reserved1: ::std::os::raw::c_int, - pub __avx_reserved1: [::std::os::raw::c_char; 64usize], - pub __fpu_ymmh0: __darwin_xmm_reg, - pub __fpu_ymmh1: __darwin_xmm_reg, - pub __fpu_ymmh2: __darwin_xmm_reg, - pub __fpu_ymmh3: __darwin_xmm_reg, - pub __fpu_ymmh4: __darwin_xmm_reg, - pub __fpu_ymmh5: __darwin_xmm_reg, - pub __fpu_ymmh6: __darwin_xmm_reg, - pub __fpu_ymmh7: __darwin_xmm_reg, - pub __fpu_ymmh8: __darwin_xmm_reg, - pub __fpu_ymmh9: __darwin_xmm_reg, - pub __fpu_ymmh10: __darwin_xmm_reg, - pub __fpu_ymmh11: __darwin_xmm_reg, - pub __fpu_ymmh12: __darwin_xmm_reg, - pub __fpu_ymmh13: __darwin_xmm_reg, - pub __fpu_ymmh14: __darwin_xmm_reg, - pub __fpu_ymmh15: __darwin_xmm_reg, - pub __fpu_k0: __darwin_opmask_reg, - pub __fpu_k1: __darwin_opmask_reg, - pub __fpu_k2: __darwin_opmask_reg, - pub __fpu_k3: __darwin_opmask_reg, - pub __fpu_k4: __darwin_opmask_reg, - pub __fpu_k5: __darwin_opmask_reg, - pub __fpu_k6: __darwin_opmask_reg, - pub __fpu_k7: __darwin_opmask_reg, - pub __fpu_zmmh0: __darwin_ymm_reg, - pub __fpu_zmmh1: __darwin_ymm_reg, - pub __fpu_zmmh2: __darwin_ymm_reg, - pub __fpu_zmmh3: __darwin_ymm_reg, - pub __fpu_zmmh4: __darwin_ymm_reg, - pub __fpu_zmmh5: __darwin_ymm_reg, - pub __fpu_zmmh6: __darwin_ymm_reg, - pub __fpu_zmmh7: __darwin_ymm_reg, - pub __fpu_zmmh8: __darwin_ymm_reg, - pub __fpu_zmmh9: __darwin_ymm_reg, - pub __fpu_zmmh10: __darwin_ymm_reg, - pub __fpu_zmmh11: __darwin_ymm_reg, - pub __fpu_zmmh12: __darwin_ymm_reg, - pub __fpu_zmmh13: __darwin_ymm_reg, - pub __fpu_zmmh14: __darwin_ymm_reg, - pub __fpu_zmmh15: __darwin_ymm_reg, - pub __fpu_zmm16: __darwin_zmm_reg, - pub __fpu_zmm17: __darwin_zmm_reg, - pub __fpu_zmm18: __darwin_zmm_reg, - pub __fpu_zmm19: __darwin_zmm_reg, - pub __fpu_zmm20: __darwin_zmm_reg, - pub __fpu_zmm21: __darwin_zmm_reg, - pub __fpu_zmm22: __darwin_zmm_reg, - pub __fpu_zmm23: __darwin_zmm_reg, - pub __fpu_zmm24: __darwin_zmm_reg, - pub __fpu_zmm25: __darwin_zmm_reg, - pub __fpu_zmm26: __darwin_zmm_reg, - pub __fpu_zmm27: __darwin_zmm_reg, - pub __fpu_zmm28: __darwin_zmm_reg, - pub __fpu_zmm29: __darwin_zmm_reg, - pub __fpu_zmm30: __darwin_zmm_reg, - pub __fpu_zmm31: __darwin_zmm_reg, +#[derive(Debug, Copy, Clone)] +pub struct __darwin_sigaltstack { + pub ss_sp: *mut ::std::os::raw::c_void, + pub ss_size: __darwin_size_t, + pub ss_flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout___darwin_x86_avx512_state64() { +fn bindgen_test_layout___darwin_sigaltstack() { assert_eq!( - ::std::mem::size_of::<__darwin_x86_avx512_state64>(), - 2444usize, - concat!("Size of: ", stringify!(__darwin_x86_avx512_state64)) + ::std::mem::size_of::<__darwin_sigaltstack>(), + 24usize, + concat!("Size of: ", stringify!(__darwin_sigaltstack)) ); assert_eq!( - ::std::mem::align_of::<__darwin_x86_avx512_state64>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_x86_avx512_state64)) + ::std::mem::align_of::<__darwin_sigaltstack>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_sigaltstack)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved as *const _ - as usize - }, + unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_sp as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_sigaltstack), "::", - stringify!(__fpu_reserved) + stringify!(ss_sp) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fcw as *const _ as usize - }, + unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_size as *const _ as usize }, 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_sigaltstack), "::", - stringify!(__fpu_fcw) + stringify!(ss_size) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fsw as *const _ as usize - }, - 10usize, + unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_flags as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_sigaltstack), "::", - stringify!(__fpu_fsw) + stringify!(ss_flags) ) ); +} +pub type stack_t = __darwin_sigaltstack; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __darwin_ucontext { + pub uc_onstack: ::std::os::raw::c_int, + pub uc_sigmask: __darwin_sigset_t, + pub uc_stack: __darwin_sigaltstack, + pub uc_link: *mut __darwin_ucontext, + pub uc_mcsize: __darwin_size_t, + pub uc_mcontext: *mut __darwin_mcontext64, +} +#[test] +fn bindgen_test_layout___darwin_ucontext() { + assert_eq!( + ::std::mem::size_of::<__darwin_ucontext>(), + 56usize, + concat!("Size of: ", stringify!(__darwin_ucontext)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ftw as *const _ as usize - }, - 12usize, + ::std::mem::align_of::<__darwin_ucontext>(), + 8usize, + concat!("Alignment of ", stringify!(__darwin_ucontext)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_onstack as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_ftw) + stringify!(uc_onstack) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv1 as *const _ as usize - }, - 13usize, + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_sigmask as *const _ as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_rsrv1) + stringify!(uc_sigmask) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_fop as *const _ as usize - }, - 14usize, + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_stack as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_fop) + stringify!(uc_stack) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ip as *const _ as usize - }, - 16usize, + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_link as *const _ as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_ip) + stringify!(uc_link) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_cs as *const _ as usize - }, - 20usize, + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcsize as *const _ as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_cs) + stringify!(uc_mcsize) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv2 as *const _ as usize - }, - 22usize, + unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcontext as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__darwin_ucontext), "::", - stringify!(__fpu_rsrv2) + stringify!(uc_mcontext) ) ); +} +pub type ucontext_t = __darwin_ucontext; +pub type sigset_t = __darwin_sigset_t; +pub type uid_t = __darwin_uid_t; +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { + pub sival_int: ::std::os::raw::c_int, + pub sival_ptr: *mut ::std::os::raw::c_void, + _bindgen_union_align: u64, +} +#[test] +fn bindgen_test_layout_sigval() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_dp as *const _ as usize - }, - 24usize, + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(sigval)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(sigval)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigval), "::", - stringify!(__fpu_dp) + stringify!(sival_int) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ds as *const _ as usize - }, - 28usize, + unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigval), "::", - stringify!(__fpu_ds) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv3 as *const _ as usize - }, - 30usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_rsrv3) + stringify!(sival_ptr) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { + pub sigev_notify: ::std::os::raw::c_int, + pub sigev_signo: ::std::os::raw::c_int, + pub sigev_value: sigval, + pub sigev_notify_function: ::std::option::Option, + pub sigev_notify_attributes: *mut pthread_attr_t, +} +#[test] +fn bindgen_test_layout_sigevent() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsr as *const _ as usize - }, + ::std::mem::size_of::(), 32usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_mxcsr) - ) + concat!("Size of: ", stringify!(sigevent)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_mxcsrmask as *const _ - as usize - }, - 36usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(sigevent)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigevent), "::", - stringify!(__fpu_mxcsrmask) + stringify!(sigev_notify) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm0 as *const _ as usize - }, - 40usize, + unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigevent), "::", - stringify!(__fpu_stmm0) + stringify!(sigev_signo) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm1 as *const _ as usize - }, - 56usize, + unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigevent), "::", - stringify!(__fpu_stmm1) + stringify!(sigev_value) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm2 as *const _ as usize - }, - 72usize, + unsafe { &(*(::std::ptr::null::())).sigev_notify_function as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigevent), "::", - stringify!(__fpu_stmm2) + stringify!(sigev_notify_function) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm3 as *const _ as usize + &(*(::std::ptr::null::())).sigev_notify_attributes as *const _ as usize }, - 88usize, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigevent), "::", - stringify!(__fpu_stmm3) + stringify!(sigev_notify_attributes) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __siginfo { + pub si_signo: ::std::os::raw::c_int, + pub si_errno: ::std::os::raw::c_int, + pub si_code: ::std::os::raw::c_int, + pub si_pid: pid_t, + pub si_uid: uid_t, + pub si_status: ::std::os::raw::c_int, + pub si_addr: *mut ::std::os::raw::c_void, + pub si_value: sigval, + pub si_band: ::std::os::raw::c_long, + pub __pad: [::std::os::raw::c_ulong; 7usize], +} +#[test] +fn bindgen_test_layout___siginfo() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm4 as *const _ as usize - }, + ::std::mem::size_of::<__siginfo>(), 104usize, + concat!("Size of: ", stringify!(__siginfo)) + ); + assert_eq!( + ::std::mem::align_of::<__siginfo>(), + 8usize, + concat!("Alignment of ", stringify!(__siginfo)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_signo as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_stmm4) + stringify!(si_signo) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm5 as *const _ as usize - }, - 120usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_errno as *const _ as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_stmm5) + stringify!(si_errno) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm6 as *const _ as usize - }, - 136usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_code as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_stmm6) + stringify!(si_code) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_stmm7 as *const _ as usize - }, - 152usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_pid as *const _ as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_stmm7) + stringify!(si_pid) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm0 as *const _ as usize - }, - 168usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_uid as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm0) + stringify!(si_uid) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm1 as *const _ as usize - }, - 184usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_status as *const _ as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm1) + stringify!(si_status) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm2 as *const _ as usize - }, - 200usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_addr as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm2) + stringify!(si_addr) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm3 as *const _ as usize - }, - 216usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_value as *const _ as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm3) + stringify!(si_value) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm4 as *const _ as usize - }, - 232usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).si_band as *const _ as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm4) + stringify!(si_band) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm5 as *const _ as usize - }, - 248usize, + unsafe { &(*(::std::ptr::null::<__siginfo>())).__pad as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__siginfo), "::", - stringify!(__fpu_xmm5) + stringify!(__pad) ) ); +} +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, + ), + >, + _bindgen_union_align: u64, +} +#[test] +fn bindgen_test_layout___sigaction_u() { + assert_eq!( + ::std::mem::size_of::<__sigaction_u>(), + 8usize, + concat!("Size of: ", stringify!(__sigaction_u)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm6 as *const _ as usize - }, - 264usize, + ::std::mem::align_of::<__sigaction_u>(), + 8usize, + concat!("Alignment of ", stringify!(__sigaction_u)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_handler as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction_u), "::", - stringify!(__fpu_xmm6) + stringify!(__sa_handler) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm7 as *const _ as usize - }, - 280usize, + unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_sigaction as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction_u), "::", - stringify!(__fpu_xmm7) + stringify!(__sa_sigaction) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sigaction { + pub __sigaction_u: __sigaction_u, + pub sa_tramp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: *mut siginfo_t, + arg5: *mut ::std::os::raw::c_void, + ), + >, + pub sa_mask: sigset_t, + pub sa_flags: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout___sigaction() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm8 as *const _ as usize - }, - 296usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_xmm8) - ) + ::std::mem::size_of::<__sigaction>(), + 24usize, + concat!("Size of: ", stringify!(__sigaction)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm9 as *const _ as usize - }, - 312usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_xmm9) - ) + ::std::mem::align_of::<__sigaction>(), + 8usize, + concat!("Alignment of ", stringify!(__sigaction)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm10 as *const _ as usize - }, - 328usize, + unsafe { &(*(::std::ptr::null::<__sigaction>())).__sigaction_u as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction), "::", - stringify!(__fpu_xmm10) + stringify!(__sigaction_u) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm11 as *const _ as usize - }, - 344usize, + unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_tramp as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction), "::", - stringify!(__fpu_xmm11) + stringify!(sa_tramp) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm12 as *const _ as usize - }, - 360usize, + unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_mask as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction), "::", - stringify!(__fpu_xmm12) + stringify!(sa_mask) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm13 as *const _ as usize - }, - 376usize, + unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_flags as *const _ as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(__sigaction), "::", - stringify!(__fpu_xmm13) + stringify!(sa_flags) ) ); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigaction { + pub __sigaction_u: __sigaction_u, + pub sa_mask: sigset_t, + pub sa_flags: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_sigaction() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm14 as *const _ as usize - }, - 392usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_xmm14) - ) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(sigaction)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_xmm15 as *const _ as usize - }, - 408usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_xmm15) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_rsrv4 as *const _ as usize - }, - 424usize, + unsafe { &(*(::std::ptr::null::())).__sigaction_u as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigaction), "::", - stringify!(__fpu_rsrv4) + stringify!(__sigaction_u) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_reserved1 as *const _ - as usize - }, - 520usize, + unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigaction), "::", - stringify!(__fpu_reserved1) + stringify!(sa_mask) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__avx_reserved1 as *const _ - as usize - }, - 524usize, + unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigaction), "::", - stringify!(__avx_reserved1) + stringify!(sa_flags) ) ); +} +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, +} +#[test] +fn bindgen_test_layout_sigvec() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(sigvec)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh0 as *const _ as usize - }, - 588usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_ymmh0) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(sigvec)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh1 as *const _ as usize - }, - 604usize, + unsafe { &(*(::std::ptr::null::())).sv_handler as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigvec), "::", - stringify!(__fpu_ymmh1) + stringify!(sv_handler) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh2 as *const _ as usize - }, - 620usize, + unsafe { &(*(::std::ptr::null::())).sv_mask as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigvec), "::", - stringify!(__fpu_ymmh2) + stringify!(sv_mask) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh3 as *const _ as usize - }, - 636usize, + unsafe { &(*(::std::ptr::null::())).sv_flags as *const _ as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigvec), "::", - stringify!(__fpu_ymmh3) + stringify!(sv_flags) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigstack { + pub ss_sp: *mut ::std::os::raw::c_char, + pub ss_onstack: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_sigstack() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh4 as *const _ as usize - }, - 652usize, + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(sigstack)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(sigstack)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigstack), "::", - stringify!(__fpu_ymmh4) + stringify!(ss_sp) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh5 as *const _ as usize - }, - 668usize, + unsafe { &(*(::std::ptr::null::())).ss_onstack as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(sigstack), "::", - stringify!(__fpu_ymmh5) + stringify!(ss_onstack) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh6 as *const _ as usize - }, - 684usize, - concat!( - "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), - "::", - stringify!(__fpu_ymmh6) - ) +} +extern "C" { + pub fn signal( + arg1: ::std::os::raw::c_int, + arg2: ::std::option::Option, + ) -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::option::Option, + ), + >; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { + pub tv_sec: __darwin_time_t, + pub tv_usec: __darwin_suseconds_t, +} +#[test] +fn bindgen_test_layout_timeval() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(timeval)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh7 as *const _ as usize - }, - 700usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(timeval)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(timeval), "::", - stringify!(__fpu_ymmh7) + stringify!(tv_sec) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh8 as *const _ as usize - }, - 716usize, + unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(timeval), "::", - stringify!(__fpu_ymmh8) + stringify!(tv_usec) ) ); +} +pub type rlim_t = __uint64_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { + pub ru_utime: timeval, + pub ru_stime: timeval, + pub ru_maxrss: ::std::os::raw::c_long, + pub ru_ixrss: ::std::os::raw::c_long, + pub ru_idrss: ::std::os::raw::c_long, + pub ru_isrss: ::std::os::raw::c_long, + pub ru_minflt: ::std::os::raw::c_long, + pub ru_majflt: ::std::os::raw::c_long, + pub ru_nswap: ::std::os::raw::c_long, + pub ru_inblock: ::std::os::raw::c_long, + pub ru_oublock: ::std::os::raw::c_long, + pub ru_msgsnd: ::std::os::raw::c_long, + pub ru_msgrcv: ::std::os::raw::c_long, + pub ru_nsignals: ::std::os::raw::c_long, + pub ru_nvcsw: ::std::os::raw::c_long, + pub ru_nivcsw: ::std::os::raw::c_long, +} +#[test] +fn bindgen_test_layout_rusage() { + assert_eq!( + ::std::mem::size_of::(), + 144usize, + concat!("Size of: ", stringify!(rusage)) + ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh9 as *const _ as usize - }, - 732usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rusage)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ru_utime as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh9) + stringify!(ru_utime) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh10 as *const _ - as usize - }, - 748usize, + unsafe { &(*(::std::ptr::null::())).ru_stime as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh10) + stringify!(ru_stime) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh11 as *const _ - as usize - }, - 764usize, + unsafe { &(*(::std::ptr::null::())).ru_maxrss as *const _ as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh11) + stringify!(ru_maxrss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh12 as *const _ - as usize - }, - 780usize, + unsafe { &(*(::std::ptr::null::())).ru_ixrss as *const _ as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh12) + stringify!(ru_ixrss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh13 as *const _ - as usize - }, - 796usize, + unsafe { &(*(::std::ptr::null::())).ru_idrss as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh13) + stringify!(ru_idrss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh14 as *const _ - as usize - }, - 812usize, + unsafe { &(*(::std::ptr::null::())).ru_isrss as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh14) + stringify!(ru_isrss) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_ymmh15 as *const _ - as usize - }, - 828usize, + unsafe { &(*(::std::ptr::null::())).ru_minflt as *const _ as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_ymmh15) + stringify!(ru_minflt) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k0 as *const _ as usize - }, - 844usize, + unsafe { &(*(::std::ptr::null::())).ru_majflt as *const _ as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k0) + stringify!(ru_majflt) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k1 as *const _ as usize - }, - 852usize, + unsafe { &(*(::std::ptr::null::())).ru_nswap as *const _ as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k1) + stringify!(ru_nswap) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k2 as *const _ as usize - }, - 860usize, + unsafe { &(*(::std::ptr::null::())).ru_inblock as *const _ as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k2) + stringify!(ru_inblock) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k3 as *const _ as usize - }, - 868usize, + unsafe { &(*(::std::ptr::null::())).ru_oublock as *const _ as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k3) + stringify!(ru_oublock) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k4 as *const _ as usize - }, - 876usize, + unsafe { &(*(::std::ptr::null::())).ru_msgsnd as *const _ as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k4) + stringify!(ru_msgsnd) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k5 as *const _ as usize - }, - 884usize, + unsafe { &(*(::std::ptr::null::())).ru_msgrcv as *const _ as usize }, + 112usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k5) + stringify!(ru_msgrcv) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k6 as *const _ as usize - }, - 892usize, + unsafe { &(*(::std::ptr::null::())).ru_nsignals as *const _ as usize }, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k6) + stringify!(ru_nsignals) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_k7 as *const _ as usize - }, - 900usize, + unsafe { &(*(::std::ptr::null::())).ru_nvcsw as *const _ as usize }, + 128usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_k7) + stringify!(ru_nvcsw) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh0 as *const _ as usize - }, - 908usize, + unsafe { &(*(::std::ptr::null::())).ru_nivcsw as *const _ as usize }, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage), "::", - stringify!(__fpu_zmmh0) + stringify!(ru_nivcsw) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh1 as *const _ as usize - }, - 940usize, +} +pub type rusage_info_t = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v0 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, +} +#[test] +fn bindgen_test_layout_rusage_info_v0() { + assert_eq!( + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(rusage_info_v0)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rusage_info_v0)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh1) + stringify!(ri_uuid) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh2 as *const _ as usize - }, - 972usize, + unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh2) + stringify!(ri_user_time) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh3 as *const _ as usize - }, - 1004usize, + unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh3) + stringify!(ri_system_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh4 as *const _ as usize + &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize }, - 1036usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh4) + stringify!(ri_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh5 as *const _ as usize + &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize }, - 1068usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh5) + stringify!(ri_interrupt_wkups) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh6 as *const _ as usize - }, - 1100usize, + unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh6) + stringify!(ri_pageins) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh7 as *const _ as usize - }, - 1132usize, + unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh7) + stringify!(ri_wired_size) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh8 as *const _ as usize - }, - 1164usize, + unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh8) + stringify!(ri_resident_size) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh9 as *const _ as usize + &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize }, - 1196usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh9) + stringify!(ri_phys_footprint) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh10 as *const _ - as usize + &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize }, - 1228usize, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh10) + stringify!(ri_proc_start_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh11 as *const _ - as usize + &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize }, - 1260usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v0), "::", - stringify!(__fpu_zmmh11) + stringify!(ri_proc_exit_abstime) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v1 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, +} +#[test] +fn bindgen_test_layout_rusage_info_v1() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh12 as *const _ - as usize - }, - 1292usize, + ::std::mem::size_of::(), + 144usize, + concat!("Size of: ", stringify!(rusage_info_v1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rusage_info_v1)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmmh12) + stringify!(ri_uuid) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh13 as *const _ - as usize - }, - 1324usize, + unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmmh13) + stringify!(ri_user_time) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh14 as *const _ - as usize - }, - 1356usize, + unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmmh14) + stringify!(ri_system_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmmh15 as *const _ - as usize + &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize }, - 1388usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmmh15) + stringify!(ri_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm16 as *const _ as usize + &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize }, - 1420usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm16) + stringify!(ri_interrupt_wkups) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm17 as *const _ as usize - }, - 1484usize, + unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm17) + stringify!(ri_pageins) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm18 as *const _ as usize - }, - 1548usize, + unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm18) + stringify!(ri_wired_size) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm19 as *const _ as usize - }, - 1612usize, + unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm19) + stringify!(ri_resident_size) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm20 as *const _ as usize + &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize }, - 1676usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm20) + stringify!(ri_phys_footprint) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm21 as *const _ as usize + &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize }, - 1740usize, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm21) + stringify!(ri_proc_start_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm22 as *const _ as usize + &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize }, - 1804usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm22) + stringify!(ri_proc_exit_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm23 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize }, - 1868usize, + 96usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm23) + stringify!(ri_child_user_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm24 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize }, - 1932usize, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm24) + stringify!(ri_child_system_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm25 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize }, - 1996usize, + 112usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm25) + stringify!(ri_child_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm26 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize }, - 2060usize, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm26) + stringify!(ri_child_interrupt_wkups) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm27 as *const _ as usize - }, - 2124usize, + unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, + 128usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm27) + stringify!(ri_child_pageins) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm28 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize }, - 2188usize, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v1), "::", - stringify!(__fpu_zmm28) + stringify!(ri_child_elapsed_abstime) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v2 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, +} +#[test] +fn bindgen_test_layout_rusage_info_v2() { assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm29 as *const _ as usize - }, - 2252usize, + ::std::mem::size_of::(), + 160usize, + concat!("Size of: ", stringify!(rusage_info_v2)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rusage_info_v2)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v2), "::", - stringify!(__fpu_zmm29) + stringify!(ri_uuid) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm30 as *const _ as usize - }, - 2316usize, + unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v2), "::", - stringify!(__fpu_zmm30) + stringify!(ri_user_time) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_avx512_state64>())).__fpu_zmm31 as *const _ as usize - }, - 2380usize, + unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_avx512_state64), + stringify!(rusage_info_v2), "::", - stringify!(__fpu_zmm31) + stringify!(ri_system_time) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_exception_state64 { - pub __trapno: __uint16_t, - pub __cpu: __uint16_t, - pub __err: __uint32_t, - pub __faultvaddr: __uint64_t, -} -#[test] -fn bindgen_test_layout___darwin_x86_exception_state64() { - assert_eq!( - ::std::mem::size_of::<__darwin_x86_exception_state64>(), - 16usize, - concat!("Size of: ", stringify!(__darwin_x86_exception_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_exception_state64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_x86_exception_state64)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__trapno as *const _ as usize + &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize }, - 0usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_exception_state64), + stringify!(rusage_info_v2), "::", - stringify!(__trapno) + stringify!(ri_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__cpu as *const _ as usize + &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize }, - 2usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_exception_state64), + stringify!(rusage_info_v2), "::", - stringify!(__cpu) + stringify!(ri_interrupt_wkups) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__err as *const _ as usize - }, - 4usize, + unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_exception_state64), + stringify!(rusage_info_v2), "::", - stringify!(__err) + stringify!(ri_pageins) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_exception_state64>())).__faultvaddr as *const _ - as usize - }, - 8usize, + unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_exception_state64), + stringify!(rusage_info_v2), "::", - stringify!(__faultvaddr) + stringify!(ri_wired_size) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_debug_state64 { - pub __dr0: __uint64_t, - pub __dr1: __uint64_t, - pub __dr2: __uint64_t, - pub __dr3: __uint64_t, - pub __dr4: __uint64_t, - pub __dr5: __uint64_t, - pub __dr6: __uint64_t, - pub __dr7: __uint64_t, -} -#[test] -fn bindgen_test_layout___darwin_x86_debug_state64() { assert_eq!( - ::std::mem::size_of::<__darwin_x86_debug_state64>(), + unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, 64usize, - concat!("Size of: ", stringify!(__darwin_x86_debug_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_debug_state64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_x86_debug_state64)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr0 as *const _ as usize - }, - 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr0) + stringify!(ri_resident_size) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr1 as *const _ as usize + &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize }, - 8usize, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr1) + stringify!(ri_phys_footprint) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr2 as *const _ as usize + &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize }, - 16usize, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr2) + stringify!(ri_proc_start_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr3 as *const _ as usize + &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize }, - 24usize, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr3) + stringify!(ri_proc_exit_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr4 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize }, - 32usize, + 96usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr4) + stringify!(ri_child_user_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr5 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize }, - 40usize, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr5) + stringify!(ri_child_system_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr6 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize }, - 48usize, + 112usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr6) + stringify!(ri_child_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_x86_debug_state64>())).__dr7 as *const _ as usize + &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize }, - 56usize, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_debug_state64), + stringify!(rusage_info_v2), "::", - stringify!(__dr7) + stringify!(ri_child_interrupt_wkups) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_x86_cpmu_state64 { - pub __ctrs: [__uint64_t; 16usize], -} -#[test] -fn bindgen_test_layout___darwin_x86_cpmu_state64() { assert_eq!( - ::std::mem::size_of::<__darwin_x86_cpmu_state64>(), + unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, 128usize, - concat!("Size of: ", stringify!(__darwin_x86_cpmu_state64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_x86_cpmu_state64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_x86_cpmu_state64)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_x86_cpmu_state64>())).__ctrs as *const _ as usize - }, - 0usize, concat!( "Offset of field: ", - stringify!(__darwin_x86_cpmu_state64), + stringify!(rusage_info_v2), "::", - stringify!(__ctrs) + stringify!(ri_child_pageins) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext32 { - pub __es: __darwin_i386_exception_state, - pub __ss: __darwin_i386_thread_state, - pub __fs: __darwin_i386_float_state, -} -#[test] -fn bindgen_test_layout___darwin_mcontext32() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext32>(), - 600usize, - concat!("Size of: ", stringify!(__darwin_mcontext32)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mcontext32>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_mcontext32)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__es as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize + }, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext32), + stringify!(rusage_info_v2), "::", - stringify!(__es) + stringify!(ri_child_elapsed_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__ss as *const _ as usize }, - 12usize, + unsafe { + &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize + }, + 144usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext32), + stringify!(rusage_info_v2), "::", - stringify!(__ss) + stringify!(ri_diskio_bytesread) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext32>())).__fs as *const _ as usize }, - 76usize, + unsafe { + &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize + }, + 152usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext32), + stringify!(rusage_info_v2), "::", - stringify!(__fs) + stringify!(ri_diskio_byteswritten) ) ); } #[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx32 { - pub __es: __darwin_i386_exception_state, - pub __ss: __darwin_i386_thread_state, - pub __fs: __darwin_i386_avx_state, +#[derive(Debug, Copy, Clone)] +pub struct rusage_info_v3 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, + pub ri_cpu_time_qos_default: u64, + pub ri_cpu_time_qos_maintenance: u64, + pub ri_cpu_time_qos_background: u64, + pub ri_cpu_time_qos_utility: u64, + pub ri_cpu_time_qos_legacy: u64, + pub ri_cpu_time_qos_user_initiated: u64, + pub ri_cpu_time_qos_user_interactive: u64, + pub ri_billed_system_time: u64, + pub ri_serviced_system_time: u64, } #[test] -fn bindgen_test_layout___darwin_mcontext_avx32() { +fn bindgen_test_layout_rusage_info_v3() { assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx32>(), - 792usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx32)) + ::std::mem::size_of::(), + 232usize, + concat!("Size of: ", stringify!(rusage_info_v3)) ); assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx32>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_mcontext_avx32)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rusage_info_v3)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__es as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx32), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_uuid) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__ss as *const _ as usize }, - 12usize, + unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx32), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_user_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx32>())).__fs as *const _ as usize }, - 76usize, + unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx32), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_system_time) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx512_32 { - pub __es: __darwin_i386_exception_state, - pub __ss: __darwin_i386_thread_state, - pub __fs: __darwin_i386_avx512_state, -} -#[test] -fn bindgen_test_layout___darwin_mcontext_avx512_32() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx512_32>(), - 1112usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx512_32)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx512_32>(), - 4usize, - concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_32)) - ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__es as *const _ as usize + &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize }, - 0usize, + 32usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_32), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_pkg_idle_wkups) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__ss as *const _ as usize + &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize }, - 12usize, + 40usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_32), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_interrupt_wkups) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_32>())).__fs as *const _ as usize - }, - 76usize, + unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_32), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_pageins) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext64 { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_state64, - pub __fs: __darwin_x86_float_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext64() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext64>(), - 712usize, - concat!("Size of: ", stringify!(__darwin_mcontext64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mcontext64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_mcontext64)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__es as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_wired_size) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__ss as *const _ as usize }, - 16usize, + unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_resident_size) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64>())).__fs as *const _ as usize }, - 184usize, + unsafe { + &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize + }, + 72usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_phys_footprint) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext64_full { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_full_state64, - pub __fs: __darwin_x86_float_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext64_full() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext64_full>(), - 744usize, - concat!("Size of: ", stringify!(__darwin_mcontext64_full)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mcontext64_full>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_mcontext64_full)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__es as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize + }, + 80usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64_full), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_proc_start_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__ss as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize + }, + 88usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64_full), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_proc_exit_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext64_full>())).__fs as *const _ as usize }, - 216usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize + }, + 96usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext64_full), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_child_user_time) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx64 { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_state64, - pub __fs: __darwin_x86_avx_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext_avx64() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx64>(), - 1032usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx64)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_mcontext_avx64)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__es as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize + }, + 104usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_child_system_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__ss as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize + }, + 112usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_child_pkg_idle_wkups) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_mcontext_avx64>())).__fs as *const _ as usize }, - 184usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize + }, + 120usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_child_interrupt_wkups) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx64_full { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_full_state64, - pub __fs: __darwin_x86_avx_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext_avx64_full() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx64_full>(), - 1064usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx64_full)) - ); assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx64_full>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_mcontext_avx64_full)) + unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, + 128usize, + concat!( + "Offset of field: ", + stringify!(rusage_info_v3), + "::", + stringify!(ri_child_pageins) + ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__es as *const _ as usize + &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize }, - 0usize, + 136usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64_full), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_child_elapsed_abstime) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__ss as *const _ as usize + &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize }, - 16usize, + 144usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64_full), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_diskio_bytesread) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx64_full>())).__fs as *const _ as usize + &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize }, - 216usize, + 152usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx64_full), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_diskio_byteswritten) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx512_64 { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_state64, - pub __fs: __darwin_x86_avx512_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext_avx512_64() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx512_64>(), - 2632usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64)) - ); assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx512_64>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_mcontext_avx512_64)) + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_default as *const _ as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(rusage_info_v3), + "::", + stringify!(ri_cpu_time_qos_default) + ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__es as *const _ as usize + &(*(::std::ptr::null::())).ri_cpu_time_qos_maintenance as *const _ + as usize }, - 0usize, + 168usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_cpu_time_qos_maintenance) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__ss as *const _ as usize + &(*(::std::ptr::null::())).ri_cpu_time_qos_background as *const _ + as usize }, - 16usize, + 176usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_cpu_time_qos_background) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64>())).__fs as *const _ as usize + &(*(::std::ptr::null::())).ri_cpu_time_qos_utility as *const _ as usize }, 184usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64), + stringify!(rusage_info_v3), "::", - stringify!(__fs) + stringify!(ri_cpu_time_qos_utility) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __darwin_mcontext_avx512_64_full { - pub __es: __darwin_x86_exception_state64, - pub __ss: __darwin_x86_thread_full_state64, - pub __fs: __darwin_x86_avx512_state64, -} -#[test] -fn bindgen_test_layout___darwin_mcontext_avx512_64_full() { - assert_eq!( - ::std::mem::size_of::<__darwin_mcontext_avx512_64_full>(), - 2664usize, - concat!("Size of: ", stringify!(__darwin_mcontext_avx512_64_full)) - ); assert_eq!( - ::std::mem::align_of::<__darwin_mcontext_avx512_64_full>(), - 8usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_legacy as *const _ as usize + }, + 192usize, concat!( - "Alignment of ", - stringify!(__darwin_mcontext_avx512_64_full) + "Offset of field: ", + stringify!(rusage_info_v3), + "::", + stringify!(ri_cpu_time_qos_legacy) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__es as *const _ as usize + &(*(::std::ptr::null::())).ri_cpu_time_qos_user_initiated as *const _ + as usize }, - 0usize, + 200usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64_full), + stringify!(rusage_info_v3), "::", - stringify!(__es) + stringify!(ri_cpu_time_qos_user_initiated) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__ss as *const _ as usize + &(*(::std::ptr::null::())).ri_cpu_time_qos_user_interactive as *const _ + as usize }, - 16usize, + 208usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64_full), + stringify!(rusage_info_v3), "::", - stringify!(__ss) + stringify!(ri_cpu_time_qos_user_interactive) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<__darwin_mcontext_avx512_64_full>())).__fs as *const _ as usize + &(*(::std::ptr::null::())).ri_billed_system_time as *const _ as usize }, 216usize, concat!( "Offset of field: ", - stringify!(__darwin_mcontext_avx512_64_full), + stringify!(rusage_info_v3), "::", - stringify!(__fs) - ) - ); -} -pub type mcontext_t = *mut __darwin_mcontext64; -pub type pthread_attr_t = __darwin_pthread_attr_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __darwin_sigaltstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_size: __darwin_size_t, - pub ss_flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___darwin_sigaltstack() { - assert_eq!( - ::std::mem::size_of::<__darwin_sigaltstack>(), - 24usize, - concat!("Size of: ", stringify!(__darwin_sigaltstack)) - ); - assert_eq!( - ::std::mem::align_of::<__darwin_sigaltstack>(), - 8usize, - concat!("Alignment of ", stringify!(__darwin_sigaltstack)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_sp as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__darwin_sigaltstack), - "::", - stringify!(ss_sp) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_size as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__darwin_sigaltstack), - "::", - stringify!(ss_size) + stringify!(ri_billed_system_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_sigaltstack>())).ss_flags as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_serviced_system_time as *const _ as usize + }, + 224usize, concat!( "Offset of field: ", - stringify!(__darwin_sigaltstack), + stringify!(rusage_info_v3), "::", - stringify!(ss_flags) + stringify!(ri_serviced_system_time) ) ); } -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 struct rusage_info_v4 { + pub ri_uuid: [u8; 16usize], + pub ri_user_time: u64, + pub ri_system_time: u64, + pub ri_pkg_idle_wkups: u64, + pub ri_interrupt_wkups: u64, + pub ri_pageins: u64, + pub ri_wired_size: u64, + pub ri_resident_size: u64, + pub ri_phys_footprint: u64, + pub ri_proc_start_abstime: u64, + pub ri_proc_exit_abstime: u64, + pub ri_child_user_time: u64, + pub ri_child_system_time: u64, + pub ri_child_pkg_idle_wkups: u64, + pub ri_child_interrupt_wkups: u64, + pub ri_child_pageins: u64, + pub ri_child_elapsed_abstime: u64, + pub ri_diskio_bytesread: u64, + pub ri_diskio_byteswritten: u64, + pub ri_cpu_time_qos_default: u64, + pub ri_cpu_time_qos_maintenance: u64, + pub ri_cpu_time_qos_background: u64, + pub ri_cpu_time_qos_utility: u64, + pub ri_cpu_time_qos_legacy: u64, + pub ri_cpu_time_qos_user_initiated: u64, + pub ri_cpu_time_qos_user_interactive: u64, + pub ri_billed_system_time: u64, + pub ri_serviced_system_time: u64, + pub ri_logical_writes: u64, + pub ri_lifetime_max_phys_footprint: u64, + pub ri_instructions: u64, + pub ri_cycles: u64, + pub ri_billed_energy: u64, + pub ri_serviced_energy: u64, + pub ri_interval_max_phys_footprint: u64, + pub ri_runnable_time: u64, } #[test] -fn bindgen_test_layout___darwin_ucontext() { +fn bindgen_test_layout_rusage_info_v4() { assert_eq!( - ::std::mem::size_of::<__darwin_ucontext>(), - 56usize, - concat!("Size of: ", stringify!(__darwin_ucontext)) + ::std::mem::size_of::(), + 296usize, + concat!("Size of: ", stringify!(rusage_info_v4)) ); assert_eq!( - ::std::mem::align_of::<__darwin_ucontext>(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(__darwin_ucontext)) + concat!("Alignment of ", stringify!(rusage_info_v4)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_onstack as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_onstack) + stringify!(ri_uuid) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_sigmask as *const _ as usize }, - 4usize, + unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_sigmask) + stringify!(ri_user_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_stack as *const _ as usize }, - 8usize, + unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_stack) + stringify!(ri_system_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_link as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize + }, 32usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_link) + stringify!(ri_pkg_idle_wkups) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcsize as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize + }, 40usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_mcsize) + stringify!(ri_interrupt_wkups) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__darwin_ucontext>())).uc_mcontext as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, 48usize, concat!( "Offset of field: ", - stringify!(__darwin_ucontext), + stringify!(rusage_info_v4), "::", - stringify!(uc_mcontext) + stringify!(ri_pageins) ) ); -} -pub type ucontext_t = __darwin_ucontext; -pub type sigset_t = __darwin_sigset_t; -pub type uid_t = __darwin_uid_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, - _bindgen_union_align: u64, -} -#[test] -fn bindgen_test_layout_sigval() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(sigval)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sigval)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(sigval), + stringify!(rusage_info_v4), "::", - stringify!(sival_int) + stringify!(ri_wired_size) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(sigval), + stringify!(rusage_info_v4), "::", - stringify!(sival_ptr) + stringify!(ri_resident_size) ) ); -} -#[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, -} -#[test] -fn bindgen_test_layout_sigevent() { - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(sigevent)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sigevent)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize + }, + 72usize, concat!( "Offset of field: ", - stringify!(sigevent), + stringify!(rusage_info_v4), "::", - stringify!(sigev_notify) + stringify!(ri_phys_footprint) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize + }, + 80usize, concat!( "Offset of field: ", - stringify!(sigevent), + stringify!(rusage_info_v4), "::", - stringify!(sigev_signo) + stringify!(ri_proc_start_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize + }, + 88usize, concat!( "Offset of field: ", - stringify!(sigevent), + stringify!(rusage_info_v4), "::", - stringify!(sigev_value) + stringify!(ri_proc_exit_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify_function as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize + }, + 96usize, concat!( "Offset of field: ", - stringify!(sigevent), + stringify!(rusage_info_v4), "::", - stringify!(sigev_notify_function) + stringify!(ri_child_user_time) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::())).sigev_notify_attributes as *const _ as usize + &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize }, - 24usize, + 104usize, concat!( "Offset of field: ", - stringify!(sigevent), + stringify!(rusage_info_v4), "::", - stringify!(sigev_notify_attributes) + stringify!(ri_child_system_time) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __siginfo { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub si_pid: pid_t, - pub si_uid: uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_addr: *mut ::std::os::raw::c_void, - pub si_value: sigval, - pub si_band: ::std::os::raw::c_long, - pub __pad: [::std::os::raw::c_ulong; 7usize], -} -#[test] -fn bindgen_test_layout___siginfo() { - assert_eq!( - ::std::mem::size_of::<__siginfo>(), - 104usize, - concat!("Size of: ", stringify!(__siginfo)) - ); - assert_eq!( - ::std::mem::align_of::<__siginfo>(), - 8usize, - concat!("Alignment of ", stringify!(__siginfo)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_signo as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize + }, + 112usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_signo) + stringify!(ri_child_pkg_idle_wkups) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_errno as *const _ as usize }, - 4usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize + }, + 120usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_errno) + stringify!(ri_child_interrupt_wkups) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_code as *const _ as usize }, - 8usize, + unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, + 128usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_code) + stringify!(ri_child_pageins) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_pid as *const _ as usize }, - 12usize, + unsafe { + &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize + }, + 136usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_pid) + stringify!(ri_child_elapsed_abstime) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_uid as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize + }, + 144usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_uid) + stringify!(ri_diskio_bytesread) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_status as *const _ as usize }, - 20usize, + unsafe { + &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize + }, + 152usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_status) + stringify!(ri_diskio_byteswritten) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_addr as *const _ as usize }, - 24usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_default as *const _ as usize + }, + 160usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_addr) + stringify!(ri_cpu_time_qos_default) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_value as *const _ as usize }, - 32usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_maintenance as *const _ + as usize + }, + 168usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_value) + stringify!(ri_cpu_time_qos_maintenance) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).si_band as *const _ as usize }, - 40usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_background as *const _ + as usize + }, + 176usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(si_band) + stringify!(ri_cpu_time_qos_background) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__siginfo>())).__pad as *const _ as usize }, - 48usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_utility as *const _ as usize + }, + 184usize, concat!( "Offset of field: ", - stringify!(__siginfo), + stringify!(rusage_info_v4), "::", - stringify!(__pad) + stringify!(ri_cpu_time_qos_utility) ) ); -} -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, - ), - >, - _bindgen_union_align: u64, -} -#[test] -fn bindgen_test_layout___sigaction_u() { - assert_eq!( - ::std::mem::size_of::<__sigaction_u>(), - 8usize, - concat!("Size of: ", stringify!(__sigaction_u)) - ); - assert_eq!( - ::std::mem::align_of::<__sigaction_u>(), - 8usize, - concat!("Alignment of ", stringify!(__sigaction_u)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_handler as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_legacy as *const _ as usize + }, + 192usize, concat!( "Offset of field: ", - stringify!(__sigaction_u), + stringify!(rusage_info_v4), "::", - stringify!(__sa_handler) + stringify!(ri_cpu_time_qos_legacy) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction_u>())).__sa_sigaction as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_user_initiated as *const _ + as usize + }, + 200usize, concat!( "Offset of field: ", - stringify!(__sigaction_u), + stringify!(rusage_info_v4), "::", - stringify!(__sa_sigaction) + stringify!(ri_cpu_time_qos_user_initiated) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sigaction { - pub __sigaction_u: __sigaction_u, - pub sa_tramp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - arg4: *mut siginfo_t, - arg5: *mut ::std::os::raw::c_void, - ), - >, - pub sa_mask: sigset_t, - pub sa_flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout___sigaction() { - assert_eq!( - ::std::mem::size_of::<__sigaction>(), - 24usize, - concat!("Size of: ", stringify!(__sigaction)) - ); - assert_eq!( - ::std::mem::align_of::<__sigaction>(), - 8usize, - concat!("Alignment of ", stringify!(__sigaction)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction>())).__sigaction_u as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_cpu_time_qos_user_interactive as *const _ + as usize + }, + 208usize, concat!( "Offset of field: ", - stringify!(__sigaction), + stringify!(rusage_info_v4), "::", - stringify!(__sigaction_u) + stringify!(ri_cpu_time_qos_user_interactive) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_tramp as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::())).ri_billed_system_time as *const _ as usize + }, + 216usize, concat!( "Offset of field: ", - stringify!(__sigaction), + stringify!(rusage_info_v4), "::", - stringify!(sa_tramp) + stringify!(ri_billed_system_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_mask as *const _ as usize }, - 16usize, + unsafe { + &(*(::std::ptr::null::())).ri_serviced_system_time as *const _ as usize + }, + 224usize, concat!( "Offset of field: ", - stringify!(__sigaction), + stringify!(rusage_info_v4), "::", - stringify!(sa_mask) + stringify!(ri_serviced_system_time) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sigaction>())).sa_flags as *const _ as usize }, - 20usize, + unsafe { + &(*(::std::ptr::null::())).ri_logical_writes as *const _ as usize + }, + 232usize, concat!( "Offset of field: ", - stringify!(__sigaction), + stringify!(rusage_info_v4), "::", - stringify!(sa_flags) + stringify!(ri_logical_writes) ) ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_u: __sigaction_u, - pub sa_mask: sigset_t, - pub sa_flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_sigaction() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(sigaction)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sigaction)) - ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__sigaction_u as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_lifetime_max_phys_footprint as *const _ + as usize + }, + 240usize, concat!( "Offset of field: ", - stringify!(sigaction), + stringify!(rusage_info_v4), "::", - stringify!(__sigaction_u) + stringify!(ri_lifetime_max_phys_footprint) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, - 8usize, + unsafe { &(*(::std::ptr::null::())).ri_instructions as *const _ as usize }, + 248usize, concat!( "Offset of field: ", - stringify!(sigaction), + stringify!(rusage_info_v4), "::", - stringify!(sa_mask) + stringify!(ri_instructions) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, - 12usize, + unsafe { &(*(::std::ptr::null::())).ri_cycles as *const _ as usize }, + 256usize, concat!( "Offset of field: ", - stringify!(sigaction), + stringify!(rusage_info_v4), "::", - stringify!(sa_flags) + stringify!(ri_cycles) ) ); -} -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, -} -#[test] -fn bindgen_test_layout_sigvec() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(sigvec)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sigvec)) + unsafe { &(*(::std::ptr::null::())).ri_billed_energy as *const _ as usize }, + 264usize, + concat!( + "Offset of field: ", + stringify!(rusage_info_v4), + "::", + stringify!(ri_billed_energy) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sv_handler as *const _ as usize }, - 0usize, + unsafe { + &(*(::std::ptr::null::())).ri_serviced_energy as *const _ as usize + }, + 272usize, concat!( "Offset of field: ", - stringify!(sigvec), + stringify!(rusage_info_v4), "::", - stringify!(sv_handler) + stringify!(ri_serviced_energy) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sv_mask as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::())).ri_interval_max_phys_footprint as *const _ + as usize + }, + 280usize, concat!( "Offset of field: ", - stringify!(sigvec), + stringify!(rusage_info_v4), "::", - stringify!(sv_mask) + stringify!(ri_interval_max_phys_footprint) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sv_flags as *const _ as usize }, - 12usize, + unsafe { &(*(::std::ptr::null::())).ri_runnable_time as *const _ as usize }, + 288usize, concat!( "Offset of field: ", - stringify!(sigvec), + stringify!(rusage_info_v4), "::", - stringify!(sv_flags) + stringify!(ri_runnable_time) ) ); } +pub type rusage_info_current = rusage_info_v4; #[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, +pub struct rlimit { + pub rlim_cur: rlim_t, + pub rlim_max: rlim_t, } #[test] -fn bindgen_test_layout_sigstack() { +fn bindgen_test_layout_rlimit() { assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(sigstack)) + concat!("Size of: ", stringify!(rlimit)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(sigstack)) + concat!("Alignment of ", stringify!(rlimit)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).rlim_cur as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sigstack), + stringify!(rlimit), "::", - stringify!(ss_sp) + stringify!(rlim_cur) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_onstack as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).rlim_max as *const _ as usize }, 8usize, concat!( "Offset of field: ", - stringify!(sigstack), + stringify!(rlimit), "::", - stringify!(ss_onstack) + stringify!(rlim_max) ) ); } -extern "C" { - pub fn signal( - arg1: ::std::os::raw::c_int, - arg2: ::std::option::Option, - ) -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::option::Option, - ), - >; -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct timeval { - pub tv_sec: __darwin_time_t, - pub tv_usec: __darwin_suseconds_t, +pub struct proc_rlimit_control_wakeupmon { + pub wm_flags: u32, + pub wm_rate: i32, } #[test] -fn bindgen_test_layout_timeval() { +fn bindgen_test_layout_proc_rlimit_control_wakeupmon() { assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(timeval)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(proc_rlimit_control_wakeupmon)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timeval)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(proc_rlimit_control_wakeupmon)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { + &(*(::std::ptr::null::())).wm_flags as *const _ as usize + }, 0usize, concat!( "Offset of field: ", - stringify!(timeval), + stringify!(proc_rlimit_control_wakeupmon), "::", - stringify!(tv_sec) + stringify!(wm_flags) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, - 8usize, + unsafe { + &(*(::std::ptr::null::())).wm_rate as *const _ as usize + }, + 4usize, concat!( "Offset of field: ", - stringify!(timeval), + stringify!(proc_rlimit_control_wakeupmon), "::", - stringify!(tv_usec) + stringify!(wm_rate) ) ); } -pub type rlim_t = __uint64_t; +extern "C" { + pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getiopolicy_np( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setpriority( + arg1: ::std::os::raw::c_int, + arg2: id_t, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setiopolicy_np( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union wait { + pub w_status: ::std::os::raw::c_int, + pub w_T: wait__bindgen_ty_1, + pub w_S: wait__bindgen_ty_2, + _bindgen_union_align: u32, +} #[repr(C)] +#[repr(align(4))] #[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 struct wait__bindgen_ty_1 { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, } #[test] -fn bindgen_test_layout_rusage() { +fn bindgen_test_layout_wait__bindgen_ty_1() { assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(rusage)) + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(wait__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_utime as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_utime) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_stime as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_stime) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_maxrss as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_maxrss) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_ixrss as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_ixrss) - ) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(wait__bindgen_ty_1)) ); +} +impl wait__bindgen_ty_1 { + #[inline] + pub fn w_Termsig(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) } + } + #[inline] + pub fn set_w_Termsig(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 7u8, val as u64) + } + } + #[inline] + pub fn w_Coredump(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn w_Retcode(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn w_Filler(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + w_Termsig: ::std::os::raw::c_uint, + w_Coredump: ::std::os::raw::c_uint, + w_Retcode: ::std::os::raw::c_uint, + w_Filler: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 7u8, { + let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) }; + w_Termsig as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) }; + w_Coredump as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) }; + w_Retcode as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct wait__bindgen_ty_2 { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, +} +#[test] +fn bindgen_test_layout_wait__bindgen_ty_2() { assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_idrss as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_idrss) - ) + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(wait__bindgen_ty_2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_isrss as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_isrss) - ) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(wait__bindgen_ty_2)) ); +} +impl wait__bindgen_ty_2 { + #[inline] + pub fn w_Stopval(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_w_Stopval(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn w_Filler(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + w_Stopval: ::std::os::raw::c_uint, + w_Stopsig: ::std::os::raw::c_uint, + w_Filler: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) }; + w_Stopval as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) }; + w_Stopsig as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; + w_Filler as u64 + }); + __bindgen_bitfield_unit + } +} +#[test] +fn bindgen_test_layout_wait() { assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_minflt as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_minflt) - ) + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(wait)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_majflt as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_majflt) - ) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(wait)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_nswap as *const _ as usize }, - 80usize, + unsafe { &(*(::std::ptr::null::())).w_status as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rusage), + stringify!(wait), "::", - stringify!(ru_nswap) + stringify!(w_status) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_inblock as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_inblock) - ) + unsafe { &(*(::std::ptr::null::())).w_T as *const _ as usize }, + 0usize, + concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_T)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_oublock as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_oublock) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_msgsnd as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_msgsnd) - ) + unsafe { &(*(::std::ptr::null::())).w_S as *const _ as usize }, + 0usize, + concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_S)) ); +} +extern "C" { + pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; +} +extern "C" { + pub fn waitpid( + arg1: pid_t, + arg2: *mut ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + ) -> pid_t; +} +extern "C" { + pub fn waitid( + arg1: idtype_t, + arg2: id_t, + arg3: *mut siginfo_t, + arg4: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wait3( + arg1: *mut ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut rusage, + ) -> pid_t; +} +extern "C" { + pub fn wait4( + arg1: pid_t, + arg2: *mut ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: *mut rusage, + ) -> pid_t; +} +extern "C" { + pub fn alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; +} +pub type ct_rune_t = __darwin_ct_rune_t; +pub type rune_t = __darwin_rune_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_div_t() { assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_msgrcv as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_msgrcv) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_nsignals as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage), - "::", - stringify!(ru_nsignals) - ) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_nvcsw as *const _ as usize }, - 128usize, + unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rusage), + stringify!(div_t), "::", - stringify!(ru_nvcsw) + stringify!(quot) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ru_nivcsw as *const _ as usize }, - 136usize, + unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(rusage), + stringify!(div_t), "::", - stringify!(ru_nivcsw) + stringify!(rem) ) ); } -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, +pub struct ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, } #[test] -fn bindgen_test_layout_rusage_info_v0() { +fn bindgen_test_layout_ldiv_t() { assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(rusage_info_v0)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(ldiv_t)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rusage_info_v0)) + concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), + stringify!(ldiv_t), "::", - stringify!(ri_pageins) + stringify!(quot) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, - 56usize, + unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(rusage_info_v0), + stringify!(ldiv_t), "::", - stringify!(ri_wired_size) + stringify!(rem) ) ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +#[test] +fn bindgen_test_layout_lldiv_t() { assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_resident_size) - ) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v0), - "::", - stringify!(ri_phys_footprint) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize - }, - 80usize, + unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rusage_info_v0), + stringify!(lldiv_t), "::", - stringify!(ri_proc_start_abstime) + stringify!(quot) ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize - }, - 88usize, + unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(rusage_info_v0), + stringify!(lldiv_t), "::", - stringify!(ri_proc_exit_abstime) + stringify!(rem) ) ); } -#[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, +extern "C" { + pub static mut __mb_cur_max: ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rusage_info_v1() { - assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(rusage_info_v1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage_info_v1)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_pageins) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_wired_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_resident_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_phys_footprint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_proc_start_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_proc_exit_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_user_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_pageins) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v1), - "::", - stringify!(ri_child_elapsed_abstime) - ) - ); +extern "C" { + pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } -#[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, +extern "C" { + pub fn calloc( + __count: ::std::os::raw::c_ulong, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; } -#[test] -fn bindgen_test_layout_rusage_info_v2() { - assert_eq!( - ::std::mem::size_of::(), - 160usize, - concat!("Size of: ", stringify!(rusage_info_v2)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage_info_v2)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_pageins) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_wired_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_resident_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_phys_footprint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_proc_start_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_proc_exit_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_user_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_pageins) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_child_elapsed_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize - }, - 144usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_diskio_bytesread) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v2), - "::", - stringify!(ri_diskio_byteswritten) - ) - ); +extern "C" { + pub fn free(arg1: *mut ::std::os::raw::c_void); } -#[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 realloc( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; } -#[test] -fn bindgen_test_layout_rusage_info_v3() { - assert_eq!( - ::std::mem::size_of::(), - 232usize, - concat!("Size of: ", stringify!(rusage_info_v3)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage_info_v3)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_pageins) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_wired_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_resident_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_phys_footprint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_proc_start_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_proc_exit_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_user_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_pageins) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_child_elapsed_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize - }, - 144usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_diskio_bytesread) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_diskio_byteswritten) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_default as *const _ as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_default) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_maintenance as *const _ - as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_maintenance) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_background as *const _ - as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_background) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_utility as *const _ as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_utility) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_legacy as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_legacy) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_user_initiated as *const _ - as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_user_initiated) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_user_interactive as *const _ - as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_cpu_time_qos_user_interactive) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_billed_system_time as *const _ as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_billed_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_serviced_system_time as *const _ as usize - }, - 224usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v3), - "::", - stringify!(ri_serviced_system_time) - ) +extern "C" { + pub fn valloc(arg1: size_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn aligned_alloc(__alignment: size_t, __size: size_t) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn posix_memalign( + __memptr: *mut *mut ::std::os::raw::c_void, + __alignment: size_t, + __size: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn abort(); +} +extern "C" { + pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn bsearch( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; +} +extern "C" { + pub fn exit(arg1: ::std::os::raw::c_int); +} +extern "C" { + pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; +} +extern "C" { + pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; +} +extern "C" { + pub fn mblen(__s: *const ::std::os::raw::c_char, __n: size_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbstowcs( + arg1: *mut wchar_t, + arg2: *const ::std::os::raw::c_char, + arg3: size_t, + ) -> size_t; +} +extern "C" { + pub fn mbtowc( + arg1: *mut wchar_t, + arg2: *const ::std::os::raw::c_char, + arg3: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn qsort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, ); } -#[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 rand() -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rusage_info_v4() { - assert_eq!( - ::std::mem::size_of::(), - 296usize, - concat!("Size of: ", stringify!(rusage_info_v4)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage_info_v4)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_uuid as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_user_time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_system_time as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_pkg_idle_wkups as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interrupt_wkups as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_pageins as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_pageins) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_wired_size as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_wired_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_resident_size as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_resident_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_phys_footprint as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_phys_footprint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_start_abstime as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_proc_start_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_proc_exit_abstime as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_proc_exit_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_user_time as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_user_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_system_time as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_pkg_idle_wkups as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_interrupt_wkups as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_child_pageins as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_pageins) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_child_elapsed_abstime as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_child_elapsed_abstime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_bytesread as *const _ as usize - }, - 144usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_diskio_bytesread) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_diskio_byteswritten as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_diskio_byteswritten) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_default as *const _ as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_default) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_maintenance as *const _ - as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_maintenance) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_background as *const _ - as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_background) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_utility as *const _ as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_utility) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_legacy as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_legacy) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_user_initiated as *const _ - as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_user_initiated) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_cpu_time_qos_user_interactive as *const _ - as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cpu_time_qos_user_interactive) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_billed_system_time as *const _ as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_billed_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_serviced_system_time as *const _ as usize - }, - 224usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_serviced_system_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_logical_writes as *const _ as usize - }, - 232usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_logical_writes) - ) +extern "C" { + pub fn srand(arg1: ::std::os::raw::c_uint); +} +extern "C" { + pub fn strtod( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn strtof( + arg1: *const ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn strtol( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtoll( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoul( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoull( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcstombs( + arg1: *mut ::std::os::raw::c_char, + arg2: *const wchar_t, + arg3: size_t, + ) -> size_t; +} +extern "C" { + pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _Exit(arg1: ::std::os::raw::c_int); +} +extern "C" { + pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn drand48() -> f64; +} +extern "C" { + pub fn ecvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_int, + arg4: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; +} +extern "C" { + pub fn fcvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_int, + arg4: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gcvt( + arg1: f64, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getsubopt( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *const *mut ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn initstate( + arg1: ::std::os::raw::c_uint, + arg2: *mut ::std::os::raw::c_char, + arg3: size_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); +} +extern "C" { + pub fn lrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mrand48() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ptsname_r( + fildes: ::std::os::raw::c_int, + buffer: *mut ::std::os::raw::c_char, + buflen: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn random() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_realpath$DARWIN_EXTSN"] + pub fn realpath( + arg1: *const ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; +} +extern "C" { + pub fn setenv( + __name: *const ::std::os::raw::c_char, + __value: *const ::std::os::raw::c_char, + __overwrite: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setkey(arg1: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn srand48(arg1: ::std::os::raw::c_long); +} +extern "C" { + pub fn srandom(arg1: ::std::os::raw::c_uint); +} +extern "C" { + pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +pub type dev_t = __darwin_dev_t; +pub type mode_t = __darwin_mode_t; +extern "C" { + pub fn arc4random() -> u32; +} +extern "C" { + pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int); +} +extern "C" { + pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: size_t); +} +extern "C" { + pub fn arc4random_stir(); +} +extern "C" { + pub fn arc4random_uniform(__upper_bound: u32) -> u32; +} +extern "C" { + pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bsearch_b( + __key: *const ::std::os::raw::c_void, + __base: *const ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn cgetcap( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn cgetclose() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetent( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + arg3: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetfirst( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetmatch( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetnext( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetnum( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetstr( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn cgetustr( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_daemon$1050"] + pub fn daemon( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn devname_r( + arg1: dev_t, + arg2: mode_t, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getbsize( + arg1: *mut ::std::os::raw::c_int, + arg2: *mut ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getprogname() -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn setprogname(arg1: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn heapsort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn heapsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mergesort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mergesort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn psort( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_lifetime_max_phys_footprint as *const _ - as usize - }, - 240usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_lifetime_max_phys_footprint) - ) +} +extern "C" { + pub fn psort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_instructions as *const _ as usize }, - 248usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_instructions) - ) +} +extern "C" { + pub fn psort_r( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_cycles as *const _ as usize }, - 256usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_cycles) - ) +} +extern "C" { + pub fn qsort_b( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + __compar: *mut ::std::os::raw::c_void, ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_billed_energy as *const _ as usize }, - 264usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_billed_energy) - ) +} +extern "C" { + pub fn qsort_r( + __base: *mut ::std::os::raw::c_void, + __nel: size_t, + __width: size_t, + arg1: *mut ::std::os::raw::c_void, + __compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_serviced_energy as *const _ as usize - }, - 272usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_serviced_energy) - ) +} +extern "C" { + pub fn radixsort( + __base: *mut *const ::std::os::raw::c_uchar, + __nel: ::std::os::raw::c_int, + __table: *const ::std::os::raw::c_uchar, + __endbyte: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sradixsort( + __base: *mut *const ::std::os::raw::c_uchar, + __nel: ::std::os::raw::c_int, + __table: *const ::std::os::raw::c_uchar, + __endbyte: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sranddev(); +} +extern "C" { + pub fn srandomdev(); +} +extern "C" { + pub fn reallocf( + __ptr: *mut ::std::os::raw::c_void, + __size: size_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strtoq( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtouq( + __str: *const ::std::os::raw::c_char, + __endptr: *mut *mut ::std::os::raw::c_char, + __base: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub static mut suboptarg: *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn memchr( + __s: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memcmp( + __s1: *const ::std::os::raw::c_void, + __s2: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memcpy( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memmove( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __len: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset( + __b: *mut ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __len: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strcat( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcoll( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcspn( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strncat( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncmp( + __s1: *const ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strncpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strpbrk( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrchr( + __s: *const ::std::os::raw::c_char, + __c: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strspn( + __s: *const ::std::os::raw::c_char, + __charset: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strstr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strtok( + __str: *mut ::std::os::raw::c_char, + __sep: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strxfrm( + __s1: *mut ::std::os::raw::c_char, + __s2: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtok_r( + __str: *mut ::std::os::raw::c_char, + __sep: *const ::std::os::raw::c_char, + __lasts: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strerror_r( + __errnum: ::std::os::raw::c_int, + __strerrbuf: *mut ::std::os::raw::c_char, + __buflen: size_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn memccpy( + __dst: *mut ::std::os::raw::c_void, + __src: *const ::std::os::raw::c_void, + __c: ::std::os::raw::c_int, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn stpcpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn stpncpy( + __dst: *mut ::std::os::raw::c_char, + __src: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strndup( + __s1: *const ::std::os::raw::c_char, + __n: ::std::os::raw::c_ulong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: size_t) -> size_t; +} +extern "C" { + pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +pub type rsize_t = __darwin_size_t; +pub type errno_t = ::std::os::raw::c_int; +extern "C" { + pub fn memset_s( + __s: *mut ::std::os::raw::c_void, + __smax: rsize_t, + __c: ::std::os::raw::c_int, + __n: rsize_t, + ) -> errno_t; +} +pub type ssize_t = __darwin_ssize_t; +extern "C" { + pub fn memmem( + __big: *const ::std::os::raw::c_void, + __big_len: size_t, + __little: *const ::std::os::raw::c_void, + __little_len: size_t, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset_pattern4( + __b: *mut ::std::os::raw::c_void, + __pattern4: *const ::std::os::raw::c_void, + __len: size_t, ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ri_interval_max_phys_footprint as *const _ - as usize - }, - 280usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_interval_max_phys_footprint) - ) +} +extern "C" { + pub fn memset_pattern8( + __b: *mut ::std::os::raw::c_void, + __pattern8: *const ::std::os::raw::c_void, + __len: size_t, ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).ri_runnable_time as *const _ as usize }, - 288usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v4), - "::", - stringify!(ri_runnable_time) - ) +} +extern "C" { + pub fn memset_pattern16( + __b: *mut ::std::os::raw::c_void, + __pattern16: *const ::std::os::raw::c_void, + __len: size_t, ); } -pub type rusage_info_current = rusage_info_v4; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { - pub rlim_cur: rlim_t, - pub rlim_max: rlim_t, +extern "C" { + pub fn strcasestr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnstr( + __big: *const ::std::os::raw::c_char, + __little: *const ::std::os::raw::c_char, + __len: size_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strlcat( + __dst: *mut ::std::os::raw::c_char, + __source: *const ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strlcpy( + __dst: *mut ::std::os::raw::c_char, + __source: *const ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char); } -#[test] -fn bindgen_test_layout_rlimit() { - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(rlimit)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rlimit)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).rlim_cur as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rlimit), - "::", - stringify!(rlim_cur) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).rlim_max as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rlimit), - "::", - stringify!(rlim_max) - ) +extern "C" { + pub fn strsep( + __stringp: *mut *mut ::std::os::raw::c_char, + __delim: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn swab( + arg1: *const ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + arg3: ssize_t, ); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct proc_rlimit_control_wakeupmon { - pub wm_flags: u32, - pub wm_rate: i32, +extern "C" { + pub fn timingsafe_bcmp( + __b1: *const ::std::os::raw::c_void, + __b2: *const ::std::os::raw::c_void, + __len: size_t, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_proc_rlimit_control_wakeupmon() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(proc_rlimit_control_wakeupmon)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(proc_rlimit_control_wakeupmon)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wm_flags as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(proc_rlimit_control_wakeupmon), - "::", - stringify!(wm_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wm_rate as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(proc_rlimit_control_wakeupmon), - "::", - stringify!(wm_rate) - ) +extern "C" { + pub fn bcmp( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn bcopy( + arg1: *const ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + arg3: size_t, ); } extern "C" { - pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int; + pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong); } extern "C" { - pub fn getiopolicy_np( - arg1: ::std::os::raw::c_int, + pub fn index( + arg1: *const ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + ) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int; + pub fn rindex( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int; + pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - pub fn setpriority( - arg1: ::std::os::raw::c_int, - arg2: id_t, - arg3: ::std::os::raw::c_int, + pub fn strcasecmp( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn setiopolicy_np( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, + pub fn strncasecmp( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int; + pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union wait { - pub w_status: ::std::os::raw::c_int, - pub w_T: wait__bindgen_ty_1, - pub w_S: wait__bindgen_ty_2, - _bindgen_union_align: u32, +extern "C" { + pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; } -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct wait__bindgen_ty_1 { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, +extern "C" { + pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_wait__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(wait__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(wait__bindgen_ty_1)) - ); +extern "C" { + pub fn flsl(arg1: ::std::os::raw::c_long) -> ::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 fn w_Coredump(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } - } - #[inline] - pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn w_Retcode(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } - } - #[inline] - pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 8u8, val as u64) - } - } - #[inline] - pub fn w_Filler(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - w_Termsig: ::std::os::raw::c_uint, - w_Coredump: ::std::os::raw::c_uint, - w_Retcode: ::std::os::raw::c_uint, - w_Filler: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 7u8, { - let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) }; - w_Termsig as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) }; - w_Coredump as u64 - }); - __bindgen_bitfield_unit.set(8usize, 8u8, { - let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) }; - w_Retcode as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; - w_Filler as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; +} +pub type va_list = __builtin_va_list; +pub type __gnuc_va_list = __builtin_va_list; +extern "C" { + pub fn renameat( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + arg4: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn renamex_np( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn renameatx_np( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + arg4: *const ::std::os::raw::c_char, + arg5: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } +pub type fpos_t = __darwin_off_t; #[repr(C)] -#[repr(align(4))] #[derive(Debug, Copy, Clone)] -pub struct wait__bindgen_ty_2 { - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>, +pub struct __sbuf { + pub _base: *mut ::std::os::raw::c_uchar, + pub _size: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_wait__bindgen_ty_2() { +fn bindgen_test_layout___sbuf() { assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(wait__bindgen_ty_2)) + ::std::mem::size_of::<__sbuf>(), + 16usize, + concat!("Size of: ", stringify!(__sbuf)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(wait__bindgen_ty_2)) + ::std::mem::align_of::<__sbuf>(), + 8usize, + concat!("Alignment of ", stringify!(__sbuf)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sbuf>()))._base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__sbuf), + "::", + stringify!(_base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sbuf>()))._size as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(__sbuf), + "::", + stringify!(_size) + ) ); } -impl wait__bindgen_ty_2 { - #[inline] - pub fn w_Stopval(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_w_Stopval(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } - } - #[inline] - pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 8u8, val as u64) - } - } - #[inline] - pub fn w_Filler(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - w_Stopval: ::std::os::raw::c_uint, - w_Stopsig: ::std::os::raw::c_uint, - w_Filler: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = - Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) }; - w_Stopval as u64 - }); - __bindgen_bitfield_unit.set(8usize, 8u8, { - let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) }; - w_Stopsig as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) }; - w_Filler as u64 - }); - __bindgen_bitfield_unit - } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sFILEX { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sFILE { + pub _p: *mut ::std::os::raw::c_uchar, + pub _r: ::std::os::raw::c_int, + pub _w: ::std::os::raw::c_int, + pub _flags: ::std::os::raw::c_short, + pub _file: ::std::os::raw::c_short, + pub _bf: __sbuf, + pub _lbfsize: ::std::os::raw::c_int, + pub _cookie: *mut ::std::os::raw::c_void, + pub _close: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, + >, + pub _read: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub _seek: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: fpos_t, + arg3: ::std::os::raw::c_int, + ) -> fpos_t, + >, + pub _write: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub _ub: __sbuf, + pub _extra: *mut __sFILEX, + pub _ur: ::std::os::raw::c_int, + pub _ubuf: [::std::os::raw::c_uchar; 3usize], + pub _nbuf: [::std::os::raw::c_uchar; 1usize], + pub _lb: __sbuf, + pub _blksize: ::std::os::raw::c_int, + pub _offset: fpos_t, } #[test] -fn bindgen_test_layout_wait() { +fn bindgen_test_layout___sFILE() { assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(wait)) + ::std::mem::size_of::<__sFILE>(), + 152usize, + concat!("Size of: ", stringify!(__sFILE)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(wait)) + ::std::mem::align_of::<__sFILE>(), + 8usize, + concat!("Alignment of ", stringify!(__sFILE)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).w_status as *const _ as usize }, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._p as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(wait), + stringify!(__sFILE), + "::", + stringify!(_p) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._r as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_r) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._w as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_w) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._flags as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_flags) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._file as *const _ as usize }, + 18usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_file) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._bf as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_bf) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._lbfsize as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_lbfsize) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._cookie as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_cookie) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__sFILE>()))._close as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), "::", - stringify!(w_status) + stringify!(_close) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).w_T as *const _ as usize }, - 0usize, - concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_T)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).w_S as *const _ as usize }, - 0usize, - concat!("Offset of field: ", stringify!(wait), "::", stringify!(w_S)) - ); -} -extern "C" { - pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t; -} -extern "C" { - pub fn waitpid( - arg1: pid_t, - arg2: *mut ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - ) -> pid_t; -} -extern "C" { - pub fn waitid( - arg1: idtype_t, - arg2: id_t, - arg3: *mut siginfo_t, - arg4: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wait3( - arg1: *mut ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *mut rusage, - ) -> pid_t; -} -extern "C" { - pub fn wait4( - arg1: pid_t, - arg2: *mut ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - arg4: *mut rusage, - ) -> pid_t; -} -extern "C" { - pub fn alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; -} -pub type ct_rune_t = __darwin_ct_rune_t; -pub type rune_t = __darwin_rune_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_div_t() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(div_t)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(div_t)) + unsafe { &(*(::std::ptr::null::<__sFILE>()))._read as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_read) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._seek as *const _ as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(div_t), + stringify!(__sFILE), "::", - stringify!(quot) + stringify!(_seek) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, - 4usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._write as *const _ as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(div_t), + stringify!(__sFILE), "::", - stringify!(rem) + stringify!(_write) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_ldiv_t() { assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(ldiv_t)) + unsafe { &(*(::std::ptr::null::<__sFILE>()))._ub as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_ub) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ldiv_t)) + unsafe { &(*(::std::ptr::null::<__sFILE>()))._extra as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_extra) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._ur as *const _ as usize }, + 112usize, concat!( "Offset of field: ", - stringify!(ldiv_t), + stringify!(__sFILE), "::", - stringify!(quot) + stringify!(_ur) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, - 8usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._ubuf as *const _ as usize }, + 116usize, concat!( "Offset of field: ", - stringify!(ldiv_t), + stringify!(__sFILE), "::", - stringify!(rem) + stringify!(_ubuf) ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -#[test] -fn bindgen_test_layout_lldiv_t() { assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(lldiv_t)) + unsafe { &(*(::std::ptr::null::<__sFILE>()))._nbuf as *const _ as usize }, + 119usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_nbuf) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(lldiv_t)) + unsafe { &(*(::std::ptr::null::<__sFILE>()))._lb as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(__sFILE), + "::", + stringify!(_lb) + ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, - 0usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._blksize as *const _ as usize }, + 136usize, concat!( "Offset of field: ", - stringify!(lldiv_t), + stringify!(__sFILE), "::", - stringify!(quot) + stringify!(_blksize) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, - 8usize, + unsafe { &(*(::std::ptr::null::<__sFILE>()))._offset as *const _ as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(lldiv_t), + stringify!(__sFILE), "::", - stringify!(rem) + stringify!(_offset) ) ); } +pub type FILE = __sFILE; +extern "C" { + pub static mut __stdinp: *mut FILE; +} +extern "C" { + pub static mut __stdoutp: *mut FILE; +} +extern "C" { + pub static mut __stderrp: *mut FILE; +} +extern "C" { + pub fn clearerr(arg1: *mut FILE); +} +extern "C" { + pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fgets( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: *mut FILE, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fopen( + __filename: *const ::std::os::raw::c_char, + __mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; +} +extern "C" { + pub fn fprintf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn fread( + __ptr: *mut ::std::os::raw::c_void, + __size: ::std::os::raw::c_ulong, + __nitems: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn freopen( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut FILE, + ) -> *mut FILE; +} extern "C" { - pub static mut __mb_cur_max: ::std::os::raw::c_int; + pub fn fscanf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + 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 calloc( - __count: ::std::os::raw::c_ulong, - __size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int; } extern "C" { - pub fn free(arg1: *mut ::std::os::raw::c_void); + pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long; } extern "C" { - pub fn realloc( - __ptr: *mut ::std::os::raw::c_void, + pub fn fwrite( + __ptr: *const ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + __nitems: ::std::os::raw::c_ulong, + __stream: *mut FILE, + ) -> ::std::os::raw::c_ulong; } extern "C" { - pub fn valloc(arg1: size_t) -> *mut ::std::os::raw::c_void; + pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn aligned_alloc(__alignment: size_t, __size: size_t) -> *mut ::std::os::raw::c_void; + pub fn getchar() -> ::std::os::raw::c_int; } extern "C" { - pub fn posix_memalign( - __memptr: *mut *mut ::std::os::raw::c_void, - __alignment: size_t, - __size: size_t, - ) -> ::std::os::raw::c_int; + pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn abort(); + pub fn perror(arg1: *const ::std::os::raw::c_char); } extern "C" { - pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } extern "C" { - pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; + pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64; + pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; + 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 bsearch( - __key: *const ::std::os::raw::c_void, - __base: *const ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> *mut ::std::os::raw::c_void; + pub fn rewind(arg1: *mut FILE); } extern "C" { - pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t; + pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } extern "C" { - pub fn exit(arg1: ::std::os::raw::c_int); + pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char); } extern "C" { - pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + pub fn setvbuf( + arg1: *mut FILE, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + arg4: size_t, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + pub fn sprintf( + arg1: *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t; + pub fn sscanf( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; + pub fn tmpfile() -> *mut FILE; } extern "C" { - pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t; + pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn mblen(__s: *const ::std::os::raw::c_char, __n: size_t) -> ::std::os::raw::c_int; + pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn mbstowcs( - arg1: *mut wchar_t, + pub fn vfprintf( + arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, - arg3: size_t, - ) -> size_t; + arg3: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn mbtowc( - arg1: *mut wchar_t, + pub fn vprintf( + arg1: *const ::std::os::raw::c_char, + arg2: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsprintf( + arg1: *mut ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, - arg3: size_t, + arg3: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn qsort( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ); + pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn rand() -> ::std::os::raw::c_int; + pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE; } extern "C" { - pub fn srand(arg1: ::std::os::raw::c_uint); + pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn strtod( - arg1: *const ::std::os::raw::c_char, - arg2: *mut *mut ::std::os::raw::c_char, - ) -> f64; + pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn strtof( + pub fn popen( arg1: *const ::std::os::raw::c_char, - arg2: *mut *mut ::std::os::raw::c_char, - ) -> f32; + arg2: *const ::std::os::raw::c_char, + ) -> *mut FILE; } 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; + pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int; } 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; + pub fn __svfscanf( + arg1: *mut FILE, + arg2: *const ::std::os::raw::c_char, + arg3: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - 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; + pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } 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; + pub fn flockfile(arg1: *mut FILE); } extern "C" { - pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn wcstombs( - arg1: *mut ::std::os::raw::c_char, - arg2: *const wchar_t, - arg3: size_t, - ) -> size_t; + pub fn funlockfile(arg1: *mut FILE); } extern "C" { - pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int; + pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn _Exit(arg1: ::std::os::raw::c_int); + pub fn getchar_unlocked() -> ::std::os::raw::c_int; } extern "C" { - pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn drand48() -> f64; + pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } 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; + pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64; + pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int; } 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, + pub fn tempnam( + __dir: *const ::std::os::raw::c_char, + __prefix: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } +pub type off_t = __darwin_off_t; +extern "C" { + pub fn fseeko( + __stream: *mut FILE, + __offset: off_t, + __whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} extern "C" { - pub fn gcvt( - arg1: f64, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + pub fn ftello(__stream: *mut FILE) -> off_t; +} +extern "C" { + pub fn snprintf( + __str: *mut ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vfscanf( + __stream: *mut FILE, + __format: *const ::std::os::raw::c_char, + arg1: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vscanf( + __format: *const ::std::os::raw::c_char, + arg1: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsnprintf( + __str: *mut ::std::os::raw::c_char, + __size: ::std::os::raw::c_ulong, + __format: *const ::std::os::raw::c_char, + arg1: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn vsscanf( + __str: *const ::std::os::raw::c_char, + __format: *const ::std::os::raw::c_char, + arg1: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } 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, + pub fn dprintf( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn vdprintf( + arg1: ::std::os::raw::c_int, + arg2: *const ::std::os::raw::c_char, + arg3: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn initstate( - arg1: ::std::os::raw::c_uint, - arg2: *mut ::std::os::raw::c_char, - arg3: size_t, - ) -> *mut ::std::os::raw::c_char; + pub fn getdelim( + __linep: *mut *mut ::std::os::raw::c_char, + __linecapp: *mut size_t, + __delimiter: ::std::os::raw::c_int, + __stream: *mut FILE, + ) -> ssize_t; } extern "C" { - pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + pub fn getline( + __linep: *mut *mut ::std::os::raw::c_char, + __linecapp: *mut size_t, + __stream: *mut FILE, + ) -> ssize_t; } extern "C" { - pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; + pub fn fmemopen( + __buf: *mut ::std::os::raw::c_void, + __size: size_t, + __mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } extern "C" { - pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort); + pub fn open_memstream( + __bufp: *mut *mut ::std::os::raw::c_char, + __sizep: *mut size_t, + ) -> *mut FILE; } extern "C" { - pub fn lrand48() -> ::std::os::raw::c_long; + pub static sys_nerr: ::std::os::raw::c_int; } extern "C" { - pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize]; } extern "C" { - pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + pub fn asprintf( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn mrand48() -> ::std::os::raw::c_long; + pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + pub fn fgetln(arg1: *mut FILE, arg2: *mut size_t) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + 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 ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn ptsname_r( - fildes: ::std::os::raw::c_int, - buffer: *mut ::std::os::raw::c_char, - buflen: size_t, - ) -> ::std::os::raw::c_int; + pub fn setbuffer( + arg1: *mut FILE, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ); } extern "C" { - pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn random() -> ::std::os::raw::c_long; + pub fn vasprintf( + arg1: *mut *mut ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; + pub fn zopen( + arg1: *const ::std::os::raw::c_char, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut FILE; } extern "C" { - #[link_name = "\u{1}_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; + pub fn funopen( + arg1: *const ::std::os::raw::c_void, + arg2: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + arg3: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + arg4: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: fpos_t, + arg3: ::std::os::raw::c_int, + ) -> fpos_t, + >, + arg5: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, + >, + ) -> *mut FILE; } extern "C" { - pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; + pub fn __sprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: size_t, + arg4: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn setenv( - __name: *const ::std::os::raw::c_char, - __value: *const ::std::os::raw::c_char, - __overwrite: ::std::os::raw::c_int, + pub fn __snprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: ::std::os::raw::c_int, + arg4: size_t, + arg5: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - pub fn setkey(arg1: *const ::std::os::raw::c_char); + pub fn __vsprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: size_t, + arg4: *const ::std::os::raw::c_char, + arg5: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + pub fn __vsnprintf_chk( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: ::std::os::raw::c_int, + arg4: size_t, + arg5: *const ::std::os::raw::c_char, + arg6: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn srand48(arg1: ::std::os::raw::c_long); + pub fn __error() -> *mut ::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], +} +#[test] +fn bindgen_test_layout_fd_set() { + assert_eq!( + ::std::mem::size_of::(), + 128usize, + concat!("Size of: ", stringify!(fd_set)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(fd_set)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(fd_set), + "::", + stringify!(fds_bits) + ) + ); } extern "C" { - pub fn srandom(arg1: ::std::os::raw::c_uint); + 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 { + pub l: size_t, + pub m: size_t, + pub s: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_kstring_t() { + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(kstring_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(kstring_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).l as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(kstring_t), + "::", + stringify!(l) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).m as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(kstring_t), + "::", + stringify!(m) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).s as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(kstring_t), + "::", + stringify!(s) + ) + ); } -extern "C" { - pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ks_tokaux_t { + pub tab: [u64; 4usize], + pub sep: ::std::os::raw::c_int, + pub finished: ::std::os::raw::c_int, + pub p: *const ::std::os::raw::c_char, } -extern "C" { - pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_ks_tokaux_t() { + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(ks_tokaux_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ks_tokaux_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).tab as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ks_tokaux_t), + "::", + stringify!(tab) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).sep as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ks_tokaux_t), + "::", + stringify!(sep) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).finished as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(ks_tokaux_t), + "::", + stringify!(finished) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).p as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ks_tokaux_t), + "::", + stringify!(p) + ) + ); } -pub type dev_t = __darwin_dev_t; -pub type mode_t = __darwin_mode_t; extern "C" { - pub fn arc4random() -> u32; + pub fn kvsprintf( + s: *mut kstring_t, + fmt: *const ::std::os::raw::c_char, + ap: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int); + pub fn ksprintf( + s: *mut kstring_t, + fmt: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: size_t); + pub fn kputd(d: f64, s: *mut kstring_t) -> ::std::os::raw::c_int; } extern "C" { - pub fn arc4random_stir(); + pub fn ksplit_core( + s: *mut ::std::os::raw::c_char, + delimiter: ::std::os::raw::c_int, + _max: *mut ::std::os::raw::c_int, + _offsets: *mut *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn arc4random_uniform(__upper_bound: u32) -> u32; + 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, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; + 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, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn bsearch_b( - __key: *const ::std::os::raw::c_void, - __base: *const ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: *mut ::std::os::raw::c_void, + pub fn kmemmem( + _str: *const ::std::os::raw::c_void, + n: ::std::os::raw::c_int, + _pat: *const ::std::os::raw::c_void, + m: ::std::os::raw::c_int, + _prep: *mut *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } extern "C" { - pub fn cgetcap( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, + pub fn kstrtok( + str: *const ::std::os::raw::c_char, + sep: *const ::std::os::raw::c_char, + aux: *mut ks_tokaux_t, ) -> *mut ::std::os::raw::c_char; } +pub type kgets_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; extern "C" { - pub fn cgetclose() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cgetent( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *mut *mut ::std::os::raw::c_char, - arg3: *const ::std::os::raw::c_char, + pub fn kgetline( + s: *mut kstring_t, + fgets_fn: kgets_func, + fp: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } +pub type kgets_func2 = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: size_t, + arg3: *mut ::std::os::raw::c_void, + ) -> ssize_t, +>; extern "C" { - pub fn cgetfirst( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *mut *mut ::std::os::raw::c_char, + pub fn kgetline2( + s: *mut kstring_t, + fgets_fn: kgets_func2, + fp: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn cgetmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cram_fd { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hFILE { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_tpool { + _unused: [u8; 0], } extern "C" { - pub fn cgetnext( - arg1: *mut *mut ::std::os::raw::c_char, - arg2: *mut *mut ::std::os::raw::c_char, + pub fn hts_resize_array_( + arg1: size_t, + arg2: size_t, + arg3: size_t, + arg4: *mut ::std::os::raw::c_void, + arg5: *mut *mut ::std::os::raw::c_void, + arg6: ::std::os::raw::c_int, + arg7: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn cgetnum( - arg1: *mut ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + pub fn hts_lib_shutdown(); } extern "C" { - pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + pub fn hts_free(ptr: *mut ::std::os::raw::c_void); +} +pub const htsFormatCategory_unknown_category: htsFormatCategory = 0; +pub const htsFormatCategory_sequence_data: htsFormatCategory = 1; +pub const htsFormatCategory_variant_data: htsFormatCategory = 2; +pub const htsFormatCategory_index_file: htsFormatCategory = 3; +pub const htsFormatCategory_region_list: htsFormatCategory = 4; +pub const htsFormatCategory_category_maximum: htsFormatCategory = 32767; +pub type htsFormatCategory = u32; +pub const htsExactFormat_unknown_format: htsExactFormat = 0; +pub const htsExactFormat_binary_format: htsExactFormat = 1; +pub const htsExactFormat_text_format: htsExactFormat = 2; +pub const htsExactFormat_sam: htsExactFormat = 3; +pub const htsExactFormat_bam: htsExactFormat = 4; +pub const htsExactFormat_bai: htsExactFormat = 5; +pub const htsExactFormat_cram: htsExactFormat = 6; +pub const htsExactFormat_crai: htsExactFormat = 7; +pub const htsExactFormat_vcf: htsExactFormat = 8; +pub const htsExactFormat_bcf: htsExactFormat = 9; +pub const htsExactFormat_csi: htsExactFormat = 10; +pub const htsExactFormat_gzi: htsExactFormat = 11; +pub const htsExactFormat_tbi: htsExactFormat = 12; +pub const htsExactFormat_bed: htsExactFormat = 13; +pub const htsExactFormat_htsget: htsExactFormat = 14; +pub const htsExactFormat_json: htsExactFormat = 14; +pub const htsExactFormat_empty_format: htsExactFormat = 15; +pub const htsExactFormat_fasta_format: htsExactFormat = 16; +pub const htsExactFormat_fastq_format: htsExactFormat = 17; +pub const htsExactFormat_fai_format: htsExactFormat = 18; +pub const htsExactFormat_fqi_format: htsExactFormat = 19; +pub const htsExactFormat_hts_crypt4gh_format: htsExactFormat = 20; +pub const htsExactFormat_format_maximum: htsExactFormat = 32767; +pub type htsExactFormat = u32; +pub const htsCompression_no_compression: htsCompression = 0; +pub const htsCompression_gzip: htsCompression = 1; +pub const htsCompression_bgzf: htsCompression = 2; +pub const htsCompression_custom: htsCompression = 3; +pub const htsCompression_bzip2_compression: htsCompression = 4; +pub const htsCompression_compression_maximum: htsCompression = 32767; +pub type htsCompression = u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct htsFormat { + pub category: htsFormatCategory, + pub format: htsExactFormat, + pub version: htsFormat__bindgen_ty_1, + pub compression: htsCompression, + pub compression_level: ::std::os::raw::c_short, + pub specific: *mut ::std::os::raw::c_void, } -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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct htsFormat__bindgen_ty_1 { + pub major: ::std::os::raw::c_short, + pub minor: ::std::os::raw::c_short, } -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; +#[test] +fn bindgen_test_layout_htsFormat__bindgen_ty_1() { + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(htsFormat__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 2usize, + concat!("Alignment of ", stringify!(htsFormat__bindgen_ty_1)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).major as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsFormat__bindgen_ty_1), + "::", + stringify!(major) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).minor as *const _ as usize }, + 2usize, + concat!( + "Offset of field: ", + stringify!(htsFormat__bindgen_ty_1), + "::", + stringify!(minor) + ) + ); } -extern "C" { - #[link_name = "\u{1}_daemon$1050"] - pub fn daemon( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_htsFormat() { + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(htsFormat)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(htsFormat)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).category as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(category) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(format) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(version) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).compression as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(compression) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).compression_level as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(compression_level) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).specific as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(htsFormat), + "::", + stringify!(specific) + ) + ); } -extern "C" { - pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_idx_t { + _unused: [u8; 0], } -extern "C" { - pub fn devname_r( - arg1: dev_t, - arg2: mode_t, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct htsFile { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>, + pub lineno: i64, + pub line: kstring_t, + pub fn_: *mut ::std::os::raw::c_char, + pub fn_aux: *mut ::std::os::raw::c_char, + pub fp: htsFile__bindgen_ty_1, + pub state: *mut ::std::os::raw::c_void, + pub format: htsFormat, + pub idx: *mut hts_idx_t, + pub fnidx: *const ::std::os::raw::c_char, + pub bam_header: *mut sam_hdr_t, } -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; +#[repr(C)] +#[derive(Copy, Clone)] +pub union htsFile__bindgen_ty_1 { + pub bgzf: *mut BGZF, + pub cram: *mut cram_fd, + pub hfile: *mut hFILE, + _bindgen_union_align: u64, } -extern "C" { - pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_htsFile__bindgen_ty_1() { + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(htsFile__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(htsFile__bindgen_ty_1)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).bgzf as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsFile__bindgen_ty_1), + "::", + stringify!(bgzf) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).cram as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsFile__bindgen_ty_1), + "::", + stringify!(cram) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).hfile as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsFile__bindgen_ty_1), + "::", + stringify!(hfile) + ) + ); } -extern "C" { - pub fn getprogname() -> *const ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_htsFile() { + assert_eq!( + ::std::mem::size_of::(), + 128usize, + concat!("Size of: ", stringify!(htsFile)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(htsFile)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).lineno as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(lineno) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).line as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(line) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).fn_ as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(fn_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).fn_aux as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(fn_aux) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).fp as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(fp) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).state as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(state) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(format) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).idx as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(idx) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).fnidx as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(fnidx) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).bam_header as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(htsFile), + "::", + stringify!(bam_header) + ) + ); } -extern "C" { - pub fn setprogname(arg1: *const ::std::os::raw::c_char); +impl htsFile { + #[inline] + pub fn is_bin(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_bin(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn is_write(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_write(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn is_be(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_be(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn is_cram(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_cram(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn is_bgzf(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_bgzf(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn dummy(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_dummy(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + is_bin: u32, + is_write: u32, + is_be: u32, + is_cram: u32, + is_bgzf: u32, + dummy: u32, + ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let is_bin: u32 = unsafe { ::std::mem::transmute(is_bin) }; + is_bin as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let is_write: u32 = unsafe { ::std::mem::transmute(is_write) }; + is_write as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let is_be: u32 = unsafe { ::std::mem::transmute(is_be) }; + is_be as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let is_cram: u32 = unsafe { ::std::mem::transmute(is_cram) }; + is_cram as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let is_bgzf: u32 = unsafe { ::std::mem::transmute(is_bgzf) }; + is_bgzf as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let dummy: u32 = unsafe { ::std::mem::transmute(dummy) }; + dummy as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - pub fn heapsort( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct htsThreadPool { + pub pool: *mut hts_tpool, + pub qsize: ::std::os::raw::c_int, } -extern "C" { - pub fn heapsort_b( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_htsThreadPool() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(htsThreadPool)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(htsThreadPool)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).pool as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(htsThreadPool), + "::", + stringify!(pool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).qsize as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(htsThreadPool), + "::", + stringify!(qsize) + ) + ); } -extern "C" { - pub fn mergesort( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; +pub const sam_fields_SAM_QNAME: sam_fields = 1; +pub const sam_fields_SAM_FLAG: sam_fields = 2; +pub const sam_fields_SAM_RNAME: sam_fields = 4; +pub const sam_fields_SAM_POS: sam_fields = 8; +pub const sam_fields_SAM_MAPQ: sam_fields = 16; +pub const sam_fields_SAM_CIGAR: sam_fields = 32; +pub const sam_fields_SAM_RNEXT: sam_fields = 64; +pub const sam_fields_SAM_PNEXT: sam_fields = 128; +pub const sam_fields_SAM_TLEN: sam_fields = 256; +pub const sam_fields_SAM_SEQ: sam_fields = 512; +pub const sam_fields_SAM_QUAL: sam_fields = 1024; +pub const sam_fields_SAM_AUX: sam_fields = 2048; +pub const sam_fields_SAM_RGAUX: sam_fields = 4096; +pub type sam_fields = u32; +pub const hts_fmt_option_CRAM_OPT_DECODE_MD: hts_fmt_option = 0; +pub const hts_fmt_option_CRAM_OPT_PREFIX: hts_fmt_option = 1; +pub const hts_fmt_option_CRAM_OPT_VERBOSITY: hts_fmt_option = 2; +pub const hts_fmt_option_CRAM_OPT_SEQS_PER_SLICE: hts_fmt_option = 3; +pub const hts_fmt_option_CRAM_OPT_SLICES_PER_CONTAINER: hts_fmt_option = 4; +pub const hts_fmt_option_CRAM_OPT_RANGE: hts_fmt_option = 5; +pub const hts_fmt_option_CRAM_OPT_VERSION: hts_fmt_option = 6; +pub const hts_fmt_option_CRAM_OPT_EMBED_REF: hts_fmt_option = 7; +pub const hts_fmt_option_CRAM_OPT_IGNORE_MD5: hts_fmt_option = 8; +pub const hts_fmt_option_CRAM_OPT_REFERENCE: hts_fmt_option = 9; +pub const hts_fmt_option_CRAM_OPT_MULTI_SEQ_PER_SLICE: hts_fmt_option = 10; +pub const hts_fmt_option_CRAM_OPT_NO_REF: hts_fmt_option = 11; +pub const hts_fmt_option_CRAM_OPT_USE_BZIP2: hts_fmt_option = 12; +pub const hts_fmt_option_CRAM_OPT_SHARED_REF: hts_fmt_option = 13; +pub const hts_fmt_option_CRAM_OPT_NTHREADS: hts_fmt_option = 14; +pub const hts_fmt_option_CRAM_OPT_THREAD_POOL: hts_fmt_option = 15; +pub const hts_fmt_option_CRAM_OPT_USE_LZMA: hts_fmt_option = 16; +pub const hts_fmt_option_CRAM_OPT_USE_RANS: hts_fmt_option = 17; +pub const hts_fmt_option_CRAM_OPT_REQUIRED_FIELDS: hts_fmt_option = 18; +pub const hts_fmt_option_CRAM_OPT_LOSSY_NAMES: hts_fmt_option = 19; +pub const hts_fmt_option_CRAM_OPT_BASES_PER_SLICE: hts_fmt_option = 20; +pub const hts_fmt_option_CRAM_OPT_STORE_MD: hts_fmt_option = 21; +pub const hts_fmt_option_CRAM_OPT_STORE_NM: hts_fmt_option = 22; +pub const hts_fmt_option_CRAM_OPT_RANGE_NOSEEK: hts_fmt_option = 23; +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; +pub const hts_fmt_option_HTS_OPT_CACHE_SIZE: hts_fmt_option = 103; +pub const hts_fmt_option_HTS_OPT_BLOCK_SIZE: hts_fmt_option = 104; +pub type hts_fmt_option = u32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct hts_opt { + pub arg: *mut ::std::os::raw::c_char, + pub opt: hts_fmt_option, + pub val: hts_opt__bindgen_ty_1, + pub next: *mut hts_opt, } -extern "C" { - pub fn mergesort_b( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union hts_opt__bindgen_ty_1 { + pub i: ::std::os::raw::c_int, + pub s: *mut ::std::os::raw::c_char, + _bindgen_union_align: u64, } -extern "C" { - pub fn psort( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, +#[test] +fn bindgen_test_layout_hts_opt__bindgen_ty_1() { + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(hts_opt__bindgen_ty_1)) ); -} -extern "C" { - pub fn psort_b( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: *mut ::std::os::raw::c_void, + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_opt__bindgen_ty_1)) ); -} -extern "C" { - pub fn psort_r( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - arg1: *mut ::std::os::raw::c_void, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, + assert_eq!( + unsafe { &(*(::std::ptr::null::())).i as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_opt__bindgen_ty_1), + "::", + stringify!(i) + ) ); -} -extern "C" { - pub fn qsort_b( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - __compar: *mut ::std::os::raw::c_void, + assert_eq!( + unsafe { &(*(::std::ptr::null::())).s as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_opt__bindgen_ty_1), + "::", + stringify!(s) + ) ); } -extern "C" { - pub fn qsort_r( - __base: *mut ::std::os::raw::c_void, - __nel: size_t, - __width: size_t, - arg1: *mut ::std::os::raw::c_void, - __compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, +#[test] +fn bindgen_test_layout_hts_opt() { + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(hts_opt)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_opt)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).arg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_opt), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).opt as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_opt), + "::", + stringify!(opt) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).val as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(hts_opt), + "::", + stringify!(val) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).next as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(hts_opt), + "::", + stringify!(next) + ) ); } extern "C" { - pub fn radixsort( - __base: *mut *const ::std::os::raw::c_uchar, - __nel: ::std::os::raw::c_int, - __table: *const ::std::os::raw::c_uchar, - __endbyte: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sradixsort( - __base: *mut *const ::std::os::raw::c_uchar, - __nel: ::std::os::raw::c_int, - __table: *const ::std::os::raw::c_uchar, - __endbyte: ::std::os::raw::c_uint, + pub fn hts_opt_add( + opts: *mut *mut hts_opt, + c_arg: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn sranddev(); -} -extern "C" { - pub fn srandomdev(); -} -extern "C" { - pub fn reallocf( - __ptr: *mut ::std::os::raw::c_void, - __size: size_t, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn strtoq( - __str: *const ::std::os::raw::c_char, - __endptr: *mut *mut ::std::os::raw::c_char, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn strtouq( - __str: *const ::std::os::raw::c_char, - __endptr: *mut *mut ::std::os::raw::c_char, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + pub fn hts_opt_apply(fp: *mut htsFile, opts: *mut hts_opt) -> ::std::os::raw::c_int; } extern "C" { - pub static mut suboptarg: *mut ::std::os::raw::c_char; + pub fn hts_opt_free(opts: *mut hts_opt); } 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; + pub fn hts_parse_format( + opt: *mut htsFormat, + str: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } 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, + pub fn hts_parse_opt_list( + opt: *mut htsFormat, + str: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn memcpy( - __dst: *mut ::std::os::raw::c_void, - __src: *const ::std::os::raw::c_void, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + pub static seq_nt16_table: [::std::os::raw::c_uchar; 256usize]; } 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; + pub static mut seq_nt16_str: [::std::os::raw::c_char; 0usize]; +} +extern "C" { + pub static mut seq_nt16_int: [::std::os::raw::c_int; 0usize]; } 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; + pub fn hts_version() -> *const ::std::os::raw::c_char; } 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; + pub fn hts_detect_format(fp: *mut hFILE, fmt: *mut htsFormat) -> ::std::os::raw::c_int; } extern "C" { - pub fn strchr( - __s: *const ::std::os::raw::c_char, - __c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_format_description(format: *const htsFormat) -> *mut ::std::os::raw::c_char; } extern "C" { - pub fn strcmp( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn hts_open( + fn_: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut htsFile; } extern "C" { - pub fn strcoll( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn hts_open_format( + fn_: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + fmt: *const htsFormat, + ) -> *mut htsFile; } 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; + pub fn hts_hopen( + fp: *mut hFILE, + fn_: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut htsFile; } extern "C" { - pub fn strcspn( - __s: *const ::std::os::raw::c_char, - __charset: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + pub fn hts_close(fp: *mut htsFile) -> ::std::os::raw::c_int; } extern "C" { - pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + pub fn hts_get_format(fp: *mut htsFile) -> *const htsFormat; } extern "C" { - pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; + pub fn hts_format_file_extension(format: *const htsFormat) -> *const ::std::os::raw::c_char; } 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; + pub fn hts_set_opt(fp: *mut htsFile, opt: hts_fmt_option, ...) -> ::std::os::raw::c_int; } extern "C" { - pub fn strncmp( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, + pub fn hts_getline( + fp: *mut htsFile, + delimiter: ::std::os::raw::c_int, + str: *mut kstring_t, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn strncpy( - __dst: *mut ::std::os::raw::c_char, - __src: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + 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; } 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; + 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; } extern "C" { - pub fn strrchr( - __s: *const ::std::os::raw::c_char, - __c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_set_threads(fp: *mut htsFile, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - pub fn strspn( - __s: *const ::std::os::raw::c_char, - __charset: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + pub fn hts_set_thread_pool(fp: *mut htsFile, p: *mut htsThreadPool) -> ::std::os::raw::c_int; } 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; + pub fn hts_set_cache_size(fp: *mut htsFile, n: ::std::os::raw::c_int); } 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; + pub fn hts_set_fai_filename( + fp: *mut htsFile, + fn_aux: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn hts_check_EOF(fp: *mut htsFile) -> ::std::os::raw::c_int; +} +pub type hts_pos_t = i64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_pair_pos_t { + pub beg: hts_pos_t, + pub end: hts_pos_t, +} +#[test] +fn bindgen_test_layout_hts_pair_pos_t() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(hts_pair_pos_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_pair_pos_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).beg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_pair_pos_t), + "::", + stringify!(beg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).end as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_pair_pos_t), + "::", + stringify!(end) + ) + ); +} +pub type hts_pair32_t = hts_pair_pos_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_pair64_t { + pub u: u64, + pub v: u64, +} +#[test] +fn bindgen_test_layout_hts_pair64_t() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(hts_pair64_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_pair64_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).u as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_pair64_t), + "::", + stringify!(u) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_pair64_t), + "::", + stringify!(v) + ) + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_pair64_max_t { + pub u: u64, + pub v: u64, + pub max: u64, +} +#[test] +fn bindgen_test_layout_hts_pair64_max_t() { + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(hts_pair64_max_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_pair64_max_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).u as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_pair64_max_t), + "::", + stringify!(u) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_pair64_max_t), + "::", + stringify!(v) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).max as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(hts_pair64_max_t), + "::", + stringify!(max) + ) + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_reglist_t { + pub reg: *const ::std::os::raw::c_char, + pub intervals: *mut hts_pair_pos_t, + pub tid: ::std::os::raw::c_int, + pub count: u32, + pub min_beg: hts_pos_t, + pub max_end: hts_pos_t, +} +#[test] +fn bindgen_test_layout_hts_reglist_t() { + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(hts_reglist_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_reglist_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).reg as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(reg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).intervals as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(intervals) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).tid as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(tid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(count) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).min_beg as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(min_beg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).max_end as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(hts_reglist_t), + "::", + stringify!(max_end) + ) + ); } -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; +pub type hts_readrec_func = ::std::option::Option< + unsafe extern "C" fn( + fp: *mut BGZF, + data: *mut ::std::os::raw::c_void, + r: *mut ::std::os::raw::c_void, + tid: *mut ::std::os::raw::c_int, + beg: *mut hts_pos_t, + end: *mut hts_pos_t, + ) -> ::std::os::raw::c_int, +>; +pub type hts_seek_func = ::std::option::Option< + unsafe extern "C" fn( + fp: *mut ::std::os::raw::c_void, + offset: i64, + where_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type hts_tell_func = + ::std::option::Option i64>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_itr_t { + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>, + pub tid: ::std::os::raw::c_int, + pub n_off: ::std::os::raw::c_int, + pub i: ::std::os::raw::c_int, + pub n_reg: ::std::os::raw::c_int, + pub beg: hts_pos_t, + pub end: hts_pos_t, + pub reg_list: *mut hts_reglist_t, + pub curr_tid: ::std::os::raw::c_int, + pub curr_reg: ::std::os::raw::c_int, + pub curr_intv: ::std::os::raw::c_int, + pub curr_beg: hts_pos_t, + pub curr_end: hts_pos_t, + pub curr_off: u64, + pub nocoor_off: u64, + pub off: *mut hts_pair64_max_t, + pub readrec: hts_readrec_func, + pub seek: hts_seek_func, + pub tell: hts_tell_func, + pub bins: hts_itr_t__bindgen_ty_1, } -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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_itr_t__bindgen_ty_1 { + pub n: ::std::os::raw::c_int, + pub m: ::std::os::raw::c_int, + pub a: *mut ::std::os::raw::c_int, } -extern "C" { - pub fn strerror_r( - __errnum: ::std::os::raw::c_int, - __strerrbuf: *mut ::std::os::raw::c_char, - __buflen: size_t, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_hts_itr_t__bindgen_ty_1() { + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(hts_itr_t__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_itr_t__bindgen_ty_1)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).n as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t__bindgen_ty_1), + "::", + stringify!(n) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).m as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t__bindgen_ty_1), + "::", + stringify!(m) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).a as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t__bindgen_ty_1), + "::", + stringify!(a) + ) + ); } -extern "C" { - pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_hts_itr_t() { + assert_eq!( + ::std::mem::size_of::(), + 144usize, + concat!("Size of: ", stringify!(hts_itr_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(hts_itr_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).tid as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(tid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).n_off as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(n_off) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).i as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(i) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).n_reg as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(n_reg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).beg as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(beg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).end as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(end) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).reg_list as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(reg_list) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_tid as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_tid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_reg as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_reg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_intv as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_intv) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_beg as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_beg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_end as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_end) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).curr_off as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(curr_off) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).nocoor_off as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(nocoor_off) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).off as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(off) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).readrec as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(readrec) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).seek as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(seek) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).tell as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(tell) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).bins as *const _ as usize }, + 128usize, + concat!( + "Offset of field: ", + stringify!(hts_itr_t), + "::", + stringify!(bins) + ) + ); } -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: size_t, - ) -> *mut ::std::os::raw::c_void; +impl hts_itr_t { + #[inline] + pub fn read_rest(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_read_rest(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn finished(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_finished(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn is_cram(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_is_cram(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn nocoor(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_nocoor(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn multi(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_multi(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn dummy(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_dummy(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + read_rest: u32, + finished: u32, + is_cram: u32, + nocoor: u32, + multi: u32, + dummy: u32, + ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> = + Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let read_rest: u32 = unsafe { ::std::mem::transmute(read_rest) }; + read_rest as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let finished: u32 = unsafe { ::std::mem::transmute(finished) }; + finished as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let is_cram: u32 = unsafe { ::std::mem::transmute(is_cram) }; + is_cram as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let nocoor: u32 = unsafe { ::std::mem::transmute(nocoor) }; + nocoor as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let multi: u32 = unsafe { ::std::mem::transmute(multi) }; + multi as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let dummy: u32 = unsafe { ::std::mem::transmute(dummy) }; + dummy as u64 + }); + __bindgen_bitfield_unit + } } +pub type hts_itr_multi_t = hts_itr_t; 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; + pub fn hts_idx_init( + n: ::std::os::raw::c_int, + fmt: ::std::os::raw::c_int, + offset0: u64, + min_shift: ::std::os::raw::c_int, + n_lvls: ::std::os::raw::c_int, + ) -> *mut hts_idx_t; } 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; + pub fn hts_idx_destroy(idx: *mut hts_idx_t); } extern "C" { - pub fn strndup( - __s1: *const ::std::os::raw::c_char, - __n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_idx_push( + idx: *mut hts_idx_t, + tid: ::std::os::raw::c_int, + beg: hts_pos_t, + end: hts_pos_t, + offset: u64, + is_mapped: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: size_t) -> size_t; + pub fn hts_idx_finish(idx: *mut hts_idx_t, final_offset: u64) -> ::std::os::raw::c_int; } extern "C" { - pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + pub fn hts_idx_fmt(idx: *mut hts_idx_t) -> ::std::os::raw::c_int; } -pub type rsize_t = __darwin_size_t; 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; + 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; } extern "C" { - pub fn memmem( - __big: *const ::std::os::raw::c_void, - __big_len: size_t, - __little: *const ::std::os::raw::c_void, - __little_len: size_t, - ) -> *mut ::std::os::raw::c_void; + 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; } extern "C" { - pub fn memset_pattern4( - __b: *mut ::std::os::raw::c_void, - __pattern4: *const ::std::os::raw::c_void, - __len: size_t, - ); + pub fn hts_idx_save_as( + idx: *const hts_idx_t, + fn_: *const ::std::os::raw::c_char, + fnidx: *const ::std::os::raw::c_char, + fmt: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn memset_pattern8( - __b: *mut ::std::os::raw::c_void, - __pattern8: *const ::std::os::raw::c_void, - __len: size_t, - ); + pub fn hts_idx_load( + fn_: *const ::std::os::raw::c_char, + fmt: ::std::os::raw::c_int, + ) -> *mut hts_idx_t; } extern "C" { - pub fn memset_pattern16( - __b: *mut ::std::os::raw::c_void, - __pattern16: *const ::std::os::raw::c_void, - __len: size_t, - ); + pub fn hts_idx_load2( + fn_: *const ::std::os::raw::c_char, + fnidx: *const ::std::os::raw::c_char, + ) -> *mut hts_idx_t; } extern "C" { - pub fn strcasestr( - __big: *const ::std::os::raw::c_char, - __little: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_idx_load3( + fn_: *const ::std::os::raw::c_char, + fnidx: *const ::std::os::raw::c_char, + fmt: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> *mut hts_idx_t; } extern "C" { - pub fn strnstr( - __big: *const ::std::os::raw::c_char, - __little: *const ::std::os::raw::c_char, - __len: size_t, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_idx_get_meta(idx: *mut hts_idx_t, l_meta: *mut u32) -> *mut u8; } 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; + pub fn hts_idx_set_meta( + idx: *mut hts_idx_t, + l_meta: u32, + meta: *mut u8, + is_copy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } 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; + pub fn hts_idx_get_stat( + idx: *const hts_idx_t, + tid: ::std::os::raw::c_int, + mapped: *mut u64, + unmapped: *mut u64, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char); + pub fn hts_idx_get_n_no_coor(idx: *const hts_idx_t) -> u64; } 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; + pub fn hts_parse_decimal( + str: *const ::std::os::raw::c_char, + strend: *mut *mut ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; } +pub type hts_name2id_f = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type hts_id2name_f = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char, +>; extern "C" { - pub fn swab( - arg1: *const ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - arg3: ssize_t, - ); + 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; } extern "C" { - pub fn timingsafe_bcmp( - __b1: *const ::std::os::raw::c_void, - __b2: *const ::std::os::raw::c_void, - __len: size_t, - ) -> ::std::os::raw::c_int; + 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; } extern "C" { - pub fn bcmp( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: size_t, - ) -> ::std::os::raw::c_int; + pub fn hts_parse_region( + s: *const ::std::os::raw::c_char, + tid: *mut ::std::os::raw::c_int, + beg: *mut hts_pos_t, + end: *mut hts_pos_t, + getid: hts_name2id_f, + hdr: *mut ::std::os::raw::c_void, + flags: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn bcopy( - arg1: *const ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - arg3: size_t, - ); + pub fn hts_itr_query( + idx: *const hts_idx_t, + tid: ::std::os::raw::c_int, + beg: hts_pos_t, + end: hts_pos_t, + readrec: hts_readrec_func, + ) -> *mut hts_itr_t; } extern "C" { - pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong); + pub fn hts_itr_destroy(iter: *mut hts_itr_t); } +pub type hts_itr_query_func = ::std::option::Option< + unsafe extern "C" fn( + idx: *const hts_idx_t, + tid: ::std::os::raw::c_int, + beg: hts_pos_t, + end: hts_pos_t, + readrec: hts_readrec_func, + ) -> *mut hts_itr_t, +>; extern "C" { - pub fn index( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_itr_querys( + idx: *const hts_idx_t, + reg: *const ::std::os::raw::c_char, + getid: hts_name2id_f, + hdr: *mut ::std::os::raw::c_void, + itr_query: hts_itr_query_func, + readrec: hts_readrec_func, + ) -> *mut hts_itr_t; } extern "C" { - pub fn rindex( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_itr_next( + fp: *mut BGZF, + iter: *mut hts_itr_t, + r: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn hts_idx_seqnames( + idx: *const hts_idx_t, + n: *mut ::std::os::raw::c_int, + getid: hts_id2name_f, + hdr: *mut ::std::os::raw::c_void, + ) -> *mut *const ::std::os::raw::c_char; } +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, +>; extern "C" { - pub fn strcasecmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn hts_itr_multi_bam(idx: *const hts_idx_t, iter: *mut hts_itr_t) -> ::std::os::raw::c_int; } extern "C" { - pub fn strncasecmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + pub fn hts_itr_multi_cram(idx: *const hts_idx_t, iter: *mut hts_itr_t) + -> ::std::os::raw::c_int; } extern "C" { - pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; + pub fn hts_itr_regions( + idx: *const hts_idx_t, + reglist: *mut hts_reglist_t, + count: ::std::os::raw::c_int, + getid: hts_name2id_f, + hdr: *mut ::std::os::raw::c_void, + itr_specific: hts_itr_multi_query_func, + readrec: hts_readrec_func, + seek: hts_seek_func, + tell: hts_tell_func, + ) -> *mut hts_itr_t; } extern "C" { - pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; + 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; } extern "C" { - pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn hts_reglist_create( + argv: *mut *mut ::std::os::raw::c_char, + argc: ::std::os::raw::c_int, + r_count: *mut ::std::os::raw::c_int, + hdr: *mut ::std::os::raw::c_void, + getid: hts_name2id_f, + ) -> *mut hts_reglist_t; } extern "C" { - pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int; + pub fn hts_reglist_free(reglist: *mut hts_reglist_t, count: ::std::os::raw::c_int); } extern "C" { - pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; + pub fn hts_file_type(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -pub type __gnuc_va_list = __builtin_va_list; -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], +pub struct errmod_t { + _unused: [u8; 0], } -#[test] -fn bindgen_test_layout_fd_set() { - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(fd_set)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(fd_set)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(fd_set), - "::", - stringify!(fds_bits) - ) - ); +extern "C" { + pub fn errmod_init(depcorr: f64) -> *mut errmod_t; } 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, + pub fn errmod_destroy(em: *mut errmod_t); +} +extern "C" { + pub fn errmod_cal( + em: *const errmod_t, + n: ::std::os::raw::c_int, + m: ::std::os::raw::c_int, + bases: *mut u16, + q: *mut f32, ) -> ::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 ks_tokaux_t { - pub tab: [u64; 4usize], - pub sep: ::std::os::raw::c_int, - pub finished: ::std::os::raw::c_int, - pub p: *const ::std::os::raw::c_char, +pub struct probaln_par_t { + pub d: f32, + pub e: f32, + pub bw: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_ks_tokaux_t() { +fn bindgen_test_layout_probaln_par_t() { assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(ks_tokaux_t)) + ::std::mem::size_of::(), + 12usize, + concat!("Size of: ", stringify!(probaln_par_t)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ks_tokaux_t)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(probaln_par_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tab as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).d as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ks_tokaux_t), - "::", - stringify!(tab) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).sep as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ks_tokaux_t), + stringify!(probaln_par_t), "::", - stringify!(sep) + stringify!(d) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).finished as *const _ as usize }, - 36usize, + unsafe { &(*(::std::ptr::null::())).e as *const _ as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(ks_tokaux_t), + stringify!(probaln_par_t), "::", - stringify!(finished) + stringify!(e) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p as *const _ as usize }, - 40usize, + unsafe { &(*(::std::ptr::null::())).bw as *const _ as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(ks_tokaux_t), + stringify!(probaln_par_t), "::", - stringify!(p) + stringify!(bw) ) ); } extern "C" { - pub fn kvsprintf( - s: *mut kstring_t, - fmt: *const ::std::os::raw::c_char, - ap: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ksprintf( - s: *mut kstring_t, - fmt: *const ::std::os::raw::c_char, - ... + pub fn probaln_glocal( + ref_: *const u8, + l_ref: ::std::os::raw::c_int, + query: *const u8, + l_query: ::std::os::raw::c_int, + iqual: *const u8, + c: *const probaln_par_t, + state: *mut ::std::os::raw::c_int, + q: *mut u8, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn kputd(d: f64, s: *mut kstring_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ksplit_core( - s: *mut ::std::os::raw::c_char, - delimiter: ::std::os::raw::c_int, - _max: *mut ::std::os::raw::c_int, - _offsets: *mut *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hts_md5_context { + _unused: [u8; 0], } 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, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_md5_init() -> *mut hts_md5_context; } 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, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_md5_update( + ctx: *mut hts_md5_context, + data: *const ::std::os::raw::c_void, + size: ::std::os::raw::c_ulong, + ); } extern "C" { - pub fn kmemmem( - _str: *const ::std::os::raw::c_void, - n: ::std::os::raw::c_int, - _pat: *const ::std::os::raw::c_void, - m: ::std::os::raw::c_int, - _prep: *mut *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + pub fn hts_md5_final(digest: *mut ::std::os::raw::c_uchar, ctx: *mut hts_md5_context); } extern "C" { - pub fn kstrtok( - str: *const ::std::os::raw::c_char, - sep: *const ::std::os::raw::c_char, - aux: *mut ks_tokaux_t, - ) -> *mut ::std::os::raw::c_char; + pub fn hts_md5_reset(ctx: *mut hts_md5_context); } -pub type kgets_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; extern "C" { - pub fn kgetline( - s: *mut kstring_t, - fgets: kgets_func, - fp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + pub fn hts_md5_hex(hex: *mut ::std::os::raw::c_char, digest: *const ::std::os::raw::c_uchar); } -pub type kgets_func2 = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: size_t, - arg3: *mut ::std::os::raw::c_void, - ) -> ssize_t, ->; extern "C" { - pub fn kgetline2( - s: *mut kstring_t, - fgets: kgets_func2, - fp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + pub fn hts_md5_destroy(ctx: *mut hts_md5_context); } pub type uint16_u = u16; pub type uint32_u = u32; pub type uint64_u = u64; +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, + ); +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct bcf_hrec_t { @@ -15065,38 +15018,38 @@ extern "C" { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct variant_t { +pub struct bcf_variant_t { pub type_: ::std::os::raw::c_int, pub n: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_variant_t() { +fn bindgen_test_layout_bcf_variant_t() { assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(variant_t)) + concat!("Size of: ", stringify!(bcf_variant_t)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 4usize, - concat!("Alignment of ", stringify!(variant_t)) + concat!("Alignment of ", stringify!(bcf_variant_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(variant_t), + stringify!(bcf_variant_t), "::", stringify!(type_) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).n as *const _ as usize }, 4usize, concat!( "Offset of field: ", - stringify!(variant_t), + stringify!(bcf_variant_t), "::", stringify!(n) ) @@ -15405,7 +15358,7 @@ pub struct bcf_dec_t { pub allele: *mut *mut ::std::os::raw::c_char, pub info: *mut bcf_info_t, pub fmt: *mut bcf_fmt_t, - pub var: *mut variant_t, + pub var: *mut bcf_variant_t, pub n_var: ::std::os::raw::c_int, pub var_type: ::std::os::raw::c_int, pub shared_dirty: ::std::os::raw::c_int, @@ -15853,6 +15806,13 @@ extern "C" { v: *mut bcf1_t, ) -> ::std::os::raw::c_int; } +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; +} extern "C" { pub fn vcf_format( h: *const bcf_hdr_t, @@ -16892,6 +16852,26 @@ extern "C" { extern "C" { pub fn bam_dup1(bsrc: *const bam1_t) -> *mut bam1_t; } +extern "C" { + pub fn bam_set1( + bam: *mut bam1_t, + l_qname: size_t, + qname: *const ::std::os::raw::c_char, + flag: u16, + tid: i32, + pos: hts_pos_t, + mapq: u8, + n_cigar: size_t, + cigar: *const u32, + mtid: i32, + mpos: hts_pos_t, + isize: hts_pos_t, + l_seq: size_t, + seq: *const ::std::os::raw::c_char, + qual: *const ::std::os::raw::c_char, + l_aux: size_t, + ) -> ::std::os::raw::c_int; +} extern "C" { pub fn bam_cigar2qlen(n_cigar: ::std::os::raw::c_int, cigar: *const u32) -> hts_pos_t; } @@ -17348,16 +17328,16 @@ pub type bam_plp_auto_f = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __bam_plp_t { +pub struct bam_plp_s { _unused: [u8; 0], } -pub type bam_plp_t = *mut __bam_plp_t; +pub type bam_plp_t = *mut bam_plp_s; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __bam_mplp_t { +pub struct bam_mplp_s { _unused: [u8; 0], } -pub type bam_mplp_t = *mut __bam_mplp_t; +pub type bam_mplp_t = *mut bam_mplp_s; extern "C" { pub fn bam_plp_init(func: bam_plp_auto_f, data: *mut ::std::os::raw::c_void) -> bam_plp_t; } @@ -17804,10 +17784,9 @@ pub struct bgzf_mtaux_t { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __bgzidx_t { +pub struct bgzidx_t { _unused: [u8; 0], } -pub type bgzidx_t = __bgzidx_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct bgzf_cache_t { @@ -18542,10 +18521,16 @@ extern "C" { } pub const bcf_sr_opt_t_BCF_SR_REQUIRE_IDX: bcf_sr_opt_t = 0; pub const bcf_sr_opt_t_BCF_SR_PAIR_LOGIC: bcf_sr_opt_t = 1; +pub const bcf_sr_opt_t_BCF_SR_ALLOW_NO_IDX: bcf_sr_opt_t = 2; pub type bcf_sr_opt_t = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct _bcf_sr_regions_t { +pub struct bcf_sr_region_t { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct bcf_sr_regions_t { pub tbx: *mut tbx_t, pub itr: *mut hts_itr_t, pub line: kstring_t, @@ -18558,10 +18543,10 @@ pub struct _bcf_sr_regions_t { pub mals: ::std::os::raw::c_int, pub als_type: ::std::os::raw::c_int, pub missed_reg_handler: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut _bcf_sr_regions_t, arg2: *mut ::std::os::raw::c_void), + unsafe extern "C" fn(arg1: *mut bcf_sr_regions_t, arg2: *mut ::std::os::raw::c_void), >, pub missed_reg_data: *mut ::std::os::raw::c_void, - pub regs: *mut _region_t, + pub regs: *mut bcf_sr_region_t, pub seq_hash: *mut ::std::os::raw::c_void, pub seq_names: *mut *mut ::std::os::raw::c_char, pub nseqs: ::std::os::raw::c_int, @@ -18573,253 +18558,252 @@ pub struct _bcf_sr_regions_t { pub prev_end: hts_pos_t, } #[test] -fn bindgen_test_layout__bcf_sr_regions_t() { +fn bindgen_test_layout_bcf_sr_regions_t() { assert_eq!( - ::std::mem::size_of::<_bcf_sr_regions_t>(), + ::std::mem::size_of::(), 200usize, - concat!("Size of: ", stringify!(_bcf_sr_regions_t)) + concat!("Size of: ", stringify!(bcf_sr_regions_t)) ); assert_eq!( - ::std::mem::align_of::<_bcf_sr_regions_t>(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(_bcf_sr_regions_t)) + concat!("Alignment of ", stringify!(bcf_sr_regions_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).tbx as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).tbx as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(tbx) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).itr as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).itr as *const _ as usize }, 8usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(itr) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).line as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).line as *const _ as usize }, 16usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(line) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).file as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).file as *const _ as usize }, 40usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(file) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).fname as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).fname as *const _ as usize }, 48usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(fname) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).is_bin as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).is_bin as *const _ as usize }, 56usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(is_bin) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).als as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).als as *const _ as usize }, 64usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(als) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).als_str as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).als_str as *const _ as usize }, 72usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(als_str) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).nals as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).nals as *const _ as usize }, 96usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(nals) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).mals as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).mals as *const _ as usize }, 100usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(mals) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).als_type as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).als_type as *const _ as usize }, 104usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(als_type) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<_bcf_sr_regions_t>())).missed_reg_handler as *const _ as usize + &(*(::std::ptr::null::())).missed_reg_handler as *const _ as usize }, 112usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(missed_reg_handler) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<_bcf_sr_regions_t>())).missed_reg_data as *const _ as usize + &(*(::std::ptr::null::())).missed_reg_data as *const _ as usize }, 120usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(missed_reg_data) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).regs as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, 128usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(regs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).seq_hash as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).seq_hash as *const _ as usize }, 136usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(seq_hash) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).seq_names as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).seq_names as *const _ as usize }, 144usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(seq_names) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).nseqs as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).nseqs as *const _ as usize }, 152usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(nseqs) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).iseq as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).iseq as *const _ as usize }, 156usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(iseq) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).start as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).start as *const _ as usize }, 160usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(start) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).end as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).end as *const _ as usize }, 168usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(end) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).prev_seq as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).prev_seq as *const _ as usize }, 176usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(prev_seq) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).prev_start as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).prev_start as *const _ as usize }, 184usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(prev_start) ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_bcf_sr_regions_t>())).prev_end as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).prev_end as *const _ as usize }, 192usize, concat!( "Offset of field: ", - stringify!(_bcf_sr_regions_t), + stringify!(bcf_sr_regions_t), "::", stringify!(prev_end) ) ); } -pub type bcf_sr_regions_t = _bcf_sr_regions_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct bcf_sr_t { @@ -18990,6 +18974,7 @@ pub const bcf_sr_error_no_eof: bcf_sr_error = 6; 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 type bcf_sr_error = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19425,10 +19410,9 @@ fn bindgen_test_layout_kbitset_iter_t() { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __faidx_t { +pub struct faidx_t { _unused: [u8; 0], } -pub type faidx_t = __faidx_t; 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; @@ -19575,6 +19559,9 @@ extern "C" { extern "C" { pub fn fai_set_cache_size(fai: *mut faidx_t, cache_size: ::std::os::raw::c_int); } +extern "C" { + pub fn fai_path(fa: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hts_tpool_process { @@ -19682,6 +19669,9 @@ extern "C" { extern "C" { pub fn hts_tpool_process_shutdown(q: *mut hts_tpool_process); } +extern "C" { + pub fn hts_tpool_process_is_shutdown(q: *mut hts_tpool_process) -> ::std::os::raw::c_int; +} extern "C" { pub fn hts_tpool_process_attach(p: *mut hts_tpool, q: *mut hts_tpool_process); } @@ -19772,8 +19762,3 @@ fn bindgen_test_layout___va_list_tag() { ) ); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _region_t { - pub _address: u8, -} From adec5582bbb384c29e8440451abbc58436b1d9dc Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 13 Nov 2020 10:42:15 +1100 Subject: [PATCH 24/26] Just test the build for Intel OSX instead of MUSL, works locally --- .github/workflows/rust.yml | 65 ++++++++++++++++++++++---------------- hts-sys/build.rs | 5 +-- hts-sys/htslib | 2 +- 3 files changed, 41 insertions(+), 31 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ef0972255..71a5b6327 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -117,40 +117,49 @@ jobs: uses: actions/checkout@v2.3.4 with: submodules: true + + - name: Install htslib dependencies + run: brew install bzip2 zlib xz curl-openssl + # Test for Intel OSX - uses: actions-rs/toolchain@v1 with: toolchain: stable - target: x86_64-unknown-linux-musl + target: x86_64-apple-darwin override: true - - name: Install OSX musl-cross - run: brew install FiloSottile/musl-cross/musl-cross - - # https://github.com/FiloSottile/homebrew-musl-cross/issues/16 - - name: Provide musl-gcc symlink for the right musl arch - run: ln -sf /usr/local/opt/musl-cross/libexec/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc - - - name: Install htslib dependencies - run: brew install bzip2 zlib xz curl-openssl - -# - name: Test build without default features for the default x86_64 OSX target -# uses: actions-rs/cargo@v1 -# with: -# use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 -# command: test -# args: --release - - - name: Test musl build without default features - uses: actions-rs/cargo@v1 - with: - use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 - command: test - args: --release --target x86_64-unknown-linux-musl --no-default-features - - - name: Test musl build with all features and debug symbols (non --release) on OSX + - name: Test build without default features for the default x86_64 OSX target uses: actions-rs/cargo@v1.0.1 with: - use-cross: false + use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 command: test - args: --target x86_64-unknown-linux-musl --all-features --verbose + args: --release --all-features --verbose + + # Test MUSL builds on OSX + # + # - uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + # target: x86_64-unknown-linux-musl + # override: true + + # - name: Install OSX musl-cross + # run: brew install FiloSottile/musl-cross/musl-cross + + # # https://github.com/FiloSottile/homebrew-musl-cross/issues/16 + # - name: Provide musl-gcc symlink for the right musl arch + # run: ln -sf /usr/local/opt/musl-cross/libexec/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc + + # - name: Test musl build without default features + # uses: actions-rs/cargo@v1 + # with: + # use-cross: false # cross is not supported on GHA OSX runner, see: https://github.community/t/why-is-docker-not-installed-on-macos/17017 + # command: test + # args: --release --target x86_64-unknown-linux-musl --no-default-features + + # - name: Test musl build with all features and debug symbols (non --release) on OSX + # uses: actions-rs/cargo@v1.0.1 + # with: + # use-cross: false + # command: test + # args: --target x86_64-unknown-linux-musl --all-features --verbose diff --git a/hts-sys/build.rs b/hts-sys/build.rs index eb8e8482a..93bd2bbf0 100644 --- a/hts-sys/build.rs +++ b/hts-sys/build.rs @@ -42,6 +42,7 @@ const FILES: &[&str] = &[ "thread_pool.c", "vcf.c", "vcfutils.c", + "wrapper.c", "cram/cram_codecs.c", "cram/cram_decode.c", "cram/cram_encode.c", @@ -83,7 +84,7 @@ fn main() { let want_static = cfg!(feature = "static") || env::var("HTS_STATIC").is_ok(); if want_static { - cfg.warnings(true).static_flag(true).pic(true); + cfg.warnings(false).static_flag(true).pic(true); } else { cfg.warnings(true).static_flag(false).pic(true); } @@ -252,4 +253,4 @@ fn main() { // Note: config.h is a function of the cargo features. Any feature change will // cause build.rs to re-run, so don't re-run on that change. //println!("cargo:rerun-if-changed=htslib/config.h"); -} \ No newline at end of file +} diff --git a/hts-sys/htslib b/hts-sys/htslib index b710781df..57aeb5240 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit b710781df0d9bb6f665756316653554fe32e5c68 +Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 From fc353bd6835c14f43e3de266bd457c5707b83d14 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 13 Nov 2020 10:52:42 +1100 Subject: [PATCH 25/26] Wrong submodule fix, disable thousand warnings coming from upstream's htslib --- hts-sys/build.rs | 3 +-- hts-sys/htslib | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hts-sys/build.rs b/hts-sys/build.rs index 93bd2bbf0..774113fd6 100644 --- a/hts-sys/build.rs +++ b/hts-sys/build.rs @@ -42,7 +42,6 @@ const FILES: &[&str] = &[ "thread_pool.c", "vcf.c", "vcfutils.c", - "wrapper.c", "cram/cram_codecs.c", "cram/cram_decode.c", "cram/cram_encode.c", @@ -86,7 +85,7 @@ fn main() { if want_static { cfg.warnings(false).static_flag(true).pic(true); } else { - cfg.warnings(true).static_flag(false).pic(true); + cfg.warnings(false).static_flag(false).pic(true); } if let Ok(z_inc) = env::var("DEP_Z_INCLUDE") { diff --git a/hts-sys/htslib b/hts-sys/htslib index 57aeb5240..6686e5995 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit 57aeb5240ffa4d646562bc9dbab6cf74c8f649f4 +Subproject commit 6686e59957047de3579c00a1965c9a2a7c83d700 From 31de8377a5572a14da7574f5032749dd1fb1e806 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 13 Nov 2020 17:17:46 +1100 Subject: [PATCH 26/26] Some stray commits on submodule? --- hts-sys/htslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts-sys/htslib b/hts-sys/htslib index 6686e5995..7f8211cd7 160000 --- a/hts-sys/htslib +++ b/hts-sys/htslib @@ -1 +1 @@ -Subproject commit 6686e59957047de3579c00a1965c9a2a7c83d700 +Subproject commit 7f8211cd76a59ba870566a430a69287ee657dd4e