From patchwork Mon Jun 10 18:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manos Pitsidianakis X-Patchwork-Id: 1945989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JoJmUQdB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VygFG4zXYz20Py for ; Tue, 11 Jun 2024 04:24:34 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGjgg-00015W-B7; Mon, 10 Jun 2024 14:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGjgZ-0000uD-OE for qemu-devel@nongnu.org; Mon, 10 Jun 2024 14:24:03 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGjgP-0006Gq-Se for qemu-devel@nongnu.org; Mon, 10 Jun 2024 14:24:03 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4217f2e3450so18351675e9.1 for ; Mon, 10 Jun 2024 11:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718043831; x=1718648631; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oOt4WN9DcdPx2aijTx8aDuTVIsPZBmISOS7NmKqmGO8=; b=JoJmUQdBPCbtAg8EBfrKRce+5XRU+yE7lWXTLO1W69Dy/cbWeO8d2fw/jULmtaII/7 sQ0dDxLUaXzDia4l0fDxZhWyVv1z1UhXQ+EGSLqY8iQbY9utnTxLR7l5NpiHNnI5x7MO Ww+3FVxGz2E7V+oRI/8dBNcX6N6k/E1YMSyZHk3Az6BcfbuzyFvshHYFoyWYYC0AigHQ 43iAON6mm04sTr2mp9G9/lIdrNUxgXSjdFu/zRg5fFWRINeAxtJ7gn65BO8CmZilihpV y/dVnIi6Egyf4bEPc1pDb9T7UO7HfRMmBgcOpop/tGXVZzJ8ghKkmkHqzR1sZT1/eBIV SgAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718043831; x=1718648631; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oOt4WN9DcdPx2aijTx8aDuTVIsPZBmISOS7NmKqmGO8=; b=KMFEkLxF26lhZc1+ifzlwW0SPiSH0TzPRf8BdH28kdBNEf3kAYBv9Hyb0dRSFVJifa HA5q6+VrZYlAE1fJheAnDeFFmI3xYJUpkoGmJy1emzHzf3/+0h/vZsNCSMVLyc9og/oK 3nejswwLwVULzq2wiwAdq0947GLeRR9SJ8xvkyQ+68JkEvzD0F7zWWwrnQUCRw2NuzBs KJuX2E6BA361crkWEkt3Tgpn8YqfCNQNz+uzwwtVMj0DCRACaOERXUJoZ3DuZ+YbxCIo XgiKorz1upsrwHJbBss5H9Kzp8c5tZrJmdV8g+zkXFkdHnQ1chhoGu3tRshPn7683rAl G1XA== X-Gm-Message-State: AOJu0YwwHisABN4/sAtl45Dax/zHqw2JZD0EMidBQfudIv7Tqhqb+xkF IEzRpV/znhkF6R34Mn8CZ9LgPQoq9lmNAMF5HXrM5tm7CqRU1ycpWBeCdzG3rhdNtdkaS65jKp2 0grI= X-Google-Smtp-Source: AGHT+IGYPBy4BzPyILNuYHmDNOoJpTpPC/UYLA74lfkJYcmqL2cLe6OU5xU9FmsQESyDbdNA7gfz4A== X-Received: by 2002:a05:600c:3c94:b0:41c:2313:da8d with SMTP id 5b1f17b1804b1-4216499f0efmr110907695e9.0.1718043828998; Mon, 10 Jun 2024 11:23:48 -0700 (PDT) Received: from localhost.localdomain (adsl-33.37.6.162.tellas.gr. [37.6.162.33]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42161147811sm135487395e9.18.2024.06.10.11.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 11:23:48 -0700 (PDT) From: Manos Pitsidianakis To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Mads Ynddal , Paolo Bonzini , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P?= =?utf-8?q?=2E_Berrang=C3=A9?= , =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Thomas Huth , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Zhao Liu , Gustavo Romero , Pierrick Bouvier , John Snow , Cleber Rosa Subject: [RFC PATCH v1 5/6] rust: add bindgen step as a meson dependency Date: Mon, 10 Jun 2024 21:22:40 +0300 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Remove generated C bindings file rust/pl011/src/generated.rs in favor of generating it from Meson before building a rust device crate. Signed-off-by: Manos Pitsidianakis --- meson.build | 98 +- rust/meson.build | 112 +- rust/pl011/.gitignore | 1 + rust/pl011/build.rs | 44 + rust/pl011/meson.build | 7 + rust/pl011/src/generated.rs | 55464 +------------------------------- rust/wrapper.h | 39 + scripts/cargo_wrapper.py | 10 + scripts/meson-buildoptions.sh | 5 + 9 files changed, 264 insertions(+), 55516 deletions(-) create mode 100644 rust/pl011/build.rs create mode 100644 rust/pl011/meson.build create mode 100644 rust/wrapper.h diff --git a/meson.build b/meson.build index b45b4cf00b..e983f64859 100644 --- a/meson.build +++ b/meson.build @@ -3658,20 +3658,6 @@ if enable_modules endforeach endif -if with_rust - foreach target : target_dirs - if target.endswith('-softmmu') - config_target = config_target_mak[target] - arch = config_target['TARGET_NAME'] == 'sparc64' ? 'sparc64' : config_target['TARGET_BASE_ARCH'] - if rust_targets.has_key(target) - foreach t: rust_targets[target] - hw_arch[arch].add(t) - endforeach - endif - endif - endforeach -endif - nm = find_program('nm') undefsym = find_program('scripts/undefsym.py') block_syms = custom_target('block.syms', output: 'block.syms', @@ -3894,6 +3880,90 @@ foreach target : target_dirs lib_deps += dep.partial_dependency(compile_args: true, includes: true) endforeach + if with_rust and target_type == 'system' + rust_bindgen = import('unstable-rust') + rust_bindgen_dep = declare_dependency( + dependencies: arch_deps + lib_deps, + include_directories : target_inc, + sources: arch_srcs + genh) + + generated_rs = rust_bindgen.bindgen( + input : files('rust/wrapper.h'), + dependencies: arch_deps + rust_bindgen_dep, + output : 'generated.rs', + include_directories : target_inc + include_directories('.') + include_directories('include'), + args : [ + '--formatter', + 'rustfmt', + '--no-doc-comments', + '--merge-extern-blocks', + '--generate-block', + '--generate-cstr', + '--impl-debug', + '--with-derive-default', + '--use-core', + '--ctypes-prefix', + 'core::ffi', + '--blocklist-var', + 'IPPORT_RESERVED', + '--blocklist-type', + '^.+_.*autoptr$', + '--blocklist-type', + 'max_align_t', + '--blocklist-function', + 'str*', + '--blocklist-function', + 'ato*', + '--blocklist-function', + 'p?select', + '--blocklist-file', + '.+inttypes.h$', + '--blocklist-file', + '.+limits.h$', + '--blocklist-file', + '.+ctype.h$', + '--blocklist-file', + '.+errno.h$', + '--blocklist-file', + '.+fcntl.h$', + '--blocklist-file', + '.+getopt.h$', + '--blocklist-file', + '.+assert.h$', + '--blocklist-file', + '.+stdbool.h$', + '--blocklist-file', + '.+stdio.h$', + '--blocklist-file', + '.+stdint.h$', + '--blocklist-file', + '.+stdalign.h$', + ], + c_args : c_args, + ) + + if target in rust_targets + rust_hw = ss.source_set() + foreach t: rust_targets[target] + rust_device_cargo = custom_target(t['name'], + output: t['output'], + depends: [generated_rs], + build_always_stale: true, + command: t['command']) + rust_dep = declare_dependency(link_args : [ + '-Wl,--whole-archive', + t['output-path'], + '-Wl,--no-whole-archive' + ], + sources: [rust_device_cargo]) + rust_hw.add(rust_dep) + endforeach + rust_hw_config = rust_hw.apply(config_target, strict: false) + arch_srcs += rust_hw_config.sources() + arch_deps += rust_hw_config.dependencies() + endif + endif + lib = static_library('qemu-' + target, sources: arch_srcs + genh, dependencies: lib_deps, diff --git a/rust/meson.build b/rust/meson.build index 05a859259b..26700d14de 100644 --- a/rust/meson.build +++ b/rust/meson.build @@ -1,8 +1,9 @@ rust_targets = {} cargo_wrapper = [ - find_program(meson.source_root() / 'scripts/cargo_wrapper.py'), + find_program(meson.global_source_root() / 'scripts/cargo_wrapper.py'), '--config-headers', meson.project_build_root() / 'config-host.h', + '--meson-build-root', meson.project_build_root(), '--meson-build-dir', meson.current_build_dir(), '--meson-source-dir', meson.current_source_dir(), ] @@ -11,17 +12,51 @@ if get_option('b_colorout') != 'never' cargo_wrapper += ['--color', 'always'] endif -if with_rust - rust_target_triple = get_option('with_rust_target_triple') - if meson.is_cross_build() - # more default target mappings may be added over time - if rust_target_triple == '' and targetos == 'windows' - rust_target_triple = host_machine.cpu() + '-pc-windows-gnu' - endif - if rust_target_triple == '' - error('cross-compiling, but no Rust target-triple defined.') - endif +rust_supported_oses = {'linux': '-unknown-linux-gnu', 'darwin': '-apple-darwin', 'windows': '-pc-windows-gnu'} +rust_supported_cpus = ['x86_64', 'aarch64'] + +# Future-proof the above definitions against any change in the root meson.build file: +foreach rust_os: rust_supported_oses.keys() + if not supported_oses.contains(rust_os) + message() + warning('UNSUPPORTED OS VALUES IN ' + meson.current_source_dir() + '/meson.build') + message() + message('This meson.build file claims OS `+' + rust_os + '` is supported but') + message('it is not included in the global supported OSes list in') + message(meson.source_root() + '/meson.build.') endif +endforeach +foreach rust_cpu: rust_supported_cpus + if not supported_cpus.contains(rust_cpu) + message() + warning('UNSUPPORTED CPU VALUES IN ' + meson.current_source_dir() + '/meson.build') + message() + message('This meson.build file claims CPU `+' + rust_cpu + '` is supported but') + message('it is not included in the global supported CPUs list in') + message(meson.source_root() + '/meson.build.') + endif +endforeach + +if meson.is_cross_build() + message() + error('QEMU does not support cross compiling with Rust enabled.') +endif + +rust_target_triple = get_option('with_rust_target_triple') + +# TODO: verify rust_target_triple if given as an option +if rust_target_triple == '' + if not supported_oses.contains(host_os) + message() + error('QEMU does not support `' + host_os +'` as a Rust platform.') + elif not supported_cpus.contains(host_arch) + message() + error('QEMU does not support `' + host_arch +'` as a Rust architecture.') + endif + rust_target_triple = host_arch + rust_supported_oses[host_os] + if host_os == 'windows' and host_arch == 'aarch64' + rust_target_triple += 'llvm' + endif endif if get_option('optimization') in ['0', '1', 'g'] @@ -30,36 +65,29 @@ else rs_build_type = 'release' endif -_host_target_list = [['x86_64-unknown-linux-gnu', 'aarch64-softmmu']] +rust_hw_target_list = {} -foreach targets: _host_target_list - host_target = targets[0] - target = targets[1] - output = meson.current_build_dir() / host_target / rs_build_type / 'libpl011.a' - if rust_target_triple == '' - rust_target_triple = host_target - endif - rust_pl011_cargo = custom_target('rust_pl011_cargo', - output: ['libpl011.a'], - build_always_stale: true, - depends: [], - command: [cargo_wrapper, - '--crate-dir', - meson.current_source_dir() / 'pl011', - '--profile', - rs_build_type, - '--target-triple', - rust_target_triple, - '--outdir', - '@OUTDIR@', - 'build-lib' - ] - ) - rust_pl011 = declare_dependency(link_args : [ - '-Wl,--whole-archive', - output, - '-Wl,--no-whole-archive' - ], - sources: [rust_pl011_cargo]) - rust_targets += { target: [rust_pl011] } +subdir('pl011') + +foreach rust_hw_target, rust_hws: rust_hw_target_list + foreach rust_hw_dev: rust_hws + output = meson.current_build_dir() / rust_target_triple / rs_build_type / rust_hw_dev['output'] + crate_metadata = { + 'name': rust_hw_dev['name'], + 'output': [rust_hw_dev['output']], + 'output-path': output, + 'command': [cargo_wrapper, + '--crate-dir', + meson.current_source_dir() / rust_hw_dev['dirname'], + '--profile', + rs_build_type, + '--target-triple', + rust_target_triple, + '--outdir', + '@OUTDIR@', + 'build-lib' + ] + } + rust_targets += { rust_hw_target: [crate_metadata] } + endforeach endforeach diff --git a/rust/pl011/.gitignore b/rust/pl011/.gitignore index eb5a316cbd..28a02c847f 100644 --- a/rust/pl011/.gitignore +++ b/rust/pl011/.gitignore @@ -1 +1,2 @@ target +src/generated.rs.inc diff --git a/rust/pl011/build.rs b/rust/pl011/build.rs new file mode 100644 index 0000000000..af21d9d059 --- /dev/null +++ b/rust/pl011/build.rs @@ -0,0 +1,44 @@ +use std::{env, path::Path}; + +fn main() { + println!("cargo::rerun-if-env-changed=MESON_BUILD_DIR"); + println!("cargo::rerun-if-env-changed=MESON_BUILD_ROOT"); + println!("cargo::rerun-if-changed=src/generated.rs.inc"); + + let out_dir = env::var_os("OUT_DIR").unwrap(); + + if let Some(build_dir) = std::env::var_os("MESON_BUILD_ROOT") { + let mut build_dir = Path::new(&build_dir).to_path_buf(); + let mut out_dir = Path::new(&out_dir).to_path_buf(); + assert!( + build_dir.exists(), + "MESON_BUILD_ROOT value does not exist on filesystem: {}", + build_dir.display() + ); + assert!( + build_dir.is_dir(), + "MESON_BUILD_ROOT value is not actually a directory: {}", + build_dir.display() + ); + build_dir.push("generated.rs"); + let generated_rs = build_dir; + assert!( + generated_rs.exists(), + "MESON_BUILD_ROOT/generated.rs does not exist on filesystem: {}", + generated_rs.display() + ); + assert!( + generated_rs.is_file(), + "MESON_BUILD_ROOT/generated.rs is not a file: {}", + generated_rs.display() + ); + out_dir.push("generated.rs"); + std::fs::copy(generated_rs, out_dir).unwrap(); + println!("cargo::rustc-cfg=MESON_GENERATED_RS"); + } else if !Path::new("src/generated.rs.inc").exists() { + panic!( + "No generated C bindings found! Either build them manually with bindgen or with meson \ + (`ninja generated.rs`) and copy them to src/generated.rs.inc, or build through meson." + ); + } +} diff --git a/rust/pl011/meson.build b/rust/pl011/meson.build new file mode 100644 index 0000000000..70d1ca1148 --- /dev/null +++ b/rust/pl011/meson.build @@ -0,0 +1,7 @@ +rust_pl011 = { + 'name': 'rust_pl011_cargo', + 'dirname': 'pl011', + 'output': 'libpl011.a', + } + +rust_hw_target_list += {'aarch64-softmmu': [rust_pl011]} diff --git a/rust/pl011/src/generated.rs b/rust/pl011/src/generated.rs index 8ce6b032d1..670e7b541d 100644 --- a/rust/pl011/src/generated.rs +++ b/rust/pl011/src/generated.rs @@ -1,55461 +1,5 @@ -/* automatically generated by rust-bindgen 0.69.4 */ +#[cfg(MESON_GENERATED_RS)] +include!(concat!(env!("OUT_DIR"), "/generated.rs")); -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { - storage: Storage, -} -impl __BindgenBitfieldUnit { - #[inline] - pub const fn new(storage: Storage) -> Self { - Self { storage } - } -} -impl __BindgenBitfieldUnit -where - Storage: AsRef<[u8]> + AsMut<[u8]>, -{ - #[inline] - pub fn get_bit(&self, index: usize) -> bool { - debug_assert!(index / 8 < self.storage.as_ref().len()); - let byte_index = index / 8; - let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; - let mask = 1 << bit_index; - byte & mask == mask - } - #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { - debug_assert!(index / 8 < self.storage.as_ref().len()); - let byte_index = index / 8; - let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; - let mask = 1 << bit_index; - if val { - *byte |= mask; - } else { - *byte &= !mask; - } - } - #[inline] - pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { - debug_assert!(bit_width <= 64); - debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); - debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); - let mut val = 0; - for i in 0..(bit_width as usize) { - if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; - val |= 1 << index; - } - } - val - } - #[inline] - pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { - debug_assert!(bit_width <= 64); - debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); - debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); - for i in 0..(bit_width as usize) { - let mask = 1 << i; - let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; - self.set_bit(index + bit_offset, val_bit_is_set); - } - } -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -impl __IncompleteArrayField { - #[inline] - pub const fn new() -> Self { - __IncompleteArrayField(::core::marker::PhantomData, []) - } - #[inline] - pub fn as_ptr(&self) -> *const T { - self as *const _ as *const T - } - #[inline] - pub fn as_mut_ptr(&mut self) -> *mut T { - self as *mut _ as *mut T - } - #[inline] - pub unsafe fn as_slice(&self, len: usize) -> &[T] { - ::core::slice::from_raw_parts(self.as_ptr(), len) - } - #[inline] - pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { - ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) - } -} -impl ::core::fmt::Debug for __IncompleteArrayField { - fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - fmt.write_str("__IncompleteArrayField") - } -} -#[allow(unsafe_code)] -pub const CONFIG_BINDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/bin\0") }; -#[allow(unsafe_code)] -pub const CONFIG_HOST_DSOSUF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b".so\0") }; -#[allow(unsafe_code)] -pub const CONFIG_IASL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/bin/iasl\0") }; -#[allow(unsafe_code)] -pub const CONFIG_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_CONFDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/etc/qemu\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_DATADIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/share/qemu\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_DESKTOPDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/share/applications\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_HELPERDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/libexec\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_ICONDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/share/icons\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_LOCALEDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/share/locale\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_LOCALSTATEDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/var/local\0") }; -#[allow(unsafe_code)] -pub const CONFIG_QEMU_MODDIR: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/lib/x86_64-linux-gnu/qemu\0") -}; -#[allow(unsafe_code)] -pub const CONFIG_SMBD_COMMAND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/sbin/smbd\0") }; -#[allow(unsafe_code)] -pub const CONFIG_SYSCONFDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/usr/local/etc\0") }; -pub const CONFIG_TCG: u32 = 1; -#[allow(unsafe_code)] -pub const CONFIG_TLS_PRIORITY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"NORMAL\0") }; -#[allow(unsafe_code)] -pub const CONFIG_TRACE_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"trace\0") }; -pub const CONFIG_XEN_CTRL_INTERFACE_VERSION: u32 = 41700; -pub const HOST_X86_64: u32 = 1; -#[allow(unsafe_code)] -pub const QEMU_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"9.0.50\0") }; -pub const QEMU_VERSION_MAJOR: u32 = 9; -pub const QEMU_VERSION_MICRO: u32 = 50; -pub const QEMU_VERSION_MINOR: u32 = 0; -pub const CONFIG_I386_DIS: u32 = 1; -pub const CONFIG_SOFTMMU: u32 = 1; -pub const CONFIG_SYSTEM_ONLY: u32 = 1; -pub const CONFIG_TCG_BUILTIN: u32 = 1; -pub const TARGET_AARCH64: u32 = 1; -pub const TARGET_ARM: u32 = 1; -pub const TARGET_BIG_ENDIAN: u32 = 0; -pub const TARGET_KVM_HAVE_GUEST_DEBUG: u32 = 1; -#[allow(unsafe_code)] -pub const TARGET_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"aarch64\0") }; -pub const TARGET_NEED_FDT: u32 = 1; -pub const TARGET_SUPPORTS_MTTCG: u32 = 1; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _ISOC95_SOURCE: u32 = 1; -pub const _ISOC99_SOURCE: u32 = 1; -pub const _ISOC11_SOURCE: u32 = 1; -pub const _ISOC2X_SOURCE: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const _XOPEN_SOURCE: u32 = 700; -pub const _XOPEN_SOURCE_EXTENDED: u32 = 1; -pub const _LARGEFILE64_SOURCE: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const _DYNAMIC_STACK_SIZE_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 1; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const __USE_XOPEN: u32 = 1; -pub const __USE_XOPEN_EXTENDED: u32 = 1; -pub const __USE_UNIX98: u32 = 1; -pub const _LARGEFILE_SOURCE: u32 = 1; -pub const __USE_XOPEN2K8XSI: u32 = 1; -pub const __USE_XOPEN2KXSI: u32 = 1; -pub const __USE_LARGEFILE: u32 = 1; -pub const __USE_LARGEFILE64: u32 = 1; -pub const __USE_FILE_OFFSET64: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_DYNAMIC_STACK_SIZE: u32 = 1; -pub const __USE_GNU: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 1; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 1; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 1; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 1; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 1; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 1; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; -pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; -pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; -pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; -pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; -pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32; -pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4; -pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; -pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; -pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; -pub const __have_pthread_attr_t: u32 = 1; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const __cookie_io_functions_t_defined: u32 = 1; -pub const _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const L_cuserid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const _STRING_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_FD_SETSIZE: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_QLIMIT: u32 = 1; -pub const _POSIX_HIWAT: u32 = 512; -pub const _POSIX_UIO_MAXIOV: u32 = 16; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const __SC_THREAD_STACK_MIN_VALUE: u32 = 75; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; -pub const _XOPEN_LIM_H: u32 = 1; -pub const _XOPEN_IOV_MAX: u32 = 16; -pub const _BITS_UIO_LIM_H: u32 = 1; -pub const __IOV_MAX: u32 = 1024; -pub const IOV_MAX: u32 = 1024; -pub const NL_ARGMAX: u32 = 4096; -pub const NL_LANGMAX: u32 = 2048; -pub const NZERO: u32 = 20; -pub const WORD_BIT: u32 = 32; -pub const LONG_BIT: u32 = 64; -pub const _UNISTD_H: u32 = 1; -pub const _POSIX_VERSION: u32 = 200809; -pub const __POSIX2_THIS_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _POSIX2_C_VERSION: u32 = 200809; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: u32 = 200809; -pub const _POSIX2_SW_DEV: u32 = 200809; -pub const _POSIX2_LOCALEDEF: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const _XOPEN_XCU_VERSION: u32 = 4; -pub const _XOPEN_XPG2: u32 = 1; -pub const _XOPEN_XPG3: u32 = 1; -pub const _XOPEN_XPG4: u32 = 1; -pub const _XOPEN_UNIX: u32 = 1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: u32 = 1; -pub const _BITS_POSIX_OPT_H: u32 = 1; -pub const _POSIX_JOB_CONTROL: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 0; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_REENTRANT_FUNCTIONS: u32 = 1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: u32 = 200809; -pub const _POSIX_THREAD_PRIO_PROTECT: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_REALTIME_SIGNALS: u32 = 200809; -pub const _POSIX_ASYNCHRONOUS_IO: u32 = 200809; -pub const _POSIX_ASYNC_IO: u32 = 1; -pub const _LFS_ASYNCHRONOUS_IO: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: u32 = 200809; -pub const _LFS64_ASYNCHRONOUS_IO: u32 = 1; -pub const _LFS_LARGEFILE: u32 = 1; -pub const _LFS64_LARGEFILE: u32 = 1; -pub const _LFS64_STDIO: u32 = 1; -pub const _POSIX_SHARED_MEMORY_OBJECTS: u32 = 200809; -pub const _POSIX_CPUTIME: u32 = 0; -pub const _POSIX_THREAD_CPUTIME: u32 = 0; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_TIMEOUTS: u32 = 200809; -pub const _POSIX_SPIN_LOCKS: u32 = 200809; -pub const _POSIX_SPAWN: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_BARRIERS: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 0; -pub const _POSIX_CLOCK_SELECTION: u32 = 200809; -pub const _POSIX_ADVISORY_INFO: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; -pub const _POSIX_V6_LPBIG_OFFBIG: i32 = -1; -pub const _XBS5_LPBIG_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: u32 = 1; -pub const _POSIX_V6_LP64_OFF64: u32 = 1; -pub const _XBS5_LP64_OFF64: u32 = 1; -#[allow(unsafe_code)] -pub const __ILP32_OFF32_CFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __ILP32_OFF32_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __ILP32_OFFBIG_CFLAGS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked( - b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0", - ) -}; -#[allow(unsafe_code)] -pub const __ILP32_OFFBIG_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __LP64_OFF64_CFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m64\0") }; -#[allow(unsafe_code)] -pub const __LP64_OFF64_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m64\0") }; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const L_SET: u32 = 0; -pub const L_INCR: u32 = 1; -pub const L_XTND: u32 = 2; -pub const _GETOPT_POSIX_H: u32 = 1; -pub const _GETOPT_CORE_H: u32 = 1; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; -pub const CLOSE_RANGE_UNSHARE: u32 = 2; -pub const CLOSE_RANGE_CLOEXEC: u32 = 4; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const _BITS_TIMEX_H: u32 = 1; -pub const ADJ_OFFSET: u32 = 1; -pub const ADJ_FREQUENCY: u32 = 2; -pub const ADJ_MAXERROR: u32 = 4; -pub const ADJ_ESTERROR: u32 = 8; -pub const ADJ_STATUS: u32 = 16; -pub const ADJ_TIMECONST: u32 = 32; -pub const ADJ_TAI: u32 = 128; -pub const ADJ_SETOFFSET: u32 = 256; -pub const ADJ_MICRO: u32 = 4096; -pub const ADJ_NANO: u32 = 8192; -pub const ADJ_TICK: u32 = 16384; -pub const ADJ_OFFSET_SINGLESHOT: u32 = 32769; -pub const ADJ_OFFSET_SS_READ: u32 = 40961; -pub const MOD_OFFSET: u32 = 1; -pub const MOD_FREQUENCY: u32 = 2; -pub const MOD_MAXERROR: u32 = 4; -pub const MOD_ESTERROR: u32 = 8; -pub const MOD_STATUS: u32 = 16; -pub const MOD_TIMECONST: u32 = 32; -pub const MOD_CLKB: u32 = 16384; -pub const MOD_CLKA: u32 = 32769; -pub const MOD_TAI: u32 = 128; -pub const MOD_MICRO: u32 = 4096; -pub const MOD_NANO: u32 = 8192; -pub const STA_PLL: u32 = 1; -pub const STA_PPSFREQ: u32 = 2; -pub const STA_PPSTIME: u32 = 4; -pub const STA_FLL: u32 = 8; -pub const STA_INS: u32 = 16; -pub const STA_DEL: u32 = 32; -pub const STA_UNSYNC: u32 = 64; -pub const STA_FREQHOLD: u32 = 128; -pub const STA_PPSSIGNAL: u32 = 256; -pub const STA_PPSJITTER: u32 = 512; -pub const STA_PPSWANDER: u32 = 1024; -pub const STA_PPSERROR: u32 = 2048; -pub const STA_CLOCKERR: u32 = 4096; -pub const STA_NANO: u32 = 8192; -pub const STA_MODE: u32 = 16384; -pub const STA_CLK: u32 = 32768; -pub const STA_RONLY: u32 = 65280; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const __error_t_defined: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const O_LARGEFILE: u32 = 0; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DIRECT: u32 = 16384; -pub const O_NOATIME: u32 = 262144; -pub const O_PATH: u32 = 2097152; -pub const O_TMPFILE: u32 = 4259840; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const MAX_HANDLE_SZ: u32 = 128; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const AT_EACCESS: u32 = 512; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const _GETOPT_EXT_H: u32 = 1; -pub const no_argument: u32 = 0; -pub const required_argument: u32 = 1; -pub const optional_argument: u32 = 2; -pub const _SYS_STAT_H: u32 = 1; -pub const S_IREAD: u32 = 256; -pub const S_IWRITE: u32 = 128; -pub const S_IEXEC: u32 = 64; -pub const ACCESSPERMS: u32 = 511; -pub const ALLPERMS: u32 = 4095; -pub const DEFFILEMODE: u32 = 438; -pub const S_BLKSIZE: u32 = 512; -pub const __BITS_PER_LONG: u32 = 64; -pub const __BITS_PER_LONG_LONG: u32 = 64; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const __statx_timestamp_defined: u32 = 1; -pub const __statx_defined: u32 = 1; -pub const _SYS_TIME_H: u32 = 1; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGILL: u32 = 4; -pub const SIGABRT: u32 = 6; -pub const SIGFPE: u32 = 8; -pub const SIGSEGV: u32 = 11; -pub const SIGTERM: u32 = 15; -pub const SIGHUP: u32 = 1; -pub const SIGQUIT: u32 = 3; -pub const SIGTRAP: u32 = 5; -pub const SIGKILL: u32 = 9; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; -pub const SIGSTKFLT: u32 = 16; -pub const SIGPWR: u32 = 30; -pub const SIGBUS: u32 = 7; -pub const SIGSYS: u32 = 31; -pub const SIGURG: u32 = 23; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGCONT: u32 = 18; -pub const SIGCHLD: u32 = 17; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGPOLL: u32 = 29; -pub const SIGXFSZ: u32 = 25; -pub const SIGXCPU: u32 = 24; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGUSR1: u32 = 10; -pub const SIGUSR2: u32 = 12; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_ARCH_H: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; -pub const _SYS_UIO_H: u32 = 1; -pub const UIO_MAXIOV: u32 = 1024; -pub const _BITS_UIO_EXT_H: u32 = 1; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const _SYS_WAIT_H: u32 = 1; -pub const WCOREFLAG: u32 = 128; -pub const WAIT_ANY: i32 = -1; -pub const WAIT_MYPGRP: u32 = 0; -pub const G_ANALYZER_ANALYZING: u32 = 0; -pub const FALSE: u32 = 0; -#[allow(unsafe_code)] -pub const G_GINT16_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"h\0") }; -#[allow(unsafe_code)] -pub const G_GINT16_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hi\0") }; -#[allow(unsafe_code)] -pub const G_GUINT16_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hu\0") }; -#[allow(unsafe_code)] -pub const G_GINT32_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const G_GINT32_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"i\0") }; -#[allow(unsafe_code)] -pub const G_GUINT32_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"u\0") }; -pub const G_HAVE_GINT64: u32 = 1; -#[allow(unsafe_code)] -pub const G_GINT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; -#[allow(unsafe_code)] -pub const G_GINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"li\0") }; -#[allow(unsafe_code)] -pub const G_GUINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lu\0") }; -pub const GLIB_SIZEOF_VOID_P: u32 = 8; -pub const GLIB_SIZEOF_LONG: u32 = 8; -pub const GLIB_SIZEOF_SIZE_T: u32 = 8; -pub const GLIB_SIZEOF_SSIZE_T: u32 = 8; -#[allow(unsafe_code)] -pub const G_GSIZE_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; -#[allow(unsafe_code)] -pub const G_GSSIZE_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; -#[allow(unsafe_code)] -pub const G_GSIZE_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lu\0") }; -#[allow(unsafe_code)] -pub const G_GSSIZE_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"li\0") }; -#[allow(unsafe_code)] -pub const G_GOFFSET_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; -#[allow(unsafe_code)] -pub const G_GOFFSET_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"li\0") }; -#[allow(unsafe_code)] -pub const G_POLLFD_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%d\0") }; -#[allow(unsafe_code)] -pub const G_GINTPTR_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; -#[allow(unsafe_code)] -pub const G_GINTPTR_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"li\0") }; -#[allow(unsafe_code)] -pub const G_GUINTPTR_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lu\0") }; -pub const GLIB_MAJOR_VERSION: u32 = 2; -pub const GLIB_MINOR_VERSION: u32 = 74; -pub const GLIB_MICRO_VERSION: u32 = 6; -pub const G_VA_COPY_AS_ARRAY: u32 = 1; -pub const G_HAVE_ISO_VARARGS: u32 = 1; -pub const G_HAVE_GROWING_STACK: u32 = 0; -pub const G_HAVE_GNUC_VISIBILITY: u32 = 1; -pub const G_HAVE_GNUC_VARARGS: u32 = 1; -#[allow(unsafe_code)] -pub const G_MODULE_SUFFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"so\0") }; -#[allow(unsafe_code)] -pub const G_PID_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"i\0") }; -pub const GLIB_SYSDEF_AF_UNIX: u32 = 1; -pub const GLIB_SYSDEF_AF_INET: u32 = 2; -pub const GLIB_SYSDEF_AF_INET6: u32 = 10; -pub const GLIB_SYSDEF_MSG_OOB: u32 = 1; -pub const GLIB_SYSDEF_MSG_PEEK: u32 = 2; -pub const GLIB_SYSDEF_MSG_DONTROUTE: u32 = 4; -pub const G_DIR_SEPARATOR: u8 = 47u8; -#[allow(unsafe_code)] -pub const G_DIR_SEPARATOR_S: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/\0") }; -pub const G_SEARCHPATH_SEPARATOR: u8 = 58u8; -#[allow(unsafe_code)] -pub const G_SEARCHPATH_SEPARATOR_S: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b":\0") }; -pub const G_E: f64 = 2.718281828459045; -pub const G_LN2: f64 = 0.6931471805599453; -pub const G_LN10: f64 = 2.302585092994046; -pub const G_PI: f64 = 3.141592653589793; -pub const G_PI_2: f64 = 1.5707963267948966; -pub const G_PI_4: f64 = 0.7853981633974483; -pub const G_SQRT2: f64 = 1.4142135623730951; -pub const G_LITTLE_ENDIAN: u32 = 1234; -pub const G_BIG_ENDIAN: u32 = 4321; -pub const G_PDP_ENDIAN: u32 = 3412; -pub const G_IEEE754_FLOAT_BIAS: u32 = 127; -pub const G_IEEE754_DOUBLE_BIAS: u32 = 1023; -pub const G_LOG_2_BASE_10: f64 = 0.3010299956639812; -pub const G_DATALIST_FLAGS_MASK: u32 = 3; -pub const G_DATE_BAD_JULIAN: u32 = 0; -pub const G_DATE_BAD_DAY: u32 = 0; -pub const G_DATE_BAD_YEAR: u32 = 0; -pub const _DIRENT_H: u32 = 1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; -pub const G_MEM_ALIGN: u32 = 8; -pub const G_HOOK_FLAG_USER_SHIFT: u32 = 4; -pub const G_PRIORITY_HIGH: i32 = -100; -pub const G_PRIORITY_DEFAULT: u32 = 0; -pub const G_PRIORITY_HIGH_IDLE: u32 = 100; -pub const G_PRIORITY_DEFAULT_IDLE: u32 = 200; -pub const G_PRIORITY_LOW: u32 = 300; -pub const G_SOURCE_REMOVE: u32 = 0; -pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: u32 = 18; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_GROUP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Desktop Entry\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Type\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Version\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Name\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"GenericName\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"NoDisplay\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Comment\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_ICON: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Icon\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Hidden\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"OnlyShowIn\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"NotShowIn\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"TryExec\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_EXEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Exec\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_PATH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Path\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Terminal\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"MimeType\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Categories\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"StartupNotify\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"StartupWMClass\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"URL\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"DBusActivatable\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Actions\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Application\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_TYPE_LINK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Link\0") }; -#[allow(unsafe_code)] -pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Directory\0") }; -pub const G_LOG_LEVEL_USER_SHIFT: u32 = 8; -#[allow(unsafe_code)] -pub const G_OPTION_REMAINING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const G_CSET_A_2_Z: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0") }; -#[allow(unsafe_code)] -pub const G_CSET_a_2_z: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"abcdefghijklmnopqrstuvwxyz\0") }; -#[allow(unsafe_code)] -pub const G_CSET_DIGITS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789\0") }; -#[allow(unsafe_code)] -pub const G_CSET_LATINC: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\0") -}; -#[allow(unsafe_code)] -pub const G_CSET_LATINS: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\0") -}; -#[allow(unsafe_code)] -pub const G_STR_DELIMITERS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"_-|> <.\0") }; -pub const G_ASCII_DTOSTR_BUF_SIZE: u32 = 39; -#[allow(unsafe_code)] -pub const G_TEST_OPTION_ISOLATE_DIRS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"isolate_dirs\0") }; -pub const G_USEC_PER_SEC: u32 = 1000000; -#[allow(unsafe_code)] -pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b":/?#[]@\0") }; -#[allow(unsafe_code)] -pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"!$&'()*+,;=\0") }; -#[allow(unsafe_code)] -pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"!$&'()*+,;=:@\0") }; -#[allow(unsafe_code)] -pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"!$&'()*+,;=:@/\0") }; -#[allow(unsafe_code)] -pub const G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"!$&'()*+,;=:\0") }; -pub const G_ALLOC_ONLY: u32 = 1; -pub const G_ALLOC_AND_FREE: u32 = 2; -pub const G_ALLOCATOR_LIST: u32 = 1; -pub const G_ALLOCATOR_SLIST: u32 = 2; -pub const G_ALLOCATOR_NODE: u32 = 3; -pub const _PTHREAD_H: u32 = 1; -pub const _SCHED_H: u32 = 1; -pub const _BITS_SCHED_H: u32 = 1; -pub const SCHED_OTHER: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_ISO: u32 = 4; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_NEWTIME: u32 = 128; -pub const _BITS_TYPES_STRUCT_SCHED_PARAM: u32 = 1; -pub const _BITS_CPU_SET_H: u32 = 1; -pub const __CPU_SETSIZE: u32 = 1024; -pub const CPU_SETSIZE: u32 = 1024; -pub const PTHREAD_ONCE_INIT: u32 = 0; -pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1; -pub const PTHREAD_ATTR_NO_SIGMASK_NP: i32 = -1; -pub const _PWD_H: u32 = 1; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; -pub const _SYS_MMAN_H: u32 = 1; -pub const MAP_32BIT: u32 = 64; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_FILE: u32 = 0; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_ANON: u32 = 32; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MS_ASYNC: u32 = 1; -pub const MS_SYNC: u32 = 4; -pub const MS_INVALIDATE: u32 = 2; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_HWPOISON: u32 = 100; -pub const POSIX_MADV_NORMAL: u32 = 0; -pub const POSIX_MADV_RANDOM: u32 = 1; -pub const POSIX_MADV_SEQUENTIAL: u32 = 2; -pub const POSIX_MADV_WILLNEED: u32 = 3; -pub const POSIX_MADV_DONTNEED: u32 = 4; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MLOCK_ONFAULT: u32 = 1; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const _SYS_SOCKET_H: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -pub const _NETINET_TCP_H: u32 = 1; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_COOKIE_TRANSACTIONS: u32 = 15; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TH_FIN: u32 = 1; -pub const TH_SYN: u32 = 2; -pub const TH_RST: u32 = 4; -pub const TH_PUSH: u32 = 8; -pub const TH_ACK: u32 = 16; -pub const TH_URG: u32 = 32; -pub const TCPOPT_EOL: u32 = 0; -pub const TCPOPT_NOP: u32 = 1; -pub const TCPOPT_MAXSEG: u32 = 2; -pub const TCPOLEN_MAXSEG: u32 = 4; -pub const TCPOPT_WINDOW: u32 = 3; -pub const TCPOLEN_WINDOW: u32 = 3; -pub const TCPOPT_SACK_PERMITTED: u32 = 4; -pub const TCPOLEN_SACK_PERMITTED: u32 = 2; -pub const TCPOPT_SACK: u32 = 5; -pub const TCPOPT_TIMESTAMP: u32 = 8; -pub const TCPOLEN_TIMESTAMP: u32 = 10; -pub const TCPOLEN_TSTAMP_APPA: u32 = 12; -pub const TCPOPT_TSTAMP_HDR: u32 = 16844810; -pub const TCP_MSS: u32 = 512; -pub const TCP_MAXWIN: u32 = 65535; -pub const TCP_MAX_WINSHIFT: u32 = 14; -pub const SOL_TCP: u32 = 6; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_COOKIE_MIN: u32 = 8; -pub const TCP_COOKIE_MAX: u32 = 16; -pub const TCP_COOKIE_PAIR_SIZE: u32 = 32; -pub const TCP_COOKIE_IN_ALWAYS: u32 = 1; -pub const TCP_COOKIE_OUT_NEVER: u32 = 2; -pub const TCP_S_DATA_IN: u32 = 4; -pub const TCP_S_DATA_OUT: u32 = 8; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const _ARPA_INET_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _RPC_NETDB_H: u32 = 1; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const SCOPE_DELIMITER: u8 = 37u8; -pub const GAI_WAIT: u32 = 0; -pub const GAI_NOWAIT: u32 = 1; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_IDN: u32 = 64; -pub const AI_CANONIDN: u32 = 128; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const EAI_NODATA: i32 = -5; -pub const EAI_ADDRFAMILY: i32 = -9; -pub const EAI_INPROGRESS: i32 = -100; -pub const EAI_CANCELED: i32 = -101; -pub const EAI_NOTCANCELED: i32 = -102; -pub const EAI_ALLDONE: i32 = -103; -pub const EAI_INTR: i32 = -104; -pub const EAI_IDN_ENCODE: i32 = -105; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const NI_IDN: u32 = 32; -pub const _SYS_UN_H: u32 = 1; -pub const _SYS_SYSMACROS_H: u32 = 1; -pub const _BITS_SYSMACROS_H: u32 = 1; -pub const O_BINARY: u32 = 0; -pub const HAVE_CHARDEV_SERIAL: u32 = 1; -pub const HAVE_CHARDEV_PARALLEL: u32 = 1; -pub const QEMU_VMALLOC_ALIGN: u32 = 2097152; -#[allow(unsafe_code)] -pub const FMT_pid: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%d\0") }; -pub const ATOMIC_REG_SIZE: u32 = 8; -pub const NANOSECONDS_PER_SECOND: u32 = 1000000000; -pub const SCALE_MS: u32 = 1000000; -pub const SCALE_US: u32 = 1000; -pub const SCALE_NS: u32 = 1; -pub const QEMU_TIMER_ATTR_ALL: u32 = 4294967295; -#[allow(unsafe_code)] -pub const UUID_FMT: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx\0") -}; -#[allow(unsafe_code)] -pub const UUID_NONE: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"00000000-0000-0000-0000-000000000000\0") -}; -pub const MAX_OPTION_ROMS: u32 = 16; -pub const MAX_PROM_ENVS: u32 = 128; -pub const MAX_PARALLEL_PORTS: u32 = 3; -pub const _SEMAPHORE_H: u32 = 1; -pub const __SIZEOF_SEM_T: u32 = 32; -pub const QEMU_THREAD_JOINABLE: u32 = 0; -pub const QEMU_THREAD_DETACHED: u32 = 1; -#[allow(unsafe_code)] -pub const TYPE_OBJECT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"object\0") }; -pub const OBJECT_CLASS_CAST_CACHE: u32 = 4; -#[allow(unsafe_code)] -pub const TYPE_INTERFACE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"interface\0") }; -#[allow(unsafe_code)] -pub const TYPE_HOTPLUG_HANDLER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hotplug-handler\0") }; -#[allow(unsafe_code)] -pub const TYPE_RESETTABLE_INTERFACE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"resettable\0") }; -#[allow(unsafe_code)] -pub const TYPE_DEVICE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"device\0") }; -#[allow(unsafe_code)] -pub const TYPE_BUS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bus\0") }; -#[allow(unsafe_code)] -pub const QDEV_HOTPLUG_HANDLER_PROPERTY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hotplug-handler\0") }; -#[allow(unsafe_code)] -pub const VADDR_PRId: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ld\0") }; -#[allow(unsafe_code)] -pub const VADDR_PRIu: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lu\0") }; -#[allow(unsafe_code)] -pub const VADDR_PRIo: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lo\0") }; -#[allow(unsafe_code)] -pub const VADDR_PRIx: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lx\0") }; -#[allow(unsafe_code)] -pub const VADDR_PRIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lX\0") }; -pub const HWADDR_BITS: u32 = 64; -#[allow(unsafe_code)] -pub const HWADDR_FMT_plx: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRId: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ld\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRIi: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"li\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRIo: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lo\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRIu: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lu\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRIx: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lx\0") }; -#[allow(unsafe_code)] -pub const HWADDR_PRIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"lX\0") }; -pub const bfd_mach_m68000: u32 = 1; -pub const bfd_mach_m68008: u32 = 2; -pub const bfd_mach_m68010: u32 = 3; -pub const bfd_mach_m68020: u32 = 4; -pub const bfd_mach_m68030: u32 = 5; -pub const bfd_mach_m68040: u32 = 6; -pub const bfd_mach_m68060: u32 = 7; -pub const bfd_mach_cpu32: u32 = 8; -pub const bfd_mach_mcf5200: u32 = 9; -pub const bfd_mach_mcf5206e: u32 = 10; -pub const bfd_mach_mcf5307: u32 = 11; -pub const bfd_mach_mcf5407: u32 = 12; -pub const bfd_mach_mcf528x: u32 = 13; -pub const bfd_mach_mcfv4e: u32 = 14; -pub const bfd_mach_mcf521x: u32 = 15; -pub const bfd_mach_mcf5249: u32 = 16; -pub const bfd_mach_mcf547x: u32 = 17; -pub const bfd_mach_mcf548x: u32 = 18; -pub const bfd_mach_i960_core: u32 = 1; -pub const bfd_mach_i960_ka_sa: u32 = 2; -pub const bfd_mach_i960_kb_sb: u32 = 3; -pub const bfd_mach_i960_mc: u32 = 4; -pub const bfd_mach_i960_xa: u32 = 5; -pub const bfd_mach_i960_ca: u32 = 6; -pub const bfd_mach_i960_jx: u32 = 7; -pub const bfd_mach_i960_hx: u32 = 8; -pub const bfd_mach_sparc: u32 = 1; -pub const bfd_mach_sparc_sparclet: u32 = 2; -pub const bfd_mach_sparc_sparclite: u32 = 3; -pub const bfd_mach_sparc_v8plus: u32 = 4; -pub const bfd_mach_sparc_v8plusa: u32 = 5; -pub const bfd_mach_sparc_sparclite_le: u32 = 6; -pub const bfd_mach_sparc_v9: u32 = 7; -pub const bfd_mach_sparc_v9a: u32 = 8; -pub const bfd_mach_sparc_v8plusb: u32 = 9; -pub const bfd_mach_sparc_v9b: u32 = 10; -pub const bfd_mach_mips3000: u32 = 3000; -pub const bfd_mach_mips3900: u32 = 3900; -pub const bfd_mach_mips4000: u32 = 4000; -pub const bfd_mach_mips4010: u32 = 4010; -pub const bfd_mach_mips4100: u32 = 4100; -pub const bfd_mach_mips4300: u32 = 4300; -pub const bfd_mach_mips4400: u32 = 4400; -pub const bfd_mach_mips4600: u32 = 4600; -pub const bfd_mach_mips4650: u32 = 4650; -pub const bfd_mach_mips5000: u32 = 5000; -pub const bfd_mach_mips6000: u32 = 6000; -pub const bfd_mach_mips8000: u32 = 8000; -pub const bfd_mach_mips10000: u32 = 10000; -pub const bfd_mach_mips16: u32 = 16; -pub const bfd_mach_i386_i386: u32 = 0; -pub const bfd_mach_i386_i8086: u32 = 1; -pub const bfd_mach_i386_i386_intel_syntax: u32 = 2; -pub const bfd_mach_x86_64: u32 = 3; -pub const bfd_mach_x86_64_intel_syntax: u32 = 4; -pub const bfd_mach_h8300: u32 = 1; -pub const bfd_mach_h8300h: u32 = 2; -pub const bfd_mach_h8300s: u32 = 3; -pub const bfd_mach_ppc: u32 = 0; -pub const bfd_mach_ppc64: u32 = 1; -pub const bfd_mach_ppc_403: u32 = 403; -pub const bfd_mach_ppc_403gc: u32 = 4030; -pub const bfd_mach_ppc_e500: u32 = 500; -pub const bfd_mach_ppc_505: u32 = 505; -pub const bfd_mach_ppc_601: u32 = 601; -pub const bfd_mach_ppc_602: u32 = 602; -pub const bfd_mach_ppc_603: u32 = 603; -pub const bfd_mach_ppc_ec603e: u32 = 6031; -pub const bfd_mach_ppc_604: u32 = 604; -pub const bfd_mach_ppc_620: u32 = 620; -pub const bfd_mach_ppc_630: u32 = 630; -pub const bfd_mach_ppc_750: u32 = 750; -pub const bfd_mach_ppc_860: u32 = 860; -pub const bfd_mach_ppc_a35: u32 = 35; -pub const bfd_mach_ppc_rs64ii: u32 = 642; -pub const bfd_mach_ppc_rs64iii: u32 = 643; -pub const bfd_mach_ppc_7400: u32 = 7400; -pub const bfd_mach_hppa10: u32 = 10; -pub const bfd_mach_hppa11: u32 = 11; -pub const bfd_mach_hppa20: u32 = 20; -pub const bfd_mach_hppa20w: u32 = 25; -pub const bfd_mach_z8001: u32 = 1; -pub const bfd_mach_z8002: u32 = 2; -pub const bfd_mach_sh: u32 = 1; -pub const bfd_mach_sh2: u32 = 32; -pub const bfd_mach_sh_dsp: u32 = 45; -pub const bfd_mach_sh2a: u32 = 42; -pub const bfd_mach_sh2a_nofpu: u32 = 43; -pub const bfd_mach_sh2e: u32 = 46; -pub const bfd_mach_sh3: u32 = 48; -pub const bfd_mach_sh3_nommu: u32 = 49; -pub const bfd_mach_sh3_dsp: u32 = 61; -pub const bfd_mach_sh3e: u32 = 62; -pub const bfd_mach_sh4: u32 = 64; -pub const bfd_mach_sh4_nofpu: u32 = 65; -pub const bfd_mach_sh4_nommu_nofpu: u32 = 66; -pub const bfd_mach_sh4a: u32 = 74; -pub const bfd_mach_sh4a_nofpu: u32 = 75; -pub const bfd_mach_sh4al_dsp: u32 = 77; -pub const bfd_mach_sh5: u32 = 80; -pub const bfd_mach_alpha: u32 = 1; -pub const bfd_mach_alpha_ev4: u32 = 16; -pub const bfd_mach_alpha_ev5: u32 = 32; -pub const bfd_mach_alpha_ev6: u32 = 48; -pub const bfd_mach_arm_unknown: u32 = 0; -pub const bfd_mach_arm_2: u32 = 1; -pub const bfd_mach_arm_2a: u32 = 2; -pub const bfd_mach_arm_3: u32 = 3; -pub const bfd_mach_arm_3M: u32 = 4; -pub const bfd_mach_arm_4: u32 = 5; -pub const bfd_mach_arm_4T: u32 = 6; -pub const bfd_mach_arm_5: u32 = 7; -pub const bfd_mach_arm_5T: u32 = 8; -pub const bfd_mach_arm_5TE: u32 = 9; -pub const bfd_mach_arm_XScale: u32 = 10; -pub const bfd_mach_arm_ep9312: u32 = 11; -pub const bfd_mach_arm_iWMMXt: u32 = 12; -pub const bfd_mach_arm_iWMMXt2: u32 = 13; -pub const bfd_mach_v850: u32 = 0; -pub const bfd_mach_arc_base: u32 = 0; -pub const bfd_mach_m32r: u32 = 0; -pub const bfd_mach_avr1: u32 = 1; -pub const bfd_mach_avr2: u32 = 2; -pub const bfd_mach_avr25: u32 = 25; -pub const bfd_mach_avr3: u32 = 3; -pub const bfd_mach_avr31: u32 = 31; -pub const bfd_mach_avr35: u32 = 35; -pub const bfd_mach_avr4: u32 = 4; -pub const bfd_mach_avr5: u32 = 5; -pub const bfd_mach_avr51: u32 = 51; -pub const bfd_mach_avr6: u32 = 6; -pub const bfd_mach_avrtiny: u32 = 100; -pub const bfd_mach_avrxmega1: u32 = 101; -pub const bfd_mach_avrxmega2: u32 = 102; -pub const bfd_mach_avrxmega3: u32 = 103; -pub const bfd_mach_avrxmega4: u32 = 104; -pub const bfd_mach_avrxmega5: u32 = 105; -pub const bfd_mach_avrxmega6: u32 = 106; -pub const bfd_mach_avrxmega7: u32 = 107; -pub const bfd_mach_cris_v0_v10: u32 = 255; -pub const bfd_mach_cris_v32: u32 = 32; -pub const bfd_mach_cris_v10_v32: u32 = 1032; -pub const bfd_mach_ia64_elf64: u32 = 64; -pub const bfd_mach_ia64_elf32: u32 = 32; -pub const bfd_mach_rx: u32 = 117; -pub const bfd_mach_rx_v2: u32 = 118; -pub const bfd_mach_rx_v3: u32 = 119; -pub const bfd_mach_s390_31: u32 = 31; -pub const bfd_mach_s390_64: u32 = 64; -pub const INSN_HAS_RELOC: u32 = 2147483648; -pub const INSN_ARM_BE32: u32 = 65536; -pub const MEMTX_OK: u32 = 0; -pub const MEMTX_ERROR: u32 = 1; -pub const MEMTX_DECODE_ERROR: u32 = 2; -pub const MEMTX_ACCESS_ERROR: u32 = 4; -pub const MMU_ACCESS_COUNT: u32 = 3; -pub const EXEC_TLB_COMMON_H: u32 = 1; -pub const CPU_TLB_ENTRY_BITS: u32 = 5; -#[allow(unsafe_code)] -pub const TYPE_CPU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"cpu\0") }; -pub const NB_MMU_MODES: u32 = 16; -pub const CPU_VTLB_SIZE: u32 = 8; -pub const CPU_UNSET_NUMA_NODE_ID: i32 = -1; -pub const SSTEP_ENABLE: u32 = 1; -pub const SSTEP_NOIRQ: u32 = 2; -pub const SSTEP_NOTIMER: u32 = 4; -pub const BP_MEM_READ: u32 = 1; -pub const BP_MEM_WRITE: u32 = 2; -pub const BP_MEM_ACCESS: u32 = 3; -pub const BP_STOP_BEFORE_ACCESS: u32 = 4; -pub const BP_GDB: u32 = 16; -pub const BP_CPU: u32 = 32; -pub const BP_ANY: u32 = 48; -pub const BP_HIT_SHIFT: u32 = 6; -pub const BP_WATCHPOINT_HIT_READ: u32 = 64; -pub const BP_WATCHPOINT_HIT_WRITE: u32 = 128; -pub const BP_WATCHPOINT_HIT: u32 = 192; -pub const UNASSIGNED_CPU_INDEX: i32 = -1; -pub const UNASSIGNED_CLUSTER_INDEX: i32 = -1; -pub const PAGE_READ: u32 = 1; -pub const PAGE_WRITE: u32 = 2; -pub const PAGE_EXEC: u32 = 4; -pub const PAGE_RWX: u32 = 7; -pub const PAGE_VALID: u32 = 8; -pub const PAGE_WRITE_ORG: u32 = 16; -pub const PAGE_WRITE_INV: u32 = 32; -pub const PAGE_RESET: u32 = 64; -pub const PAGE_ANON: u32 = 128; -pub const PAGE_TARGET_1: u32 = 512; -pub const PAGE_TARGET_2: u32 = 1024; -pub const PAGE_PASSTHROUGH: u32 = 2048; -pub const EXCP_INTERRUPT: u32 = 65536; -pub const EXCP_HLT: u32 = 65537; -pub const EXCP_DEBUG: u32 = 65538; -pub const EXCP_HALTED: u32 = 65539; -pub const EXCP_YIELD: u32 = 65540; -pub const EXCP_ATOMIC: u32 = 65541; -#[allow(unsafe_code)] -pub const RAM_ADDR_FMT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lx\0") }; -pub const DIRTY_MEMORY_VGA: u32 = 0; -pub const DIRTY_MEMORY_CODE: u32 = 1; -pub const DIRTY_MEMORY_MIGRATION: u32 = 2; -pub const DIRTY_MEMORY_NUM: u32 = 3; -pub const MAX_PHYS_ADDR_SPACE_BITS: u32 = 62; -#[allow(unsafe_code)] -pub const TYPE_MEMORY_REGION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"memory-region\0") }; -#[allow(unsafe_code)] -pub const TYPE_IOMMU_MEMORY_REGION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"iommu-memory-region\0") }; -#[allow(unsafe_code)] -pub const TYPE_RAM_DISCARD_MANAGER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ram-discard-manager\0") }; -pub const GLOBAL_DIRTY_MIGRATION: u32 = 1; -pub const GLOBAL_DIRTY_DIRTY_RATE: u32 = 2; -pub const GLOBAL_DIRTY_LIMIT: u32 = 4; -pub const GLOBAL_DIRTY_MASK: u32 = 7; -pub const RAM_PREALLOC: u32 = 1; -pub const RAM_SHARED: u32 = 2; -pub const RAM_RESIZEABLE: u32 = 4; -pub const RAM_UF_ZEROPAGE: u32 = 8; -pub const RAM_MIGRATABLE: u32 = 16; -pub const RAM_PMEM: u32 = 32; -pub const RAM_UF_WRITEPROTECT: u32 = 64; -pub const RAM_NORESERVE: u32 = 128; -pub const RAM_PROTECTED: u32 = 256; -pub const RAM_NAMED_FILE: u32 = 512; -pub const RAM_READONLY: u32 = 1024; -pub const RAM_READONLY_FD: u32 = 2048; -pub const RAM_GUEST_MEMFD: u32 = 4096; -pub const MEMORY_LISTENER_PRIORITY_MIN: u32 = 0; -pub const MEMORY_LISTENER_PRIORITY_ACCEL: u32 = 10; -pub const MEMORY_LISTENER_PRIORITY_DEV_BACKEND: u32 = 10; -pub const QDEV_MAX_MMIO: u32 = 32; -pub const QDEV_MAX_PIO: u32 = 32; -#[allow(unsafe_code)] -pub const TYPE_SYSTEM_BUS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"System\0") }; -#[allow(unsafe_code)] -pub const TYPE_SYS_BUS_DEVICE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"sys-bus-device\0") }; -#[allow(unsafe_code)] -pub const SYSBUS_DEVICE_GPIO_IRQ: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"sysbus-irq\0") }; -pub const IAC_EOR: u32 = 239; -pub const IAC_SE: u32 = 240; -pub const IAC_NOP: u32 = 241; -pub const IAC_BREAK: u32 = 243; -pub const IAC_IP: u32 = 244; -pub const IAC_SB: u32 = 250; -pub const IAC: u32 = 255; -pub const CHR_READ_BUF_LEN: u32 = 4096; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_NULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-null\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_MUX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-mux\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_RINGBUF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-ringbuf\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_PTY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-pty\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_CONSOLE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-console\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_STDIO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-stdio\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_PIPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-pipe\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_MEMORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-memory\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_PARALLEL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-parallel\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-file\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_SERIAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-serial\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_SOCKET: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-socket\0") }; -#[allow(unsafe_code)] -pub const TYPE_CHARDEV_UDP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"chardev-udp\0") }; -#[allow(unsafe_code)] -pub const TYPE_EVENT_LOOP_BASE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"event-loop-base\0") }; -pub const SIG_IPI: u32 = 10; -#[allow(unsafe_code)] -pub const TYPE_MAIN_LOOP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"main-loop\0") }; -#[allow(unsafe_code)] -pub const TYPE_CLOCK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"clock\0") }; -pub const CLOCK_PERIOD_1SEC: u64 = 4294967296000000000; -#[allow(unsafe_code)] -pub const TYPE_IRQ: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"irq\0") }; -#[allow(unsafe_code)] -pub const TYPE_VMSTATE_IF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"vmstate-if\0") }; -pub const VMS_NULLPTR_MARKER: u32 = 48; -pub const VMSTATE_INSTANCE_ID_ANY: i32 = -1; -pub const CHR_IOCTL_SERIAL_SET_PARAMS: u32 = 1; -pub const CHR_IOCTL_SERIAL_SET_BREAK: u32 = 2; -pub const CHR_IOCTL_SERIAL_SET_TIOCM: u32 = 13; -pub const CHR_IOCTL_SERIAL_GET_TIOCM: u32 = 14; -pub const CHR_TIOCM_CTS: u32 = 32; -pub const CHR_TIOCM_CAR: u32 = 64; -pub const CHR_TIOCM_DSR: u32 = 256; -pub const CHR_TIOCM_RI: u32 = 128; -pub const CHR_TIOCM_DTR: u32 = 2; -pub const CHR_TIOCM_RTS: u32 = 4; -pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type wchar_t = core::ffi::c_int; -pub type __u_char = core::ffi::c_uchar; -pub type __u_short = core::ffi::c_ushort; -pub type __u_int = core::ffi::c_uint; -pub type __u_long = core::ffi::c_ulong; -pub type __int8_t = core::ffi::c_schar; -pub type __uint8_t = core::ffi::c_uchar; -pub type __int16_t = core::ffi::c_short; -pub type __uint16_t = core::ffi::c_ushort; -pub type __int32_t = core::ffi::c_int; -pub type __uint32_t = core::ffi::c_uint; -pub type __int64_t = core::ffi::c_long; -pub type __uint64_t = core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = core::ffi::c_long; -pub type __u_quad_t = core::ffi::c_ulong; -pub type __intmax_t = core::ffi::c_long; -pub type __uintmax_t = core::ffi::c_ulong; -pub type __dev_t = core::ffi::c_ulong; -pub type __uid_t = core::ffi::c_uint; -pub type __gid_t = core::ffi::c_uint; -pub type __ino_t = core::ffi::c_ulong; -pub type __ino64_t = core::ffi::c_ulong; -pub type __mode_t = core::ffi::c_uint; -pub type __nlink_t = core::ffi::c_ulong; -pub type __off_t = core::ffi::c_long; -pub type __off64_t = core::ffi::c_long; -pub type __pid_t = core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [core::ffi::c_int; 2usize], -} -#[test] -fn bindgen_test_layout___fsid_t() { - const UNINIT: ::core::mem::MaybeUninit<__fsid_t> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__fsid_t>(), - 8usize, - concat!("Size of: ", stringify!(__fsid_t)) - ); - assert_eq!( - ::core::mem::align_of::<__fsid_t>(), - 4usize, - concat!("Alignment of ", stringify!(__fsid_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__val) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__fsid_t), - "::", - stringify!(__val) - ) - ); -} -pub type __clock_t = core::ffi::c_long; -pub type __rlim_t = core::ffi::c_ulong; -pub type __rlim64_t = core::ffi::c_ulong; -pub type __id_t = core::ffi::c_uint; -pub type __time_t = core::ffi::c_long; -pub type __useconds_t = core::ffi::c_uint; -pub type __suseconds_t = core::ffi::c_long; -pub type __suseconds64_t = core::ffi::c_long; -pub type __daddr_t = core::ffi::c_int; -pub type __key_t = core::ffi::c_int; -pub type __clockid_t = core::ffi::c_int; -pub type __timer_t = *mut core::ffi::c_void; -pub type __blksize_t = core::ffi::c_long; -pub type __blkcnt_t = core::ffi::c_long; -pub type __blkcnt64_t = core::ffi::c_long; -pub type __fsblkcnt_t = core::ffi::c_ulong; -pub type __fsblkcnt64_t = core::ffi::c_ulong; -pub type __fsfilcnt_t = core::ffi::c_ulong; -pub type __fsfilcnt64_t = core::ffi::c_ulong; -pub type __fsword_t = core::ffi::c_long; -pub type __ssize_t = core::ffi::c_long; -pub type __syscall_slong_t = core::ffi::c_long; -pub type __syscall_ulong_t = core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut core::ffi::c_char; -pub type __intptr_t = core::ffi::c_long; -pub type __socklen_t = core::ffi::c_uint; -pub type __sig_atomic_t = core::ffi::c_int; -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino64_t; -pub type ino64_t = __ino64_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type off_t = __off64_t; -pub type off64_t = __off64_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type useconds_t = __useconds_t; -pub type suseconds_t = __suseconds_t; -pub type ulong = core::ffi::c_ulong; -pub type ushort = core::ffi::c_ushort; -pub type uint = core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [core::ffi::c_ulong; 16usize], -} -#[test] -fn bindgen_test_layout___sigset_t() { - const UNINIT: ::core::mem::MaybeUninit<__sigset_t> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__sigset_t>(), - 128usize, - concat!("Size of: ", stringify!(__sigset_t)) - ); - assert_eq!( - ::core::mem::align_of::<__sigset_t>(), - 8usize, - concat!("Alignment of ", stringify!(__sigset_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__val) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__sigset_t), - "::", - stringify!(__val) - ) - ); -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[test] -fn bindgen_test_layout_timeval() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(timeval)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timeval)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(timeval), - "::", - stringify!(tv_sec) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(timeval), - "::", - stringify!(tv_usec) - ) - ); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -#[test] -fn bindgen_test_layout_timespec() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(timespec)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timespec)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(timespec), - "::", - stringify!(tv_sec) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(timespec), - "::", - stringify!(tv_nsec) - ) - ); -} -pub type __fd_mask = core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub fds_bits: [__fd_mask; 16usize], -} -#[test] -fn bindgen_test_layout_fd_set() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(fd_set)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(fd_set)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(fd_set), - "::", - stringify!(fds_bits) - ) - ); -} -pub type fd_mask = __fd_mask; -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt64_t; -pub type fsblkcnt_t = __fsblkcnt64_t; -pub type fsfilcnt_t = __fsfilcnt64_t; -pub type blkcnt64_t = __blkcnt64_t; -pub type fsblkcnt64_t = __fsblkcnt64_t; -pub type fsfilcnt64_t = __fsfilcnt64_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: core::ffi::c_uint, - pub __high: core::ffi::c_uint, -} -#[test] -fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() { - const UNINIT: ::core::mem::MaybeUninit<__atomic_wide_counter__bindgen_ty_1> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__atomic_wide_counter__bindgen_ty_1>(), - 8usize, - concat!("Size of: ", stringify!(__atomic_wide_counter__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::<__atomic_wide_counter__bindgen_ty_1>(), - 4usize, - concat!( - "Alignment of ", - stringify!(__atomic_wide_counter__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__low) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__atomic_wide_counter__bindgen_ty_1), - "::", - stringify!(__low) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__high) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__atomic_wide_counter__bindgen_ty_1), - "::", - stringify!(__high) - ) - ); -} -#[test] -fn bindgen_test_layout___atomic_wide_counter() { - const UNINIT: ::core::mem::MaybeUninit<__atomic_wide_counter> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__atomic_wide_counter>(), - 8usize, - concat!("Size of: ", stringify!(__atomic_wide_counter)) - ); - assert_eq!( - ::core::mem::align_of::<__atomic_wide_counter>(), - 8usize, - concat!("Alignment of ", stringify!(__atomic_wide_counter)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__value64) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__atomic_wide_counter), - "::", - stringify!(__value64) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__value32) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__atomic_wide_counter), - "::", - stringify!(__value32) - ) - ); -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for __atomic_wide_counter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "__atomic_wide_counter {{ union }}") - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -#[test] -fn bindgen_test_layout___pthread_internal_list() { - const UNINIT: ::core::mem::MaybeUninit<__pthread_internal_list> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__pthread_internal_list>(), - 16usize, - concat!("Size of: ", stringify!(__pthread_internal_list)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_internal_list>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_internal_list)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_internal_list), - "::", - stringify!(__prev) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__next) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_internal_list), - "::", - stringify!(__next) - ) - ); -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -#[test] -fn bindgen_test_layout___pthread_internal_slist() { - const UNINIT: ::core::mem::MaybeUninit<__pthread_internal_slist> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__pthread_internal_slist>(), - 8usize, - concat!("Size of: ", stringify!(__pthread_internal_slist)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_internal_slist>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_internal_slist)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__next) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_internal_slist), - "::", - stringify!(__next) - ) - ); -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: core::ffi::c_int, - pub __count: core::ffi::c_uint, - pub __owner: core::ffi::c_int, - pub __nusers: core::ffi::c_uint, - pub __kind: core::ffi::c_int, - pub __spins: core::ffi::c_short, - pub __elision: core::ffi::c_short, - pub __list: __pthread_list_t, -} -#[test] -fn bindgen_test_layout___pthread_mutex_s() { - const UNINIT: ::core::mem::MaybeUninit<__pthread_mutex_s> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__pthread_mutex_s>(), - 40usize, - concat!("Size of: ", stringify!(__pthread_mutex_s)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_mutex_s>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_mutex_s)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__lock) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__count) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__count) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__owner) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__nusers) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__kind) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__spins) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__spins) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__elision) as usize - ptr as usize }, - 22usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__elision) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__list) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__list) - ) - ); -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: core::ffi::c_uint, - pub __writers: core::ffi::c_uint, - pub __wrphase_futex: core::ffi::c_uint, - pub __writers_futex: core::ffi::c_uint, - pub __pad3: core::ffi::c_uint, - pub __pad4: core::ffi::c_uint, - pub __cur_writer: core::ffi::c_int, - pub __shared: core::ffi::c_int, - pub __rwelision: core::ffi::c_schar, - pub __pad1: [core::ffi::c_uchar; 7usize], - pub __pad2: core::ffi::c_ulong, - pub __flags: core::ffi::c_uint, -} -#[test] -fn bindgen_test_layout___pthread_rwlock_arch_t() { - const UNINIT: ::core::mem::MaybeUninit<__pthread_rwlock_arch_t> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__pthread_rwlock_arch_t>(), - 56usize, - concat!("Size of: ", stringify!(__pthread_rwlock_arch_t)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_rwlock_arch_t>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__readers) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__writers) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__wrphase_futex) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__writers_futex) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad3) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad4) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__cur_writer) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__shared) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__rwelision) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__rwelision) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad1) as usize - ptr as usize }, - 33usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad1) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad2) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__flags) - ) - ); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [core::ffi::c_uint; 2usize], - pub __g_size: [core::ffi::c_uint; 2usize], - pub __g1_orig_size: core::ffi::c_uint, - pub __wrefs: core::ffi::c_uint, - pub __g_signals: [core::ffi::c_uint; 2usize], -} -#[test] -fn bindgen_test_layout___pthread_cond_s() { - const UNINIT: ::core::mem::MaybeUninit<__pthread_cond_s> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s>(), - 48usize, - concat!("Size of: ", stringify!(__pthread_cond_s)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_cond_s)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__wseq) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g1_start) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__g_refs) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_refs) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__g_size) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__g1_orig_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g1_orig_size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__wrefs) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__wrefs) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__g_signals) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_signals) - ) - ); -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for __pthread_cond_s { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write ! (f , "__pthread_cond_s {{ __wseq: {:?}, __g1_start: {:?}, __g_refs: {:?}, __g_size: {:?}, __g1_orig_size: {:?}, __wrefs: {:?}, __g_signals: {:?} }}" , self . __wseq , self . __g1_start , self . __g_refs , self . __g_size , self . __g1_orig_size , self . __wrefs , self . __g_signals) - } -} -pub type __tss_t = core::ffi::c_uint; -pub type __thrd_t = core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout___once_flag() { - const UNINIT: ::core::mem::MaybeUninit<__once_flag> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__once_flag>(), - 4usize, - concat!("Size of: ", stringify!(__once_flag)) - ); - assert_eq!( - ::core::mem::align_of::<__once_flag>(), - 4usize, - concat!("Alignment of ", stringify!(__once_flag)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__once_flag), - "::", - stringify!(__data) - ) - ); -} -pub type pthread_t = core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [core::ffi::c_char; 4usize], - pub __align: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout_pthread_mutexattr_t() { - const UNINIT: ::core::mem::MaybeUninit = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_mutexattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_mutexattr_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutexattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutexattr_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_mutexattr_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_mutexattr_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [core::ffi::c_char; 4usize], - pub __align: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout_pthread_condattr_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_condattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_condattr_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_condattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_condattr_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_condattr_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_condattr_t {{ union }}") - } -} -pub type pthread_key_t = core::ffi::c_uint; -pub type pthread_once_t = core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [core::ffi::c_char; 56usize], - pub __align: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_pthread_attr_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(pthread_attr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_attr_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_attr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_attr_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_attr_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_attr_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [core::ffi::c_char; 40usize], - pub __align: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_pthread_mutex_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(pthread_mutex_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_mutex_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_mutex_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_mutex_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [core::ffi::c_char; 48usize], - pub __align: core::ffi::c_longlong, -} -#[test] -fn bindgen_test_layout_pthread_cond_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(pthread_cond_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_cond_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_cond_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_cond_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [core::ffi::c_char; 56usize], - pub __align: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_pthread_rwlock_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(pthread_rwlock_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_rwlock_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_rwlock_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_rwlock_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [core::ffi::c_char; 8usize], - pub __align: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_pthread_rwlockattr_t() { - const UNINIT: ::core::mem::MaybeUninit = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(pthread_rwlockattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_rwlockattr_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlockattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlockattr_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_rwlockattr_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_rwlockattr_t {{ union }}") - } -} -pub type pthread_spinlock_t = core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [core::ffi::c_char; 32usize], - pub __align: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_pthread_barrier_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(pthread_barrier_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_barrier_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrier_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrier_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_barrier_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_barrier_t {{ union }}") - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [core::ffi::c_char; 4usize], - pub __align: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout_pthread_barrierattr_t() { - const UNINIT: ::core::mem::MaybeUninit = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_barrierattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_barrierattr_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrierattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrierattr_t), - "::", - stringify!(__align) - ) - ); -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for pthread_barrierattr_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "pthread_barrierattr_t {{ union }}") - } -} -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: core::ffi::c_int, - pub rem: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout_div_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(div_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(div_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(div_t), - "::", - stringify!(quot) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(div_t), - "::", - stringify!(rem) - ) - ); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: core::ffi::c_long, - pub rem: core::ffi::c_long, -} -#[test] -fn bindgen_test_layout_ldiv_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(ldiv_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ldiv_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ldiv_t), - "::", - stringify!(quot) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ldiv_t), - "::", - stringify!(rem) - ) - ); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: core::ffi::c_longlong, - pub rem: core::ffi::c_longlong, -} -#[test] -fn bindgen_test_layout_lldiv_t() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(lldiv_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(lldiv_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(lldiv_t), - "::", - stringify!(quot) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(lldiv_t), - "::", - stringify!(rem) - ) - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const core::ffi::c_ushort, - pub __ctype_tolower: *const core::ffi::c_int, - pub __ctype_toupper: *const core::ffi::c_int, - pub __names: [*const core::ffi::c_char; 13usize], -} -#[test] -fn bindgen_test_layout___locale_struct() { - const UNINIT: ::core::mem::MaybeUninit<__locale_struct> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__locale_struct>(), - 232usize, - concat!("Size of: ", stringify!(__locale_struct)) - ); - assert_eq!( - ::core::mem::align_of::<__locale_struct>(), - 8usize, - concat!("Alignment of ", stringify!(__locale_struct)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__locales) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__locale_struct), - "::", - stringify!(__locales) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__ctype_b) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(__locale_struct), - "::", - stringify!(__ctype_b) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__ctype_tolower) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(__locale_struct), - "::", - stringify!(__ctype_tolower) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__ctype_toupper) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(__locale_struct), - "::", - stringify!(__ctype_toupper) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__names) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(__locale_struct), - "::", - stringify!(__names) - ) - ); -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: core::ffi::c_int, - pub rand_deg: core::ffi::c_int, - pub rand_sep: core::ffi::c_int, - pub end_ptr: *mut i32, -} -#[test] -fn bindgen_test_layout_random_data() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(random_data)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(random_data)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).fptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(fptr) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(rptr) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(state) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rand_type) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(rand_type) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rand_deg) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(rand_deg) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).rand_sep) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(rand_sep) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).end_ptr) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(random_data), - "::", - stringify!(end_ptr) - ) - ); -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [core::ffi::c_ushort; 3usize], - pub __old_x: [core::ffi::c_ushort; 3usize], - pub __c: core::ffi::c_ushort, - pub __init: core::ffi::c_ushort, - pub __a: core::ffi::c_ulonglong, -} -#[test] -fn bindgen_test_layout_drand48_data() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(drand48_data)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(drand48_data)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__x) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(drand48_data), - "::", - stringify!(__x) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__old_x) as usize - ptr as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(drand48_data), - "::", - stringify!(__old_x) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__c) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(drand48_data), - "::", - stringify!(__c) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__init) as usize - ptr as usize }, - 14usize, - concat!( - "Offset of field: ", - stringify!(drand48_data), - "::", - stringify!(__init) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__a) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(drand48_data), - "::", - stringify!(__a) - ) - ); -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const core::ffi::c_void, - arg2: *const core::ffi::c_void, - ) -> core::ffi::c_int, ->; -pub type comparison_fn_t = __compar_fn_t; -pub type __compar_d_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const core::ffi::c_void, - arg2: *const core::ffi::c_void, - arg3: *mut core::ffi::c_void, - ) -> core::ffi::c_int, ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: core::ffi::c_uint, - pub __wchb: [core::ffi::c_char; 4usize], -} -#[test] -fn bindgen_test_layout___mbstate_t__bindgen_ty_1() { - const UNINIT: ::core::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__mbstate_t__bindgen_ty_1>(), - 4usize, - concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::<__mbstate_t__bindgen_ty_1>(), - 4usize, - concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__mbstate_t__bindgen_ty_1), - "::", - stringify!(__wch) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__mbstate_t__bindgen_ty_1), - "::", - stringify!(__wchb) - ) - ); -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for __mbstate_t__bindgen_ty_1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "__mbstate_t__bindgen_ty_1 {{ union }}") - } -} -#[test] -fn bindgen_test_layout___mbstate_t() { - const UNINIT: ::core::mem::MaybeUninit<__mbstate_t> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<__mbstate_t>(), - 8usize, - concat!("Size of: ", stringify!(__mbstate_t)) - ); - assert_eq!( - ::core::mem::align_of::<__mbstate_t>(), - 4usize, - concat!("Alignment of ", stringify!(__mbstate_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__count) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__mbstate_t), - "::", - stringify!(__count) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__value) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__mbstate_t), - "::", - stringify!(__value) - ) - ); -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for __mbstate_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "__mbstate_t {{ __count: {:?}, __value: {:?} }}", - self.__count, self.__value - ) - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -#[test] -fn bindgen_test_layout__G_fpos_t() { - const UNINIT: ::core::mem::MaybeUninit<_G_fpos_t> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<_G_fpos_t>(), - 16usize, - concat!("Size of: ", stringify!(_G_fpos_t)) - ); - assert_eq!( - ::core::mem::align_of::<_G_fpos_t>(), - 8usize, - concat!("Alignment of ", stringify!(_G_fpos_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_G_fpos_t), - "::", - stringify!(__pos) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__state) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_G_fpos_t), - "::", - stringify!(__state) - ) - ); -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for _G_fpos_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "_G_fpos_t {{ __pos: {:?}, __state: {:?} }}", - self.__pos, self.__state - ) - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -#[test] -fn bindgen_test_layout__G_fpos64_t() { - const UNINIT: ::core::mem::MaybeUninit<_G_fpos64_t> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<_G_fpos64_t>(), - 16usize, - concat!("Size of: ", stringify!(_G_fpos64_t)) - ); - assert_eq!( - ::core::mem::align_of::<_G_fpos64_t>(), - 8usize, - concat!("Alignment of ", stringify!(_G_fpos64_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_G_fpos64_t), - "::", - stringify!(__pos) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__state) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_G_fpos64_t), - "::", - stringify!(__state) - ) - ); -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for _G_fpos64_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "_G_fpos64_t {{ __pos: {:?}, __state: {:?} }}", - self.__pos, self.__state - ) - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; -pub type FILE = _IO_FILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_marker { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_codecvt { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_wide_data { - _unused: [u8; 0], -} -pub type _IO_lock_t = core::ffi::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_FILE { - pub _flags: core::ffi::c_int, - pub _IO_read_ptr: *mut core::ffi::c_char, - pub _IO_read_end: *mut core::ffi::c_char, - pub _IO_read_base: *mut core::ffi::c_char, - pub _IO_write_base: *mut core::ffi::c_char, - pub _IO_write_ptr: *mut core::ffi::c_char, - pub _IO_write_end: *mut core::ffi::c_char, - pub _IO_buf_base: *mut core::ffi::c_char, - pub _IO_buf_end: *mut core::ffi::c_char, - pub _IO_save_base: *mut core::ffi::c_char, - pub _IO_backup_base: *mut core::ffi::c_char, - pub _IO_save_end: *mut core::ffi::c_char, - pub _markers: *mut _IO_marker, - pub _chain: *mut _IO_FILE, - pub _fileno: core::ffi::c_int, - pub _flags2: core::ffi::c_int, - pub _old_offset: __off_t, - pub _cur_column: core::ffi::c_ushort, - pub _vtable_offset: core::ffi::c_schar, - pub _shortbuf: [core::ffi::c_char; 1usize], - pub _lock: *mut _IO_lock_t, - pub _offset: __off64_t, - pub _codecvt: *mut _IO_codecvt, - pub _wide_data: *mut _IO_wide_data, - pub _freeres_list: *mut _IO_FILE, - pub _freeres_buf: *mut core::ffi::c_void, - pub __pad5: usize, - pub _mode: core::ffi::c_int, - pub _unused2: [core::ffi::c_char; 20usize], -} -#[test] -fn bindgen_test_layout__IO_FILE() { - const UNINIT: ::core::mem::MaybeUninit<_IO_FILE> = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<_IO_FILE>(), - 216usize, - concat!("Size of: ", stringify!(_IO_FILE)) - ); - assert_eq!( - ::core::mem::align_of::<_IO_FILE>(), - 8usize, - concat!("Alignment of ", stringify!(_IO_FILE)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_flags) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_read_ptr) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_read_end) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_read_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_write_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_write_ptr) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_write_end) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_buf_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_buf_end) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_save_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_backup_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_IO_save_end) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_markers) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_chain) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_fileno) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_flags2) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_old_offset) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_cur_column) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize }, - 130usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_vtable_offset) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize }, - 131usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_shortbuf) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_lock) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_offset) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_codecvt) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_wide_data) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_freeres_list) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_freeres_buf) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(__pad5) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_mode) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize }, - 196usize, - concat!( - "Offset of field: ", - stringify!(_IO_FILE), - "::", - stringify!(_unused2) - ) - ); -} -impl Default for _IO_FILE { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type cookie_read_function_t = ::core::option::Option< - unsafe extern "C" fn( - __cookie: *mut core::ffi::c_void, - __buf: *mut core::ffi::c_char, - __nbytes: usize, - ) -> __ssize_t, ->; -pub type cookie_write_function_t = ::core::option::Option< - unsafe extern "C" fn( - __cookie: *mut core::ffi::c_void, - __buf: *const core::ffi::c_char, - __nbytes: usize, - ) -> __ssize_t, ->; -pub type cookie_seek_function_t = ::core::option::Option< - unsafe extern "C" fn( - __cookie: *mut core::ffi::c_void, - __pos: *mut __off64_t, - __w: core::ffi::c_int, - ) -> core::ffi::c_int, ->; -pub type cookie_close_function_t = ::core::option::Option< - unsafe extern "C" fn(__cookie: *mut core::ffi::c_void) -> core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _IO_cookie_io_functions_t { - pub read: cookie_read_function_t, - pub write: cookie_write_function_t, - pub seek: cookie_seek_function_t, - pub close: cookie_close_function_t, -} -#[test] -fn bindgen_test_layout__IO_cookie_io_functions_t() { - const UNINIT: ::core::mem::MaybeUninit<_IO_cookie_io_functions_t> = - ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::<_IO_cookie_io_functions_t>(), - 32usize, - concat!("Size of: ", stringify!(_IO_cookie_io_functions_t)) - ); - assert_eq!( - ::core::mem::align_of::<_IO_cookie_io_functions_t>(), - 8usize, - concat!("Alignment of ", stringify!(_IO_cookie_io_functions_t)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).read) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_IO_cookie_io_functions_t), - "::", - stringify!(read) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).write) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_IO_cookie_io_functions_t), - "::", - stringify!(write) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).seek) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_IO_cookie_io_functions_t), - "::", - stringify!(seek) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).close) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_IO_cookie_io_functions_t), - "::", - stringify!(close) - ) - ); -} -pub type cookie_io_functions_t = _IO_cookie_io_functions_t; -pub type socklen_t = __socklen_t; -pub const _PC_LINK_MAX: _bindgen_ty_1 = 0; -pub const _PC_MAX_CANON: _bindgen_ty_1 = 1; -pub const _PC_MAX_INPUT: _bindgen_ty_1 = 2; -pub const _PC_NAME_MAX: _bindgen_ty_1 = 3; -pub const _PC_PATH_MAX: _bindgen_ty_1 = 4; -pub const _PC_PIPE_BUF: _bindgen_ty_1 = 5; -pub const _PC_CHOWN_RESTRICTED: _bindgen_ty_1 = 6; -pub const _PC_NO_TRUNC: _bindgen_ty_1 = 7; -pub const _PC_VDISABLE: _bindgen_ty_1 = 8; -pub const _PC_SYNC_IO: _bindgen_ty_1 = 9; -pub const _PC_ASYNC_IO: _bindgen_ty_1 = 10; -pub const _PC_PRIO_IO: _bindgen_ty_1 = 11; -pub const _PC_SOCK_MAXBUF: _bindgen_ty_1 = 12; -pub const _PC_FILESIZEBITS: _bindgen_ty_1 = 13; -pub const _PC_REC_INCR_XFER_SIZE: _bindgen_ty_1 = 14; -pub const _PC_REC_MAX_XFER_SIZE: _bindgen_ty_1 = 15; -pub const _PC_REC_MIN_XFER_SIZE: _bindgen_ty_1 = 16; -pub const _PC_REC_XFER_ALIGN: _bindgen_ty_1 = 17; -pub const _PC_ALLOC_SIZE_MIN: _bindgen_ty_1 = 18; -pub const _PC_SYMLINK_MAX: _bindgen_ty_1 = 19; -pub const _PC_2_SYMLINKS: _bindgen_ty_1 = 20; -pub type _bindgen_ty_1 = core::ffi::c_uint; -pub const _SC_ARG_MAX: _bindgen_ty_2 = 0; -pub const _SC_CHILD_MAX: _bindgen_ty_2 = 1; -pub const _SC_CLK_TCK: _bindgen_ty_2 = 2; -pub const _SC_NGROUPS_MAX: _bindgen_ty_2 = 3; -pub const _SC_OPEN_MAX: _bindgen_ty_2 = 4; -pub const _SC_STREAM_MAX: _bindgen_ty_2 = 5; -pub const _SC_TZNAME_MAX: _bindgen_ty_2 = 6; -pub const _SC_JOB_CONTROL: _bindgen_ty_2 = 7; -pub const _SC_SAVED_IDS: _bindgen_ty_2 = 8; -pub const _SC_REALTIME_SIGNALS: _bindgen_ty_2 = 9; -pub const _SC_PRIORITY_SCHEDULING: _bindgen_ty_2 = 10; -pub const _SC_TIMERS: _bindgen_ty_2 = 11; -pub const _SC_ASYNCHRONOUS_IO: _bindgen_ty_2 = 12; -pub const _SC_PRIORITIZED_IO: _bindgen_ty_2 = 13; -pub const _SC_SYNCHRONIZED_IO: _bindgen_ty_2 = 14; -pub const _SC_FSYNC: _bindgen_ty_2 = 15; -pub const _SC_MAPPED_FILES: _bindgen_ty_2 = 16; -pub const _SC_MEMLOCK: _bindgen_ty_2 = 17; -pub const _SC_MEMLOCK_RANGE: _bindgen_ty_2 = 18; -pub const _SC_MEMORY_PROTECTION: _bindgen_ty_2 = 19; -pub const _SC_MESSAGE_PASSING: _bindgen_ty_2 = 20; -pub const _SC_SEMAPHORES: _bindgen_ty_2 = 21; -pub const _SC_SHARED_MEMORY_OBJECTS: _bindgen_ty_2 = 22; -pub const _SC_AIO_LISTIO_MAX: _bindgen_ty_2 = 23; -pub const _SC_AIO_MAX: _bindgen_ty_2 = 24; -pub const _SC_AIO_PRIO_DELTA_MAX: _bindgen_ty_2 = 25; -pub const _SC_DELAYTIMER_MAX: _bindgen_ty_2 = 26; -pub const _SC_MQ_OPEN_MAX: _bindgen_ty_2 = 27; -pub const _SC_MQ_PRIO_MAX: _bindgen_ty_2 = 28; -pub const _SC_VERSION: _bindgen_ty_2 = 29; -pub const _SC_PAGESIZE: _bindgen_ty_2 = 30; -pub const _SC_RTSIG_MAX: _bindgen_ty_2 = 31; -pub const _SC_SEM_NSEMS_MAX: _bindgen_ty_2 = 32; -pub const _SC_SEM_VALUE_MAX: _bindgen_ty_2 = 33; -pub const _SC_SIGQUEUE_MAX: _bindgen_ty_2 = 34; -pub const _SC_TIMER_MAX: _bindgen_ty_2 = 35; -pub const _SC_BC_BASE_MAX: _bindgen_ty_2 = 36; -pub const _SC_BC_DIM_MAX: _bindgen_ty_2 = 37; -pub const _SC_BC_SCALE_MAX: _bindgen_ty_2 = 38; -pub const _SC_BC_STRING_MAX: _bindgen_ty_2 = 39; -pub const _SC_COLL_WEIGHTS_MAX: _bindgen_ty_2 = 40; -pub const _SC_EQUIV_CLASS_MAX: _bindgen_ty_2 = 41; -pub const _SC_EXPR_NEST_MAX: _bindgen_ty_2 = 42; -pub const _SC_LINE_MAX: _bindgen_ty_2 = 43; -pub const _SC_RE_DUP_MAX: _bindgen_ty_2 = 44; -pub const _SC_CHARCLASS_NAME_MAX: _bindgen_ty_2 = 45; -pub const _SC_2_VERSION: _bindgen_ty_2 = 46; -pub const _SC_2_C_BIND: _bindgen_ty_2 = 47; -pub const _SC_2_C_DEV: _bindgen_ty_2 = 48; -pub const _SC_2_FORT_DEV: _bindgen_ty_2 = 49; -pub const _SC_2_FORT_RUN: _bindgen_ty_2 = 50; -pub const _SC_2_SW_DEV: _bindgen_ty_2 = 51; -pub const _SC_2_LOCALEDEF: _bindgen_ty_2 = 52; -pub const _SC_PII: _bindgen_ty_2 = 53; -pub const _SC_PII_XTI: _bindgen_ty_2 = 54; -pub const _SC_PII_SOCKET: _bindgen_ty_2 = 55; -pub const _SC_PII_INTERNET: _bindgen_ty_2 = 56; -pub const _SC_PII_OSI: _bindgen_ty_2 = 57; -pub const _SC_POLL: _bindgen_ty_2 = 58; -pub const _SC_SELECT: _bindgen_ty_2 = 59; -pub const _SC_UIO_MAXIOV: _bindgen_ty_2 = 60; -pub const _SC_IOV_MAX: _bindgen_ty_2 = 60; -pub const _SC_PII_INTERNET_STREAM: _bindgen_ty_2 = 61; -pub const _SC_PII_INTERNET_DGRAM: _bindgen_ty_2 = 62; -pub const _SC_PII_OSI_COTS: _bindgen_ty_2 = 63; -pub const _SC_PII_OSI_CLTS: _bindgen_ty_2 = 64; -pub const _SC_PII_OSI_M: _bindgen_ty_2 = 65; -pub const _SC_T_IOV_MAX: _bindgen_ty_2 = 66; -pub const _SC_THREADS: _bindgen_ty_2 = 67; -pub const _SC_THREAD_SAFE_FUNCTIONS: _bindgen_ty_2 = 68; -pub const _SC_GETGR_R_SIZE_MAX: _bindgen_ty_2 = 69; -pub const _SC_GETPW_R_SIZE_MAX: _bindgen_ty_2 = 70; -pub const _SC_LOGIN_NAME_MAX: _bindgen_ty_2 = 71; -pub const _SC_TTY_NAME_MAX: _bindgen_ty_2 = 72; -pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: _bindgen_ty_2 = 73; -pub const _SC_THREAD_KEYS_MAX: _bindgen_ty_2 = 74; -pub const _SC_THREAD_STACK_MIN: _bindgen_ty_2 = 75; -pub const _SC_THREAD_THREADS_MAX: _bindgen_ty_2 = 76; -pub const _SC_THREAD_ATTR_STACKADDR: _bindgen_ty_2 = 77; -pub const _SC_THREAD_ATTR_STACKSIZE: _bindgen_ty_2 = 78; -pub const _SC_THREAD_PRIORITY_SCHEDULING: _bindgen_ty_2 = 79; -pub const _SC_THREAD_PRIO_INHERIT: _bindgen_ty_2 = 80; -pub const _SC_THREAD_PRIO_PROTECT: _bindgen_ty_2 = 81; -pub const _SC_THREAD_PROCESS_SHARED: _bindgen_ty_2 = 82; -pub const _SC_NPROCESSORS_CONF: _bindgen_ty_2 = 83; -pub const _SC_NPROCESSORS_ONLN: _bindgen_ty_2 = 84; -pub const _SC_PHYS_PAGES: _bindgen_ty_2 = 85; -pub const _SC_AVPHYS_PAGES: _bindgen_ty_2 = 86; -pub const _SC_ATEXIT_MAX: _bindgen_ty_2 = 87; -pub const _SC_PASS_MAX: _bindgen_ty_2 = 88; -pub const _SC_XOPEN_VERSION: _bindgen_ty_2 = 89; -pub const _SC_XOPEN_XCU_VERSION: _bindgen_ty_2 = 90; -pub const _SC_XOPEN_UNIX: _bindgen_ty_2 = 91; -pub const _SC_XOPEN_CRYPT: _bindgen_ty_2 = 92; -pub const _SC_XOPEN_ENH_I18N: _bindgen_ty_2 = 93; -pub const _SC_XOPEN_SHM: _bindgen_ty_2 = 94; -pub const _SC_2_CHAR_TERM: _bindgen_ty_2 = 95; -pub const _SC_2_C_VERSION: _bindgen_ty_2 = 96; -pub const _SC_2_UPE: _bindgen_ty_2 = 97; -pub const _SC_XOPEN_XPG2: _bindgen_ty_2 = 98; -pub const _SC_XOPEN_XPG3: _bindgen_ty_2 = 99; -pub const _SC_XOPEN_XPG4: _bindgen_ty_2 = 100; -pub const _SC_CHAR_BIT: _bindgen_ty_2 = 101; -pub const _SC_CHAR_MAX: _bindgen_ty_2 = 102; -pub const _SC_CHAR_MIN: _bindgen_ty_2 = 103; -pub const _SC_INT_MAX: _bindgen_ty_2 = 104; -pub const _SC_INT_MIN: _bindgen_ty_2 = 105; -pub const _SC_LONG_BIT: _bindgen_ty_2 = 106; -pub const _SC_WORD_BIT: _bindgen_ty_2 = 107; -pub const _SC_MB_LEN_MAX: _bindgen_ty_2 = 108; -pub const _SC_NZERO: _bindgen_ty_2 = 109; -pub const _SC_SSIZE_MAX: _bindgen_ty_2 = 110; -pub const _SC_SCHAR_MAX: _bindgen_ty_2 = 111; -pub const _SC_SCHAR_MIN: _bindgen_ty_2 = 112; -pub const _SC_SHRT_MAX: _bindgen_ty_2 = 113; -pub const _SC_SHRT_MIN: _bindgen_ty_2 = 114; -pub const _SC_UCHAR_MAX: _bindgen_ty_2 = 115; -pub const _SC_UINT_MAX: _bindgen_ty_2 = 116; -pub const _SC_ULONG_MAX: _bindgen_ty_2 = 117; -pub const _SC_USHRT_MAX: _bindgen_ty_2 = 118; -pub const _SC_NL_ARGMAX: _bindgen_ty_2 = 119; -pub const _SC_NL_LANGMAX: _bindgen_ty_2 = 120; -pub const _SC_NL_MSGMAX: _bindgen_ty_2 = 121; -pub const _SC_NL_NMAX: _bindgen_ty_2 = 122; -pub const _SC_NL_SETMAX: _bindgen_ty_2 = 123; -pub const _SC_NL_TEXTMAX: _bindgen_ty_2 = 124; -pub const _SC_XBS5_ILP32_OFF32: _bindgen_ty_2 = 125; -pub const _SC_XBS5_ILP32_OFFBIG: _bindgen_ty_2 = 126; -pub const _SC_XBS5_LP64_OFF64: _bindgen_ty_2 = 127; -pub const _SC_XBS5_LPBIG_OFFBIG: _bindgen_ty_2 = 128; -pub const _SC_XOPEN_LEGACY: _bindgen_ty_2 = 129; -pub const _SC_XOPEN_REALTIME: _bindgen_ty_2 = 130; -pub const _SC_XOPEN_REALTIME_THREADS: _bindgen_ty_2 = 131; -pub const _SC_ADVISORY_INFO: _bindgen_ty_2 = 132; -pub const _SC_BARRIERS: _bindgen_ty_2 = 133; -pub const _SC_BASE: _bindgen_ty_2 = 134; -pub const _SC_C_LANG_SUPPORT: _bindgen_ty_2 = 135; -pub const _SC_C_LANG_SUPPORT_R: _bindgen_ty_2 = 136; -pub const _SC_CLOCK_SELECTION: _bindgen_ty_2 = 137; -pub const _SC_CPUTIME: _bindgen_ty_2 = 138; -pub const _SC_THREAD_CPUTIME: _bindgen_ty_2 = 139; -pub const _SC_DEVICE_IO: _bindgen_ty_2 = 140; -pub const _SC_DEVICE_SPECIFIC: _bindgen_ty_2 = 141; -pub const _SC_DEVICE_SPECIFIC_R: _bindgen_ty_2 = 142; -pub const _SC_FD_MGMT: _bindgen_ty_2 = 143; -pub const _SC_FIFO: _bindgen_ty_2 = 144; -pub const _SC_PIPE: _bindgen_ty_2 = 145; -pub const _SC_FILE_ATTRIBUTES: _bindgen_ty_2 = 146; -pub const _SC_FILE_LOCKING: _bindgen_ty_2 = 147; -pub const _SC_FILE_SYSTEM: _bindgen_ty_2 = 148; -pub const _SC_MONOTONIC_CLOCK: _bindgen_ty_2 = 149; -pub const _SC_MULTI_PROCESS: _bindgen_ty_2 = 150; -pub const _SC_SINGLE_PROCESS: _bindgen_ty_2 = 151; -pub const _SC_NETWORKING: _bindgen_ty_2 = 152; -pub const _SC_READER_WRITER_LOCKS: _bindgen_ty_2 = 153; -pub const _SC_SPIN_LOCKS: _bindgen_ty_2 = 154; -pub const _SC_REGEXP: _bindgen_ty_2 = 155; -pub const _SC_REGEX_VERSION: _bindgen_ty_2 = 156; -pub const _SC_SHELL: _bindgen_ty_2 = 157; -pub const _SC_SIGNALS: _bindgen_ty_2 = 158; -pub const _SC_SPAWN: _bindgen_ty_2 = 159; -pub const _SC_SPORADIC_SERVER: _bindgen_ty_2 = 160; -pub const _SC_THREAD_SPORADIC_SERVER: _bindgen_ty_2 = 161; -pub const _SC_SYSTEM_DATABASE: _bindgen_ty_2 = 162; -pub const _SC_SYSTEM_DATABASE_R: _bindgen_ty_2 = 163; -pub const _SC_TIMEOUTS: _bindgen_ty_2 = 164; -pub const _SC_TYPED_MEMORY_OBJECTS: _bindgen_ty_2 = 165; -pub const _SC_USER_GROUPS: _bindgen_ty_2 = 166; -pub const _SC_USER_GROUPS_R: _bindgen_ty_2 = 167; -pub const _SC_2_PBS: _bindgen_ty_2 = 168; -pub const _SC_2_PBS_ACCOUNTING: _bindgen_ty_2 = 169; -pub const _SC_2_PBS_LOCATE: _bindgen_ty_2 = 170; -pub const _SC_2_PBS_MESSAGE: _bindgen_ty_2 = 171; -pub const _SC_2_PBS_TRACK: _bindgen_ty_2 = 172; -pub const _SC_SYMLOOP_MAX: _bindgen_ty_2 = 173; -pub const _SC_STREAMS: _bindgen_ty_2 = 174; -pub const _SC_2_PBS_CHECKPOINT: _bindgen_ty_2 = 175; -pub const _SC_V6_ILP32_OFF32: _bindgen_ty_2 = 176; -pub const _SC_V6_ILP32_OFFBIG: _bindgen_ty_2 = 177; -pub const _SC_V6_LP64_OFF64: _bindgen_ty_2 = 178; -pub const _SC_V6_LPBIG_OFFBIG: _bindgen_ty_2 = 179; -pub const _SC_HOST_NAME_MAX: _bindgen_ty_2 = 180; -pub const _SC_TRACE: _bindgen_ty_2 = 181; -pub const _SC_TRACE_EVENT_FILTER: _bindgen_ty_2 = 182; -pub const _SC_TRACE_INHERIT: _bindgen_ty_2 = 183; -pub const _SC_TRACE_LOG: _bindgen_ty_2 = 184; -pub const _SC_LEVEL1_ICACHE_SIZE: _bindgen_ty_2 = 185; -pub const _SC_LEVEL1_ICACHE_ASSOC: _bindgen_ty_2 = 186; -pub const _SC_LEVEL1_ICACHE_LINESIZE: _bindgen_ty_2 = 187; -pub const _SC_LEVEL1_DCACHE_SIZE: _bindgen_ty_2 = 188; -pub const _SC_LEVEL1_DCACHE_ASSOC: _bindgen_ty_2 = 189; -pub const _SC_LEVEL1_DCACHE_LINESIZE: _bindgen_ty_2 = 190; -pub const _SC_LEVEL2_CACHE_SIZE: _bindgen_ty_2 = 191; -pub const _SC_LEVEL2_CACHE_ASSOC: _bindgen_ty_2 = 192; -pub const _SC_LEVEL2_CACHE_LINESIZE: _bindgen_ty_2 = 193; -pub const _SC_LEVEL3_CACHE_SIZE: _bindgen_ty_2 = 194; -pub const _SC_LEVEL3_CACHE_ASSOC: _bindgen_ty_2 = 195; -pub const _SC_LEVEL3_CACHE_LINESIZE: _bindgen_ty_2 = 196; -pub const _SC_LEVEL4_CACHE_SIZE: _bindgen_ty_2 = 197; -pub const _SC_LEVEL4_CACHE_ASSOC: _bindgen_ty_2 = 198; -pub const _SC_LEVEL4_CACHE_LINESIZE: _bindgen_ty_2 = 199; -pub const _SC_IPV6: _bindgen_ty_2 = 235; -pub const _SC_RAW_SOCKETS: _bindgen_ty_2 = 236; -pub const _SC_V7_ILP32_OFF32: _bindgen_ty_2 = 237; -pub const _SC_V7_ILP32_OFFBIG: _bindgen_ty_2 = 238; -pub const _SC_V7_LP64_OFF64: _bindgen_ty_2 = 239; -pub const _SC_V7_LPBIG_OFFBIG: _bindgen_ty_2 = 240; -pub const _SC_SS_REPL_MAX: _bindgen_ty_2 = 241; -pub const _SC_TRACE_EVENT_NAME_MAX: _bindgen_ty_2 = 242; -pub const _SC_TRACE_NAME_MAX: _bindgen_ty_2 = 243; -pub const _SC_TRACE_SYS_MAX: _bindgen_ty_2 = 244; -pub const _SC_TRACE_USER_EVENT_MAX: _bindgen_ty_2 = 245; -pub const _SC_XOPEN_STREAMS: _bindgen_ty_2 = 246; -pub const _SC_THREAD_ROBUST_PRIO_INHERIT: _bindgen_ty_2 = 247; -pub const _SC_THREAD_ROBUST_PRIO_PROTECT: _bindgen_ty_2 = 248; -pub const _SC_MINSIGSTKSZ: _bindgen_ty_2 = 249; -pub const _SC_SIGSTKSZ: _bindgen_ty_2 = 250; -pub type _bindgen_ty_2 = core::ffi::c_uint; -pub const _CS_PATH: _bindgen_ty_3 = 0; -pub const _CS_V6_WIDTH_RESTRICTED_ENVS: _bindgen_ty_3 = 1; -pub const _CS_GNU_LIBC_VERSION: _bindgen_ty_3 = 2; -pub const _CS_GNU_LIBPTHREAD_VERSION: _bindgen_ty_3 = 3; -pub const _CS_V5_WIDTH_RESTRICTED_ENVS: _bindgen_ty_3 = 4; -pub const _CS_V7_WIDTH_RESTRICTED_ENVS: _bindgen_ty_3 = 5; -pub const _CS_LFS_CFLAGS: _bindgen_ty_3 = 1000; -pub const _CS_LFS_LDFLAGS: _bindgen_ty_3 = 1001; -pub const _CS_LFS_LIBS: _bindgen_ty_3 = 1002; -pub const _CS_LFS_LINTFLAGS: _bindgen_ty_3 = 1003; -pub const _CS_LFS64_CFLAGS: _bindgen_ty_3 = 1004; -pub const _CS_LFS64_LDFLAGS: _bindgen_ty_3 = 1005; -pub const _CS_LFS64_LIBS: _bindgen_ty_3 = 1006; -pub const _CS_LFS64_LINTFLAGS: _bindgen_ty_3 = 1007; -pub const _CS_XBS5_ILP32_OFF32_CFLAGS: _bindgen_ty_3 = 1100; -pub const _CS_XBS5_ILP32_OFF32_LDFLAGS: _bindgen_ty_3 = 1101; -pub const _CS_XBS5_ILP32_OFF32_LIBS: _bindgen_ty_3 = 1102; -pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS: _bindgen_ty_3 = 1103; -pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS: _bindgen_ty_3 = 1104; -pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1105; -pub const _CS_XBS5_ILP32_OFFBIG_LIBS: _bindgen_ty_3 = 1106; -pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1107; -pub const _CS_XBS5_LP64_OFF64_CFLAGS: _bindgen_ty_3 = 1108; -pub const _CS_XBS5_LP64_OFF64_LDFLAGS: _bindgen_ty_3 = 1109; -pub const _CS_XBS5_LP64_OFF64_LIBS: _bindgen_ty_3 = 1110; -pub const _CS_XBS5_LP64_OFF64_LINTFLAGS: _bindgen_ty_3 = 1111; -pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS: _bindgen_ty_3 = 1112; -pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1113; -pub const _CS_XBS5_LPBIG_OFFBIG_LIBS: _bindgen_ty_3 = 1114; -pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1115; -pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS: _bindgen_ty_3 = 1116; -pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS: _bindgen_ty_3 = 1117; -pub const _CS_POSIX_V6_ILP32_OFF32_LIBS: _bindgen_ty_3 = 1118; -pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS: _bindgen_ty_3 = 1119; -pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: _bindgen_ty_3 = 1120; -pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1121; -pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS: _bindgen_ty_3 = 1122; -pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1123; -pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS: _bindgen_ty_3 = 1124; -pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS: _bindgen_ty_3 = 1125; -pub const _CS_POSIX_V6_LP64_OFF64_LIBS: _bindgen_ty_3 = 1126; -pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS: _bindgen_ty_3 = 1127; -pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: _bindgen_ty_3 = 1128; -pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1129; -pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS: _bindgen_ty_3 = 1130; -pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1131; -pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS: _bindgen_ty_3 = 1132; -pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS: _bindgen_ty_3 = 1133; -pub const _CS_POSIX_V7_ILP32_OFF32_LIBS: _bindgen_ty_3 = 1134; -pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS: _bindgen_ty_3 = 1135; -pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS: _bindgen_ty_3 = 1136; -pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1137; -pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS: _bindgen_ty_3 = 1138; -pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1139; -pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS: _bindgen_ty_3 = 1140; -pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS: _bindgen_ty_3 = 1141; -pub const _CS_POSIX_V7_LP64_OFF64_LIBS: _bindgen_ty_3 = 1142; -pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS: _bindgen_ty_3 = 1143; -pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS: _bindgen_ty_3 = 1144; -pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS: _bindgen_ty_3 = 1145; -pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS: _bindgen_ty_3 = 1146; -pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS: _bindgen_ty_3 = 1147; -pub const _CS_V6_ENV: _bindgen_ty_3 = 1148; -pub const _CS_V7_ENV: _bindgen_ty_3 = 1149; -pub type _bindgen_ty_3 = core::ffi::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timex { - pub modes: core::ffi::c_uint, - pub offset: __syscall_slong_t, - pub freq: __syscall_slong_t, - pub maxerror: __syscall_slong_t, - pub esterror: __syscall_slong_t, - pub status: core::ffi::c_int, - pub constant: __syscall_slong_t, - pub precision: __syscall_slong_t, - pub tolerance: __syscall_slong_t, - pub time: timeval, - pub tick: __syscall_slong_t, - pub ppsfreq: __syscall_slong_t, - pub jitter: __syscall_slong_t, - pub shift: core::ffi::c_int, - pub stabil: __syscall_slong_t, - pub jitcnt: __syscall_slong_t, - pub calcnt: __syscall_slong_t, - pub errcnt: __syscall_slong_t, - pub stbcnt: __syscall_slong_t, - pub tai: core::ffi::c_int, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 44usize]>, -} -#[test] -fn bindgen_test_layout_timex() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 208usize, - concat!("Size of: ", stringify!(timex)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timex)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).modes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(modes) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).freq) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(freq) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).maxerror) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(maxerror) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).esterror) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(esterror) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(status) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).constant) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(constant) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).precision) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(precision) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tolerance) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(tolerance) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).time) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(time) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tick) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(tick) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).ppsfreq) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(ppsfreq) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).jitter) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(jitter) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).shift) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(shift) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).stabil) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(stabil) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).jitcnt) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(jitcnt) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).calcnt) as usize - ptr as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(calcnt) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).errcnt) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(errcnt) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).stbcnt) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(stbcnt) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tai) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(timex), - "::", - stringify!(tai) - ) - ); -} -impl Default for timex { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: core::ffi::c_int, - pub tm_min: core::ffi::c_int, - pub tm_hour: core::ffi::c_int, - pub tm_mday: core::ffi::c_int, - pub tm_mon: core::ffi::c_int, - pub tm_year: core::ffi::c_int, - pub tm_wday: core::ffi::c_int, - pub tm_yday: core::ffi::c_int, - pub tm_isdst: core::ffi::c_int, - pub tm_gmtoff: core::ffi::c_long, - pub tm_zone: *const core::ffi::c_char, -} -#[test] -fn bindgen_test_layout_tm() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(tm)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(tm)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_sec) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_min) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_hour) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_mday) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_mon) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_year) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_wday) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_yday) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_isdst) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_gmtoff) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(tm), - "::", - stringify!(tm_zone) - ) - ); -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -#[test] -fn bindgen_test_layout_itimerspec() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(itimerspec)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(itimerspec)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(itimerspec), - "::", - stringify!(it_interval) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(itimerspec), - "::", - stringify!(it_value) - ) - ); -} -pub type error_t = core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut core::ffi::c_void, - pub iov_len: usize, -} -#[test] -fn bindgen_test_layout_iovec() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(iovec)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(iovec)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).iov_base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(iovec), - "::", - stringify!(iov_base) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).iov_len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(iovec), - "::", - stringify!(iov_len) - ) - ); -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const __pid_type_F_OWNER_TID: __pid_type = 0; -pub const __pid_type_F_OWNER_PID: __pid_type = 1; -pub const __pid_type_F_OWNER_PGRP: __pid_type = 2; -pub const __pid_type_F_OWNER_GID: __pid_type = 2; -pub type __pid_type = core::ffi::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { - pub type_: __pid_type, - pub pid: __pid_t, -} -#[test] -fn bindgen_test_layout_f_owner_ex() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(f_owner_ex)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(f_owner_ex)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(f_owner_ex), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(f_owner_ex), - "::", - stringify!(pid) - ) - ); -} -impl Default for f_owner_ex { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct file_handle { - pub handle_bytes: core::ffi::c_uint, - pub handle_type: core::ffi::c_int, - pub f_handle: __IncompleteArrayField, -} -#[test] -fn bindgen_test_layout_file_handle() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(file_handle)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(file_handle)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).handle_bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(file_handle), - "::", - stringify!(handle_bytes) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).handle_type) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(file_handle), - "::", - stringify!(handle_type) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).f_handle) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(file_handle), - "::", - stringify!(f_handle) - ) - ); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -#[test] -fn bindgen_test_layout_stat() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(stat)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stat)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_dev) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_ino) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_nlink) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_mode) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_uid) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_gid) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad0) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(__pad0) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_rdev) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_blksize) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_blksize) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_blocks) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_blocks) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_atim) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_atim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_mtim) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_mtim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_ctim) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(st_ctim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__glibc_reserved) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(stat), - "::", - stringify!(__glibc_reserved) - ) - ); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat64 { - pub st_dev: __dev_t, - pub st_ino: __ino64_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt64_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -#[test] -fn bindgen_test_layout_stat64() { - const UNINIT: ::core::mem::MaybeUninit = ::core::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::core::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(stat64)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stat64)) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_dev) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_ino) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_nlink) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_mode) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_uid) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_gid) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__pad0) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(__pad0) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_rdev) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_size) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_blksize) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_blksize) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_blocks) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_blocks) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_atim) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_atim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_mtim) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_mtim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).st_ctim) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(st_ctim) - ) - ); - assert_eq!( - unsafe { ::core::ptr::addr_of!((*ptr).__glibc_reserved) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(stat64), - "::", - stringify!(__glibc_reserved) - ) - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct option { - pub name: *const core::ffi::c_char, - pub has_arg: core::ffi::c_int, - pub flag: *mut core::ffi::c_int, - pub val: core::ffi::c_int, -} -#[test] -fn bindgen_test_layout_option() { - const UNINIT: ::core::mem::MaybeUninit